/* ===========================================================================
   Byron Bay Buses — design system
   Cape Byron: basalt headland, deep water, sea glass, and the light.
   Single stylesheet. Replaces Bootstrap 4 + Tether + Mobirise + 6 icon fonts.
   =========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* colour — drawn from the headland, not from a template */
  --ink:        #0b1418;   /* basalt */
  --deep:       #0f3339;   /* deep water off the cape */
  --deep-2:     #14434a;
  --surf:       #1c7a80;
  --surf-lift:  #2a9aa1;
  --beam:       #ffc233;   /* the light */
  --beam-warm:  #ffab00;
  --glass:      #e2edea;   /* sea glass */
  --glass-deep: #c9ded8;
  --paper:      #ffffff;
  --slate:      #4c5f63;
  --hairline:   #d6e0dd;

  /* type */
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --t-hero:  clamp(2.6rem, 1.4rem + 4.6vw, 5.1rem);
  --t-h1:    clamp(2.1rem, 1.4rem + 2.9vw, 3.5rem);
  --t-h2:    clamp(1.65rem, 1.25rem + 1.7vw, 2.5rem);
  --t-h3:    clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --t-lead:  clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
  --t-base:  1.0625rem;
  --t-small: 0.9rem;
  --t-micro: 0.75rem;

  /* space */
  --s1: .5rem;  --s2: .75rem; --s3: 1rem;   --s4: 1.5rem;
  --s5: 2rem;   --s6: 3rem;   --s7: 4.5rem; --s8: 6.5rem;

  --wrap: 1180px;
  --wrap-narrow: 46rem;

  --r-sm: 4px;
  --r:    10px;
  --r-lg: 20px;

  --ring: 0 0 0 3px rgba(255,194,51,.55);
  --lift: 0 1px 2px rgba(11,20,24,.05), 0 12px 30px -14px rgba(11,20,24,.28);
  --ease: cubic-bezier(.2,.7,.3,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { background: var(--glass); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 var(--s3);
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -0.012em; }
p  { margin: 0 0 var(--s3); text-wrap: pretty; }
a  { color: var(--surf); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
ul, ol { margin: 0 0 var(--s3); padding-left: 1.25rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s5) 0; }
:focus-visible { outline: 3px solid var(--beam); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--beam); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--s7); }
.section--tight { padding-block: var(--s6); }
.section--dark { background: var(--deep); color: var(--glass); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--paper); }
.section--dark a { color: var(--beam); }
.section--dark a:hover { color: var(--paper); }
.section--glass { background: var(--glass); }

.skip {
  position: absolute; left: var(--s3); top: -100px; z-index: 200;
  background: var(--beam); color: var(--ink); font-weight: 600;
  padding: var(--s2) var(--s4); border-radius: var(--r-sm);
  transition: top .15s var(--ease);
}
.skip:focus { top: var(--s3); }

/* ---------- signature: the light ----------
   Cape Byron is the easternmost light in Australia. The beam is the one
   piece of visual boldness on this site; everything else stays quiet. */
.beamrule {
  height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg,
      transparent 0%, var(--hairline) 12%, var(--hairline) 88%, transparent 100%);
  position: relative; overflow: visible;
}
.beamrule::after {
  content: ""; position: absolute; top: -1px; left: var(--beam-pos, 18%);
  width: 12%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--beam), transparent);
  filter: blur(.5px);
}
.section--dark .beamrule { background: linear-gradient(90deg, transparent, rgba(226,237,234,.22), transparent); }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,20,24,.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(226,237,234,.12);
}
.masthead__bar {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: transparent; }
.brand__name {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: .01em; color: var(--paper); line-height: 1.1;
}
.brand__name span { display: block; font-family: var(--body); font-weight: 400;
  font-size: var(--t-micro); letter-spacing: .13em; text-transform: uppercase; color: var(--beam); }

.nav { display: none; }
.nav ul { display: flex; gap: var(--s4); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav li { margin: 0; }
.nav a {
  color: var(--glass); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus-visible { color: var(--paper); border-bottom-color: var(--beam); }
.nav a[aria-current="page"] { color: var(--beam); border-bottom-color: var(--beam); }

.masthead .btn--call { display: none; }

.navtoggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; border: 1px solid rgba(226,237,234,.3); color: var(--paper);
  font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: .55rem .85rem; border-radius: var(--r-sm); cursor: pointer;
}
.navtoggle svg { width: 18px; height: 18px; }

@media (min-width: 62rem) {
  .nav { display: block; }
  .navtoggle { display: none; }
  .masthead .btn--call { display: inline-flex; }
}

/* mobile nav — native <dialog> */
dialog.navsheet {
  border: 0; padding: 0; width: min(92vw, 26rem); margin-left: auto; margin-right: 0;
  height: 100dvh; max-height: 100dvh; background: var(--ink); color: var(--glass);
}
dialog.navsheet::backdrop { background: rgba(11,20,24,.6); backdrop-filter: blur(3px); }
.navsheet__inner { padding: var(--s4); display: flex; flex-direction: column; height: 100%; }
.navsheet__close {
  align-self: flex-end; background: transparent; border: 1px solid rgba(226,237,234,.3);
  color: var(--paper); font: inherit; padding: .45rem .8rem; border-radius: var(--r-sm); cursor: pointer;
}
.navsheet ul { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.navsheet li { margin: 0; border-bottom: 1px solid rgba(226,237,234,.12); }
.navsheet a {
  display: block; padding: .95rem .25rem; color: var(--glass);
  text-decoration: none; font-family: var(--display); font-size: 1.2rem; font-weight: 600;
}
.navsheet a:hover, .navsheet a:focus-visible { color: var(--beam); }
.navsheet__foot { margin-top: auto; padding-top: var(--s4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: .97rem; line-height: 1;
  padding: .92rem 1.5rem; border-radius: var(--r-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .16s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--beam); color: var(--ink); }
.btn--primary:hover { background: var(--beam-warm); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(226,237,234,.45); }
.btn--ghost:hover { background: rgba(226,237,234,.12); color: var(--paper); }
.btn--dark { background: var(--deep); color: var(--paper); }
.btn--dark:hover { background: var(--ink); color: var(--paper); }
.btn--call { background: transparent; color: var(--beam); border-color: var(--beam); }
.btn--call:hover { background: var(--beam); color: var(--ink); }
.btn--wide { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--glass);
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10%; z-index: -2;
  background:
    radial-gradient(ellipse 60% 55% at 78% 12%, rgba(28,122,128,.5), transparent 62%),
    radial-gradient(ellipse 70% 60% at 10% 92%, rgba(15,51,57,.85), transparent 60%);
}
/* the sweep */
.hero::after {
  content: ""; position: absolute; z-index: -1; top: 50%; left: 50%;
  width: 190%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg,
      rgba(255,194,51,0) 0deg, rgba(255,194,51,.16) 8deg,
      rgba(255,194,51,0) 22deg, rgba(255,194,51,0) 360deg);
  animation: sweep 22s linear infinite;
  pointer-events: none;
}
@keyframes sweep { to { rotate: 360deg; } }

.hero__eyebrow {
  font-size: var(--t-micro); letter-spacing: .18em; text-transform: uppercase;
  color: var(--beam); font-weight: 600; margin: 0 0 var(--s3);
}
.hero h1 { font-size: var(--t-hero); color: var(--paper); max-width: 18ch; }
.hero__lead { font-size: var(--t-lead); max-width: 56ch; color: rgba(226,237,234,.92); }
.hero .btnrow { margin-top: var(--s5); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid rgba(226,237,234,.18); list-style: none; padding-left: 0;
}
.hero__facts li { margin: 0; }
.hero__facts b {
  display: block; font-family: var(--display); font-size: 1.55rem;
  font-weight: 700; color: var(--beam); line-height: 1.1;
}
.hero__facts span { font-size: var(--t-small); color: rgba(226,237,234,.75); }

/* ---------- section headings ---------- */
.eyebrow {
  font-size: var(--t-micro); letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--surf); margin: 0 0 var(--s2);
}
.section--dark .eyebrow { color: var(--beam); }
.lead { font-size: var(--t-lead); color: var(--slate); max-width: 62ch; }
.section--dark .lead { color: rgba(226,237,234,.85); }
.head { max-width: 62ch; margin-bottom: var(--s5); }

/* ---------- grids ---------- */
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.card:hover { border-color: var(--surf); box-shadow: var(--lift); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card__body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--slate); font-size: .97rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.section--dark .card { background: var(--deep-2); border-color: rgba(226,237,234,.16); }
.section--dark .card p { color: rgba(226,237,234,.82); }

/* fleet card — the capacity is the headline, because capacity is what people choose on */
.fleet { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.fleet__item {
  border: 1px solid var(--hairline); border-radius: var(--r);
  padding: var(--s4); background: var(--paper);
  display: flex; flex-direction: column; gap: var(--s2);
}
.fleet__seats {
  font-family: var(--display); font-size: 2.6rem; font-weight: 700;
  line-height: .95; color: var(--deep); letter-spacing: -.03em;
}
.fleet__seats sub {
  display: block; font-family: var(--body); font-size: var(--t-micro);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--surf); vertical-align: baseline; margin-top: .35rem;
}
.fleet__item h3 { font-size: 1.05rem; margin: 0; }
.fleet__item p { font-size: .92rem; color: var(--slate); margin: 0; }
.fleet__item img { border-radius: var(--r-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* transfer / route rows — real drive times */
.routes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline); }
.routes li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4);
  padding: var(--s3) 0; border-bottom: 1px solid var(--hairline); margin: 0;
}
.routes b { flex: 1 1 14rem; font-weight: 600; font-size: 1.02rem; }
.routes .time {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--surf);
  font-variant-numeric: tabular-nums;
}
.routes .note { flex: 1 1 100%; font-size: var(--t-small); color: var(--slate); }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
caption { text-align: left; font-size: var(--t-small); color: var(--slate); padding-bottom: var(--s2); }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--hairline); }
thead th { background: var(--glass); font-weight: 600; font-size: var(--t-small); letter-spacing: .02em; }
tbody tr:hover { background: #fafcfb; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: var(--s6); font-size: var(--t-h3); }
.prose h3 { margin-top: var(--s5); font-size: 1.08rem; }
.prose ul { padding-left: 1.15rem; }
.prose > p:first-of-type { font-size: var(--t-lead); color: var(--slate); }
.prose .meta {
  font-size: var(--t-small); color: var(--slate);
  border-left: 3px solid var(--beam); padding: var(--s2) 0 var(--s2) var(--s3); margin-bottom: var(--s5);
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s3) 2.2rem var(--s3) 0;
  font-weight: 600; font-size: 1.03rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; translate: 0 -50%;
  font-family: var(--display); font-size: 1.5rem; color: var(--surf); line-height: 1;
  transition: rotate .2s var(--ease);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: var(--s3); color: var(--slate); }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.form { display: grid; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: var(--t-small); color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--hairline); border-radius: var(--r-sm);
  padding: .72rem .85rem; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--surf); box-shadow: var(--ring);
}
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field--row { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .field--row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: .65rem; align-items: flex-start; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .22rem; flex: none; }
.check label { font-weight: 400; font-size: .95rem; }
.formnote { font-size: var(--t-small); color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- callout ---------- */
.callout {
  border: 1px solid var(--hairline); border-left: 4px solid var(--beam);
  border-radius: var(--r-sm); padding: var(--s4); background: #fffdf6;
}
.callout :last-child { margin-bottom: 0; }
.callout h3 { font-size: 1.05rem; }
.section--dark .callout { background: rgba(226,237,234,.06); border-color: rgba(226,237,234,.18); border-left-color: var(--beam); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--deep) 0%, var(--ink) 70%);
  color: var(--glass); border-radius: var(--r-lg); padding: clamp(2rem, 1rem + 4vw, 3.5rem);
  position: relative; overflow: hidden;
}
.cta h2 { color: var(--paper); max-width: 20ch; }
.cta p { color: rgba(226,237,234,.85); max-width: 52ch; }
.cta::after {
  content: ""; position: absolute; right: -12%; top: -60%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,194,51,.2), transparent 68%);
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(226,237,234,.78); padding-block: var(--s6) var(--s5); font-size: .95rem; }
.foot a { color: rgba(226,237,234,.78); text-decoration: none; }
.foot a:hover { color: var(--beam); text-decoration: underline; }
.foot h2, .foot h3 {
  font-family: var(--body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--beam); margin-bottom: var(--s3);
}
.foot__grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .5rem; }
.foot__legal {
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid rgba(226,237,234,.14);
  font-size: var(--t-small); color: rgba(226,237,234,.6);
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline;
}
.foot__legal p { margin: 0; }
.aoc {
  margin-top: var(--s5); padding: var(--s4);
  border: 1px solid rgba(226,237,234,.14); border-radius: var(--r);
  font-size: var(--t-small); color: rgba(226,237,234,.72); line-height: 1.6;
}
.aoc strong { color: var(--glass); font-weight: 600; }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: var(--t-small); padding-block: var(--s3); color: var(--slate); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--hairline); }
.crumbs a { color: var(--slate); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ---------- utilities ---------- */
.stack > * + * { margin-top: var(--s3); }
.center { text-align: center; margin-inline: auto; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.small { font-size: var(--t-small); color: var(--slate); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tag {
  display: inline-block; font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--glass); color: var(--deep);
  padding: .3rem .6rem; border-radius: 999px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .hero::after { display: none; }
}

/* ---------- print ---------- */
@media print {
  .masthead, .foot, .cta, .btnrow, .navtoggle, dialog { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ===========================================================================
   SEARCH — top bar control, results overlay, and the search.html listing
   =========================================================================== */
.searchwrap { position: relative; flex: 0 1 15rem; display: none; }
@media (min-width: 68rem) { .searchwrap { display: block; } }

.searchform { display: flex; align-items: center; gap: .4rem;
  background: rgba(226,237,234,.08); border: 1px solid rgba(226,237,234,.22);
  border-radius: 999px; padding: .3rem .4rem .3rem .75rem; }
.searchform:focus-within { border-color: var(--beam); background: rgba(226,237,234,.14); }
.searchform svg { width: 15px; height: 15px; color: rgba(226,237,234,.6); flex: none; }
.searchform input {
  font: inherit; font-size: .9rem; color: var(--paper); background: transparent;
  border: 0; padding: .25rem 0; width: 100%; min-width: 0;
}
.searchform input::placeholder { color: rgba(226,237,234,.5); }
.searchform input:focus { outline: none; }
.searchform kbd {
  font: 600 .68rem/1 var(--body); color: rgba(226,237,234,.5);
  border: 1px solid rgba(226,237,234,.25); border-radius: 3px;
  padding: .2rem .32rem; flex: none;
}
.searchform button { position: absolute; left: -9999px; }

.searchpanel {
  position: absolute; top: calc(100% + .55rem); right: 0; width: min(28rem, 84vw);
  background: var(--paper); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: var(--r); box-shadow: 0 20px 50px -18px rgba(11,20,24,.5);
  max-height: 68vh; overflow-y: auto; z-index: 120;
}
.searchpanel ul { list-style: none; margin: 0; padding: 0; }
.searchresult { margin: 0; border-bottom: 1px solid var(--hairline); }
.searchresult:last-child { border-bottom: 0; }
.searchresult a { display: block; padding: .8rem 1rem; text-decoration: none; color: var(--ink); }
.searchresult a:hover, .searchresult a:focus-visible { background: var(--glass); }
.searchresult strong { display: block; font-family: var(--display); font-size: 1rem; letter-spacing: -.01em; }
.searchresult__page {
  display: block; font-size: var(--t-micro); letter-spacing: .1em;
  text-transform: uppercase; color: var(--surf); font-weight: 600; margin: .15rem 0 .3rem;
}
.searchresult span:last-child { display: block; font-size: .87rem; color: var(--slate); line-height: 1.5; }
.searchresult--empty { padding: 1rem; }
.searchresult--empty p { margin: 0; font-size: .92rem; color: var(--slate); }

.navsheet .searchform { margin-top: var(--s4); border-radius: var(--r-sm); }
.navsheet .searchform kbd { display: none; }

/* search.html listing */
.bigsearch { display: flex; gap: .5rem; align-items: center;
  border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: .6rem .9rem;
  background: var(--paper); max-width: 34rem; }
.bigsearch svg { width: 18px; height: 18px; color: var(--slate); flex: none; }
.bigsearch input { font: inherit; font-size: 1.05rem; border: 0; width: 100%; }
.bigsearch input:focus { outline: none; }
.bigsearch:focus-within { border-color: var(--surf); box-shadow: var(--ring); }

.sectionlist { list-style: none; padding: 0; margin: var(--s4) 0 0;
  border-top: 1px solid var(--hairline); }
.sectionlist li { margin: 0; border-bottom: 1px solid var(--hairline); }
.sectionlist a { display: block; padding: .85rem .25rem; text-decoration: none; color: var(--ink); }
.sectionlist a:hover { background: var(--glass); }
.sectionlist strong { display: block; font-weight: 600; }
.sectionlist em {
  font-style: normal; font-size: var(--t-micro); letter-spacing: .1em;
  text-transform: uppercase; color: var(--surf); font-weight: 600;
}
.sectionlist span { display: block; font-size: .88rem; color: var(--slate); margin-top: .2rem; }

/* ---------------------------------------------------------------------------
   Long-form article furniture — used by the expanded page bodies
   --------------------------------------------------------------------------- */
.longform { max-width: 44rem; }
.longform h3 { margin-top: var(--s5); }
.longform h4 { font-family: var(--display); font-size: 1.02rem; margin: var(--s4) 0 var(--s2); }
.longform > p:first-child { font-size: var(--t-lead); color: var(--slate); }

.figure { margin: var(--s5) 0; }
.figure img { border-radius: var(--r); width: 100%; }
.figure figcaption {
  font-size: var(--t-small); color: var(--slate); margin-top: var(--s2);
  padding-left: var(--s3); border-left: 2px solid var(--beam);
}

.keyfacts { list-style: none; padding: 0; margin: var(--s4) 0;
  display: grid; gap: var(--s2); }
.keyfacts li {
  display: flex; gap: var(--s3); align-items: baseline; margin: 0;
  padding: .55rem 0; border-bottom: 1px solid var(--hairline);
}
.keyfacts b { flex: 0 0 9rem; font-weight: 600; font-size: .92rem; color: var(--deep); }
.keyfacts span { flex: 1; font-size: .95rem; color: var(--slate); }

.timeline { list-style: none; padding: 0; margin: var(--s4) 0; }
.timeline li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: var(--s3);
  padding: var(--s3) 0; border-bottom: 1px solid var(--hairline); margin: 0;
}
.timeline b {
  font-family: var(--display); font-weight: 700; color: var(--surf);
  font-variant-numeric: tabular-nums; font-size: .98rem;
}
.timeline p { margin: 0; font-size: .95rem; }
.timeline strong { display: block; font-weight: 600; color: var(--ink); }
