/* Final layout refinements */
.hero { min-height: calc(78vh - 88px); }
.hero-content { padding-top: 68px; padding-bottom: 82px; }
.hero h1 { font-size: clamp(50px, 5.7vw, 82px); max-width: 820px; }
.hero-copy { font-size: 17px; max-width: 670px; }

.intelligence-grid { align-items: stretch; }
.intelligence-grid article { min-height: 306px; }
.intelligence-grid article > div { display: flex; flex-direction: column; }
.intelligence-grid h3 { min-height: 60px; display: flex; align-items: flex-start; }
.intelligence-grid article > div > p:not(.eyebrow) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.pillars span { font-size: 29px; line-height: 1; }
.pillars small { font-size: 11px; line-height: 1.4; }
.mini-pillars small { font-size: 10px; }

.insight-band { background: #f7f7f4; border: 2px solid #d4af37; box-shadow: 12px 12px 0 rgba(11,29,54,.2); clip-path: none; margin-top: 88px; margin-bottom: 88px; padding: 76px 70px; }
.team-photo { border-radius: 50%; object-position: center; }

.team-detail a[aria-disabled="true"] { color: #526376; cursor: default; opacity: .9; }
.empty-state a { color: #e6bc45; font: 600 10px var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.monitor-content { align-items: start; }
.record-list { align-content: start; }
.record-count b { display: block; color: #a9bbcc; font: 500 10px/1.35 var(--display); letter-spacing: .1em; text-transform: uppercase; }

.live-monitor-heading { display: grid; grid-template-columns: 1.3fr .8fr auto; gap: 38px; align-items: end; margin-bottom: 38px; }
.live-monitor-heading h2 { margin: 0; font-size: clamp(46px, 5vw, 74px); }
.live-monitor-heading > p { margin: 0; color: #b9c9d8; font-size: 14px; line-height: 1.6; }
.live-monitor-heading .button { align-self: end; white-space: nowrap; }
.live-monitor-frame { overflow: hidden; border: 1px solid rgba(170,195,218,.32); background: #f4f6f8; }
.live-monitor-frame iframe { display: block; width: 100%; height: 1650px; border: 0; background: #f4f6f8; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 20; width: 50px; height: 50px; display: grid; place-items: center; align-content: center; gap: 0; background: #d4af37; border: 1px solid #f4d56d; box-shadow: 0 5px 18px rgba(0,0,0,.28); color: #0b1d36; text-decoration: none; }
.back-to-top span { font: 600 24px/1 var(--serif); }
.back-to-top small { font: 700 8px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.back-to-top:hover { background: #f0c449; transform: translateY(-2px); }

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-content { padding-top: 52px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(44px, 12vw, 64px); }
  .intelligence-grid h3 { min-height: auto; }
  .insight-band { margin-top: 56px; margin-bottom: 56px; padding: 48px 26px; box-shadow: 7px 7px 0 rgba(11,29,54,.18); }
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .live-monitor-heading { grid-template-columns: 1fr; gap: 20px; }
  .live-monitor-heading .button { justify-self: start; }
  .live-monitor-frame iframe { height: 1200px; }
}

/* Stage 1: site architecture, dropdown navigation and landing-page framework */
.site-header { z-index: 60; }
.site-header nav { position: relative; }
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-link { background: none; border: 0; color: var(--ink); font: 500 12px var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; padding: 12px 0; }
.nav-link span { margin-left: 4px; color: #8a6f17; font-size: 12px; }
.nav-dropdown-menu { position: absolute; top: calc(100% + 12px); left: -16px; width: max-content; min-width: 255px; padding: 9px; background: #0b1d36; border: 1px solid #335274; box-shadow: 0 18px 40px rgba(0,0,0,.22); display: none; z-index: 80; }
.nav-dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: grid; }
.site-header .nav-dropdown-menu a { color: #eef2f5; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 10px; white-space: nowrap; }
.site-header .nav-dropdown-menu a:last-child { border-bottom: 0; }
.site-header .nav-dropdown-menu a:hover, .site-header .nav-dropdown-menu a:focus { background: #173250; color: #d4af37; }

.section-page { background: #0b1d36; min-height: 70vh; }
.section-page .page-hero { border-bottom: 1px solid rgba(170,195,218,.22); }
.section-page .page-hero h1 { margin-bottom: 26px; }
.hub-section { padding: 95px 0 115px; background: #eef0f1; color: #0b1d36; }
.hub-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.hub-card { min-height: 330px; padding: 34px; border: 1px solid #a9b8c7; background: #f7f8f8; display: flex; flex-direction: column; align-items: flex-start; }
.hub-card h2, .advisory-card h2, .about-grid h2 { font-size: clamp(34px,3.3vw,50px); margin: 0 0 18px; }
.hub-card p { color: #405267; max-width: 590px; }
.hub-card .button { margin-top: auto; }
.hub-card-live { background: #173250; color: white; border-color: #335274; }
.hub-card-live p { color: #cfdae4; }
.status-label { display: inline-block; margin-bottom: 20px; color: #d4af37; font: 700 9px var(--display); letter-spacing: .16em; text-transform: uppercase; }
.status-live { color: #9bd6bb; }
.status-development { color: #9bbde0; }
.hub-note { margin-top: auto; padding-top: 25px; font-size: 12px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.hub-links span { border: 1px solid #9aabbb; padding: 7px 10px; font: 600 9px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.coming-soon-card { background: #0b1d36; border: 1px solid #335274; color: #fff; padding: 34px; }
.coming-soon-card h2, .coming-soon-card h3 { color: #fff; }
.coming-soon-card p { color: #b7c6d4; }

.advisory-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.advisory-card { min-height: 335px; padding: 34px; border: 1px solid #a9b8c7; background: #f7f8f8; display: flex; flex-direction: column; align-items: flex-start; }
.advisory-card p { color: #405267; }
.advisory-card .text-link, .advisory-card .button { margin-top: auto; }
.advisory-detail-band { background: #132a4a; padding: 90px 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 44px 60px; }
.detail-grid > div { border-top: 1px solid #516b84; padding-top: 24px; }
.detail-grid h3 { font: 600 30px/1.15 var(--serif); margin: 0 0 14px; }
.detail-grid p:not(.eyebrow) { color: #c0cedb; }

.pulse-intro { max-width: 780px; margin-bottom: 48px; }
.pulse-intro h2 { font-size: clamp(42px,4.8vw,68px); margin-bottom: 20px; }
.pulse-intro > p:not(.eyebrow) { color: #405267; font-size: 17px; }
.pulse-grid-page { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pulse-grid-page .coming-soon-card { min-height: 330px; }
.pulse-grid-page h3 { font: 600 28px/1.15 var(--serif); margin: 0 0 16px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-grid > article { min-height: 360px; padding: 38px; border: 1px solid #a9b8c7; background: #f7f8f8; }
.about-grid > article p:not(.eyebrow) { color: #405267; font-size: 16px; }
.about-grid .coming-soon-card { grid-column: 1 / -1; background: #0b1d36; border-color: #335274; }
.about-grid .coming-soon-card p:not(.eyebrow) { color: #b7c6d4; }

@media (max-width: 900px) {
  .site-header nav { gap: 18px; }
  .nav-link { font-size: 10px; }
}
@media (max-width: 800px) {
  .nav-dropdown { display: block; }
  .nav-link { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0; text-align: left; font-size: 10px; }
  .nav-dropdown-menu { position: static; min-width: 0; width: 100%; margin-top: 10px; box-shadow: none; background: #e8ebee; border-color: #c3ccd5; padding: 6px; }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: grid; }
  .site-header .nav-dropdown-menu a { color: #0b1d36; border-bottom-color: #cbd3da; padding: 10px 12px; }
  .site-header .nav-dropdown-menu a:hover, .site-header .nav-dropdown-menu a:focus { background: #d9dfe4; color: #0b1d36; }
  .hub-section { padding: 65px 0 80px; }
  .hub-grid, .advisory-grid, .detail-grid, .about-grid, .pulse-grid-page { grid-template-columns: 1fr; }
  .about-grid .coming-soon-card { grid-column: auto; }
  .hub-card, .advisory-card, .about-grid > article, .pulse-grid-page .coming-soon-card { min-height: 0; }
}


/* Stage 1 header CTA refinement */
.site-header .nav-cta {
  background: #d4af37;
  border: 1px solid #d4af37;
  color: #0b1d36;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.site-header .nav-cta span { color: #0b1d36; font-size: 16px; }
.site-header .nav-cta:hover,
.site-header .nav-cta:focus {
  background: #e6bc45;
  border-color: #e6bc45;
  color: #0b1d36;
  transform: translateY(-1px);
}
@media (max-width: 800px) {
  .site-header .nav-cta {
    justify-content: space-between;
    padding: 14px 16px;
  }
}

/* Stage 1 mobile navigation refinement */
@media (max-width: 800px) {
  .site-header {
    position: relative;
    z-index: 100;
  }

  .site-header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 10px 20px 22px;
    gap: 0;
    background: #0b1d36;
    border-top: 1px solid #335274;
    box-shadow: 0 18px 38px rgba(0,0,0,.28);
    flex-direction: column;
    align-items: stretch;
  }

  .site-header nav.open { display: flex; }

  .site-header nav > a,
  .nav-dropdown {
    width: 100%;
    border-bottom: 1px solid rgba(170,195,218,.20);
  }

  .site-header nav > a:not(.nav-cta),
  .nav-link {
    min-height: 54px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: 0;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    color: #f2f5f7;
    font: 600 12px var(--display);
    letter-spacing: .13em;
    text-transform: uppercase;
    text-align: left;
    box-shadow: none;
  }

  .nav-link span {
    margin-left: 12px;
    color: #d4af37;
    font-size: 14px;
    transition: transform .2s ease;
  }

  .nav-dropdown.open > .nav-link span { transform: rotate(180deg); }

  .nav-dropdown-menu,
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none !important;
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0 0 10px;
    padding: 4px 0 8px 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-dropdown.open > .nav-dropdown-menu { display: grid !important; }

  .site-header .nav-dropdown-menu a {
    padding: 10px 0;
    color: #b9c9d8;
    border: 0;
    font: 500 10px var(--display);
    letter-spacing: .10em;
    text-transform: uppercase;
    white-space: normal;
  }

  .site-header .nav-dropdown-menu a:hover,
  .site-header .nav-dropdown-menu a:focus {
    background: transparent;
    color: #d4af37;
  }

  .site-header .nav-cta {
    width: 100%;
    min-height: 56px;
    margin-top: 18px;
    padding: 0 18px;
    justify-content: space-between;
    background: #d4af37;
    border: 1px solid #e6bc45;
    color: #0b1d36;
    font: 700 11px var(--display);
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .site-header .nav-cta span { color: #0b1d36; font-size: 18px; }
}

/* Country Intelligence platform */
.country-page { background: #eef0f1; }
.country-hero { background: #0b1d36; }
.country-hero .hero-copy { max-width: 760px; }

.country-intro { padding: 92px 0; background: #f7f8f8; color: #0b1d36; }
.country-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.country-intro h2,
.country-editions h2,
.country-framework h2,
.intelligence-connection h2 { margin: 0; font-size: clamp(42px, 5vw, 70px); }
.country-intro-copy { padding-top: 24px; border-top: 2px solid #d4af37; }
.country-intro-copy p { margin: 0 0 18px; color: #405267; font-size: 17px; line-height: 1.75; }

.country-editions { padding: 100px 0 115px; background: #e8ebee; color: #0b1d36; }
.section-heading-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 46px; }
.section-heading-row > p { margin: 0; color: #526376; font-size: 15px; line-height: 1.7; }
.country-edition-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 18px; align-items: stretch; }
.country-feature-card,
.country-roadmap-card { padding: 42px; border: 1px solid #335274; }
.country-feature-card { position: relative; overflow: hidden; background: #173250; color: #fff; }
.country-feature-card::after { content: "MY"; position: absolute; right: -10px; top: 28px; color: rgba(255,255,255,.035); font: 700 190px/1 var(--display); letter-spacing: -.08em; pointer-events: none; }
.country-card-topline { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.country-card-topline .status-label { margin: 0; }
.country-region { color: #a9bbcc; font: 600 10px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.country-number { position: relative; z-index: 1; margin: 54px 0 8px; color: #d4af37; font: 600 12px var(--display); letter-spacing: .16em; }
.country-feature-card h2 { position: relative; z-index: 1; color: #fff; font-size: clamp(58px, 7vw, 94px); line-height: .95; }
.country-lead { position: relative; z-index: 1; max-width: 690px; margin: 28px 0 34px; color: #cfdae4; font-size: 17px; line-height: 1.65; }
.country-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 690px; margin: 0 0 26px; border-top: 1px solid #516b84; border-bottom: 1px solid #516b84; }
.country-stats div { padding: 22px 18px 22px 0; }
.country-stats div + div { padding-left: 20px; border-left: 1px solid #516b84; }
.country-stats strong { display: block; color: #d4af37; font: 600 34px/1 var(--serif); }
.country-stats span { display: block; margin-top: 7px; color: #b9c9d8; font: 600 9px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.country-coverage { position: relative; z-index: 1; margin: 0 0 30px; color: #a9bbcc; font: 500 11px var(--display); letter-spacing: .11em; text-transform: uppercase; }
.country-feature-card .button { position: relative; z-index: 1; }

.country-roadmap-card { background: #f7f8f8; color: #0b1d36; }
.country-roadmap-card h3 { margin: 0 0 16px; font: 600 clamp(34px, 3vw, 46px)/1.05 var(--serif); }
.country-roadmap-card > p { margin: 0 0 28px; color: #526376; font-size: 14px; line-height: 1.65; }
.country-roadmap-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #a9b8c7; }
.country-roadmap-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #c7d0d8; }
.country-roadmap-list span { font: 600 18px var(--serif); }
.country-roadmap-list small { color: #6b7c8c; font: 600 8px var(--display); letter-spacing: .1em; text-transform: uppercase; }

.country-framework { padding: 105px 0 118px; background: #0b1d36; color: #fff; }
.framework-heading > p { color: #b9c9d8; }
.framework-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #516b84; border-left: 1px solid #516b84; }
.framework-grid article { min-height: 210px; padding: 28px; border-right: 1px solid #516b84; border-bottom: 1px solid #516b84; }
.framework-grid article > span { color: #d4af37; font: 600 10px var(--display); letter-spacing: .15em; }
.framework-grid h3 { margin: 38px 0 9px; color: #fff; font: 600 27px/1.1 var(--serif); }
.framework-grid p { margin: 0; color: #a9bbcc; font-size: 13px; line-height: 1.55; }

.intelligence-connection { padding: 100px 0 115px; background: #f7f8f8; color: #0b1d36; }
.intelligence-connection > .shell > h2 { max-width: 820px; margin-bottom: 48px; }
.connection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.connection-grid article { min-height: 290px; padding: 30px; border: 1px solid #a9b8c7; display: flex; flex-direction: column; }
.connection-grid article > span { color: #8a6f17; font: 700 10px var(--display); letter-spacing: .15em; }
.connection-grid h3 { margin: 42px 0 14px; font: 600 30px/1.08 var(--serif); }
.connection-grid p { margin: 0 0 26px; color: #526376; font-size: 14px; line-height: 1.65; }
.connection-grid a { margin-top: auto; color: #173250; font: 700 10px var(--display); letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.connection-grid a:hover,
.connection-grid a:focus { color: #8a6f17; }

@media (max-width: 900px) {
  .country-intro-grid,
  .section-heading-row,
  .country-edition-grid { grid-template-columns: 1fr; gap: 32px; }
  .country-edition-grid { gap: 18px; }
  .framework-grid,
  .connection-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .country-intro,
  .country-editions,
  .country-framework,
  .intelligence-connection { padding: 68px 0 78px; }
  .country-feature-card,
  .country-roadmap-card { padding: 28px 24px; }
  .country-feature-card::after { top: 72px; font-size: 126px; }
  .country-number { margin-top: 42px; }
  .country-stats { grid-template-columns: 1fr; }
  .country-stats div { padding: 17px 0; }
  .country-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid #516b84; }
  .framework-grid,
  .connection-grid { grid-template-columns: 1fr; }
  .framework-grid article { min-height: 175px; }
  .connection-grid article { min-height: 250px; }
}
