/* ──────────────────────────────────────────────────────────────
   landing.css — page-specific styles for index.php
   Included ONLY by the landing page (in addition to voyager.css).
   Covers: autocomplete dropdowns, search-tab decoration + per-tab
   photo backgrounds, quick-pick tiles, Flatpickr gold theme.
   ────────────────────────────────────────────────────────────── */
:root { color-scheme: light; }

/* Hero gradient overlay above the Unsplash photo */
/* The overlay's strength is a theme setting (--hero-overlay-k, 0–1.5; 1 = these values). */
.grad-hero { background: linear-gradient(180deg, rgb(var(--c-neutral-900) / min(1, calc(.20 * var(--hero-overlay-k, 1)))) 0%, rgb(var(--c-neutral-900) / min(1, calc(.45 * var(--hero-overlay-k, 1)))) 40%, rgb(var(--c-neutral-900) / min(1, calc(.85 * var(--hero-overlay-k, 1)))) 100%); }

/* ─── Hero band height ──────────────────────────────────────
   A landing page that exactly fills the viewport reads as a page with nothing
   on it. The band is sized by its own content, so this is a FLOOR, not a fixed
   height: the search card grows on narrow screens (the fields stack) and must
   never be clipped to hold a number.

   70vh is the target on a roomy screen; the min-height only bites when the
   content is shorter than that, which is why the padding above had to come
   down as well. Below 700px of viewport height the floor is dropped entirely —
   on a short laptop or a landscape phone, 70vh of photo is all you would get.  */
/* Since 2026-10-01 there is no floor at all. With the search card hanging over the band's edge and
   the open tab's sections starting right under it, a 70vh floor only added empty sky above the
   headline: on a 1920×1080 screen 93px of it, and the first section started below the fold. The
   band is its content: headline, subtitle and card. */
.hero-band { min-height: 0; }
.hero-band > .max-w-7xl { padding-top: 1.5rem; }
@media (min-width: 768px) { .hero-band > .max-w-7xl { padding-top: 1.25rem; } }
/* The subtitle fits one line on a desktop instead of wrapping into two. */
@media (min-width: 1024px) { .hero-band .max-w-3xl > p { max-width: 46rem; } }
/* A laptop window (about 650–760px tall once the browser's bars are off): the headline runs on one line
   and the subtitle steps aside, so the first section's heading and cards start on the first screen. */
@media (min-width: 768px) and (max-height: 760px) {
  .hero-band h1 { font-size: 2.25rem; }
  .hero-band h1 br { display: none; }
  .hero-band .max-w-3xl > p { display: none; }
}
/* Less space under the trust strip: the tab's sections follow it. */
#under-card { margin-bottom: 1rem; }

/* The band's content is a fixed ~682px on desktop — headline, subtitle and the
   search card — so the share of the screen it takes is decided by the screen,
   not by the padding. Measured: 76% at 1440x900, but 89% at 1366x768, where
   only 22px of the next section showed. A laptop is the common case, so the
   headline and subtitle step down on short viewports rather than the page
   pretending every screen is 900px tall.

   Width-gated too: this is about vertical room, and a phone in portrait has
   plenty of height but needs its headline at the size the Tailwind classes
   already give it.                                                           */
/* 2026-10-01: up to 1000px of window height, which covers a 1080p screen once the browser's own
   bars are taken off (about 911px), so the first section shows below the card there too. */
@media (min-width: 768px) and (max-height: 1000px) {
  .hero-band h1 { font-size: 2.75rem; }
  .hero-band .max-w-3xl > p { font-size: 1rem; margin-top: 0.75rem; }
  .hero-band .max-w-3xl { margin-bottom: -0.25rem; }
}
/* ─── Home rails (docs/UI_PHASE_D_CHECKLIST.md, D-2/D-3) ───
   Each search tab's rails scroll sideways, one card snapping to the edge: most of a card on a
   phone (the next one peeks, so it reads as scrollable), two on a tablet, four on a desktop.
   Dates are narrow chips; city and collection tiles fit five.                              */
.home-rail + .home-rail { margin-top: 3rem; }
.rail-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 2px 2px 8px;
  /* CRO C4 (2026-10-16): no scroll bar under the rows; touch swipes them, a mouse has the arrows. */
  scrollbar-width: none; -ms-overflow-style: none;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 640px)  { .rail-track { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (min-width: 1024px) { .rail-track { grid-auto-columns: calc((100% - 3rem) / 4); } }
.rail-track[data-kind="date"] { grid-auto-columns: 8.25rem; }
@media (min-width: 1024px) { .rail-track[data-kind="offer"] { grid-auto-columns: calc((100% - 2rem) / 3); } }
@media (min-width: 1024px) {
  .rail-track[data-kind="city"], .rail-track[data-kind="collection"] { grid-auto-columns: calc((100% - 4rem) / 5); }
}
.rail-card {
  background: #fff; border: 1px solid rgb(var(--c-neutral-200));
  border-radius: calc(0.75rem * var(--radius-k, 1));
  transition: box-shadow .2s ease, border-color .2s ease;
}
.rail-card:hover { border-color: rgb(var(--c-primary-300)); box-shadow: 0 14px 30px -14px rgb(var(--c-neutral-900) / .28); }
.dark .rail-card { background: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-700)); }
.dark .rail-card:hover { border-color: rgb(var(--c-primary-500) / .6); }
/* The cheapest date: success green, which the theme never recolours. */
.rail-card-best, .rail-card.rail-card-best { border-color: rgb(16 185 129); background: rgb(236 253 245); }
.dark .rail-card.rail-card-best { border-color: rgb(16 185 129); background: rgb(6 78 59 / .45); }
/* Its small grey text sat at 4.52:1 on the green wash; a shade darker keeps AA whatever greys the theme picks. */
.rail-card-best .text-slate-500 { color: rgb(var(--c-neutral-600)); }
.dark .rail-card-best .text-slate-500 { color: rgb(var(--c-neutral-300)); }
/* A tile without a photo: the brand's own colours. */
.rail-tile-plain { background: linear-gradient(135deg, rgb(var(--c-primary-300)), rgb(var(--c-primary-600))); }
/* Words on a photo tile sit on a dark wash, whatever the photo. */
.rail-tile-shade { background: linear-gradient(to top, rgb(var(--c-neutral-900) / .85), rgb(var(--c-neutral-900) / .2) 60%, transparent); }
/* A save button on a photo: a white disc with a dark heart in both themes — it sits on the picture,
   not the page (the dark theme lightened its heart to 1.5:1 on the white disc). */
.rail-save, .dark .rail-save { background: rgb(255 255 255 / .92); color: rgb(var(--c-neutral-700)); }
.rail-save:hover, .dark .rail-save:hover { background: #fff; color: rgb(var(--c-primary-700)); }
/* The card's title link covers the card; buttons in it sit above (relative z-10). */
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 2px solid rgb(var(--c-primary-500)); outline-offset: 2px; border-radius: calc(0.75rem * var(--radius-k, 1)); }
/* Under the search card (D-4): the tab's banner offer, one slim line, and the trust strip. */
.offer-strip {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  border-radius: calc(0.75rem * var(--radius-k, 1));
  background: rgb(var(--c-primary-50)); border: 1px solid rgb(var(--c-primary-200)); color: rgb(var(--c-neutral-800));
}
.dark .offer-strip { background: rgb(var(--c-primary-500) / .12); border-color: rgb(var(--c-primary-500) / .35); color: rgb(var(--c-neutral-100)); }
.trust-item {
  display: flex; align-items: center; gap: .5rem; padding: .625rem .75rem;
  border-radius: calc(0.75rem * var(--radius-k, 1)); font-size: .8125rem; line-height: 1.3;
  background: #fff; border: 1px solid rgb(var(--c-neutral-200)); color: rgb(var(--c-neutral-700));
}
.dark .trust-item { background: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-700)); color: rgb(var(--c-neutral-200)); }
/* Phones (D-5): the search one tap away, under the sticky header once the card has scrolled off. */
.sticky-search { position: fixed; left: .75rem; right: .75rem; top: 4.5rem; z-index: 30; }
/* Scrolled back to (the phone bar, a #search-card link), the card stops below the sticky header, tabs in view. */
#search-card { scroll-margin-top: 5rem; }
/* CRO B2 (2026-10-16): the round swap button sits on the line between From and To, half over the gap. */
.swap-airports { position: absolute; right: -20px; top: 25px; z-index: 5; width: 28px; height: 28px; border-radius: 999px;
                 display: flex; align-items: center; justify-content: center; background: #fff; color: rgb(var(--c-neutral-600));
                 border: 1px solid rgb(var(--c-neutral-400)); box-shadow: 0 1px 2px rgb(var(--c-neutral-900) / .12); cursor: pointer; }
.swap-airports:hover, .swap-airports:focus-visible { border-color: rgb(var(--c-primary-500)); color: rgb(var(--c-primary-700)); outline: none; }
.dark .swap-airports { background: rgb(var(--c-neutral-800)); color: rgb(var(--c-neutral-200)); border-color: rgb(var(--c-neutral-500)); }
/* CRO C3 (2026-10-16): a card with no photo shows the theme wash and its emoji, never the grey placeholder tile. */
.rail-photo-none { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.75rem;
                   background: linear-gradient(135deg, rgb(var(--c-primary-100)), rgb(var(--c-primary-300))); }
.dark .rail-photo-none { background: linear-gradient(135deg, rgb(var(--c-neutral-800)), rgb(var(--c-primary-800) / .55)); }
/* CRO B3 (2026-10-16): below 1024px a date box is 99px at its narrowest (768px) and "23 Oct 2026" needed 107px,
   so the four home-page date boxes (the visible field Flatpickr adds after each one) take less padding there. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  #fp-flight-date + input, #fp-flight-return + input, #fp-hotel-checkin + input, #fp-hotel-checkout + input {
    padding-left: .5rem; padding-right: .5rem; font-size: .8125rem;
  }
}
.sticky-search-btn {
  width: 100%; display: flex; align-items: center; gap: .625rem; padding: .5rem .5rem .5rem .875rem;
  border-radius: 9999px; background: #fff; border: 1px solid rgb(var(--c-neutral-200));
  color: rgb(var(--c-neutral-800)); box-shadow: 0 10px 24px -10px rgb(var(--c-neutral-900) / .35);
}
.dark .sticky-search-btn { background: rgb(var(--c-neutral-900)); border-color: rgb(var(--c-neutral-700)); color: rgb(var(--c-neutral-100)); }
/* The returning visitor's favourite tab (D-6): a small mark on its chip. */
.home-tab-pick {
  font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .4rem; border-radius: 9999px; background: rgb(var(--c-primary-100)); color: rgb(var(--c-primary-800));
}
/* Scroll buttons: for a mouse; touch scrolls the rail itself. */
.rail-btn {
  display: none; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1;
  border: 1px solid rgb(var(--c-neutral-200)); background: #fff; color: rgb(var(--c-neutral-600));
}
/* CRO C2 (2026-10-16): only on a row whose cards do not all fit (data-scrolls, set by index.php watchRailScroll()). */
@media (min-width: 768px) and (hover: hover) { .home-rail[data-scrolls] .rail-btn { display: inline-flex; } }
.rail-btn:hover { border-color: rgb(var(--c-neutral-400)); color: rgb(var(--c-neutral-900)); }
.dark .rail-btn { background: rgb(var(--c-neutral-800)); border-color: rgb(var(--c-neutral-700)); color: rgb(var(--c-neutral-200)); }

  /* ─── Autocomplete dropdown ─────────────────────────────── */
  .ac-dd {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
    background: #ffffff; border-radius: calc(0.875rem * var(--radius-k, 1));
    border: 1px solid rgb(var(--c-neutral-900) / .08);
    box-shadow: 0 20px 50px -12px rgb(var(--c-neutral-900) / .25), 0 8px 20px -8px rgb(var(--c-neutral-900) / .1);
    overflow: hidden; display: flex; flex-direction: column;
    max-height: 380px; min-width: 280px;
  }
  .ac-dd-head {
    padding: .55rem .9rem;
    font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: rgb(var(--c-neutral-400)); background: rgb(var(--c-neutral-50)); border-bottom: 1px solid rgb(var(--c-neutral-200));
    display: flex; align-items: center; justify-content: space-between;
  }
  .ac-dd-list { flex: 1; overflow-y: auto; padding: .25rem 0; }
  .ac-dd-list::-webkit-scrollbar { width: 8px; }
  .ac-dd-list::-webkit-scrollbar-thumb { background: rgb(var(--c-neutral-200)); border-radius: calc(4px * var(--radius-k, 1)); }
  .ac-dd-list::-webkit-scrollbar-thumb:hover { background: rgb(var(--c-neutral-300)); }
  .ac-dd-item {
    width: 100%; text-align: left; border: 0; cursor: pointer; background: transparent;
    padding: .65rem .9rem; display: flex; align-items: center; gap: .65rem;
    transition: background .12s; color: rgb(var(--c-neutral-900));
  }
  .ac-dd-item + .ac-dd-item { border-top: 1px solid rgb(var(--c-neutral-100)); }
  .ac-dd-item:hover, .ac-dd-item:focus, .ac-dd-item.ac-active { background: rgb(var(--c-primary-100)); outline: none; }
  /* highlighted matching text — fades onto the amber-100 hover bg cleanly */
  .ac-dd-item mark { background: rgb(var(--c-primary-200)); color: rgb(var(--c-primary-800)); padding: 0 2px; border-radius: calc(3px * var(--radius-k, 1)); font-weight: 600; }
  .ac-dd-item .ac-type-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: calc(6px * var(--radius-k, 1));
    font-size: .65rem; font-weight: 700; letter-spacing: .04em;
    background: rgb(var(--c-neutral-100)); color: rgb(var(--c-neutral-600)); flex-shrink: 0;
  }
  /* "Recent" + popularity tag on the right of a row */
  .ac-dd-tag { font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c-neutral-400)); flex-shrink: 0; }
  /* Empty / popular state header text */
  .ac-dd-state { padding: .5rem .9rem .25rem; font-size: .65rem; font-weight: 700; color: rgb(var(--c-neutral-400)); text-transform: uppercase; letter-spacing: .08em; }
  .ac-dd-title { font-size: .875rem; font-weight: 600; line-height: 1.25; }
  .ac-dd-sub   { font-size: .7rem; color: rgb(var(--c-neutral-500)); line-height: 1.3; margin-top: 2px;
                 white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ac-dd-empty { padding: 1.5rem .9rem; text-align: center; font-size: .8rem; color: rgb(var(--c-neutral-400)); }
  .ac-iata {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    background: linear-gradient(135deg,var(--brand-1) 0%,var(--brand-2) 50%,var(--brand-3) 100%);
    color: rgb(var(--c-neutral-900)); border-radius: calc(.375rem * var(--radius-k, 1)); padding: .25rem .45rem;
    flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.08);
  }
  .ac-flag { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }

  /* Dark variants */
  .dark .ac-dd { background: rgb(var(--c-neutral-900)) !important; border-color: rgb(var(--c-neutral-800)) !important;
                 box-shadow: 0 20px 50px -12px rgba(0,0,0,.6), 0 8px 20px -8px rgba(0,0,0,.4); }
  .dark .ac-dd-head { background: rgb(var(--c-neutral-950)) !important; color: rgb(var(--c-neutral-500)) !important; border-bottom-color: rgb(var(--c-neutral-800)) !important; }
  .dark .ac-dd-list::-webkit-scrollbar-thumb { background: rgb(var(--c-neutral-700)); }
  .dark .ac-dd-list::-webkit-scrollbar-thumb:hover { background: rgb(var(--c-neutral-600)); }
  .dark .ac-dd-item { color: rgb(var(--c-neutral-200)) !important; }
  .dark .ac-dd-item + .ac-dd-item { border-top-color: rgb(var(--c-neutral-800)); }
  .dark .ac-dd-item:hover, .dark .ac-dd-item:focus, .dark .ac-dd-item.ac-active { background: rgb(var(--c-primary-700) / .25) !important; }
  .dark .ac-dd-item mark { background: rgb(var(--c-primary-700) / .55); color: rgb(var(--c-primary-300)); }
  .dark .ac-dd-sub { color: rgb(var(--c-neutral-400)) !important; }
  .dark .ac-dd-empty { color: rgb(var(--c-neutral-500)) !important; }
  .dark .ac-dd-state { color: rgb(var(--c-neutral-500)); }
  .dark .ac-dd-item .ac-type-badge { background: rgba(255,255,255,.07); color: rgb(var(--c-neutral-300)); }
  .dark .ac-dd-tag { color: rgb(var(--c-neutral-500)); }

  /* ─── Search-card tab panels — uniform height + decorative bg so the card never jumps
        and the empty area feels designed rather than blank (works for BOTH themes) ─── */
  .search-tab {
    position: relative;
    /* No fixed height (2026-10-01): it was 260–272px so tabs with fewer fields matched Flights,
       but it left a band of nothing inside the card (79px on Flights at 1920px). */
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* NOTE: no `overflow: hidden` here — that clips the autocomplete dropdowns when they
       extend below the panel (e.g. the From/To airport pickers in the Flights tab).
       The pseudo-elements below get their own border-radius so the decorative photo
       and dot-grid still respect the parent card's `rounded-2xl` bottom corners. */
  }


  /* Subtle dot-grid texture only — gradient orbs removed; the per-tab photo (::after)
     now provides the visual interest. Dots add a faint tactile feel without competing. */
  /* The form grid (which contains the autocomplete dropdowns) must paint ABOVE
     the action row that sits below it. Without this, the autocomplete dropdown
     extends down into the action-row vertical space, where the native cabin-class
     `<select>` and "Direct only" checkbox — being later in DOM — paint over it. */
  .search-tab > .grid { position: relative; z-index: 20; }

  /* Decorative pseudo-elements get their OWN bottom-corner radius so the photo
     and dot-grid stay clipped to the parent card's `rounded-2xl` shape. This
     replaces the panel-wide `overflow: hidden` (which was clipping the
     autocomplete dropdown when it extended below the panel). */
  .search-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle at 1px 1px, rgb(var(--brand-3-rgb) / .10) 1px, transparent 0);
    background-size: 20px 20px;
    border-radius: 0 0 calc(1rem * var(--radius-k, 1)) calc(1rem * var(--radius-k, 1));  /* matches parent card's rounded-2xl bottom */
  }
  .dark .search-tab::before {
    background-image: radial-gradient(circle at 1px 1px, rgb(var(--brand-1-rgb) / .10) 1px, transparent 0);
    background-size: 20px 20px;
  }

  /* Per-tab themed background photo — full-bleed across the entire panel (no fade,
     no empty side). Opacity is low enough that the (lighter) form inputs and labels
     still read; the inputs themselves carry an opaque background so they pop on top
     of the photo. Both themes get their own tint. */
  .search-tab::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: .32;       /* light mode: 32% — photo visible everywhere, labels still readable */
    border-radius: 0 0 calc(1rem * var(--radius-k, 1)) calc(1rem * var(--radius-k, 1));  /* clip to parent card's bottom corners */
  }
  .dark .search-tab::after { opacity: .22; }  /* dark mode: 22% — keeps the navy dominant */

  /* Subtle uniform tint OVER the photo (light & dark) so inputs/labels never compete
     with high-contrast spots in the photo. Lives on `.search-tab` itself, sitting
     between the photo (::after, z:0) and the content (z:1). */
  .search-tab {
    background-color: rgba(255,255,255,.55);  /* light wash on top of the photo */
    border-bottom-left-radius: 1rem;          /* match parent card's rounded-2xl */
    border-bottom-right-radius: 1rem;
  }
  .dark .search-tab { background-color: rgb(var(--c-neutral-900) / .62); }

  /* Tab-specific photos (Unsplash, ~900w + auto-format) */
  .search-tab[data-tab="flights"]::after  { background-image: url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=1200&q=80&auto=format&fit=crop"); }
  .search-tab[data-tab="hotels"]::after   { background-image: url("https://images.unsplash.com/photo-1582719508461-905c673771fd?w=1200&q=80&auto=format&fit=crop"); }
  .search-tab[data-tab="holidays"]::after { background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1200&q=80&auto=format&fit=crop"); }
  .search-tab[data-tab="packages"]::after { background-image: url("https://images.unsplash.com/photo-1452457807411-4979b707c5be?w=1200&q=80&auto=format&fit=crop"); }
  .search-tab[data-tab="ai"]::after       { background-image: url("https://images.unsplash.com/photo-1483728642387-6c3bdd6c93e5?w=1200&q=80&auto=format&fit=crop"); }

  /* Mobile: cards are narrow — knock photo opacity down to keep labels crisp. */
  @media (max-width: 640px) {
    .search-tab::after { opacity: .20; }
    .dark .search-tab::after { opacity: .15; }
  }

  /* Content sits above the decorative layers */
  .search-tab > * { position: relative; z-index: 1; }
  /* Push the action row to the bottom of each panel — distributes the gap visually */
  .search-tab > *:last-child { margin-top: 1.25rem !important; }

  /* ─── Quick-pick tiles (Holidays + Packages tabs — actual content instead of pure decoration) ─── */
  .qp-section { margin-top: 18px; }
  .qp-head    { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
  .qp-label   { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--c-neutral-400)); }
  .dark .qp-label { color: rgb(var(--c-neutral-500)); }
  /* Smaller pill-style sibling of .browse-all-link. Hover lights up amber + nudges right. */
  .qp-browse  {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500;
    color: var(--brand-3);
    padding: 4px 9px;
    border-radius: calc(7px * var(--radius-k, 1));
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
  }
  .qp-browse:hover {
    color: rgb(var(--c-primary-900));
    background: rgb(var(--c-primary-100) / .95);
    box-shadow: inset 0 0 0 1px rgb(var(--brand-1-rgb) / .40);
    transform: translateX(2px);
  }
  .dark .qp-browse { color: var(--brand-2); }
  .dark .qp-browse:hover {
    color: rgb(var(--c-primary-300));
    background: rgb(var(--c-primary-700) / .45);
    box-shadow: inset 0 0 0 1px rgb(var(--c-primary-300) / .30);
  }

  .qp-tiles   { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .qp-tile {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgb(var(--c-neutral-900) / .10);
    border-radius: calc(12px * var(--radius-k, 1));
    background: rgba(255,255,255,.72);
    text-align: left; cursor: pointer; min-width: 0;
    transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .2s ease;
  }
  .qp-tile:hover {
    background: rgb(var(--c-primary-100) / .85);
    border-color: rgb(var(--brand-1-rgb) / .45);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgb(var(--c-neutral-900) / .10);
  }
  .dark .qp-tile {
    background: rgb(var(--c-neutral-800) / .55);
    border-color: rgba(255,255,255,.08);
  }
  .dark .qp-tile:hover {
    background: rgb(var(--c-primary-700) / .22);
    border-color: rgb(var(--brand-1-rgb) / .50);
    box-shadow: 0 6px 14px -4px rgba(0,0,0,.40);
  }
  .qp-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; }
  .qp-body  { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .qp-title { font-weight: 600; font-size: 13px; color: rgb(var(--c-neutral-900)); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dark .qp-title { color: rgb(var(--c-neutral-200)); }
  .qp-sub   { font-size: 10.5px; color: rgb(var(--c-neutral-500)); line-height: 1.3; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dark .qp-sub { color: rgb(var(--c-neutral-400)); }
  .qp-meta  { font-size: 11px; font-weight: 700; color: var(--brand-3); flex-shrink: 0; white-space: nowrap; }
  .dark .qp-meta { color: rgb(var(--c-primary-400)); }
  @media (max-width: 640px) {
    .qp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qp-tiles > :nth-child(3) { display: none; }
  }

  /* The calendar is themed in ONE place: assets/css/flatpickr-voyager.css
     (docs/CALENDAR_THEME.md). A second, complete Flatpickr theme lived here,
     !important on every rule, so the home and search calendars wore a gold
     header while every other calendar on the site wore the shared one —
     and fixes to one theme (8f5b389, the clipped year) had to be made twice.
     Removed 2026-09-25; these pages now load the shared theme like the rest. */
