/* ============================================================
   Forbes Historical Museum â€” Modern Redesign
   Fonts: Playfair Display (display) + Source Sans 3 (body)
   ============================================================ */

:root {
  --gold: #c9a227;
  --gold-light: #e0bd4a;
  --gold-dark: #a8861c;
  --ink: #1f2a33;
  --ink-soft: #3b4a57;
  --paper: #faf7f0;
  --paper-2: #f3ede0;
  --cream: #ffffff;
  --line: #e4dcc7;
  --deep: #14232e;
  --deep-2: #0e1a22;
  --shadow-sm: 0 2px 8px rgba(20,35,46,.08);
  --shadow-md: 0 8px 24px rgba(20,35,46,.12);
  --shadow-lg: 0 16px 40px rgba(20,35,46,.18);
  --radius: 14px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; color: var(--deep); }

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 6px; font-weight: 600;
  font-size: 1rem; font-family: var(--font-body); cursor: pointer;
  border: 2px solid transparent; transition: all .25s ease; line-height: 1;
}
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline { background: transparent; color: var(--deep); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ TOPBAR ============ */
.topbar { background: var(--deep); color: #dfe8ee; font-size: .85rem; padding: 8px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-soc { font-weight: 600; letter-spacing: .3px; }
.topbar-soc i { color: var(--gold); margin-right: 8px; }
.topbar-tagline { opacity: .85; }

/* ============ HEADER / NAV ============ */
.header { position: sticky; top: 0; z-index: 100; background: var(--cream); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--deep), #24404f);
  color: var(--gold); display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}
.brand-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--deep); line-height: 1.1; display: block; }
.brand-sub { font-size: .75rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); opacity: .8; }
.nav { display: flex; gap: 4px; }
.nav-link { padding: 10px 14px; font-weight: 600; font-size: .95rem; color: var(--ink-soft); border-radius: 6px; transition: all .2s; }
.nav-link:hover { color: var(--deep); background: var(--paper-2); }
.nav-link.active { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--deep); cursor: pointer; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  color: #fff; padding: 80px 0;
  background:
    linear-gradient(115deg, rgba(14,26,34,.93) 0%, rgba(20,35,46,.82) 45%, rgba(20,35,46,.45) 100%),
    url('../img/Osborne_ban.jpg') center/cover no-repeat,
    repeating-linear-gradient(45deg, rgba(201,162,39,.06) 0 2px, transparent 2px 14px),
    var(--deep);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,39,.14), transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-light); font-weight: 600; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); color: #fff; margin-bottom: 22px; }
.hero-sub { font-size: 1.2rem; color: #d7e2e9; margin-bottom: 34px; max-width: 600px; font-weight: 300; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; font-size: .98rem; color: #cfe0ea; }
.hero-meta i { color: var(--gold-light); margin-right: 8px; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 1.4rem; opacity: .7; z-index: 2; animation: float 2.4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============ STATS ============ */
.stats { background: var(--gold); padding: 44px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--deep); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: .92rem; color: var(--deep-2); font-weight: 600; opacity: .85; }

/* ============ SECTION SHELL ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block; font-size: .82rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 14px;
}
.section-title { font-size: clamp(2rem, 3.5vw, 2.8rem); margin-bottom: 18px; }
.section-intro { color: var(--ink-soft); font-size: 1.1rem; }

/* ============ ABOUT SPLIT ============ */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.split-text h3 { font-size: 1.45rem; margin: 28px 0 12px; }
.split-text h3:first-child { margin-top: 0; }
.split-text p { color: var(--ink-soft); margin-bottom: 14px; }
.check-list { list-style: none; margin-top: 20px; }
.check-list li { padding: 8px 0; color: var(--ink-soft); font-weight: 500; }
.check-list i { color: var(--gold-dark); margin-right: 12px; }
.split-media .media-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--deep), #1d3a4a);
  position: relative;
}
.split-media .media-frame img { width: 100%; height: auto; display: block; }
.media-caption {
  display: block; padding: 14px 20px;
  background: var(--deep); color: #dfe8ee; font-size: .9rem;
}

/* ============ EXHIBIT CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--cream); border-radius: var(--radius); padding: 36px 28px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: all .28s ease; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 58px; height: 58px; border-radius: 12px; margin-bottom: 20px;
  background: var(--paper-2); color: var(--gold-dark); display: grid; place-items: center; font-size: 1.5rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: .98rem; }

/* ============ COLLECTIONS ============ */
.collections-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.collection-block {
  text-align: center; padding: 40px 24px; background: var(--cream);
  border-radius: var(--radius); border: 1px solid var(--line); transition: all .25s;
  display: flex; flex-direction: column; align-items: center; height: 100%;
}
.collection-block:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.collection-block i { font-size: 2.4rem; color: var(--gold-dark); margin-bottom: 18px; }
.collection-block h3 { font-size: 1.15rem; margin-bottom: 10px; min-height: 2.9em; display: flex; align-items: center; justify-content: center; }
.collection-block p { color: var(--ink-soft); font-size: .94rem; }

/* External links (Pictorial Forbes etc.) â€” open in a new tab */
a.ext-link { color: var(--gold-dark); font-weight: 600; border-bottom: 1px solid currentColor; }
a.ext-link:hover { color: var(--deep); }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--cream); }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption { padding: 14px 18px; font-size: .92rem; color: var(--ink-soft); font-weight: 600; background: var(--cream); }

/* ============ VISIT ============ */
.section-visit { background: linear-gradient(160deg, var(--deep), #1d3a4a); color: #dfe8ee; }
.section-visit .section-title { color: #fff; }
.section-visit .section-intro { color: #c3d4de; }
.visit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 44px; }
.visit-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 32px; backdrop-filter: blur(4px);
}
.visit-card > i { font-size: 1.9rem; color: var(--gold-light); margin-bottom: 16px; }
.visit-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.visit-big { font-size: 1.35rem; font-weight: 700; color: var(--gold-light); font-family: var(--font-display); margin-bottom: 10px; }
.visit-card p:not(.visit-big) { color: #c3d4de; font-size: .96rem; }
.visit-cta { text-align: center; color: #fff; font-size: 1.1rem; }
.visit-cta i { color: var(--gold-light); margin-right: 6px; }
.cta-note { color: #b3c7d3; font-size: .92rem; margin-top: 10px; }

/* ============ EDUCATION ============ */
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.edu-item { text-align: center; padding: 36px 22px; }
.edu-item i { font-size: 2.2rem; color: var(--gold-dark); margin-bottom: 16px; display: block; }
.edu-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.edu-item p { color: var(--ink-soft); font-size: .94rem; }

/* ============ SUPPORT ============ */
.support-wrap {
  background: var(--cream); border-radius: var(--radius); padding: 60px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center;
}
.support-actions { display: flex; flex-direction: column; gap: 16px; }
.support-note { color: var(--ink-soft); font-size: .92rem; text-align: center; margin-top: 6px; }

/* ============ CONTACT ============ */
.section-contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.contact-info { display: flex; flex-direction: column; gap: 26px; }
.contact-line { display: flex; gap: 18px; align-items: flex-start; }
.contact-line i {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; background: var(--paper-2);
  color: var(--gold-dark); display: grid; place-items: center; font-size: 1.15rem;
}
.contact-line strong { color: var(--deep); display: block; margin-bottom: 2px; }
.contact-line div { color: var(--ink-soft); }
.contact-form { background: var(--cream); padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 16px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.18); }
.form-row textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-soft); opacity: .8; text-align: center; margin-top: 10px; }

/* ============ FOOTER ============ */
.footer { background: var(--deep-2); color: #b9cbd6; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 50px; }
.footer h3, .footer h4 { color: #fff; font-family: var(--font-display); }
.footer h3 { font-size: 1.5rem; margin-bottom: 12px; }
.footer h4 { font-size: 1.05rem; margin-bottom: 16px; }
.footer p { font-size: .95rem; margin-bottom: 8px; color: #b9cbd6; }
.footer-brand p { line-height: 1.6; }
.footer-col a { display: block; color: #b9cbd6; margin-bottom: 10px; font-size: .95rem; transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; background: rgba(0,0,0,.25); }
.footer-bottom p { font-size: .88rem; color: #97aab6; }
.footer-ack { margin-top: 6px; font-style: italic; opacity: .85; }
/* ACNC registered-charity badge, at the very bottom of the page (added 2026-09-25) */
.footer-charity { margin-top: 22px; }
.footer-charity img { display: block; width: 120px; height: auto; margin: 0 auto; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .collections-grid, .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; top: 84px; left: 0; right: 0; background: var(--cream);
    flex-direction: column; padding: 16px 24px 24px; box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s ease; display: flex; gap: 4px;
  }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .split, .contact-grid, .support-wrap { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .visit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .collections-grid, .edu-grid, .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
}

/* ============ FAMILY HISTORY ============ */
.section-family { background: var(--paper); }
.family-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 44px; }
.family-panel {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.family-panel h3 { font-size: 1.3rem; margin-bottom: 16px; }
.family-panel h3 i { color: var(--gold-dark); margin-right: 10px; }
.family-panel p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 8px; }
.family-panel .check-list { margin-top: 0; }
.directory-wrap {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-sm);
}
.directory-wrap h3 { font-size: 1.3rem; margin-bottom: 10px; }
.directory-wrap > p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 22px; }
.dir-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.dir-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.dir-table th {
  background: var(--deep); color: #fff; text-align: left; padding: 14px 18px;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
}
.dir-table td { padding: 14px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.dir-table tbody tr:nth-child(even) td { background: var(--paper); }
.dir-empty { text-align: center; font-style: italic; opacity: .85; }
.card-link { color: var(--gold-dark); font-weight: 600; border-bottom: 1px solid currentColor; }
.card-link:hover { color: var(--deep); }
.card-link-line { margin-top: 10px; }

@media (max-width: 1280px) and (min-width: 821px) {
  .nav-link { padding: 10px 9px; font-size: .9rem; }
}
@media (max-width: 820px) {
  .family-grid { grid-template-columns: 1fr; }
  .family-panel, .directory-wrap { padding: 28px 22px; }
}

/* Narrow screens: stack the directory table instead of scrolling it sideways */
@media (max-width: 640px) {
  .dir-table { min-width: 0; }
  .dir-table thead { display: none; }
  .dir-table tbody, .dir-table tr, .dir-table td { display: block; width: 100%; }
  .dir-table tr { border-top: 1px solid var(--line); padding: 14px 18px; }
  .dir-table tbody tr:first-child { border-top: none; }
  .dir-table tbody tr:nth-child(even) td { background: transparent; }
  .dir-table td { border: none; padding: 4px 0; }
  .dir-table td::before {
    content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .8px;
    text-transform: uppercase; font-weight: 700; color: var(--deep); margin-bottom: 2px;
  }
  .dir-table td.dir-empty { text-align: center; padding: 10px 0; }
  .dir-table td.dir-empty::before { content: none; }
}

/* Family History group meeting line */
.family-panel .group-meets,
.collection-block .group-meets {
  background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 16px; font-weight: 600; color: var(--deep); font-size: .96rem;
}
.family-panel .group-meets i,
.collection-block .group-meets i { color: var(--gold-dark); margin-right: 8px; }

/* Family History group contact lines */
.family-panel .group-contact,
.collection-block .group-contact { margin-bottom: 12px; }

/* Family History details carried on the Collections tile (added 2026-09-25) */
.collection-block .group-details { text-align: left; width: 100%; margin-top: 12px; }
.collection-block .group-details i { font-size: .95rem; margin-bottom: 0; }
.collection-block .group-details p { margin-bottom: 12px; }
.family-panel .group-find i,
.collection-block .group-find i { color: var(--gold-dark); margin-right: 8px; }

/* ============ Photographic Library shop (prototype, added 2026-09-20) ============ */
.proto-bar {
  background: var(--deep-2); color: #dfe8ee; text-align: center;
  padding: 10px 16px; font-size: .9rem; font-weight: 600; letter-spacing: .2px;
}
.proto-bar i { color: var(--gold-light); margin-right: 8px; }
.shop-hero { background: var(--deep); color: #fff; padding: 64px 0 56px; }
.shop-hero .eyebrow { color: var(--gold-light); }
.shop-hero h1 { color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 16px; }
.shop-hero p { color: #cfdde6; font-size: 1.08rem; max-width: 760px; font-weight: 300; }
.shop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shop-step {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; align-items: flex-start; height: 100%;
  box-shadow: var(--shadow-sm);
}
.shop-step .step-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-dark); font-weight: 700; margin-bottom: 10px; line-height: 1; }
.shop-step h3 { font-size: 1.12rem; margin-bottom: 10px; min-height: 2.4em; display: flex; align-items: center; }
.shop-step p { color: var(--ink-soft); font-size: .96rem; }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.shop-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: var(--shadow-sm);
}
.shop-thumb { position: relative; background: var(--paper-2); }
.shop-thumb img { width: 100%; height: auto; display: block; }
.shop-thumb .preview-tag {
  position: absolute; left: 10px; bottom: 10px; background: rgba(20,35,46,.82); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: .3px;
}
.shop-body { padding: 16px; display: flex; flex-direction: column; flex: 1 1 auto; }
.shop-id { font-weight: 700; color: var(--deep); letter-spacing: .4px; }
.shop-detail { color: var(--ink-soft); font-size: .9rem; margin: 6px 0 12px; flex: 1 1 auto; }
.shop-price { font-family: var(--font-display); font-size: 1.2rem; color: var(--deep); margin-bottom: 12px; }
.shop-price span { font-family: var(--font-body); font-size: .8rem; color: var(--ink-soft); display: block; margin-top: 2px; }
.shop-buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--gold);
  background: var(--gold); color: #fff; font-weight: 700; font-size: .95rem; opacity: .75;
}
.shop-note {
  background: var(--paper-2); border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 16px 20px; color: var(--deep); font-size: .96rem; margin-top: 30px;
}
.shop-note h4 { font-size: 1rem; margin-bottom: 8px; }
.shop-note p { color: var(--ink-soft); }
.shop-note p + p { margin-top: 8px; }
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .shop-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ===== Header brand fix — 2026-10-26 =====
   Stops the brand sub-title squashing/wrapping inside the fixed 84px header.
   The brand no longer shrinks; the nav gives up space instead. */
.header-inner { gap: 16px; }
.brand { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-title { font-size: 1.35rem; white-space: nowrap; }
.brand-sub { font-size: .68rem; letter-spacing: .5px; white-space: nowrap; }
.nav { gap: 2px; flex-wrap: nowrap; }
.nav-link { padding: 9px 8px; font-size: .82rem; white-space: nowrap; }

@media (max-width: 1200px) {
  .brand-sub { display: none; }
  .nav-link { padding: 9px 6px; font-size: .78rem; }
}
@media (max-width: 900px) and (min-width: 821px) {
  .brand-title { font-size: 1.2rem; }
  .nav-link { padding: 8px 5px; font-size: .75rem; }
}