/* GZS public website (1.1, owner note #29). CSS only: no scripts, no external requests, system fonts.
   Palette from the approved brand board (docs/brand/branding_board_reference.png):
     charcoal #0B0D10, steel #3B3E44, tan #A89982, sand #D6B27A, signal orange #FF6A00, off-white #E8E6E0.
   Contrast (WCAG 2.x, on charcoal #0B0D10): off-white 15.6:1, tan 7.0:1, sand 10:1, orange 6.8:1.
   Orange is used for fills with charcoal text (6.8:1), rules, accents and links' underline; never
   white-on-orange (2.9:1). Checked again by the Playwright run (docs/media/v11_web_*). */

:root {
  --bg: #0b0d10;
  --bg-raised: #14171c;
  --bg-sunken: #08090b;
  --line: #2a2e35;
  --steel: #3b3e44;
  --orange: #ff6a00;
  --orange-hover: #ff8a33;
  --text: #e8e6e0;
  --muted: #a89982;
  --sand: #d6b27a;
  --red: #ff5c61;
  --amber: #ffb547;
  --green: #6fcf8e;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Bahnschrift Condensed", "Bahnschrift SemiCondensed", Bahnschrift, "DIN Condensed", "Roboto Condensed",
    "Arial Narrow", "Liberation Sans Narrow", "Helvetica Neue Condensed", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .eyebrow, .tagline, .btn, .mark, .nav-list a, .state, .pill, .tag, .strip-label, .notice-kind, summary {
  font-family: var(--font-head); font-stretch: condensed; letter-spacing: 0.06em;
}
h1, h2, h3, .eyebrow, .tagline, .btn, .mark, .nav-list a, .state, .tag, .strip-label, .notice-kind { text-transform: uppercase; }

a { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--orange-hover); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--orange); color: var(--bg); padding: 0.6rem 1rem; z-index: 10; font-weight: 700; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); font-size: 0.9em; overflow-wrap: anywhere; }
.hash { word-break: break-all; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- header -------------------------------------------------------------- */
.site-header { border-top: 4px solid var(--orange); border-bottom: 1px solid var(--line); background: var(--bg-sunken); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.16em; text-decoration: none; }
.mark-box { width: 0.55rem; height: 1.45rem; background: var(--orange); transform: skewX(-18deg); display: inline-block; box-shadow: 0.4rem 0 0 var(--orange); margin-right: 0.45rem; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; padding: 0; }
.nav-list a { display: inline-block; padding: 0.35rem 0.1rem; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 1rem; border-bottom: 3px solid transparent; }
.nav-list a:hover { color: #fff; }
.nav-list a[aria-current="page"] { color: var(--text); border-bottom-color: var(--orange); }

/* --- notices and warnings ----------------------------------------------- */
.notices { background: var(--bg-sunken); border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.notice { border-left: 5px solid var(--sand); background: var(--bg-raised); padding: 0.7rem 1rem; margin: 0.4rem 0; border-radius: 3px; }
.notice p { margin: 0.15rem 0; }
.notice-outage { border-left-color: var(--red); }
.notice-maintenance { border-left-color: var(--amber); }
.notice-info { border-left-color: var(--orange); }
.notice-kind { color: var(--sand); font-weight: 700; margin-right: 0.4rem; }
.notice-outage .notice-kind { color: var(--red); }
.notice-maintenance .notice-kind { color: var(--amber); }
.notice-time { color: var(--muted); font-size: 0.875rem; }
.warn { border: 1px solid var(--amber); border-left-width: 5px; background: #1d1810; color: var(--text); padding: 0.7rem 1rem; border-radius: 3px; }

/* Shown only after the page has been open for 90 s (PAGE_STALE_AFTER_S in admin/views/landing.js).
   No motion: it simply appears, so it also applies with reduced motion. */
.page-age { max-height: 0; overflow: hidden; visibility: hidden; background: #1d1810; border-bottom: 1px solid var(--amber); animation: page-age-reveal 0s linear 90s forwards; }
.page-age p { margin: 0; padding: 0.6rem 0; }
@keyframes page-age-reveal { to { max-height: 12rem; visibility: visible; } }

/* --- hero ---------------------------------------------------------------- */
.hero {
  padding: 3.5rem 0 3.25rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(255, 106, 0, 0.14) 0%, rgba(255, 106, 0, 0) 42%),
    repeating-linear-gradient(90deg, rgba(168, 153, 130, 0.05) 0 1px, transparent 1px 64px),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
.eyebrow { color: var(--sand); font-weight: 700; font-size: 0.95rem; margin: 0 0 0.8rem; letter-spacing: 0.18em; }
h1 { font-size: clamp(2.8rem, 9vw, 6rem); line-height: 0.95; margin: 0; font-weight: 700; letter-spacing: 0.03em; }
.hero h1 { text-shadow: 0 2px 0 #000; }
.tagline { font-size: clamp(1.15rem, 3vw, 1.7rem); font-weight: 700; margin: 0.9rem 0 0; padding-left: 0.9rem; border-left: 6px solid var(--orange); letter-spacing: 0.14em; }
.lede { max-width: 40rem; font-size: 1.1rem; margin: 1.4rem 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }
.cta-note { margin: 0.8rem 0 0; }

.btn { display: inline-block; padding: 0.75rem 1.5rem; font-size: 1.05rem; font-weight: 700; border-radius: 2px; border: 2px solid transparent; text-decoration: none; text-align: center; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: var(--bg); }
.btn-ghost { background: transparent; border-color: var(--steel); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-disabled { background: var(--bg-raised); border: 2px dashed var(--steel); color: var(--muted); cursor: default; }

.capture { margin: 0; }
.capture img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; background: var(--bg-raised); }
.hero-capture img { clip-path: polygon(1.5rem 0, 100% 0, 100% calc(100% - 1.5rem), calc(100% - 1.5rem) 100%, 0 100%, 0 1.5rem); box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.5); }
.capture figcaption { margin-top: 0.55rem; font-size: 0.8rem; color: var(--muted); padding-left: 0.6rem; border-left: 3px solid var(--orange); }

/* --- at-a-glance strip --------------------------------------------------- */
.strip { background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem 2rem; }
.strip p { margin: 0; }
.strip-label { color: var(--muted); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; }
.strip-value { font-size: 1.15rem; font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--steel); font-weight: 700; font-size: 1.02rem; background: var(--bg-sunken); color: var(--text); }
.pill-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--muted); }
.pill-operational { border-color: var(--green); }
.pill-operational .pill-dot { background: var(--green); }
.pill-maintenance { border-color: var(--amber); }
.pill-maintenance .pill-dot { background: var(--amber); }
.pill-degraded, .pill-outage { border-color: var(--red); }
.pill-degraded .pill-dot, .pill-outage .pill-dot { background: var(--red); }

/* --- sections ------------------------------------------------------------ */
.section { padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.page-head { padding: 2.75rem 0 2rem; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, rgba(255, 106, 0, 0.12) 0%, rgba(255, 106, 0, 0) 40%), var(--bg); }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
.status-line { margin: 1.1rem 0 0.6rem; }
.section h2 { font-size: 1.6rem; margin: 0 0 1.1rem; font-weight: 700; }
.section h2::after { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--orange); margin-top: 0.45rem; transform: skewX(-18deg); }
.section h3 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.features article { background: var(--bg-raised); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 3px; padding: 1.25rem; }
.features h2 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.features h2::after { display: none; }
.features p { margin: 0; color: var(--muted); }

.media-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: center; }

.empty { padding: 1.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--steel); border-radius: 3px; background: var(--bg-sunken); font-size: 1.05rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 3px; background: var(--bg-raised); margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; color: var(--muted); background: var(--bg-sunken); white-space: nowrap; font-weight: 700; }
tbody th { font-weight: 600; }
th.num, td.num { text-align: right; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

.state, .tag { display: inline-block; padding: 0.05rem 0.5rem; border: 1px solid var(--steel); border-radius: 2px; font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.state-live { border-color: var(--orange); background: var(--orange); color: var(--bg); }
.state-lobby, .state-ok { border-color: var(--green); color: var(--green); }
.state-bad { border-color: var(--red); color: var(--red); }

.kv { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: 0.45rem 1rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv-api dt { color: var(--sand); }

.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.issue-list li { background: var(--bg-raised); border: 1px solid var(--line); border-left: 4px solid var(--amber); padding: 0.75rem 1rem; border-radius: 3px; }
.issue-list p { margin: 0.3rem 0 0; }
.issue-list.compact li { border-left-color: var(--steel); }

/* --- releases ------------------------------------------------------------ */
.version-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; padding: 0; }
.version-nav a { display: inline-block; padding: 0.3rem 0.75rem; border: 1px solid var(--steel); border-radius: 2px; text-decoration: none; font-family: var(--font-mono); }
.version-nav a:hover { border-color: var(--orange); }
.release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.8rem; }
.release h2::after { flex-basis: 100%; margin-top: 0.2rem; }
.release-title { font-size: 1.05rem; color: var(--muted); letter-spacing: 0.04em; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; color: var(--muted); margin: 0 0 1rem; }
.summary { max-width: 52rem; }
details { border: 1px solid var(--line); border-radius: 3px; background: var(--bg-raised); margin: 0.6rem 0; }
summary { cursor: pointer; padding: 0.7rem 1rem; font-weight: 700; font-size: 1.05rem; }
summary:hover { color: #fff; }
details[open] > summary { border-bottom: 1px solid var(--line); }
details > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.change-list { margin: 0.8rem 1rem 1rem; padding-left: 1.1rem; }
.change-list li { margin: 0.35rem 0; }
.change-list li::marker { color: var(--orange); }

.download-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.download-list p { margin: 0.3rem 0 0; }
.steps { padding-left: 1.2rem; }
.steps li { margin: 0.4rem 0; }

/* --- footer -------------------------------------------------------------- */
.site-footer { padding: 2rem 0 3rem; background: var(--bg-sunken); border-top: 4px solid var(--steel); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; }
.disclaimer { max-width: 52rem; margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }

.notfound { padding: 5rem 0; }
.notfound h1 { font-size: clamp(2.2rem, 8vw, 4rem); margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .hero-grid, .media-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2rem; }
}
@media (max-width: 560px) {
  /* Tables marked stack-sm become one card per row on phones (the header row is visually hidden,
     each cell shows its column name from data-label). */
  table.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm th, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  table.stack-sm tbody tr:last-child { border-bottom: 0; }
  table.stack-sm th, table.stack-sm td { border-bottom: 0; padding: 0.2rem 0.85rem; text-align: left; }
  table.stack-sm tbody th { font-size: 1.05rem; }
  table.stack-sm td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
  .nav-list { gap: 0.1rem 0.9rem; }
  .nav-list a { font-size: 0.95rem; }
  .hero { padding: 2.25rem 0 2.25rem; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .kv dd { margin-bottom: 0.6rem; }
  .btn { width: 100%; }
  .section { padding: 2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* /releases: the pre-release line and the curated bullets (1.1 follow-up) */
.prerelease { display: inline-block; margin: 1rem 0 0; padding: 0.45rem 0.9rem; border: 1px solid var(--amber); border-left-width: 5px; background: #1d1810; border-radius: 3px; }
.release .change-list { margin: 0.4rem 0 0; }

/* 1.3: "What's new" on the landing page */
.whats-new { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whats-new-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: center; }
.whats-new .capture img { aspect-ratio: 1200 / 630; }
.whats-new h2 { margin-top: 0.2rem; }
@media (max-width: 900px) { .whats-new-grid { grid-template-columns: 1fr; } }
