/* "Descent" theme (2026 redesign). Loaded last; overrides legacy + Bootstrap styles. */
:root {
    --bg: #050505;
    --panel: #0e0e0e;
    --line: #1f1f1f;
    --ink: #ececec;
    --muted: #a3a3a3;
    --accent: #f2a33a;
    --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
    --wrap: 1180px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }
a, a:visited { color: var(--accent); text-decoration: none; }
a:hover { color: #ffc46b; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Header */
.site-header {
    position: absolute; z-index: 20; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 18px 40px;
    background: linear-gradient(rgba(0,0,0,.75), transparent);
}
.is-inner .site-header { position: sticky; background: rgba(5,5,5,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.brand, .brand:visited, .brand:hover { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: .2em; font-size: .85rem; text-decoration: none; }
.brand img { border-radius: 50%; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; }
.nav-link, .nav-link:visited { color: #d6d6d6; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid #444; color: var(--ink); border-radius: 6px; padding: 4px 10px; font-size: 1.2rem; cursor: pointer; }

/* Home hero */
.hero { position: relative; height: 100vh; min-height: 560px; max-height: 780px; overflow: hidden; }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 60% 45%, transparent 0 140px, rgba(0,0,0,.92) 440px); }
.hero-text { position: absolute; z-index: 2; left: 40px; right: 40px; bottom: 70px; max-width: 560px; }
.hero-text h1 { font-size: clamp(3.2rem, 8vw, 6rem); line-height: .9; margin: 0 0 16px; text-transform: uppercase; letter-spacing: -.04em; }
.hero-text p { color: #c4c4c4; margin: 0; }
.eyebrow, .hero-text .eyebrow { color: var(--accent); font: 600 .75rem/1.4 var(--mono); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 14px; }

/* Depth gauge (decorative, home only) */
.gauge { position: fixed; right: 28px; top: 120px; bottom: 40px; width: 60px; font: 11px var(--mono); color: #777; border-left: 1px solid #2b2b2b; z-index: 3; pointer-events: none; }
.gauge div { position: absolute; left: -4px; display: flex; gap: 8px; align-items: center; }
.gauge i { width: 8px; height: 1px; background: #777; }
.gauge .on { color: var(--accent); }
.gauge .on i { background: var(--accent); width: 16px; }

/* Home depth sections */
.level { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 40px; padding: 80px 120px 80px 40px; border-top: 1px solid var(--line); max-width: 1240px; align-items: start; }
.level .d { font: 700 2.6rem/1 var(--mono); color: var(--accent); }
.level h2 { margin: 0 0 12px; font-size: 1.9rem; }
.level p, .lead-text { color: var(--muted); }
.lead-text { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.level > img { width: 100%; height: 300px; object-fit: cover; }
.link, .link:visited { display: inline-block; margin: 8px 24px 0 0; color: var(--accent); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 16px 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: .7rem; color: #888; text-transform: uppercase; letter-spacing: .1em; font-weight: 400; }
.stats dd { margin: 0; font: 700 1.9rem var(--mono); }
.issues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.issues a { aspect-ratio: 3/4; background: #141414; border: 1px solid #2a2a2a; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font-size: .75rem; color: #999; }
.issues a:hover { border-color: var(--accent); text-decoration: none; }
.issues b { font: 700 1.6rem var(--mono); color: var(--ink); }

/* Inner pages */
.page-band { padding: 56px 0 32px; border-bottom: 1px solid var(--line);
    background: radial-gradient(circle at 80% 0, rgba(242,163,58,.10), transparent 50%); }
.page-band h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 8px 0 0; }
.crumbs { font: .75rem/1.6 var(--mono); color: #888; text-transform: uppercase; letter-spacing: .08em; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a, .crumbs a:visited { color: #aaa; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; padding-bottom: 72px; }
.prose { max-width: 72ch; color: #d4d4d4; text-align: left !important; }
.prose [style*="color"] { color: inherit !important; }
.prose [style*="background"] { background: transparent !important; }
.prose table { max-width: 100%; color: inherit; }
.prose img { border-radius: 2px; }
.prose a, .prose a:visited { color: var(--accent); }
.prose h2, .prose h3 { margin-top: 1.6em; }

.side-col { font-size: .9rem; color: var(--muted); }

/* Cave atlas page shell */
.atlas { padding-top: 40px; padding-bottom: 40px; }
.sponsors { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.sponsors-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.sponsors-row img { height: 72px; width: auto; background: #fff; padding: 6px; border-radius: 3px; }
.sponsors-row p { flex: 1 1 320px; font-size: .8rem; font-style: italic; color: #888; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: #777; font-size: .85rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-depth b { display: block; color: var(--accent); font: 700 1.4rem var(--mono); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a, .site-footer nav a:visited { color: #aaa; }
.copy { grid-column: 1 / -1; margin: 0; }

/* Responsive */
@media (max-width: 1000px) {
    .layout { grid-template-columns: 1fr; gap: 40px; }
    .level { grid-template-columns: 1fr 1fr; padding-right: 90px; }
    .level .d { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 20px; }
    .site-header { padding: 14px 20px; flex-wrap: wrap; }
    .nav-toggle { display: block; }
    .site-nav { display: none; width: 100%; flex-direction: column; background: rgba(5,5,5,.96); padding: 8px 20px 12px; box-sizing: border-box; border-radius: 6px; }
    .site-nav.open { display: flex; }
    .nav-link { padding: 10px 0; font-size: .8rem; }
    .hero-text { left: 20px; right: 56px; bottom: 40px; }
    .gauge { right: 8px; width: 34px; font-size: 9px; }
    .level { grid-template-columns: 1fr; gap: 16px; padding: 56px 56px 56px 20px; }
    .level .d { font-size: 2rem; }
    .level > img { height: 220px; }
    .stats { gap: 22px; }
    .stats dd { font-size: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; }
}

/* ===== Formatted legacy content (header/Prose.php) ===== */
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.05rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 2.2em 0 .9em; font-weight: 600; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .6em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose p.lines { line-height: 1.8; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 4/3; height: auto; border: 1px solid #2a2a2a; filter: grayscale(.4) brightness(.85); }
.prose small { display: block; color: #888; margin-top: 6px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 0 1.6em; border-top: 1px solid #262626; }
.facts > div { display: contents; }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid #262626; margin: 0; }
.facts dt { font: 600 .72rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #8a8a8a; padding-right: 28px; }
.facts dd { color: var(--ink); }

.toc { list-style: none; padding: 0; margin: 0 0 1.6em; columns: 2 260px; column-gap: 32px; counter-reset: toc; }
.toc li { break-inside: avoid; padding: 7px 0 7px 38px; position: relative; border-bottom: 1px solid #1c1c1c; font-size: .9rem; letter-spacing: .03em; color: #cfcfcf; }
.toc li::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); position: absolute; left: 0; font: .72rem/2 var(--mono); color: var(--accent); }

.link-list { list-style: none; padding: 0; margin: 0 0 1.6em; }
.link-list li { padding: 12px 0; border-bottom: 1px solid #1f1f1f; }
.link-list a { font-weight: 600; }
.link-list a[target="_blank"]::after { content: " ↗"; font-size: .8em; color: #888; }
.link-desc { display: block; color: #8f8f8f; font-size: .9rem; margin-top: 2px; }

a.download, a.download:visited {
    display: flex; align-items: center; gap: 14px; max-width: 640px;
    padding: 14px 18px; border: 1px solid #2f2f2f; background: #0f0f0f; color: var(--ink); border-radius: 3px;
}
a.download:hover { border-color: var(--accent); text-decoration: none; color: #fff; }
.download-kind { flex: none; font: 700 .7rem var(--mono); color: #000; background: var(--accent); padding: 4px 7px; border-radius: 2px; letter-spacing: .08em; }

/* ===== Sidebar (header/RightTable.php) ===== */
.side-block { margin-bottom: 36px; }
.side-title { font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .15em; color: var(--accent); border-top: 1px solid #333; padding-top: 12px; margin: 0 0 14px; }
.side-sub { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #bdbdbd; margin: 18px 0 8px; }
.side-links, .ranking, .side-gallery, .covers { list-style: none; padding: 0; margin: 0; }
.side-links a { display: block; padding: 7px 0; border-bottom: 1px solid #1c1c1c; color: #d6d6d6; }
.side-links a[aria-current="page"] { color: var(--accent); }
.side-links a[aria-current="page"]::before { content: "▸ "; }
.ranking { counter-reset: r; }
.ranking a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #191919; color: #cfcfcf; font-size: .86rem; }
.ranking a::before { counter-increment: r; content: counter(r); width: 1.6em; flex: none; color: #666; font: .75rem/1.9 var(--mono); }
.ranking a span:first-of-type { flex: 1; }
.ranking a:hover { color: var(--accent); text-decoration: none; }
.ranking .num { font: .78rem/1.9 var(--mono); color: #9a9a9a; white-space: nowrap; }
.side-note { font-size: .75rem; color: #666; margin: 8px 0 0; }
.side-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.side-gallery img, .side-survey img { width: 100%; height: 78px; object-fit: cover; display: block; filter: saturate(.85); transition: filter .2s; }
.side-gallery a:hover img { filter: none; outline: 1px solid var(--accent); }
.side-survey img { height: auto; background: #fff; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.covers img { width: 100%; height: auto; display: block; opacity: .85; }
.covers a:hover img { opacity: 1; outline: 1px solid var(--accent); }

/* ===== Cave atlas ===== */
.atlas-intro { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }
.atlas-intro strong { color: var(--ink); }
.cave-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.cave-card a { display: block; background: #0e0e0e; border: 1px solid #222; color: var(--ink); height: 100%; transition: border-color .2s, transform .2s; }
.cave-card a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.cave-card img, .cave-card-noimg { width: 100%; aspect-ratio: 480/330; height: auto; object-fit: cover; display: block; }
.cave-card-noimg { display: grid; place-items: center; background: #141414; color: #555; font: .75rem var(--mono); }
.cave-card-body { display: block; padding: 14px 16px 16px; }
.cave-card-name { display: block; font-weight: 700; font-size: 1.05rem; }
.cave-card-meta { display: block; color: #8a8a8a; font-size: .82rem; margin-top: 2px; }
.cave-card-nums { display: flex; gap: 16px; margin-top: 10px; font: .8rem var(--mono); color: var(--accent); }

.cave-where { font: .8rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #8a8a8a; margin: 0 0 22px; }
.cave-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #262626; margin: 0 0 36px; }
.cave-stats > div { padding: 18px 20px; border-right: 1px solid #262626; display: flex; flex-direction: column-reverse; }
.cave-stats > div:last-child { border-right: 0; }
.cave-stats dt { font: .7rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #8a8a8a; }
.cave-stats dd { margin: 0 0 4px; font: 700 1.8rem/1.1 var(--mono); color: var(--ink); }
.cave-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.survey-fig { margin: 0; }
.survey-fig img { width: 100%; height: auto; background: #fff; border: 1px solid #333; }
.survey-fig figcaption { font: .72rem var(--mono); color: #888; text-transform: uppercase; letter-spacing: .1em; margin-top: 8px; }
.atlas h2 { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .15em; color: var(--accent); margin: 44px 0 16px; }
.photo-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.photo-grid img { width: 100%; height: auto; aspect-ratio: 480/330; object-fit: cover; display: block; }
.photo-grid a:hover img { outline: 1px solid var(--accent); }

@media (max-width: 760px) {
    .cave-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cave-stats > div:nth-child(2) { border-right: 0; }
    .cave-stats > div:nth-child(-n+2) { border-bottom: 1px solid #262626; }
    .cave-stats dd { font-size: 1.4rem; }
    .cave-cols { grid-template-columns: 1fr; }
    .facts { grid-template-columns: 1fr; }
    .facts dt { border-bottom: 0; padding-bottom: 0; }
}
.cave-card img.is-survey { object-fit: contain; background: #e9e6df; padding: 8px; }
.prose h2.year { font: 700 1.6rem/1 var(--mono); color: var(--accent); letter-spacing: 0; text-transform: none; margin: 1.8em 0 .6em; padding-top: 18px; border-top: 1px solid #222; }
.prose > h2.year:first-child { border-top: 0; padding-top: 0; }
.bullets { padding-left: 1.1em; margin: 0 0 1.2em; }
.bullets li { margin-bottom: .55em; }
.bullets li::marker { color: var(--accent); }

/* Live depth gauge (home): marker follows scroll */
.gauge .tick { transition: color .3s; }
.gauge .tick i { transition: width .3s, background .3s; }
.gauge-fill { position: absolute; left: -1px; top: 0; width: 1px; height: 0; background: var(--accent); }
.gauge-marker { position: absolute; left: -6px; top: 0; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 0 4px rgba(242,163,58,.18), 0 0 18px rgba(242,163,58,.55); }
.gauge-marker span { position: absolute; right: 18px; top: -4px; white-space: nowrap; font: 700 11px var(--mono); color: var(--accent);
    background: rgba(5,5,5,.85); padding: 1px 6px; border-radius: 2px; }
@media (max-width: 760px) { .gauge-marker span { display: none; } }

/* Map embed (header/Map.php) */
.map-embed { margin: 8px 0 28px; border: 1px solid #2a2a2a; background: #0e0e0e; }
.map-embed iframe { display: block; width: 100%; aspect-ratio: 16/10; height: auto; border: 0; filter: grayscale(.35) brightness(.9) contrast(1.05); }
.map-embed figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 12px 16px; font: .75rem/1.5 var(--mono); color: #9a9a9a; text-transform: uppercase; letter-spacing: .06em; }
.map-embed figcaption a { color: var(--accent); }

/* ---------- Smart search (js/search.js) ---------- */
.site-nav { margin-left: auto; }
.search-trigger {
    order: 3; display: inline-flex; align-items: center; gap: 10px; flex: none;
    height: 36px; padding: 0 8px 0 12px; border: 1px solid #2e2e2e; border-radius: 999px;
    background: rgba(20,20,20,.7); color: #bdbdbd; font: 500 .8rem var(--sans); cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
}
.search-trigger:hover { border-color: var(--accent); color: var(--ink); background: rgba(30,30,30,.9); }
.search-trigger svg, .ss-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.search-trigger kbd, .ss-foot kbd, .ss-esc {
    font: 600 .66rem/1 var(--mono); color: #9a9a9a; background: #1a1a1a; border: 1px solid #333;
    border-bottom-width: 2px; border-radius: 5px; padding: 4px 6px; box-shadow: none;
}

html.ss-lock { overflow: hidden; }
.ss { position: fixed; inset: 0; z-index: 1000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.ss-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px) saturate(.8); opacity: 0; transition: opacity .16s ease; }
.ss-panel {
    position: relative; width: 100%; max-width: 680px; max-height: 72vh; display: flex; flex-direction: column;
    background: linear-gradient(180deg, #141414, #0c0c0c); border: 1px solid #2a2a2a; border-radius: 16px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(242,163,58,.06), 0 0 60px -30px rgba(242,163,58,.35);
    overflow: hidden; opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .16s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.ss.is-open .ss-backdrop, .ss.is-open .ss-panel { opacity: 1; }
.ss.is-open .ss-panel { transform: none; }

.ss-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px 0 18px; border-bottom: 1px solid #222; }
.ss-lens { color: var(--accent); width: 20px; height: 20px; }
.ss-input {
    flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: transparent; color: var(--ink);
    font: 400 1.12rem var(--sans); caret-color: var(--accent);
}
.ss-input::placeholder { color: #6d6d6d; }
.ss-input::-webkit-search-cancel-button { display: none; }
.ss-clear { border: 0; background: #222; color: #aaa; width: 24px; height: 24px; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; }
.ss-clear:hover { background: #333; color: #fff; }
.ss-esc { cursor: pointer; }

.ss-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.ss-group {
    display: flex; justify-content: space-between; padding: 14px 12px 6px;
    font: 600 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #777;
}
.ss-group:first-child { padding-top: 6px; }
.ss-group span { color: #555; }
.ss-item {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px;
    cursor: pointer; color: #cfcfcf; scroll-margin: 8px;
}
.ss-item .ss-ico { color: #6f6f6f; width: 20px; height: 20px; padding: 7px; box-sizing: content-box; background: #181818; border: 1px solid #262626; border-radius: 8px; }
.ss-item[aria-selected="true"] { background: #1c1813; color: var(--ink); }
.ss-item[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); }
.ss-item[aria-selected="true"] .ss-ico { color: var(--accent); border-color: rgba(242,163,58,.35); background: rgba(242,163,58,.08); }
.ss-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ss-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-desc { font-size: .8rem; line-height: 1.45; color: #8d8d8d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss-crumb { flex: none; max-width: 30%; font: .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #5f5f5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-item[aria-selected="true"] .ss-crumb { color: #9a7b4f; }
.ss mark { background: none; color: var(--accent); padding: 0; font-weight: 700; }
.ss-desc mark { font-weight: 600; }
.ss-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: #8a8a8a; font-size: .88rem; }
.ss-empty b { color: var(--ink); font-size: 1rem; }
.ss-spin { width: 22px; height: 22px; border: 2px solid #333; border-top-color: var(--accent); border-radius: 50%; animation: ss-spin .7s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }

.ss-foot { display: flex; align-items: center; gap: 18px; padding: 10px 16px; border-top: 1px solid #1f1f1f; background: #0a0a0a; font-size: .72rem; color: #6a6a6a; }
.ss-foot kbd { margin-right: 3px; padding: 2px 5px; }
.ss-status { margin-left: auto; font-family: var(--mono); }

@media (prefers-reduced-motion: reduce) { .ss-panel, .ss-backdrop { transition: none; } }
@media (max-width: 760px) {
    .brand { margin-right: auto; }
    .search-trigger { order: 2; padding: 0 10px; }
    .search-trigger kbd, .search-trigger-label { display: none; }
    .nav-toggle { order: 3; }
    .site-nav { order: 4; margin-left: 0; }
    .ss { padding: 0; }
    .ss-panel { max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
    .ss-foot span:not(.ss-status) { display: none; }
}
