/* ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   design-a.css — the new look (App\Core\DesignA; docs/DESIGN_A.md)

   The team's design review (2026-11-20) and the owner's picks (2026-11-23): Direction A in the light theme (ink navy,
   ivory, gold only as a text accent, Fraunces headings with Inter), Direction C's colours as its dark mode (space black,
   violet and teal light) on the same layout and fonts, and Cobalt for the main buttons (option 1).

   Loaded only while the switch `layout_design_a_enabled` is on (partials/branding.php), never on staff screens. Every rule
   hangs from the `design-a` class on <html>, so it outranks the Tailwind utilities loaded after it; the colour variables
   use :root.design-a.design-a to outrank the theme's own (:root:root, partials/branding.php).
   ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── */

/* ── 1. Tokens ─────────────────────────────────────────────────────────────────────────────────────────────────────── */
:root.design-a.design-a {
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --da-ink: #0b1630;
  --da-ink-rgb: 11 22 48;
  --da-ivory: #faf7f1;
  --da-sand: #f1ebdf;
  --da-line: #e6dfd1;
  --da-gold: #c9a14a;
  --da-gold-2: #e7cf8f;
  --da-gold-ink: #7a5a12;
  /* Cobalt (option 1): the main buttons, focus rings and selected states. White text, 5:1 or better on every stop. */
  --brand-1: #1e3a8a;
  --brand-2: #2847b0;
  --brand-3: #2f5bd3;
  --brand-1-rgb: 30 58 138;
  --brand-2-rgb: 40 71 176;
  --brand-3-rgb: 47 91 211;
  --brand-ink: 255 255 255;
}
/* Dark mode = Direction C's colours: the greys become space black and night blue; Cobalt lifts a little. */
:root.design-a.design-a.dark {
  --brand-1: #2f55d8;
  --brand-2: #3f5ae4;
  --brand-3: #4f5ff0;
  --brand-1-rgb: 47 85 216;
  --brand-2-rgb: 63 90 228;
  --brand-3-rgb: 79 95 240;
  --c-neutral-950: 7 10 20;
  --c-neutral-900: 14 20 38;
  --c-neutral-800: 20 28 52;
  --c-neutral-700: 38 47 74;
  --c-neutral-600: 62 73 104;
  --c-neutral-500: 127 138 166;
  --c-neutral-400: 154 165 192;
  --da-violet: 139 92 246;
  --da-teal: 45 212 191;
}

/* ── 2. The page ───────────────────────────────────────────────────────────────────────────────────────────────────── */
html.design-a:not(.dark) body { background-color: var(--da-ivory); }
html.design-a.dark body {
  background:
    radial-gradient(1100px 620px at 6% -6%, rgb(var(--da-violet) / .14), transparent 62%),
    radial-gradient(900px 620px at 100% 18%, rgb(var(--da-teal) / .07), transparent 60%),
    rgb(7 10 20);
}
html.design-a .font-display { letter-spacing: -.012em; }
/* The small kicker above headings: gold ink on ivory, teal on the dark page. */
html.design-a .section-label { color: var(--da-gold-ink); font-weight: 600; letter-spacing: .14em; }
html.design-a.dark .section-label { color: #5eead4; }
/* Gold stays as a text accent ("Wander", the 50 years ribbon); on the dark page it becomes the aurora. */
html.design-a .grad-gold-text { background-image: linear-gradient(135deg, #c9a14a, #e7cf8f); }
html.design-a.dark .grad-gold-text { background-image: linear-gradient(90deg, #f2c65c 0%, #2dd4bf 50%, #8b5cf6 100%); }

/* ── 3. Main buttons: Cobalt ────────────────────────────────────────────────────────────────────────────────────────
   .grad-gold already draws its gradient and label from the brand variables (voyager.css), so the tokens above repaint
   every main button; only the shadow, warm-tinted in voyager.css, is cooled here. */
html.design-a .grad-gold { box-shadow: 0 6px 16px -6px rgb(var(--brand-3-rgb) / .55), 0 1px 3px rgb(var(--da-ink-rgb) / .12); }
html.design-a .grad-gold:hover { box-shadow: 0 10px 24px -8px rgb(var(--brand-3-rgb) / .6), 0 2px 6px rgb(var(--da-ink-rgb) / .14); }

/* ── 4. The header ─────────────────────────────────────────────────────────────────────────────────────────────────── */
html.design-a nav[data-site-part="header"] { background: rgb(250 247 241 / .86); border-bottom-color: var(--da-line); }
html.design-a.dark nav[data-site-part="header"] { background: rgb(7 10 20 / .8); border-bottom-color: rgb(255 255 255 / .08); }
html.design-a nav[data-site-part="header"] .nav-action-btn { border-radius: 999px; background: rgb(255 255 255 / .75); border-color: var(--da-line); color: var(--da-ink); }
html.design-a.dark nav[data-site-part="header"] .nav-action-btn { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); color: rgb(238 241 248); }
/* Sign in: a white pill, ink text */
html.design-a nav[data-site-part="header"] [data-cro="header-signin"] { background: #fff; color: var(--da-ink); border-color: rgb(var(--da-ink-rgb) / .9); font-weight: 600; padding: 8px 18px; }
html.design-a.dark nav[data-site-part="header"] [data-cro="header-signin"] { background: #fff; color: var(--da-ink); border-color: #fff; }

/* On the home page: clear over the photo, solid once the page scrolls (partials/nav.php, $nav_over_hero). */
html.design-a nav[data-over-hero] { position: fixed; left: 0; right: 0; top: 0; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
html.design-a nav[data-over-hero]:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff; }
html.design-a nav[data-over-hero]:not(.is-scrolled) .nav-action-btn { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .3); color: #fff; }
html.design-a nav[data-over-hero]:not(.is-scrolled) .nav-set-sep { background: rgb(255 255 255 / .3); }
html.design-a nav[data-over-hero]:not(.is-scrolled) .nav-set-loc { color: rgb(255 255 255 / .9); }
html.design-a nav[data-over-hero]:not(.is-scrolled) [data-cro="header-signin"] { background: #fff; color: var(--da-ink); border-color: #fff; }
html.design-a nav[data-over-hero]:not(.is-scrolled) button[aria-label="Toggle menu"] { color: #fff; }
/* Over the photo the logo is the one made for dark backgrounds, in both themes (where two are uploaded). */
html.design-a nav[data-over-hero]:not(.is-scrolled) .brand-logo-on-light { display: none; }
html.design-a nav[data-over-hero]:not(.is-scrolled) .brand-logo-on-dark { display: block; }
html.design-a nav[data-over-hero].is-scrolled { background: rgb(250 247 241 / .92); border-bottom-color: var(--da-line); }
html.design-a.dark nav[data-over-hero].is-scrolled { background: rgb(7 10 20 / .86); border-bottom-color: rgb(255 255 255 / .08); }
/* The photo now starts at the top of the window, under the clear header. */
html.design-a .hero-band { padding-top: 4rem; }
@media (min-width: 640px) { html.design-a .hero-band { padding-top: 4.5rem; } }   /* the header 4.5rem from here up (section 10) */
@media (min-width: 768px) {
  html.design-a .hero-band { min-height: calc(100vh - 6rem - 5.5rem); }
}

/* ── 5. The photo at the top ───────────────────────────────────────────────────────────────────────────────────────── */
/* Dark mode: the photo dimmed, with Direction C's violet and teal light over it; the kicker turns teal. */
html.design-a.dark .hero-band > div.absolute > img,
html.design-a.dark .hero-band > picture img,
html.design-a.dark .hero-band > img[data-hero-tab] { filter: saturate(.6) brightness(.58); }
html.design-a.dark .hero-band .grad-hero {
  background:
    radial-gradient(900px 520px at 12% 18%, rgb(var(--da-violet) / .42), transparent 62%),
    radial-gradient(800px 520px at 88% 72%, rgb(var(--da-teal) / .22), transparent 60%),
    linear-gradient(180deg, rgb(5 8 18 / .62) 0%, rgb(5 8 18 / .3) 40%, rgb(5 8 18 / .86) 100%);
}
html.design-a.dark .hero-band .text-amber-300\/95 { color: #5eead4; }
html.design-a.dark .hero-band .bg-amber-300\/70 { background-color: rgb(94 234 212 / .7); }
/* voyager.css forces dark borders (!important) on .border-slate-200/60 and .border-slate-100, so these must too. */
html.design-a.dark nav[data-site-part="header"] { border-bottom-color: rgb(255 255 255 / .08) !important; }
html.design-a nav[data-over-hero]:not(.is-scrolled) { border-bottom-color: transparent !important; box-shadow: none; }

/* ── 6. The search card: calm and white (dark: night blue), the tabs a row of pills ─────────────────────────────────── */
html.design-a #search-card { border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -32px rgb(3 10 30 / .55); --tw-ring-color: rgb(255 255 255 / .7); }
html.design-a.dark #search-card { background: rgb(12 18 36); box-shadow: 0 40px 90px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(var(--da-violet) / .2); }
html.design-a #search-card > div:first-child { border-bottom-color: transparent !important; padding: 14px 16px 2px; }
html.design-a #search-card [role="tablist"] { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--da-sand); }
html.design-a.dark #search-card [role="tablist"] { background: rgb(255 255 255 / .06); }
html.design-a #search-card .home-tab { flex-direction: row; gap: 8px; min-width: 0; padding: 9px 18px; border-radius: 999px; font-size: 14px; color: #5d6b84; }
html.design-a #search-card .home-tab svg { width: 18px; height: 18px; }
html.design-a #search-card .home-tab:hover { background: rgb(255 255 255 / .7); color: var(--da-ink); }
html.design-a.dark #search-card .home-tab { color: rgb(154 165 192); }
html.design-a.dark #search-card .home-tab:hover { background: rgb(255 255 255 / .08); color: #fff; }
/* the open tab: an ink pill (dark: a lit glass pill) */
html.design-a #search-card .home-tab.grad-gold { background: var(--da-ink); box-shadow: none; }
html.design-a.dark #search-card .home-tab.grad-gold { background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
/* the panel: no photo, no pattern */
html.design-a #search-card .search-tab::before,
html.design-a #search-card .search-tab::after { display: none; }
html.design-a #search-card .search-tab { background-color: transparent; }
/* one way / round trip / multi-city: the chosen one outlined in ink */
html.design-a #search-card .search-tab > .mb-4:first-child > button { background: transparent; color: #5d6b84; }
html.design-a #search-card .search-tab > .mb-4:first-child > button.bg-slate-900 { background: #fff; color: var(--da-ink); box-shadow: inset 0 0 0 1.5px var(--da-ink); }
html.design-a.dark #search-card .search-tab > .mb-4:first-child > button { color: rgb(154 165 192); }
html.design-a.dark #search-card .search-tab > .mb-4:first-child > button.bg-slate-900 { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .6); }
/* the fields: soft ivory lines, rounder, Cobalt when in use */
html.design-a #search-card .search-tab :is(input:not([type="checkbox"]):not([type="radio"]), select, button[class~="py-2.5"]) { border-color: var(--da-line); border-radius: 14px; background-color: #fff; }
html.design-a.dark #search-card .search-tab :is(input:not([type="checkbox"]):not([type="radio"]), select, button[class~="py-2.5"]) { border-color: rgb(255 255 255 / .12); background-color: rgb(10 16 32); }
html.design-a #search-card .search-tab :is(input, select):focus { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgb(var(--brand-3-rgb) / .18); }
html.design-a #search-card .search-tab button.grad-gold { border-radius: 16px; }

/* ── 7. Under the card: the strip's figures in gold serif (dark: glowing gold) ─────────────────────────────────────── */
html.design-a .trust-item { border-color: var(--da-line); }
html.design-a .trust-figure { color: var(--da-gold-ink); font-weight: 500; }
html.design-a.dark .trust-item { background: rgb(14 20 38); border-color: rgb(255 255 255 / .08); }
html.design-a.dark .trust-figure { color: #f2c65c; }
/* A phone: the three tabs share the row; the trip types stay on one line. */
@media (max-width: 639.98px) {
  html.design-a #search-card [role="tablist"] { display: flex; width: 100%; }
  html.design-a #search-card .home-tab { flex: 1 1 0; justify-content: center; padding: 8px 10px; gap: 6px; font-size: 13.5px; }
  html.design-a #search-card .home-tab svg { width: 16px; height: 16px; }
  html.design-a #search-card .search-tab > .mb-4:first-child > button { padding: 7px 12px; font-size: 13px; }
}

/* ── 8. Icons: Phosphor Duotone (assets/icons/sprite-a.svg, App\Core\Icons::spriteUrl) ────────────────────────────────
   Each icon's outline takes the text's colour; the shape behind it takes the accent tint: gold on the light page, teal
   on the dark one; white on Cobalt and ink (the open tab, the main buttons). A filled icon (.icon-fill: a saved heart)
   fills in the text's colour. */
html.design-a { --icon-tint: #c9a14a; --icon-tint-o: .5; }
html.design-a.dark { --icon-tint: #2dd4bf; --icon-tint-o: .55; }
html.design-a .grad-gold, html.design-a .bg-slate-900, html.design-a footer { --icon-tint: #fff; --icon-tint-o: .35; }
html.design-a .icon-fill .icon, html.design-a .icon.icon-fill { --icon-tint: currentColor; --icon-tint-o: 1; }

/* ── 9. The rest of the home page (the approved sheet 05b's cards, kickers, the e-mail panel and the footer) ─────────── */
/* Kickers above the section headings: gold ink (dark: teal); the headings in Fraunces 500 */
html.design-a .text-xs.uppercase.tracking-widest.text-amber-600 { color: var(--da-gold-ink); font-weight: 600; letter-spacing: .14em; }
html.design-a.dark .text-xs.uppercase.tracking-widest.text-amber-600 { color: #5eead4; }
html.design-a .font-display.text-3xl { font-weight: 500; }
/* Cards: white, soft ivory line, rounder, a long soft shadow (dark: night blue) */
html.design-a .rail-card,
html.design-a .ms-grid a,
html.design-a #offers .rounded-2xl,
html.design-a #testimonials .rounded-2xl { border-color: var(--da-line); border-radius: 20px; }
html.design-a .rail-card { box-shadow: 0 20px 50px -40px rgb(var(--da-ink-rgb) / .5); }
html.design-a .rail-card:hover { border-color: rgb(var(--brand-3-rgb) / .45); box-shadow: 0 24px 50px -30px rgb(var(--da-ink-rgb) / .45); }
html.design-a.dark .rail-card,
html.design-a.dark .ms-grid a,
html.design-a.dark #offers .rounded-2xl,
html.design-a.dark #testimonials .rounded-2xl { background-color: rgb(14 20 38); border-color: rgb(255 255 255 / .08); }
/* A card with no photo: sand, not yellow (dark: night) */
html.design-a .rail-photo-none { background: linear-gradient(135deg, #f1ebdf 0%, #e8dcc4 100%); color: var(--da-ink); }
html.design-a.dark .rail-photo-none { background: linear-gradient(135deg, #141c38 0%, #0e1426 100%); color: #eef1f8; }
/* Reviews on a sand band (dark: a shade lighter than the page) */
html.design-a #testimonials { background-color: var(--da-sand) !important; }
html.design-a.dark #testimonials { background-color: rgb(10 15 30) !important; }
/* The weekly e-mail: a navy panel with a gold glow (dark: violet), white words, the field a white pill */
html.design-a #newsletter { background-color: transparent !important; }
html.design-a #newsletter > div { max-width: 80rem; padding: 3.25rem 2.5rem; border-radius: 28px; color: #fff;
  background: radial-gradient(640px 300px at 100% 100%, rgb(201 161 74 / .26), transparent 62%), var(--da-ink); }
html.design-a.dark #newsletter > div { background: radial-gradient(640px 300px at 100% 100%, rgb(var(--da-violet) / .28), transparent 62%), rgb(14 20 38);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08); }
html.design-a #newsletter :is(h2, h3, .font-display) { color: #fff; }
html.design-a #newsletter .text-amber-600 { color: var(--da-gold-2); }
html.design-a.dark #newsletter .text-amber-600 { color: #5eead4; }
html.design-a #newsletter .text-slate-600 { color: rgb(255 255 255 / .72); }
html.design-a #newsletter input { border-radius: 999px; border-color: transparent; background: #fff; color: var(--da-ink); }
html.design-a #newsletter button { border-radius: 999px; }
/* The footer: deep navy (dark: space black) */
html.design-a footer[data-site-part="footer"] { background-color: #0b1630 !important; }
html.design-a.dark footer[data-site-part="footer"] { background-color: rgb(5 8 16) !important; border-top: 1px solid rgb(255 255 255 / .06); }

/* ── 10. The owner's three points (2026-11-23, from the beta preview; "Go with B, build all three") ───────────────────── */
/* 1. The "For you" badge: made readable here first (gold, ink words; a dot on phones), then taken off the page altogether
      (the owner, 2026-11-23, after the beta preview: it served no purpose; index.php), so it needs no rules here. */

/* 2. The search card's background ("B, dotted map"): a dotted world in faint ink (dark: faint teal), cut from the site's own
      land mask (assets/img/map/land-mask.png, white land on black, read as luminance), and a gold glow in the top corner
      (dark: violet). Both sit behind the card's content (the card is its own stacking context). */
html.design-a #search-card { isolation: isolate; }
html.design-a #search-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgb(11 22 48 / .16) 1.15px, transparent 1.7px) 0 0 / 9px 9px;
  -webkit-mask: url(../img/map/land-mask.png) right -40px center / 78% auto no-repeat; mask: url(../img/map/land-mask.png) right -40px center / 78% auto no-repeat;
  mask-mode: luminance; }
html.design-a.dark #search-card::before { background: radial-gradient(circle, rgb(45 212 191 / .22) 1.15px, transparent 1.7px) 0 0 / 9px 9px; }
html.design-a #search-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -2; pointer-events: none;
  background: radial-gradient(520px 260px at 100% 0%, rgb(201 161 74 / .16), transparent 62%); }
html.design-a.dark #search-card::after { background: radial-gradient(520px 260px at 100% 0%, rgb(139 92 246 / .22), transparent 62%); }

/* 3. The logo a size up (40 → 48 px), on a plate with room all round (7 × 13 px), so the plane never touches its edge; a
      light-ink logo (or the one made for dark backgrounds) on navy (dark: night blue). The header a little taller to suit;
      on a phone a size between. */
html.design-a nav[data-site-part="header"] .h-16 { height: 4.5rem; }
html.design-a nav[data-site-part="header"] .brand-logo { height: 48px; max-width: 196px; padding: 7px 13px; border-radius: 14px; box-sizing: border-box; }
html.design-a nav[data-site-part="header"] .brand-logo:is(.brand-logo-on-dark, [data-ink="light"]) { background: #0b1630; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 8px 20px -10px rgb(0 0 0 / .5); }
html.design-a.dark nav[data-site-part="header"] .brand-logo:is(.brand-logo-on-dark, [data-ink="light"]) { background: rgb(14 20 38); }
@media (max-width: 639.98px) {
  html.design-a nav[data-site-part="header"] .h-16 { height: 4rem; }
  html.design-a nav[data-site-part="header"] .brand-logo { height: 42px; max-width: 150px; padding: 6px 10px; border-radius: 12px; }
  /* the dotted world fainter, where it sits behind the fields */
  html.design-a #search-card::before { opacity: .6; }
}
