/* Glossary: German dub term next to the English original. */
.g-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(900px 340px at 85% -10%, rgba(86, 200, 255, 0.12), transparent 70%); }
.g-hero .wrap { padding-block: 44px 28px; display: grid; gap: 18px; }
.g-hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; text-transform: uppercase; }
@media (max-width: 359px) { .g-hero h1 { font-size: 31px; } }  /* "Episodenführer" fits a 320 px screen */
.g-hero h1 small { display: block; font-size: .36em; color: var(--chevron); letter-spacing: .14em; margin-top: 12px; }
.g-hero p { color: var(--muted); max-width: 64ch; font-size: 17px; }
.g-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.g-search { flex: 1 1 320px; max-width: 520px; }
.g-search input { width: 100%; font: 500 15px/1.2 var(--f-body); color: var(--text); padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); }
.g-search input::placeholder { color: var(--dim); }
.g-search input:focus { outline: 2px solid var(--horizon); outline-offset: 2px; border-color: transparent; }
.g-search input:disabled { opacity: .5; }
.g-hero .g-count { font: 500 13px/1 var(--f-mono); color: var(--dim); }
.g-kats { display: flex; flex-wrap: wrap; gap: 8px; }
.g-kats a { font: 600 13px/1 var(--f-body); color: var(--muted); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); }
.g-kats a:hover { color: var(--text); border-color: var(--line-strong); text-decoration: none; }
.g-kats span { font-family: var(--f-mono); color: var(--dim); margin-left: 4px; }

.g-sec .wrap { padding-block: 36px 8px; }
.g-sec-head { display: grid; gap: 6px; margin-bottom: 16px; }
.g-sec-head h2 { font-size: clamp(24px, 3vw, 32px); text-transform: uppercase; }
.g-sec-head p { color: var(--muted); max-width: 70ch; }
.g-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.g-entry { display: grid; align-content: start; gap: 6px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--hull), rgba(10, 16, 32, 0.4)); }
/* Long lists (/technik/ ~330 entries, a series page ~10,000 elements): the browser lays out and paints only the
   entries near the screen. The size is a guess for entries never shown (the median height of the lists); "auto"
   keeps the real one once an entry was on screen. Find in page, anchors and the filters work as before; print
   shows everything (below). Jumps to an anchor are instant here: a smooth scroll aims at the guessed position and
   overshoots once the entries it passes get their real size, an instant one stays on the target.
   The viewing order (365 entries in year sections) likewise per section, its guess about the median section.
   Only for the first load: freigabe.js releases the entries in small chunks once the page is idle ("cv-frei"), as
   Chromium leaves skipped entries out of the accessibility tree; without JS noscript.css never skips them. */
.g-list > .g-entry { content-visibility: auto; contain-intrinsic-size: auto 440px; }
.g-list > .g-entry.ep { contain-intrinsic-size: auto 600px; }
.ro-sec { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.g-list > .g-entry.cv-frei, .ro-sec.cv-frei { content-visibility: visible; }
html:has(.g-list > .g-entry), html:has(.ro-sec) { scroll-behavior: auto; }
html.cv-halten { overflow-anchor: none; }    /* freigabe.js keeps the entry at the top in place itself */
.g-entry:target, .g-entry:has(.g-alt:target) { border-color: rgba(255, 138, 43, 0.6); box-shadow: 0 0 0 1px rgba(255, 138, 43, 0.35), 0 0 30px -10px rgba(255, 138, 43, 0.6); }
.g-entry h3 { font-size: 19px; color: var(--text); }
.g-en, .g-var { font-size: 14px; color: var(--text); }
.g-en span[lang] { font-family: var(--f-mono); color: var(--horizon); font-size: 14px; }
.g-k { display: inline-block; min-width: 5.4em; font: 600 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.g-text { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 56ch; }
.g-meta { font: 500 12px/1.4 var(--f-mono); color: var(--dim); margin-top: 2px; }
.g-unsicher { color: var(--idle); }
/* "Fehler gefunden?": a mailto link under each entry (scripts/site/korrektur.py) */
.g-fix { color: var(--muted); white-space: nowrap; }
.g-fix:hover { color: var(--horizon); }
.g-fixline { margin: 0; font: 500 12.5px/1.4 var(--f-body); }
.g-none .wrap { padding-block: 32px; }
.g-none p { color: var(--muted); }
.glossar { padding-bottom: 48px; }

/* Knowledge area: sub-navigation, lexicon facts (/voelker/, /schiffe/, /technik/), hub cards (/wissen/) */
.w-sub { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 600 12px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.w-sub a { color: var(--dim); display: inline-flex; align-items: center; min-height: 24px; }   /* a 24 px target (WCAG 2.5.8) */
.w-sub a:hover { color: var(--text); text-decoration: none; }
.w-sub a[aria-current] { color: var(--chevron); }
.w-facts { display: grid; gap: 4px; margin: 2px 0 0; font-size: 13.5px; }
.w-facts div { display: grid; grid-template-columns: 7.6em minmax(0, 1fr); gap: 8px; }
.w-facts dt { font: 600 10.5px/1.9 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.w-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.w-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.w-cards .g-entry { position: relative; }
.w-cards .stretch { color: inherit; }
.w-cards .stretch:hover { text-decoration: none; }
.w-cards .stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.w-cards .g-entry:has(.stretch:hover), .w-cards .g-entry:focus-within { border-color: var(--line-strong); }

/* Episode guide (/episoden/): episode number before the title, scope note, link back in the eyebrow */
.ep h3 { display: flex; align-items: baseline; gap: 10px; }
.ep-nr { flex: none; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; color: var(--chevron); padding: 4px 7px;
  border: 1px solid rgba(255, 138, 43, 0.35); border-radius: 6px; }
.ep .w-facts div { grid-template-columns: 8.4em minmax(0, 1fr); }
.ep-scope { color: var(--dim); font-size: 14px; }
.ep-erw { margin: 0; font: 500 12.5px/1.4 var(--f-mono); color: var(--idle); }     /* the filter found it by a planet it only mentions */
.g-hero .eyebrow a { color: inherit; }
/* A series outside the canon (Infinity): the note on its pages, the flag and dashed border of its cards */
.g-hero .ep-note, .ep-note { margin-top: 14px; padding: 12px 16px; max-width: 72ch; border: 1px solid rgba(245, 196, 81, 0.45);
  border-left-width: 4px; border-radius: 10px; background: rgba(245, 196, 81, 0.07); color: var(--text); font-size: 14.5px; line-height: 1.55; }
.ep-note strong { color: var(--idle); }
.ep-abw { color: var(--muted); }     /* Infinity: the wiki names other writers than both Wikipedias */
.ep-hinweis { margin: 10px 0 0; max-width: 72ch; color: var(--muted); font-size: 14px; line-height: 1.5; }     /* our note under an episode's facts */
.ep-flag { justify-self: start; font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--idle);
  padding: 5px 9px; border: 1px dashed rgba(245, 196, 81, 0.5); border-radius: 999px; }
.w-cards .ep-apart { border-style: dashed; }

/* how a list was put together (figures, media, timeline): folded away under the introduction, so the list starts sooner on a phone */
.g-method { max-width: 72ch; margin: 4px 0 14px; }
.g-method > summary { padding: 6px 0; cursor: pointer; font: 600 14px/1.3 var(--f-body); color: var(--horizon); }
.g-method > summary:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; border-radius: 4px; }
.g-method[open] > summary { margin-bottom: 6px; }
.g-method > p + p { margin-top: 10px; }

/* Viewing order (/episoden/reihenfolge/): one compact row per episode or film */
.ro-sec h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.ro[hidden], .ro-sec[hidden], .g-kats a[hidden] { display: none; }
.ro-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.ro-filter[hidden] { display: none; }
.ro-filter legend { width: 100%; margin-bottom: 6px; padding: 0; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ro-filter label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: 600 13px/1 var(--f-body); color: var(--muted);
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
.ro-filter label:has(input:checked) { color: var(--text); border-color: var(--line-strong); background: rgba(86, 200, 255, 0.08); }
.ro-filter label:focus-within { outline: 2px solid var(--horizon); outline-offset: 2px; }
.ro-filter input { width: 15px; height: 15px; margin: 0; accent-color: var(--horizon); cursor: pointer; }
.ro-filter span { font-family: var(--f-mono); color: var(--dim); }
.ro-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
/* Story arcs (scripts/site/boegen.py): a select that reihenfolge.js shows, and the arcs listed with links (also without JS) */
.ro-bogen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; font: 600 13px/1.3 var(--f-body); color: var(--muted); }
.ro-bogen[hidden] { display: none; }
.ro-leer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); color: var(--muted); }
.ro-leer[hidden] { display: none; }
.ro-leer .btn { padding: 10px 16px; }
.ro-bogen select { min-height: 40px; max-width: 100%; padding: 6px 10px; font: 500 14px/1.2 var(--f-body); color: var(--text);
  background: var(--void); border: 1px solid var(--line-strong); border-radius: 10px; }
.ro-bogen select:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; }
.ro-boegen { margin: 12px 0 0; }
.ro-boegen > summary { padding: 6px 0; cursor: pointer; font: 600 14px/1.3 var(--f-body); color: var(--horizon); }
.ro-boegen > summary:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; border-radius: 4px; }
.ro-blist { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 75ch; }
.ro-bk { font-size: 13px; color: var(--dim); }
/* a grid, so the title always starts in the same place: on a phone number, series, episode and date on the first line,
   the title below; from 700 px one line. The "Gesehen" tick (gesehen.js) takes a column of its own over the full height
   of the row, so it is easy to hit (WCAG 2.5.8). */
.ro-n { grid-area: n; text-align: right; font: 500 12px/1 var(--f-mono); color: var(--dim); }
.ro { padding: 5px 0; border-bottom: 1px solid var(--line); display: grid; align-items: baseline; gap: 3px 8px;
  grid-template-columns: 30px auto auto minmax(0, 1fr); grid-template-areas: "n s nr d" ". t t t"; }
.ro:has(> .seen-box) { grid-template-columns: 36px 30px auto auto minmax(0, 1fr); grid-template-areas: "b n s nr d" "b . t t t"; }
.ro .ep-nr { grid-area: nr; justify-self: start; padding: 2px 6px; }
.ro a { grid-area: t; color: var(--text); font-size: 15px; }
.ro-s { grid-area: s; font: 600 10.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ro[data-serie="film"] a { color: var(--chevron); }
.ro-ot { display: none; }        /* the original title: only in print */
.ro-d { grid-area: d; justify-self: end; white-space: nowrap; font: 500 12px/1.4 var(--f-mono); color: var(--dim); }
@media (max-width: 379px) {      /* the date gets a line of its own */
  .ro { grid-template-areas: "n s nr nr" ". t t t" ". d d d"; }
  .ro:has(> .seen-box) { grid-template-areas: "b n s nr nr" "b . t t t" "b . d d d"; }
  .ro-d { justify-self: start; }
}
@media (min-width: 700px) {
  .ro { grid-template-columns: 32px 68px 5.2em minmax(0, 1fr) auto; grid-template-areas: "n s nr t d"; gap: 4px 10px; }
  .ro:has(> .seen-box) { grid-template-columns: 36px 32px 68px 5.2em minmax(0, 1fr) auto; grid-template-areas: "b n s nr t d"; }
}

/* Fan project directory (/fanprojekte/) */
.g-hero .back { display: inline-block; margin-bottom: 18px; }
.fp-chips { display: flex; flex-wrap: wrap; gap: 6px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.fp-chips span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; }
.fp-chips .s-aktiv { color: #7be3a0; border-color: rgba(123, 227, 160, .4); }
.fp-chips .s-fertig { color: var(--horizon); border-color: rgba(86, 200, 255, .4); }
.fp-chips .s-pausiert, .fp-chips .s-unklar { color: var(--idle); }
.fp-chips .s-eingestellt { color: var(--dim); }
.fp-start { font-size: 14px; color: var(--muted); }
.fp-start summary { cursor: pointer; font: 600 11px/1.8 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--chevron); }
.fp-start ol { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 4px; }
.fp-add .wrap { padding-block: 36px 56px; }
.fp-add:has(+ .fp-link) .wrap { padding-bottom: 0; }

/* Permalink "#" of an entry and links to other sections (scripts/site/verweise.py) */
.g-entry { position: relative; }
.g-entry > h3 { padding-right: 28px; }
.g-perm { position: absolute; top: 12px; right: 10px; min-width: 24px; min-height: 24px; display: grid; place-items: center;
  font: 600 14px/1 var(--f-mono); color: var(--dim); border-radius: 6px; }
.g-perm:hover, .g-perm:focus-visible, .g-entry:hover .g-perm, .g-entry:target .g-perm, .g-entry:has(.g-alt:target) .g-perm { color: var(--horizon); text-decoration: none; }
.w-facts dd a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(86, 200, 255, 0.45); }
.w-facts dd a:hover { text-decoration-color: currentColor; }
.g-more { font: 600 11px/1 var(--f-mono); color: var(--dim); white-space: nowrap; }

/* Site-wide search /suche/ (site/assets/js/suche.js) and the search field on /wissen/ */
.s-goto { align-items: center; }
.s-goto .btn { flex: none; }
.s-noscript { color: var(--muted); }
.g-hero .s-help { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--dim); }
/* the field right under the heading, the explanation below it; on a phone it steps aside once something is typed,
   so the hits start higher (above the on-screen keyboard) */
@media (max-width: 700px) { .g-hero:has(#s-q:not(:placeholder-shown)) :is(.s-intro, .s-help) { display: none; } }
.s-out { padding-bottom: 56px; }
.s-none { display: grid; gap: 8px; padding-top: 22px; color: var(--muted); }
.s-sec { padding-top: 28px; }
.s-sec h2 { font-size: 20px; display: flex; align-items: baseline; gap: 10px; }
.s-n { font: 600 12px/1 var(--f-mono); color: var(--dim); }
.s-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.s-hit { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(10, 16, 32, 0.5); }
.s-hit a { display: block; text-decoration: none; }
.s-hit a:hover .s-t, .s-hit a:focus-visible .s-t { text-decoration: underline; text-underline-offset: 3px; }
.s-t { color: var(--text); font-weight: 600; }
.s-alt { color: var(--muted); font-size: 13px; }
.s-note { display: block; font: 500 11px/1.4 var(--f-mono); color: var(--dim); margin-top: 2px; }
.s-snip { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }   /* content search: the sentence with the words */
.s-cnote { padding-top: 22px; color: var(--muted); font-size: 14px; }
.s-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; font-size: 13px; }
.s-more { font: 600 12px/1 var(--f-mono); color: var(--horizon); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.s-more:hover { border-color: rgba(86, 200, 255, 0.55); }

/* One page per episode (src/vorlagen/folge.html) */
.f-crumbs { font: 600 12px/1.6 var(--f-mono); letter-spacing: .06em; color: var(--dim); }
.f-crumbs a { color: var(--muted); display: inline-block; padding-block: 3px; }   /* 25 px high, also when the trail wraps */
.f-h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; overflow-wrap: anywhere; hyphens: auto; }
.f-h1 > span { min-width: 0; }
.f-h1 .ep-nr { font-size: 15px; }
.f-main .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.f-main .wrap > * { max-width: 900px; }
.f-card .g-text { font-size: 16px; }
.f-pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.f-pager a { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 16, 32, 0.5); }
.f-pager a:hover { border-color: var(--line-strong); text-decoration: none; }
.f-pager .f-next { text-align: right; justify-items: end; }
.f-pager .f-k { font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.f-pager .ep-nr { justify-self: start; }
.f-pager .f-next .ep-nr { justify-self: end; }
.f-list h2 { font-size: 20px; margin-bottom: 12px; }
.f-season { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 24px; }
.f-season li { break-inside: avoid; padding: 4px 0; display: flex; gap: 10px; align-items: baseline; }
.f-season .ep-nr { padding: 2px 6px; }
.f-season a[aria-current="page"] { color: var(--text); font-weight: 700; }
/* lexicon entry pages (src/vorlagen/eintrag.html): related entries, episodes, the group */
.g-entry h3 a { color: inherit; }
.g-entry h3 a:hover { color: var(--horizon); }
.g-more[href] { color: var(--horizon); }
.f-list h3 { font-size: 15px; margin: 18px 0 8px; color: var(--muted); }
.x-redial { margin: 0; font-size: 14.5px; color: var(--muted); }    /* "Als Mehrspieler-Karte in Redial spielbar: …" */
.x-note { margin: 0 0 6px; font-size: 13px; color: var(--dim); max-width: 70ch; }
.x-cols { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.x-cols li { break-inside: avoid; padding: 3px 0; }
.x-cols a[aria-current="page"] { color: var(--text); font-weight: 700; }
.eintrag .f-card .mv-open { justify-self: start; }
/* "Besetzung" of a field team (SG-1, Team Sheppard): one card per period */
.x-crews { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.x-crew { border-top: 1px solid var(--line); padding-top: 4px; }
.x-crew h3 { margin: 8px 0 6px; color: var(--text); }
.x-crew .g-meta { margin: 6px 0 0; }

/* "Gesehen" (site/assets/js/gesehen.js): ticks, progress panel; filled only with JS */
/* the box 22 px, the label around it at least 32 px high (WCAG 2.5.8 asks for 24 px) */
.seen-box { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; font: 600 12px/1 var(--f-mono); color: var(--muted); }
.seen-box input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.ro .seen-box { grid-area: b; align-self: stretch; justify-content: center; margin: -5px 0; }
.is-seen .seen-box { color: var(--ok); }
.ep.is-seen { border-color: rgba(61, 220, 151, 0.3); }
.ep.is-seen h3 a, .ro.is-seen > a { color: var(--muted); }
.ro .seen-box span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.f-seen { margin: 0; }
.w-panel { display: grid; gap: 12px; margin: 6px 0 4px; padding: 16px 18px; max-width: 720px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(10, 16, 32, 0.55); }
/* Until gesehen.js fills it, the panel keeps its height invisibly, so the list below does not jump down (CLS); the
   heights are those of the filled panel without ticks (one line per series page, seven on the viewing order). The
   script hides it when it cannot keep ticks; without JS noscript.css does. */
.w-panel:empty { visibility: hidden; min-height: 296px; }
.w-panel-ro:empty { min-height: 462px; }
@media (max-width: 605px) { .w-panel:empty { min-height: 324px; } .w-panel-ro:empty { min-height: 489px; } }
@media (max-width: 485px) { .w-panel:empty { min-height: 351px; } .w-panel-ro:empty { min-height: 517px; } }
@media (max-width: 380px) { .w-panel:empty { min-height: 378px; } .w-panel-ro:empty { min-height: 544px; } }
.w-prog { display: grid; gap: 6px; }
.w-line { display: grid; grid-template-columns: 7em minmax(0, 1fr) 6.5em; align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.w-name { color: var(--text); font-weight: 600; }
.w-count { font: 600 12px/1 var(--f-mono); color: var(--muted); text-align: right; }
.w-line progress { width: 100%; height: 8px; accent-color: var(--ok); }
.w-next { margin: 0; color: var(--muted); }
.w-next .btn { display: inline-flex; gap: 8px; align-items: baseline; }
.w-next .btn .ep-nr { color: #031026; border-color: rgba(3, 16, 38, 0.35); }
.w-tools, .w-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.w-btn { font: 600 12px/1 var(--f-mono); color: var(--horizon); background: none; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.w-btn:hover { border-color: rgba(86, 200, 255, 0.55); }
.w-ask { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.w-ask[hidden] { display: none; }
.w-ask .w-help { color: var(--muted); }
.w-reset { color: var(--off); border-color: rgba(255, 90, 110, 0.4); justify-self: start; }
.w-more { display: grid; gap: 10px; }
.w-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.w-more[open] { display: grid; }
.w-more[open] > * + * { margin-top: 10px; }
.w-help, .w-note, .w-msg { margin: 0; font-size: 13px; color: var(--dim); }
.w-msg:empty { display: none; }
.w-code { flex: 1 1 240px; min-width: 0; font: 500 13px/1.2 var(--f-mono); color: var(--text); padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--void); }
/* "Mit Freunden vergleichen": the result, counts as text (not only colour) and the first episode of each kind */
.w-cmp-out { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
.w-cmp-out[hidden] { display: none; }
.w-cmp-list { display: grid; gap: 2px; margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--text); }
.w-cmp-go { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.w-cmp-go .ep-nr { padding: 2px 6px; margin-right: 2px; }

/* Print ("Als Liste drucken"): light, without navigation; the episode lists as a checklist, an episode page with its content */
@media print {
  .g-list > .g-entry, .ro-sec { content-visibility: visible; contain-intrinsic-size: none; }
  .w-sub, .w-panel, .g-tools, .g-kats, .g-perm, .g-none, .f-pager, .f-seen, .seen-box, .mv-open, .ro-filter, .ro-bogen, .ro-boegen, .g-fixline, .hoeren, .ro-extra { display: none !important; }
  .glossar *, .glossar a { color: #000 !important; background: none !important; box-shadow: none !important; text-shadow: none !important; }
  .g-hero, .g-sec { padding: 0 !important; border: 0 !important; }
  .g-hero h1 { font-size: 20pt; }
  .ep-nr { border: 1px solid #999 !important; }
  .glossar:not(.folge) .g-hero p, .glossar:not(.folge) .g-meta { display: none !important; }
  .glossar:not(.folge) .g-sec h2 { font-size: 13pt; margin: 10pt 0 4pt; }
  .glossar:not(.folge) .g-list { display: block !important; }
  .glossar:not(.folge) .ep { display: block !important; break-inside: avoid; border: 0 !important; padding: 2pt 0 !important; }
  .glossar:not(.folge) .ep h3 { font-size: 10pt; font-weight: 600; }
  .glossar:not(.folge) .ep h3::before, .ro::before { content: "☐"; font-size: 11pt; margin-right: 6pt; }
  .glossar:not(.folge) .ep.is-seen h3::before, .ro.is-seen::before { content: "☑"; }
  .glossar:not(.folge) .ep .g-text, .glossar:not(.folge) .ep .w-facts { display: none !important; }
  /* the original title, small and on the same line as the German one */
  .glossar:not(.folge) .ep > h3, .glossar:not(.folge) .ep > .g-en { display: inline; }
  .glossar:not(.folge) .ep > .g-en { margin-left: 6pt; }
  .glossar:not(.folge) .ep .g-en span[lang] { font: 400 7.5pt/1.2 var(--f-body); color: #444 !important; }
  .glossar:not(.folge) .ep .g-en .g-k { display: none; }
  .ro { break-inside: avoid; font-size: 9.5pt; padding: 1pt 0 !important; border: 0 !important; }
  .ro, .ro:has(> .seen-box) { grid-template-columns: 1.6em 32px 68px auto auto minmax(0, 1fr) auto; grid-template-areas: "c n s nr t o d"; }
  .glossar .ro .ro-ot { display: block !important; grid-area: o; font-size: 7.5pt; color: #444 !important; }    /* original title */
  .ro::before { grid-area: c; margin-right: 0; }
  .folge .f-card { border: 0 !important; padding: 0 !important; }
}

/* Dictionary of alien languages (/glossar/sprachen/): method note, glossary list of a section without words */
.g-hero .wb-method { font-size: 14.5px; color: var(--dim); max-width: 72ch; }
.g-hero .wb-method a, .g-sec-head p a { color: var(--horizon); }
.wb .g-sec-head p a { white-space: nowrap; }
.wb-gl { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.wb-gl li { color: var(--muted); font-size: 15px; }
.wb-arrow { color: var(--dim); margin: 0 4px; }
.wb .w-facts dd { overflow-wrap: anywhere; }

/* episode page: "Figuren in dieser Folge" (scripts/site/figuren.py on_episode) */
.ep-figs { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 28px; }
.ep-figs li { break-inside: avoid; padding: 4px 0; line-height: 1.4; }
/* Cast and crew (/episoden/mitwirkende/, scripts/site/gaeste.py): one entry per person, credits and guest roles */
.mw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mw-p { padding-bottom: 14px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.mw-p h3 { font-size: 17px; margin: 0 0 6px; }
.mw-dl { margin: 0; display: grid; gap: 6px; font-size: 14px; line-height: 1.55; }
.mw-dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.mw-dl dt { font: 600 11px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.mw-dl dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 720px) { .mw-dl > div { grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; } .mw-dl dt { padding-top: 3px; } }
.ep-figs .fg-bei { display: block; color: var(--muted); font-size: 13px; }
.ep-figs-more > summary, .f-inhalt-text > summary { padding: 6px 0; cursor: pointer; font: 600 14px/1.3 var(--f-body); color: var(--horizon); }
.ep-figs-more > summary:focus-visible, .f-inhalt-text > summary:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; border-radius: 4px; }
.ep-figs-more[open] > summary, .f-inhalt-text[open] > summary { margin-bottom: 8px; }

/* episode page: "Handlung", our longer plot summary, closed because it tells the ending (scripts/site/inhalt.py) */
.f-inhalt h2 { font-size: 20px; margin-bottom: 4px; }
.f-spoiler { margin: 0; font-size: 14px; color: var(--muted); }
.f-inhalt-text p { margin: 0 0 12px; max-width: 72ch; line-height: 1.6; }
@media print { .f-inhalt-text::details-content { content-visibility: visible; } }   /* printed open where supported */

/* "In der Zeitleiste" on planet, lexicon and episode pages (scripts/site/zeitleiste.py on_page) */
.zl-refs-list { list-style: none; margin: 0; padding: 0; }
.zl-refs-list li { padding: 4px 0; line-height: 1.45; max-width: 80ch; }
.zl-refs-list a { font-weight: 600; }
.zl-refs-list .zl-kurz { color: var(--muted); font-size: 14px; }

/* "nur ungesehene" next to the random link (heute.js), only when there are ticks */
.ep-zufall-nur { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.ep-zufall-nur input { width: 18px; height: 18px; margin: 0; accent-color: var(--horizon); }
.ep-zufall-msg { display: block; flex-basis: 100%; font-size: 14px; color: var(--muted); }
.ep-zufall-msg:empty { display: none; }
@media print { .ep-zufall-nur, .ep-zufall-msg { display: none !important; } }

/* Cheat sheet (button "Als Spickzettel drucken", glossar.js sets html.spick while printing): one line per entry,
   term | original or meaning, two columns, the topics or languages as headings, the licence line at the end */
.spick-lizenz { display: none; }
@media print {
  html.spick { font-size: 8pt; }
  html.spick .glossar .g-hero p, html.spick .glossar .g-sec-head p, html.spick .glossar .g-var,
  html.spick .glossar .g-text, html.spick .glossar .g-meta, html.spick .glossar .wb-gl,
  html.spick .glossar .w-facts > div:not(:first-child), html.spick .glossar .w-facts dt { display: none !important; }
  html.spick .g-hero h1 { font-size: 13pt; margin: 0 0 2pt; }
  html.spick .g-hero h1 small { font-size: 9pt; }
  html.spick .glossar .g-sec h2 { font-size: 10pt; margin: 6pt 0 2pt; }
  html.spick .glossar .g-sec-head { margin: 0; }
  html.spick .glossar .g-list { display: block !important; columns: 2; column-gap: 14pt; }
  html.spick .glossar .g-list > .g-entry { display: block !important; break-inside: avoid; border: 0 !important;
    padding: 0 0 1.5pt !important; margin: 0 !important; font: 400 8pt/1.25 var(--f-body); }
  html.spick .glossar .g-entry > h3, html.spick .glossar .g-entry > .g-en, html.spick .glossar .g-entry > .w-facts,
  html.spick .glossar .w-facts > div, html.spick .glossar .w-facts dd { display: inline; margin: 0; padding: 0; }
  html.spick .glossar .g-entry > h3 { font: 700 8pt/1.25 var(--f-body); }
  html.spick .glossar .g-entry > h3::after { content: " –"; font-weight: 400; }
  html.spick .glossar .g-en .g-k { display: none; }
  html.spick .glossar .g-en span[lang], html.spick .glossar .w-facts dd { font: 400 8pt/1.25 var(--f-body) !important;
    letter-spacing: 0; text-transform: none; }
  html.spick .glossar .g-hero, html.spick .glossar .g-sec, html.spick .glossar .g-sec .wrap { margin: 0 !important; padding: 0 !important; min-height: 0 !important; }
  html.spick .glossar .g-hero .wrap > *:not(h1) { display: none !important; }
  html.spick .glossar .g-entry .g-unsicher { font-style: italic; }
  html.spick .spick-lizenz { display: block; margin: 8pt 0 0; font-size: 7pt; color: #000; }
}
