/* zoobc.how — quiz + learning site, on top of sippis-shell.css (dark, centred body). */
body.zq { --zq-card: rgba(10, 30, 38, 0.62); --zq-line: rgba(43, 192, 200, 0.22); --zq-muted: #9fc3cd;
          --zq-ok: #33c48d; --zq-bad: #ff7b5c; --zq-mid: #f2c14e; --zq-gold: #f2a93b; }
.zq-main { width: 100%; max-width: 880px; padding: 1.5rem 1rem 2rem; text-align: start; display: flex; flex-direction: column; gap: 1.25rem; }
.zq-main h1, .zq-main h2, .zq-main h3 { line-height: 1.25; margin: 0 0 .6rem; }
.zq-main p { line-height: 1.6; margin: 0 0 .8rem; }
.zq-main a { color: #5fd6dc; }
.zq-main code { font-size: .9em; word-break: break-all; }
.zq-note { color: var(--zq-muted); font-size: .9rem; }
.zq-lead { font-size: 1.12rem; color: #d5e6ea; }

.zq-card { background: var(--zq-card); border: 1px solid var(--zq-line); border-radius: 16px; padding: 1.4rem 1.5rem; }
.zq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.zq-grid .zq-card h3 { font-size: 1.05rem; color: #5fd6dc; }
.zq-grid .zq-card p { font-size: .95rem; color: #d5e6ea; margin: 0; }

.zq-hero { text-align: center; padding: 2rem 0 .5rem; }
.zq-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
.zq-kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: #5fd6dc; font-weight: 700; }
.zq-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1rem 0 .4rem; }
.zq-hero .zq-actions { justify-content: center; }
.zq-actions form { margin: 0; }

.zq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .65rem 1.3rem;
          border-radius: 999px; border: 1px solid var(--primary, #0EADB5); background: var(--primary, #0EADB5); color: #fff !important;
          font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.zq-btn:hover { filter: brightness(1.1); }
.zq-btn:active { transform: translateY(1px); }
.zq-btn[disabled] { opacity: .45; cursor: not-allowed; }
.zq-btn-ghost { background: transparent; color: #e6f4f6 !important; border-color: rgba(230, 244, 246, .35); }
.zq-btn-sm { min-height: 32px; padding: .3rem .8rem; font-size: .85rem; }

/* question screen */
.zq-progress { height: 6px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.zq-progress span { display: block; height: 100%; background: var(--primary, #0EADB5); border-radius: 99px; }
.zq-qmeta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; color: var(--zq-muted); font-size: .9rem; margin-bottom: 1rem; }
.zq-diff { letter-spacing: .1em; color: #5fd6dc; }
.zq-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: #e6f4f6; background: rgba(255,255,255,.07); padding: .2rem .7rem; border-radius: 99px; }
.zq-timer-low { color: #1a2b3c; background: var(--zq-mid); }
.zq-prompt { font-size: clamp(1.25rem, 3vw, 1.6rem); }
.zq-hint { color: #5fd6dc; font-weight: 600; font-size: .95rem; }
.zq-options { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.zq-option { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; cursor: pointer;
             border: 1px solid rgba(230,244,246,.18); background: rgba(255,255,255,.03); transition: border-color .15s, background .15s; }
.zq-option:hover { border-color: rgba(95,214,220,.6); }
.zq-option input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--primary, #0EADB5); flex: 0 0 auto; }
.zq-option:has(input:checked) { border-color: var(--primary, #0EADB5); background: rgba(14,173,181,.14); }
.zq-play-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin: 1.2rem 0 .8rem; }
.zq-help summary { cursor: pointer; color: #5fd6dc; font-weight: 600; padding: .6rem 0; list-style: none; }
.zq-help summary::before { content: "? "; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; border: 1px solid currentColor; margin-inline-end: .35em; font-size: .85em; }
.zq-help[open] { max-width: 420px; background: rgba(255,255,255,.04); border-radius: 12px; padding: 0 1rem 1rem; }
.zq-help p { font-size: .92rem; color: #d5e6ea; }

.zq-explain { scroll-margin-top: 96px; border-inline-start: 4px solid var(--zq-mid); background: rgba(242,193,78,.07); border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin: 1rem 0; }
.zq-explain-flag { color: var(--zq-mid); font-weight: 600; font-size: .92rem; }
.zq-explain-body { color: #e6f4f6; }
.zq-explain-body img { max-width: 100%; height: auto; }
.zq-figure { margin: .6rem 0 1rem; }
.zq-figure img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* results */
.zq-flash { padding: .8rem 1rem; border-radius: 12px; font-weight: 600; }
.zq-flash-ok { background: rgba(51,196,141,.18); border: 1px solid var(--zq-ok); }
.zq-flash-err { background: rgba(255,123,92,.15); border: 1px solid var(--zq-bad); }
.zq-result { text-align: center; }
.zq-ring { --p: 0; --c: var(--primary, #0EADB5); width: 150px; height: 150px; margin: .4rem auto 1rem; border-radius: 50%; display: grid; place-items: center;
           background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.zq-ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #0f2a35; }
.zq-ring b { position: relative; font-size: 2.1rem; }
.zq-grade-expert .zq-ring { --c: var(--zq-gold); }
.zq-grade-expert h1 { color: var(--zq-gold); }
.zq-cta-box { text-align: start; margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: rgba(255,255,255,.04); }
.zq-cta-list { margin: 0 0 .5rem; padding-inline-start: 1.2rem; line-height: 1.6; }
.zq-certbox { display: grid; grid-template-columns: 1fr minmax(160px, 280px); gap: 1.2rem; align-items: center; }
.zq-cert-thumb img { width: 100%; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.35); display: block; }
@media (max-width: 620px) { .zq-certbox { grid-template-columns: 1fr; } }
.zq-inline-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.zq-inline-form input[type=text] { flex: 1 1 320px; min-width: 0; min-height: 44px; padding: .5rem .8rem; border-radius: 10px;
     border: 1px solid rgba(230,244,246,.25); background: rgba(0,0,0,.25); color: #fff; font: 0.95rem ui-monospace, monospace; }

.zq-review { display: flex; flex-direction: column; gap: 1rem; }
.zq-rq header { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: .6rem; font-size: .88rem; color: var(--zq-muted); }
.zq-rq h3 { font-size: 1.12rem; }
.zq-rq-n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-weight: 700; }
.zq-badge { margin-inline-start: auto; padding: .15rem .65rem; border-radius: 99px; font-weight: 700; font-size: .8rem; }
.zq-badge-right { background: rgba(51,196,141,.2); color: var(--zq-ok); }
.zq-badge-partial { background: rgba(242,193,78,.18); color: var(--zq-mid); }
.zq-badge-wrong { background: rgba(255,123,92,.18); color: var(--zq-bad); }
.zq-badge-helped { background: rgba(159,195,205,.15); color: var(--zq-muted); }
.zq-rq-right { border-color: rgba(51,196,141,.4); }
.zq-ropts { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .45rem; }
.zq-ro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem .7rem; padding: .6rem .8rem; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid transparent; }
.zq-ro-icon { font-weight: 800; width: 1.2rem; flex: 0 0 auto; }
.zq-ro > div { flex: 1 1 14rem; min-width: 0; }
.zq-ro small { display: block; color: var(--zq-muted); margin-top: .15rem; }
/* The tag judges the player's choice; the left icon says whether the option itself is right. */
.zq-ro-tag { margin-inline-start: auto; font-size: .78rem; padding: .1rem .6rem; border-radius: 99px; white-space: nowrap; }
.zq-ro-hit .zq-ro-tag, .zq-ro-skip .zq-ro-tag { background: rgba(51,196,141,.16); color: var(--zq-ok); }
.zq-ro-miss .zq-ro-tag, .zq-ro-bad .zq-ro-tag { background: rgba(255,123,92,.16); color: var(--zq-bad); }
.zq-ro-hit  { border-color: rgba(51,196,141,.55); background: rgba(51,196,141,.1); }
.zq-ro-hit .zq-ro-icon, .zq-ro-miss .zq-ro-icon { color: var(--zq-ok); }
.zq-ro-miss { border-color: rgba(51,196,141,.35); border-style: dashed; }
.zq-ro-bad  { border-color: rgba(255,123,92,.55); background: rgba(255,123,92,.08); }
.zq-ro-bad .zq-ro-icon, .zq-ro-skip .zq-ro-icon { color: var(--zq-bad); }
.zq-ro-skip { opacity: .75; }
.zq-rq-explain summary, .zq-flag summary { cursor: pointer; color: #5fd6dc; font-weight: 600; padding: .3rem 0; }
.zq-flag summary { font-weight: 400; font-size: .85rem; color: var(--zq-muted); }
.zq-flag textarea { width: 100%; margin: .5rem 0; padding: .6rem; border-radius: 10px; border: 1px solid rgba(230,244,246,.25); background: rgba(0,0,0,.25); color: #fff; font: inherit; }
.zq-source { font-size: .85rem; color: var(--zq-muted); }

.zq-stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: .4rem 0 .8rem; }
.zq-stat { flex: 1 1 120px; background: rgba(255,255,255,.04); border-radius: 12px; padding: .8rem 1rem; }
.zq-stat b { display: block; font-size: 1.5rem; }
.zq-stat span { color: var(--zq-muted); font-size: .85rem; }
.zq-sealed { text-align: center; }
.zq-sealed .zq-actions { justify-content: center; }
.zq-seal { font-size: 3rem; }

/* certificate page */
.zq-cert-page { display: flex; flex-direction: column; gap: 1.2rem; }
.zq-cert-img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.zq-verified { color: var(--zq-ok); font-weight: 700; }
.zq-share a { margin: 0 .15rem; }

/* admin */
.zq-table-wrap { overflow-x: auto; }
.zq-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.zq-table th, .zq-table td { padding: .4rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); text-align: start; white-space: nowrap; }
.zq-table select { background: #0f2a35; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; }
.zq-table form { margin: 0; }
.zq-flagrow { border-top: 1px solid rgba(255,255,255,.08); padding: .7rem 0; }
.zq-flagrow form { display: flex; gap: .5rem; }

.zq-foot { color: var(--zq-muted); font-size: .85rem; padding: 1rem; }
.zq-foot a { color: #9fc3cd; }

/* brand + tracks (2026-10-26) */
.zq-hero-logo { display: block; width: clamp(120px, 22vw, 180px); height: auto; margin: 0 auto 1rem; }
.zq-section-h { font-size: 1.3rem; margin: .5rem 0 1rem; }
.zq-resume { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; }
.zq-resume p { margin: 0; }
.zq-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.zq-track { display: flex; flex-direction: column; gap: .2rem; }
.zq-track header { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.zq-track h3 { font-size: 1.2rem; margin: 0 0 .3rem; }
.zq-track p { color: #d5e6ea; font-size: .95rem; }
.zq-track form { margin-top: auto; }
.zq-track-all { grid-column: 1 / -1; border-color: rgba(155, 61, 151, .55);
                background: linear-gradient(135deg, rgba(27, 166, 222, .16), rgba(155, 61, 151, .18)), var(--zq-card); }
.zq-track-done { border-color: rgba(51, 196, 141, .55); }
.zq-track-soon { opacity: .7; }
.zq-check { flex: 0 0 auto; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
            background: var(--zq-ok); color: #0b1b25; font-weight: 900; font-size: 1.1rem; }
.zq-track-best { font-size: .92rem !important; }
.zq-track-best b { color: var(--zq-ok); font-size: 1.05rem; }
.zq-copy { display: flex; gap: .5rem; margin: .4rem 0 .8rem; max-width: 34rem; }
.zq-copy input { flex: 1 1 auto; min-width: 0; padding: .45rem .7rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; font: inherit; font-size: .9rem; }
.zq-fact { display: inline-block; font-size: .72rem; padding: .05rem .5rem; border-radius: 99px; border: 1px solid rgba(242,193,78,.5); color: var(--zq-mid); cursor: help; white-space: nowrap; }
.zq-qfigure { margin: .4rem 0 1rem; }
/* ─── wiki ─── */
.zw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.zw-home { font-weight: 800; font-size: 1.05rem; color: inherit; text-decoration: none; }
.zw-search { flex: 1 1 14rem; display: flex; }
.zw-search input { width: 100%; padding: .45rem .8rem; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.25); color: inherit; font: inherit; }
.zw-links { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .9rem; }
.zw-page-head h1 { margin-bottom: .4rem; }
.zw-cat { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--primary, #0EADB5); text-decoration: none; font-weight: 700; }
.zw-tabs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .9rem; align-items: center; margin-bottom: .6rem; }
.zw-langs { display: inline-flex; gap: .35rem; margin-inline-start: auto; }
.zw-langs a { padding: 0 .35rem; border-radius: 6px; text-decoration: none; font-size: .8rem; border: 1px solid rgba(255,255,255,.15); }
.zw-langs a[aria-current] { background: var(--primary, #0EADB5); color: #fff; border-color: transparent; }
.zw-article { line-height: 1.7; overflow-wrap: anywhere; }
.zw-article h2 { margin-top: 1.6rem; padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.zw-article h3 { margin-top: 1.2rem; }
.zw-article ul, .zw-article ol { padding-inline-start: 1.4rem; margin: 0 0 .9rem; }
.zw-article li { margin: .2rem 0; }
.zw-article code { background: rgba(255,255,255,.08); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
.zw-code { background: rgba(0,0,0,.35); padding: .8rem 1rem; border-radius: 10px; overflow-x: auto; font-size: .88rem; }
.zw-code code { background: none; padding: 0; }
.zw-article a.zw-new, a.zw-new { color: var(--zq-bad); }
.zw-callout { border-inline-start: 4px solid var(--primary, #0EADB5); background: rgba(14,173,181,.08); padding: .6rem 1rem; border-radius: 0 10px 10px 0; margin: 0 0 1rem; }
.zw-callout p:last-child { margin-bottom: 0; }
.zw-callout-design { border-color: var(--zq-mid); background: rgba(242,193,78,.08); }
.zw-figure figcaption { font-size: .85rem; color: var(--zq-muted); margin-top: .35rem; }
.zw-table td, .zw-table th { vertical-align: top; }
.zw-toc { float: right; margin: 0 0 1rem 1.2rem; padding: .6rem 1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: .88rem; max-width: 16rem; background: rgba(0,0,0,.15); }
.zw-toc ol { margin: .3rem 0 0; padding-inline-start: 1.1rem; }
@media (max-width: 720px) { .zw-toc { float: none; margin: 0 0 1rem; max-width: none; } }
.zw-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem; }
.zw-catcard { display: block; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); text-decoration: none; color: inherit; font-weight: 700; background: rgba(255,255,255,.03); }
.zw-catcard:hover { border-color: var(--primary, #0EADB5); }
.zw-index { padding-inline-start: 1.2rem; columns: 2 16rem; }
.zw-index li { margin: .25rem 0; break-inside: avoid; }
.zw-catlist { columns: 1; }
.zw-changes { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.zw-changes li { padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.zw-when { color: var(--zq-muted); font-variant-numeric: tabular-nums; margin-inline-end: .3rem; }
.zw-lang { font-size: .72rem; padding: 0 .35rem; border-radius: 5px; border: 1px solid rgba(255,255,255,.2); color: var(--zq-muted); }
.zw-delta.pos { color: var(--zq-ok); } .zw-delta.neg { color: var(--zq-bad); }
.zw-comment { color: var(--zq-muted); font-style: italic; }
.zw-cur { color: var(--zq-ok); font-size: .8rem; }
.zw-acts form { display: inline; }
.zw-linkbtn { background: none; border: 0; padding: 0; color: var(--primary, #0EADB5); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; }
.zw-is-hidden { opacity: .6; }
.zw-modform { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem .4rem 0 0; }
.zw-modform input, .zw-modform select { padding: .3rem .5rem; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: inherit; font: inherit; }
.zw-danger { background: #b2451a !important; border-color: #b2451a !important; color: #fff !important; }
.zw-form label { display: block; margin: 0 0 .9rem; font-weight: 600; }
.zw-form input[type=text], .zw-form select, .zw-form textarea { display: block; width: 100%; margin-top: .3rem; padding: .55rem .7rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.28); color: inherit; font: inherit; font-weight: 400; }
.zw-form textarea { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: .88rem; line-height: 1.5; min-height: 22rem; }
.zw-help pre { font-size: .82rem; background: rgba(0,0,0,.3); padding: .7rem; border-radius: 8px; overflow-x: auto; }
.zw-preview { border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; }
.zw-diff { font-family: "DejaVu Sans Mono", Consolas, monospace; font-size: .82rem; line-height: 1.5; border-radius: 10px; overflow-x: auto; background: rgba(0,0,0,.25); padding: .5rem 0; }
.zw-diff > div { padding: .05rem .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.zw-d-add { background: rgba(51,196,141,.13); }
.zw-d-del { background: rgba(255,123,92,.13); }
.zw-d-same { color: var(--zq-muted); }
.zw-d-gap { color: var(--zq-muted); text-align: center; }
.zw-diff ins { background: rgba(51,196,141,.35); text-decoration: none; }
.zw-diff del { background: rgba(255,123,92,.35); }
.zw-results li { margin: 0 0 .8rem; }
.zw-results mark { background: rgba(242,193,78,.35); color: inherit; }
.zw-sys { font-style: italic; }
.zw-page-foot { margin-top: 1.5rem; clear: both; }
.zq-learn-more { font-size: .92rem; margin: .6rem 0 0; }
/* wiki tables wrap their text so a phone shows every column (the admin tables keep scrolling) */
.zw-table th, .zw-table td { white-space: normal; overflow-wrap: break-word; }
.zw-table code { overflow-wrap: anywhere; }
/* ─── site menu (moved into the Sippis top bar by lib/page.php; a plain bar without JS) ─── */
.zq-topnav { width: 100%; display: flex; align-items: center; gap: .4rem; padding: .4rem 1rem; background: rgba(0,0,0,.18); border-bottom: 1px solid rgba(255,255,255,.08); }
.zq-topnav.in-bar { width: auto; flex: 1 1 0; min-width: 0; padding: 0; background: none; border: 0; position: relative; justify-content: center; }
.zq-topnav-items { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; min-width: 0; flex: 1 1 auto; white-space: nowrap; margin: 0; }
.zq-topnav-item { flex: 0 0 auto; font: inherit; font-size: .9rem; font-weight: 600; color: #d9e7eb; background: none; border: 0; border-radius: 8px;
  padding: .45rem .65rem; cursor: pointer; text-decoration: none; line-height: 1.2; }
.zq-topnav-item:hover, .zq-topnav-item:focus-visible { background: rgba(255,255,255,.08); color: #fff; }
.zq-topnav-item.is-current { color: #fff; background: rgba(14,173,181,.28); }
.zq-topnav-ok { color: var(--zq-ok); font-size: .8rem; }
.zq-topnav-sep { flex: 0 0 1px; width: 1px; height: 1.4rem; background: rgba(255,255,255,.28); margin: 0 .45rem; }
.zq-topnav-toggle { display: none; font: inherit; font-size: .9rem; font-weight: 700; color: #f4f7f8; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18); border-radius: 99px; height: var(--sippis-ctrl-h, 38px); padding: 0 .9rem; cursor: pointer; white-space: nowrap; }
.zq-topnav.folded { justify-content: flex-start; }
.zq-topnav.folded .zq-topnav-toggle { display: inline-flex; align-items: center; gap: .35rem; }
.zq-topnav.folded .zq-topnav-items { display: none; }
.zq-topnav.folded.open .zq-topnav-items { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: calc(100% + .55rem); left: 0;
  z-index: 300; min-width: 15rem; max-width: calc(100vw - 2rem); overflow: visible; white-space: normal; padding: .4rem; gap: .1rem;
  background: #0f2c37; border: 1px solid rgba(14,173,181,.35); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.zq-topnav.folded.open .zq-topnav-item { text-align: start; padding: .6rem .8rem; }
.zq-topnav.folded.open .zq-topnav-sep { width: auto; height: 1px; margin: .3rem .4rem; flex: 0 0 1px; }
/* ─── home ─── */
.zq-hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin: 1.2rem 0 .6rem; }
.zq-inline-form { display: inline; margin: 0; }
.zq-btn-lg { font-size: 1.05rem; padding: .85rem 1.6rem; min-height: 48px; }
.zq-hero-best { color: var(--zq-muted); }
.zq-hero-best a { white-space: nowrap; }
.zq-progress-card h3 { font-size: 1rem; margin-top: 1rem; color: var(--zq-muted); text-transform: uppercase; letter-spacing: .05em; }
.zq-certlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.zq-certlist li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; padding: .55rem .8rem; border-radius: 10px; background: rgba(51,196,141,.08); border: 1px solid rgba(51,196,141,.3); }
.zq-certlist-name { font-weight: 700; flex: 1 1 10rem; }
.zq-certlist-score { color: var(--zq-muted); }
.zq-todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.zq-todo-item { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.zq-todo-item small { color: var(--zq-muted); line-height: 1.45; }
.zq-loop-steps { list-style: none; counter-reset: zqstep; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.zq-loop-steps li { counter-increment: zqstep; position: relative; padding: 1rem 1.1rem 1rem 3.4rem; border-radius: 14px; background: var(--zq-card); border: 1px solid var(--zq-line); }
.zq-loop-steps li::before { content: counter(zqstep); position: absolute; left: 1rem; top: 1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--primary, #0EADB5); color: #fff; }
.zq-loop-steps p { margin: .3rem 0 .4rem; color: #d5e6ea; }
.zq-how summary { cursor: pointer; font-weight: 700; }
.zq-how .zq-grid { margin-top: 1rem; }
.zq-how .zq-grid > div h3 { font-size: 1rem; color: var(--primary, #0EADB5); }
/* brand: a smaller logo with the site's imprint beside it (owner's request, 2026-10-27) */
.topbar .brand { gap: .6rem; align-items: center; text-decoration: none; }
.topbar .brand .brand-logo { height: 2.5rem; margin-top: 0; margin-bottom: 0; }
.zq-imprint { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.zq-imprint b { color: #f4f7f8; font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }
.zq-imprint small { color: #9fc3cd; font-size: .74rem; letter-spacing: .03em; }
@media (max-width: 640px) { .topbar .brand .brand-logo { height: 2rem; } .zq-imprint small { display: none; } .zq-imprint b { font-size: .95rem; } }
/* the menu sits right, next to the shell's controls */
.zq-topnav.in-bar { justify-content: flex-end; }
.zq-topnav-quiz { position: relative; flex: 0 0 auto; }
.zq-quiz-panel { display: none; position: absolute; top: calc(100% + .55rem); right: 0; z-index: 300; min-width: 15rem; flex-direction: column; align-items: stretch;
  padding: .4rem; gap: .1rem; background: #0f2c37; border: 1px solid rgba(14,173,181,.35); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.zq-topnav-quiz.open .zq-quiz-panel { display: flex; }
.zq-quiz-panel .zq-topnav-item { text-align: start; padding: .6rem .8rem; white-space: nowrap; }
/* folded (narrow screens): the quiz tracks are listed under a plain "Quiz" heading */
.zq-topnav.folded.open .zq-topnav-quiz { position: static; }
.zq-topnav.folded.open .zq-quiz-toggle { pointer-events: none; color: var(--zq-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding-bottom: .2rem; }
.zq-topnav.folded.open .zq-quiz-toggle span { display: none; }
.zq-topnav.folded.open .zq-quiz-panel { display: flex; position: static; box-shadow: none; border: 0; padding: 0; background: none; min-width: 0; }
.zw-glossary-tools { position: sticky; top: calc(var(--sippis-ctrl-h, 38px) + 2.2rem); z-index: 5; background: #0d2630; padding: .6rem 0; margin-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.zw-glossary-tools input { width: 100%; padding: .55rem .8rem; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: inherit; font: inherit; }
.zw-letters { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }
.zw-letters a { min-width: 1.9rem; text-align: center; padding: .15rem .35rem; border-radius: 6px; text-decoration: none; font-weight: 700; border: 1px solid rgba(255,255,255,.14); }
.zw-letters a:hover { border-color: var(--primary, #0EADB5); }
/* folded: just the Menu button, on the right next to the shell's controls; the list opens under it */
.zq-topnav.in-bar.folded { flex: 0 0 auto; margin-inline-start: auto; }
.zq-topnav.folded.open .zq-topnav-items { left: auto; right: 0; }
.topbar .brand { flex: 0 0 auto; min-width: auto; }
.zq-topnav-label { margin-inline-start: .35rem; }
@media (max-width: 640px) {
  .zq-topnav-toggle { width: var(--sippis-ctrl-h, 30px); padding: 0; justify-content: center; font-size: 1rem; }
  .zq-topnav-label { display: none; }
}
.zq-topnav.folded.open .zq-topnav-items { position: fixed; left: auto; right: .75rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
@media (max-width: 640px) { .zq-topnav.folded.open .zq-topnav-items { left: .75rem; right: .75rem; } }
/* phones: the menu button comes first, before the logo, and the list opens from the left (owner, 2026-10-27) */
@media (max-width: 640px) {
  .zq-topnav.in-bar.folded { order: -1; margin-inline-start: 0; }
  .zq-topnav.folded.open .zq-topnav-items { left: .75rem; right: auto; width: min(20rem, calc(100vw - 1.5rem)); }
}
.zw-status { font-size: .72rem; padding: .05rem .45rem; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.zw-status-pending { color: var(--zq-mid); border-color: rgba(242,193,78,.5); }
.zw-status-rejected { color: var(--zq-bad); border-color: rgba(255,123,92,.5); }
.zw-status-merged { color: var(--zq-muted); border-color: rgba(255,255,255,.25); }
/* ─── admin ─── */
.zq-admin-head h1 { margin-bottom: .6rem; }
.zqa-tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: .5rem; }
.zqa-tabs a { padding: .45rem .9rem; border-radius: 10px 10px 0 0; text-decoration: none; font-weight: 700; color: #d9e7eb; }
.zqa-tabs a[aria-current] { background: rgba(14,173,181,.22); color: #fff; }
.zqa-count { display: inline-block; min-width: 1.4rem; padding: 0 .4rem; border-radius: 99px; background: var(--zq-mid); color: #1a2b3c; font-size: .78rem; text-align: center; }
.zqa-section { overflow: hidden; }
.zqa-row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; }
.zqa-inline { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.zqa-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.zqa-row label { flex: 1 1 12rem; }
.zqa-rev { border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: .9rem 1rem; margin: .8rem 0; background: rgba(0,0,0,.12); }
.zqa-rev header { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .5rem; }
.zqa-rev details { margin: .4rem 0; }
.zqa-rev summary { cursor: pointer; color: var(--zq-muted); font-size: .9rem; }
.zqa-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .6rem; }
.zqa-actions form { margin: 0; }
.zqa-reject { display: inline-flex; gap: .4rem; }
.zqa-reject input, .zqa-filters input, .zqa-filters select { padding: .4rem .6rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.25); color: inherit; font: inherit; font-size: .9rem; }
.zqa-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .8rem; }
.zqa-filters input[type=search] { flex: 1 1 14rem; }
.zqa-players td.num, .zqa-players th.num { text-align: center; }
.zqa-players th a, .zqa-qlist th { white-space: nowrap; }
.zqa-players th a { color: #d9e7eb; text-decoration: none; }
.zqa-sorted { color: #fff !important; text-decoration: underline !important; }
.zqa-players td { white-space: nowrap; vertical-align: top; }
.zqa-score { font-weight: 700; text-decoration: none; }
.zqa-g-expert { color: var(--zq-gold); } .zqa-g-practitioner { color: #2bc0c8; } .zqa-g-explorer { color: #8fb3c2; }
.zqa-pages a { padding: .2rem .5rem; border-radius: 6px; } .zqa-pages a[aria-current] { background: rgba(14,173,181,.3); }
.zqa-qlist td { vertical-align: top; } .zqa-qcell { white-space: normal !important; min-width: 18rem; }
.zqa-v { font-size: .75rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; }
.zqa-v-ok { background: rgba(51,196,141,.2); color: var(--zq-ok); } .zqa-v-minor { background: rgba(242,193,78,.2); color: var(--zq-mid); } .zqa-v-problems { background: rgba(255,123,92,.2); color: var(--zq-bad); }
.zqa-ok { color: var(--zq-ok); } .zqa-warn { color: var(--zq-mid); }
.zqa-crumbs { font-size: .9rem; }
.zqa-answers { border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .6rem .8rem; margin: 0 0 .9rem; }
.zqa-ans { display: flex; gap: .6rem; align-items: center; margin: .35rem 0; }
.zqa-ans input[type=text] { flex: 1; margin: 0 !important; }
.zqa-ans.is-right input[type=text] { border-color: rgba(51,196,141,.6) !important; }
.zqa-right { display: inline-flex !important; gap: .3rem; align-items: center; font-weight: 600; white-space: nowrap; margin: 0 !important; color: var(--zq-ok); }
.zqa-job { border-top: 1px solid rgba(255,255,255,.1); padding: .7rem 0; }
.zqa-job-head { margin: 0 0 .3rem; color: var(--zq-muted); font-size: .9rem; }
.zqa-issue { border-inline-start: 3px solid var(--zq-muted); padding: .3rem .8rem; margin: .5rem 0; background: rgba(0,0,0,.15); border-radius: 0 8px 8px 0; }
.zqa-issue p { margin: .2rem 0; } .zqa-fix { color: #bfe9ec; }
.zqa-sev-high { border-color: var(--zq-bad); } .zqa-sev-medium { border-color: var(--zq-mid); } .zqa-sev-low { border-color: #8fb3c2; }
.zqa-ai-ans { margin: .4rem 0; } .zqa-ai-ans td { white-space: normal; vertical-align: top; }
.zqa-a-disagree td { color: var(--zq-bad); } .zqa-a-unsure td { color: var(--zq-mid); }
.zqa-langs { display: flex; flex-wrap: wrap; gap: .4rem; }
.zqa-lang { font-size: .8rem; padding: .15rem .55rem; border-radius: 99px; border: 1px solid; }
.zqa-lang-ok { color: var(--zq-ok); border-color: rgba(51,196,141,.5); } .zqa-lang-stale { color: var(--zq-mid); border-color: rgba(242,193,78,.5); } .zqa-lang-missing { color: var(--zq-bad); border-color: rgba(255,123,92,.5); }
.zqa-tr { padding: .4rem .8rem; background: rgba(0,0,0,.15); border-radius: 8px; }
.zqa-editform textarea { min-height: 18rem; }
/* admin pages use the full width (wide tables) */
.zq-main:has(.zqa-tabs) { max-width: 1400px; }
.zqa-qform textarea[name=question] { min-height: 4.5rem; }
.zqa-qform textarea[name=graphic_q], .zqa-qform textarea[name=graphic_e] { min-height: 3.5rem; }
.zqa-qform textarea[name=sources] { min-height: 7rem; }
.zqa-qform textarea[name=explanation] { min-height: 16rem; }
/* quizzes: "All of ZooBC" as a wide bar, the other tracks two by two (owner, 2026-10-27) */
.zq-tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .zq-tracks { grid-template-columns: 1fr; } }
.zq-progress-card .zq-tracks { margin-top: .4rem; }
.zq-page-head { text-align: center; }
.zq-page-head .zq-lead { max-width: 46rem; margin-inline: auto; }
/* the menu sits centred between the logo and the shell's controls */
.zq-topnav.in-bar, .zq-topnav-items { justify-content: center; }
/* bigger menu items (owner: "too small") */
.zq-topnav-item { font-size: 1rem; padding: .5rem .85rem; }
.zq-topnav-items { gap: .35rem; }
.zq-topnav-sep { margin: 0 .6rem; }
/* track cards inside "Your quizzes" keep their own titles (not the section's small caps) */
.zq-progress-card .zq-track h3 { font-size: 1.2rem; margin: 0 0 .3rem; color: inherit; text-transform: none; letter-spacing: 0; }
.zq-topnav.compact .zq-topnav-item { font-size: .9rem; padding: .45rem .6rem; }
.zq-topnav.compact .zq-topnav-items { gap: .1rem; }
.zq-topnav.compact .zq-topnav-sep { margin: 0 .35rem; }
/* admin tabs sit on the line under them (owner, 2026-10-27) */
.zqa-tabs { padding-bottom: 0; gap: .25rem; }
.zqa-tabs a { margin-bottom: -1px; border-bottom: 1px solid transparent; }
.zqa-tabs a[aria-current] { border-bottom-color: var(--zq-accent, #0eadb5); }
/* admin tables: column titles stay visible (see the script in admin/index.php) */
.zqa-sticky { max-height: calc(100vh - var(--zqa-bar-h, 70px) - 1.5rem); overflow: auto; }
.zqa-sticky.fits { max-height: none; overflow: visible; }
.zqa-sticky thead th { position: sticky; top: 0; z-index: 2; background: #0f2e39; box-shadow: inset 0 -1px 0 rgba(255,255,255,.15); }
.zqa-sticky.fits thead th { top: var(--zqa-bar-h, 70px); }
/* person page in Moderation */
.zqa-back { margin: 0 0 .6rem; }
.zqa-back a { font-weight: 700; text-decoration: none; }
.zw-status-approved { color: var(--zq-ok); border-color: rgba(51,196,141,.5); }
.zqa-diffbox { border: 1px solid rgba(14,173,181,.35); border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0 1rem; }
.zqa-diffbox h3 { margin: 0; font-size: 1rem; }
/* glossary: each term stands on its own (owner, 2026-10-27) */
.zw-glossary ul { padding-inline-start: 1.1rem; }
.zw-glossary li { margin-bottom: .95rem; line-height: 1.6; }
.zw-glossary li:last-child { margin-bottom: 0; }
.zw-glossary li strong:first-child { color: #fff; }
.zw-glossary h2 { margin-top: 2rem; padding-bottom: .3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.zq-card.zqa-section:has(.zqa-sticky) { overflow: visible; }   /* a clipping card would hold the titles back */
.zqa-section .zq-table-wrap + h2 { margin-top: 1.8rem; }
