/* Matea review round 5 — final mobile rhythm, editorial menu and aligned candidate briefs. */

/* Hero: a wider, better-balanced audience line and slightly more breathing room. */
.matea-hero-v5 .eyebrow {
  width: min(100%, 760px);
  max-width: none !important;
  align-items: flex-start;
  text-wrap: balance;
}

/* The navigation overlay now uses the same editorial display face as the main headline. */
@media (max-width: 980px) {
  .nav-panel.matea-menu-v5 .nav-links {
    width: min(100%, 390px);
    gap: 5px;
  }

  .nav-panel.matea-menu-v5 .nav-links a {
    padding: 8px 14px;
    font-family: var(--matea-font-display, Georgia, "Times New Roman", serif) !important;
    font-size: clamp(31px, 8.1vw, 39px) !important;
    font-weight: 520 !important;
    line-height: 1.06 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
  }
}

/* Proof header: a small institutional kicker, a clear output title, and no repeated 186 label. */
.matea-proof-v5 .console-head {
  display: block !important;
  margin-bottom: 18px !important;
  padding: 4px 2px 18px !important;
  border-bottom: 1px solid rgba(216, 212, 204, .10);
}

.matea-proof-v5 .console-title {
  width: 100%;
  max-width: 760px;
}

.matea-proof-kicker-v5 {
  display: block;
  margin: 0 0 8px;
  color: var(--matea-polish-champagne, #d7b878);
  font-family: var(--matea-font-ui, sans-serif);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.matea-proof-v5 .console-title b {
  display: block;
  margin: 0;
  color: #fffaf2;
  font-family: var(--matea-font-display, Georgia, "Times New Roman", serif) !important;
  font-size: clamp(29px, 3vw, 38px) !important;
  font-weight: 540 !important;
  line-height: 1.04 !important;
  letter-spacing: -.038em !important;
}

.matea-proof-v5 .console-title b > .mobile-console-title,
.matea-proof-v5 .console-title b > .desktop-console-title {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

.matea-proof-subtitle-v5 {
  display: block;
  max-width: 64ch;
  margin-top: 8px;
  color: #aaa198;
  font-family: var(--matea-font-ui, sans-serif);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.5;
}

.matea-proof-v5 .score-strip {
  margin-top: 0 !important;
}

/* Candidate brief: centered editorial header, Travel first, and stable dimensions across tabs. */
.matea-candidate-v5 .map-head {
  display: block !important;
  width: 100%;
  margin-bottom: 24px !important;
  text-align: center;
}

.matea-candidate-v5 .map-kicker {
  display: block;
  width: 100%;
  margin: 0 0 10px !important;
  text-align: center;
}

.matea-candidate-v5 .map-head h3 {
  width: 100%;
  max-width: none !important;
  margin: 0 auto !important;
  text-align: center;
  text-wrap: balance;
}

.matea-candidate-v5 .map-head p {
  max-width: 58ch !important;
  margin: 12px auto 0 !important;
  text-align: center;
}

.matea-candidate-v5 .map-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: none !important;
}

.matea-candidate-v5 .map-tab,
.matea-candidate-v5 .map-tab:first-child {
  grid-column: auto !important;
  min-height: 54px;
}

.matea-candidate-v5 .matea-brief-panel {
  min-height: 528px;
}

.matea-candidate-v5 .matea-brief-panel .map-profile {
  min-height: 101px;
}

.matea-candidate-v5 .matea-brief-flow {
  display: grid;
  grid-template-rows: minmax(96px, auto) minmax(96px, auto) minmax(154px, auto);
}

.matea-candidate-v5 .matea-brief-step {
  min-height: 0;
}

.matea-candidate-v5 .matea-brief-step.is-target {
  min-height: 146px;
  align-items: center;
}

.matea-candidate-v5 .matea-brief-step.is-target strong {
  min-height: 2.5em;
  display: flex;
  align-items: center;
  text-wrap: balance;
}

@media (min-width: 981px) {
  .matea-candidate-v5 .map-head h3 {
    font-size: clamp(42px, 4vw, 54px) !important;
  }

  .matea-candidate-v5 .matea-brief-panel {
    min-height: 542px;
  }
}

@media (max-width: 980px) {
  .matea-hero-v5.hero-copy-stage {
    padding-top: 52px !important;
    padding-bottom: 68px !important;
  }

  .matea-hero-v5 .eyebrow {
    width: 100%;
    max-width: 36ch !important;
    font-size: 11.5px !important;
    line-height: 1.46 !important;
    letter-spacing: .105em !important;
  }

  .matea-hero-v5.hero-copy-stage h1 {
    margin-top: 31px !important;
  }

  .matea-proof-v5 .console-head,
  .matea-proof-v5 .console-title,
  .matea-proof-kicker-v5,
  .matea-proof-subtitle-v5 {
    text-align: center;
  }

  .matea-proof-v5 .console-title {
    margin-inline: auto;
  }

  .matea-proof-subtitle-v5 {
    max-width: 36ch;
    margin-inline: auto;
  }

  .matea-candidate-v5 .map-head {
    margin-bottom: 19px !important;
  }

  .matea-candidate-v5 .map-tabs {
    gap: 8px;
  }

  .matea-candidate-v5 .map-tab,
  .matea-candidate-v5 .map-tab:first-child {
    min-height: 49px !important;
    padding: 9px 7px !important;
    font-size: 10px !important;
  }

  .matea-candidate-v5 .matea-brief-panel {
    min-height: 482px;
  }

  .matea-candidate-v5 .matea-brief-panel .map-profile {
    min-height: 86px;
  }

  .matea-candidate-v5 .matea-brief-flow {
    grid-template-rows: minmax(82px, auto) minmax(82px, auto) minmax(139px, auto);
  }

  .matea-candidate-v5 .matea-brief-step.is-target {
    min-height: 132px;
  }

  .matea-candidate-v5 .matea-brief-step.is-target strong {
    min-height: 2.95em;
    font-size: 17px !important;
    line-height: 1.22 !important;
  }
}

@media (max-width: 520px) {
  .matea-hero-v5.hero-copy-stage {
    padding-top: 55px !important;
    padding-bottom: 76px !important;
  }

  .matea-hero-v5 .eyebrow {
    max-width: 34ch !important;
  }

  .matea-proof-v5 .console-head {
    padding-bottom: 16px !important;
  }

  .matea-proof-kicker-v5 {
    font-size: 8.5px;
  }

  .matea-proof-v5 .console-title b {
    font-size: 27px !important;
  }

  .matea-proof-subtitle-v5 {
    font-size: 10.5px;
    line-height: 1.48;
  }

  .matea-candidate-v5 .map-head h3 {
    font-size: 36px !important;
  }

  .matea-candidate-v5 .matea-brief-panel {
    min-height: 478px;
  }
}

@media (max-width: 360px) {
  .matea-hero-v5 .eyebrow {
    max-width: 31ch !important;
    font-size: 10.8px !important;
  }

  .nav-panel.matea-menu-v5 .nav-links a {
    font-size: 29px !important;
  }

  .matea-candidate-v5 .map-tab,
  .matea-candidate-v5 .map-tab:first-child {
    font-size: 9px !important;
  }

  .matea-candidate-v5 .matea-brief-step.is-target strong {
    font-size: 16.5px !important;
  }
}
