/* ==========================================================================
   NMG Career Partners — Design System
   Visual language: restrained institutional. Off-white ground, ink navy type,
   tight grotesque display, soft gray panels, no shadows, no gradients,
   generous vertical rhythm. Nothing decorative that isn't load-bearing.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ground */
  --paper:        #FFFFFF;
  --paper-warm:   #FBFBFC;
  --panel:        #F3F4F6;
  --panel-deep:   #ECEEF1;
  --ink-panel:    #131A2E;

  /* Type */
  --ink:          #131A2E;
  --ink-soft:     #2A3450;
  --slate:        #5A6478;
  --slate-light:  #8B94A6;
  --on-ink:       #FFFFFF;
  --on-ink-soft:  #A9B2C4;

  /* Structure */
  --line:         #E3E6EB;
  --line-strong:  #D2D7DF;
  --line-ink:     rgba(255,255,255,.14);

  /* Signal — used only for the "market position" side of comparisons */
  --gain:         #1D6B4F;
  --gain-tint:    #EDF5F1;
  --gain-line:    #C8E0D5;

  /* Action blue — every call to action uses this */
  --blue:            #14458F;
  --blue-deep:       #0E3271;
  --blue-tint:       #EAF0F9;
  --blue-tint-deep:  #DCE6F5;
  --blue-line:       #BCCFEA;

  /* Validation */
  --alert:        #9B2C2C;
  --alert-tint:   #FBEEEE;

  /* Metrics */
  --shell:        1200px;
  --shell-narrow: 780px;
  --gut:          32px;
  --r-sm:         8px;
  --r:            14px;
  --r-lg:         22px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Type scale ---------- */
.display,
h1.display {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  font-weight: 500;
  color: var(--ink);
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--slate-light);
}
.h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 550;
}
.h4 {
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.012em;
  font-weight: 600;
}
.eyebrow {
  font-size: 0.688rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.eyebrow.muted { color: var(--slate-light); }
.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.58;
  color: var(--slate);
  letter-spacing: -0.008em;
}
.body { color: var(--slate); }
.small { font-size: 0.875rem; line-height: 1.55; }
.fine {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--slate-light);
  letter-spacing: 0.002em;
}
.italic-note {
  font-style: italic;
  color: var(--slate);
}
.measure { max-width: 62ch; }
.measure-tight { max-width: 48ch; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.shell-narrow { max-width: var(--shell-narrow); }
section { padding-block: clamp(64px, 9vw, 128px); }
section.tight { padding-block: clamp(48px, 6vw, 84px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
.stack-sm > * + * { margin-top: 12px; }
.stack   > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 34px; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* Wordmark, each nav item and the CTA are distributed evenly across the
   full bar, rather than the nav clustering in the middle. */
.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  height: 74px;
}
.masthead-in > .wordmark { flex: 0 0 auto; }
.masthead-in .nav-tools { flex: 0 0 auto; }
.wordmark {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 1.06rem; letter-spacing: -0.02em;
  line-height: 1;
}
.wordmark .mark {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: block; overflow: visible;
}
.wordmark-text { white-space: nowrap; }
.nav {
  flex: 1 1 auto;
  display: flex; align-items: center;
  justify-content: space-evenly;
  gap: clamp(34px, 4.5vw, 64px);
}
.nav a {
  text-decoration: none; color: var(--slate);
  font-size: 0.875rem; font-weight: 500; letter-spacing: -0.005em;
  transition: color .16s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 16px; }
.burger {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.burger span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
}
.burger span + span { margin-top: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 0.9375rem; font-weight: 550; letter-spacing: -0.008em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary { background: var(--blue); color: #FFFFFF; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
/* Secondary: blue-tinted, never white */
.btn-outline { background: var(--blue-tint); color: var(--blue); border-color: var(--blue-line); }
.btn-outline:hover { background: var(--blue-tint-deep); border-color: var(--blue); }
/* Legacy aliases — kept so no button can fall back to a white treatment */
.btn-ghost,
.btn-on-ink { background: var(--blue-tint); color: var(--blue); border-color: var(--blue-line); }
.btn-ghost:hover,
.btn-on-ink:hover { background: var(--blue-tint-deep); border-color: var(--blue); }
.btn-ghost-on-ink { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ghost-on-ink:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 550; font-size: 0.9375rem;
  color: var(--ink); border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px; transition: border-color .18s ease;
}
.textlink:hover { border-color: var(--ink); }

/* ---------- Panels & cards ---------- */
.panel {
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 46px);
}
.panel-outline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.4vw, 46px);
}
.panel-ink {
  background: var(--ink-panel);
  color: var(--on-ink);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 64px);
}
.panel-ink .body, .panel-ink .lede { color: var(--on-ink-soft); }
.panel-ink .eyebrow { color: #fff; }
.panel-ink .rule { background: var(--line-ink); }

.card {
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 12px;
}
.card .num {
  font-size: 0.6875rem; letter-spacing: 0.18em; font-weight: 600;
  color: var(--slate-light);
}

/* ---------- Numbered process list ---------- */
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 22px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--slate-light);
  padding-top: 4px;
}

/* ---------- Stat band ---------- */
.stats {
  display: grid;
  /* auto-fit rather than a fixed count: the band held 4 on the old About page
     and holds 3 on the home page, and this collapses cleanly on phones. */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2vw, 30px);
}
.panel-ink .stats, .stats.on-ink { background: var(--line-ink); border-color: var(--line-ink); }
.stats.on-ink .stat { background: var(--ink-panel); }
.stat .figure {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1; letter-spacing: -0.035em; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: 10px;
  font-size: 0.8125rem; line-height: 1.4; color: var(--slate);
}
.stats.on-ink .stat .label { color: var(--on-ink-soft); }

/* ---------- Checklist ---------- */
.checklist li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "";
  position: absolute; left: 6px; top: 20px;
  width: 7px; height: 7px;
  border-radius: 50%; background: var(--ink);
}
.panel-ink .checklist li,
.plan.featured .checklist li { border-color: var(--line-ink); }
.panel-ink .checklist li::before,
.plan.featured .checklist li::before { background: #fff; }
.checklist strong { font-weight: 600; }
.checklist .sub { display: block; color: var(--slate); font-size: 0.875rem; margin-top: 3px; }
.panel-ink .checklist .sub,
.plan.featured .checklist .sub { color: var(--on-ink-soft); }

/* ---------- Logos / partner strip ---------- */
.marks {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.mark-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.8125rem;
  color: var(--slate);
  white-space: nowrap;
}

/* ---------- Pricing ---------- */
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 42px);
  display: flex; flex-direction: column;
  background: var(--paper);
}
.plan.featured {
  background: var(--ink-panel);
  color: var(--on-ink);
  border-color: var(--ink-panel);
}
.plan.featured .body, .plan.featured .fine { color: var(--on-ink-soft); }
.plan.featured .eyebrow { color: #fff; }
.plan-price {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin-block: 6px 4px;
}
.plan-price .amount {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  letter-spacing: -0.04em; font-weight: 500; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price .unit { font-size: 0.875rem; color: var(--slate); }
.plan.featured .plan-price .unit { color: var(--on-ink-soft); }
.plan-terms {
  margin-top: 14px; padding: 14px 18px;
  border-radius: var(--r);
  background: var(--panel);
  font-size: 0.875rem; color: var(--slate);
}
.plan.featured .plan-terms { background: rgba(255,255,255,.07); color: var(--on-ink-soft); }
.plan-terms b { color: var(--ink); font-weight: 600; }
.plan.featured .plan-terms b { color: #fff; }
.plan .spacer { flex: 1; }

/* ---------- Comparison (current vs market) ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
.compare-col { padding: clamp(26px, 3vw, 40px); }
.compare-col.now { background: var(--panel); }
.compare-col.target { background: var(--paper); }
.compare-divider {
  width: 1px; background: var(--line);
}
.compare-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.compare-col.target .compare-head { border-color: var(--gain-line); }
.tag {
  display: inline-block; padding: 5px 11px; border-radius: 999px;
  font-size: 0.6875rem; letter-spacing: 0.13em; text-transform: uppercase;
  font-weight: 600;
}
.tag-now { background: var(--panel-deep); color: var(--slate); }
.tag-target { background: var(--gain-tint); color: var(--gain); }
.money {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.038em; font-weight: 500; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.money.target { color: var(--gain); }
.money-sub { font-size: 0.8125rem; color: var(--slate); margin-top: 6px; }
.facts { margin-top: 22px; }
.facts li {
  display: flex; justify-content: space-between; gap: 18px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.facts li:last-child { border-bottom: 0; }
.facts .k { color: var(--slate); }
.facts .v { font-weight: 550; text-align: right; }
/* .facts on a dark panel */
.panel-ink .facts li { border-color: var(--line-ink); }
.panel-ink .facts .k { color: var(--on-ink-soft); }
.panel-ink .facts .v { color: #fff; }

.delta-bar {
  margin-top: clamp(20px, 2.4vw, 28px);
  background: var(--ink-panel);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 34px) clamp(26px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.delta-bar .figure {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em; font-weight: 500; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.delta-bar .cap { font-size: 0.8125rem; color: var(--on-ink-soft); letter-spacing: 0.02em; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.8125rem; font-weight: 550; letter-spacing: -0.003em; }
.field .hint { font-size: 0.75rem; color: var(--slate-light); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 0.9375rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(19,26,46,.08);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235A6478' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--ink); }
.form-progress {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--slate-light); font-weight: 600;
}
.form-progress .bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.form-progress .bar i { display: block; height: 100%; background: var(--ink); transition: width .3s ease; }

/* Validation */
.err {
  margin: 0; font-size: 0.75rem; line-height: 1.45;
  color: var(--alert); letter-spacing: 0.002em;
}
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--alert); }
.field.has-err input:focus, .field.has-err select:focus, .field.has-err textarea:focus {
  box-shadow: 0 0 0 3px var(--alert-tint);
}
.consent.has-err { position: relative; }
.consent.has-err .err { grid-column: 2; }
.form-error {
  margin: 0 0 16px; padding: 13px 16px;
  border-radius: var(--r-sm);
  background: var(--alert-tint);
  color: var(--alert);
  font-size: 0.8125rem; line-height: 1.5;
}

/* Success state */
.form-done { animation: nmg-in .45s cubic-bezier(.22,.61,.36,1) both; }
@keyframes nmg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form-done { animation: none; } }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-size: 1.02rem; font-weight: 550; letter-spacing: -0.014em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 11px; width: 11px; height: 11px;
  border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .answer { padding-bottom: 24px; color: var(--slate); max-width: 68ch; }

/* ---------- Quote / testimonial ---------- */
.quote {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.42; letter-spacing: -0.02em; font-weight: 400;
}
.attrib { margin-top: 20px; font-size: 0.8125rem; color: var(--slate); }
.attrib b { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-panel);
  color: var(--on-ink-soft);
  padding-block: clamp(56px, 6vw, 88px) 34px;
}
.footer a { color: var(--on-ink-soft); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.footer h4 {
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; font-weight: 600; margin-bottom: 16px;
}
.footer ul li { padding-block: 6px; font-size: 0.875rem; }
.footer .wordmark { color: #fff; }
.footer-base {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line-ink);
  display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between;
  font-size: 0.75rem; color: #78829A;
}
.disclaimer {
  font-size: 0.75rem; line-height: 1.62; color: #78829A;
  max-width: 92ch; margin-top: 22px;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.center-x { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }
.mt-xl { margin-top: clamp(40px, 5vw, 72px); }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.bg-warm { background: var(--paper-warm); }
.bg-panel { background: var(--panel); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --gut: 22px; }
  .nav { display: none; }
  .burger { display: block; }
  .masthead-in { height: 64px; }
  .split { grid-template-columns: 1fr; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare-divider { width: auto; height: 1px; }
  .nav.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px var(--gut) 22px;
  }
  .nav.open a { padding-block: 10px; font-size: 1rem; width: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }

  /* The header is the one place a full-width button is wrong — it sits
     beside the wordmark, so it stays inline and both shrink to fit. */
  .masthead-in { gap: 14px; }
  .masthead .btn { width: auto; padding: 11px 18px; font-size: 0.875rem; }
  .wordmark { font-size: 0.94rem; gap: 8px; }
  .wordmark .mark { width: 28px; height: 28px; flex: 0 0 28px; }
}

@media (max-width: 400px) {
  .masthead .btn { padding: 10px 14px; font-size: 0.8125rem; }
  .wordmark { font-size: 0.85rem; }
  .wordmark .mark { width: 25px; height: 25px; flex: 0 0 25px; }
}

/* ---------- Print ---------- */
@media print {
  .masthead, .footer, .btn, .no-print { display: none !important; }
  body { font-size: 11pt; }
  section { padding-block: 18px; }
  .panel, .panel-outline, .compare { break-inside: avoid; }
}
