/* Public pages (signed out): the "Linie" design -- header, footer and the landing (marketing.html). Approved
   mockup 2026-11-12. Every class is w-prefixed and the tokens are scoped to .w-top/.w-foot/.wl, so the signed-in
   portal and the other public pages' own styles are untouched. No inline style="" is used anywhere (CSP).

   Fonts, self-hosted (SIL OFL 1.1, licences beside the files): Schibsted Grotesk (text) and IBM Plex Mono (codes,
   counts) join Newsreader (display, declared in portal.css). Downloaded from Google Fonts once and served from
   /static -- the page itself makes no third-party font request (DSGVO; same reasoning as portal.css). Latin and
   latin-ext only: Schibsted has no Cyrillic or Arabic, so uk/ru/ar text falls back to the system sans, as it did
   before; latin-ext is what Turkish needs. */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/plexmono/ibm-plex-mono-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/plexmono/ibm-plex-mono-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/schibsted/schibsted-grotesk-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens (dark block written twice: media query + attribute, keep identical) ---------- */
.w-top, .w-foot, .wl {
  --bg: #F6F8F7; --surface: #FFFFFF; --ink: #15211C; --muted: #56645E; --line: #DCE3DF;
  --brand: #167454; --brand-ink: #FFFFFF; --brand-soft: #E3F0EA;
  --der: #2B5CA8; --die: #B3335A; --das: #8A5A18;
  --der-soft: #E8EEF7; --die-soft: #F9E9ED; --das-soft: #F6EEDF;
  --u-a1: #167454; --u-a2: #2B7A9E; --u-b1: #6B4FA0; --u-b2: #9AA3A0;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.w-top, .w-foot, .wl) {
    --bg: #0F1513; --surface: #17201C; --ink: #E7EEEA; --muted: #9AAAA3; --line: #29352F;
    --brand: #3FB088; --brand-ink: #06140E; --brand-soft: #173328;
    --der: #7FA6E8; --die: #EB7F9F; --das: #D9A55A; --der-soft: #1B2638; --die-soft: #351C25; --das-soft: #322718;
    --u-a1: #3FB088; --u-a2: #5BB0D6; --u-b1: #A58BDB; --u-b2: #5F6965;
  }
}
:root[data-theme="dark"] :is(.w-top, .w-foot, .wl) {
  --bg: #0F1513; --surface: #17201C; --ink: #E7EEEA; --muted: #9AAAA3; --line: #29352F;
  --brand: #3FB088; --brand-ink: #06140E; --brand-soft: #173328;
  --der: #7FA6E8; --die: #EB7F9F; --das: #D9A55A; --der-soft: #1B2638; --die-soft: #351C25; --das-soft: #322718;
  --u-a1: #3FB088; --u-a2: #5BB0D6; --u-b1: #A58BDB; --u-b2: #5F6965;
}
.w-top, .w-foot, .wl { color: var(--ink); font: 400 1rem/1.6 var(--text); }
.w-top *, .w-foot *, .wl * { box-sizing: border-box; }
.wl { background: var(--bg); }
.w-top a, .w-foot a, .wl a { color: inherit; }
.w-top :focus-visible, .w-foot :focus-visible, .wl :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wl h1, .wl h2, .wl h3 { text-wrap: balance; margin: 0; }
.wl h2 { font: 600 clamp(1.7rem, 3.4vw, 2.4rem)/1.2 var(--display); letter-spacing: -0.01em; }
.wl [lang="de"], .w-foot [lang="de"] { font-style: normal; }
.w-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.w-kicker { font: 600 .75rem/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 .9rem; }
.w-lede { color: var(--muted); max-width: 60ch; margin: .8rem 0 0; }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 99px; background: var(--brand); color: var(--brand-ink) !important; font: 600 1rem/1 var(--text); text-decoration: none; border: 0; cursor: pointer; }
.w-btn:hover { filter: brightness(1.08); }
.w-btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- header: five things, nothing more ---------- */
.w-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.w-top .w-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.w-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.w-brand b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--brand-ink); font: 600 1.15rem/1 var(--display); }
.w-brand small { font: 600 .65rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 4px 7px; }
.w-nav { display: flex; gap: 22px; margin-inline-start: 8px; }
.w-top .w-nav > a { padding: 0; text-decoration: none; color: var(--muted); font-size: 1rem; font-weight: 500; }
.w-top .w-nav > a:hover { color: var(--ink); }
.w-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.w-lang { position: relative; }
.w-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font: 500 .9rem/1 var(--text); color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.w-lang summary::-webkit-details-marker { display: none; }
.w-lang summary:hover, .w-lang[open] summary { background: var(--brand-soft); color: var(--ink); }
.w-langnav { display: block; }
.w-lang .w-langnav { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); padding: 6px; min-width: 190px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
.w-lang ul { margin: 0; padding: 0; list-style: none; }
.w-lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; text-decoration: none; }
.w-lang li a:hover { background: var(--brand-soft); }
.w-lang li a span { font: 500 .75rem/1.6 var(--mono); color: var(--muted); }
.w-lang li a[aria-current] { font-weight: 700; }
.w-signin { text-decoration: none; font-weight: 500; }
.w-menu { display: none; }
@media (max-width: 820px) {
  .w-nav, .w-signin { display: none; }
  .w-top .w-wrap { gap: 10px; }
  .w-top .w-btn { min-height: 38px; padding: 0 14px; font-size: .9rem; }
  .w-menu { display: block; position: relative; }
  .w-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
  .w-menu summary::-webkit-details-marker { display: none; }
  .w-menu nav { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: grid; gap: 0; min-width: 200px; box-shadow: 0 12px 32px rgb(0 0 0 / .12); }
  .w-menu nav > a { padding: 11px 12px; text-decoration: none; border-radius: 8px; color: var(--ink); font-size: 1rem; }
  .w-menu nav > a:hover { background: var(--brand-soft); }
}
@media (max-width: 400px) { .w-lang summary .w-lname { display: none; } }

/* ---------- hero ---------- */
.w-hero .w-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 72px 56px; }
.w-hero .w-wrap > * { min-width: 0; }
.w-hero h1 { font: 600 clamp(2.4rem, 5.4vw, 4rem)/1.12 var(--display); letter-spacing: -0.02em; }
.w-hero h1 em { font-style: italic; color: var(--brand); }
.w-hero .w-lede { font-size: 1.12rem; }
.w-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.w-fine { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.w-fine + .w-fine { margin-top: 6px; }
.w-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.w-store { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; background: var(--surface); line-height: 1.2; }
.w-store.soon { border-style: dashed; }
.w-store small { display: block; color: var(--muted); font-size: .72rem; }
.w-store strong { font-size: .95rem; }
.w-qr { display: flex; align-items: center; gap: 10px; margin: 0; }
.w-qr img { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.w-qr figcaption { color: var(--muted); font-size: .8rem; max-width: 7em; }
@media (max-width: 860px) { .w-hero .w-wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 32px; } }
@media (max-width: 760px) { .w-qr { display: none; } }

/* the card: the one place German lives large */
.w-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgb(21 33 28 / .25); overflow: hidden; min-width: 0; }
.w-card-tab { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font: 600 .72rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.w-card-tab span:last-child { font-family: var(--mono); letter-spacing: 0; }
.w-card-body { padding: 28px 24px 24px; }
.w-art { display: inline-block; font: 600 .95rem/1 var(--text); padding: 6px 10px; border-radius: 8px; margin-bottom: 10px; }
.w-chips .w-art { margin: 0; }
.w-art.der { color: var(--der); background: var(--der-soft); } .w-art.die { color: var(--die); background: var(--die-soft); } .w-art.das { color: var(--das); background: var(--das-soft); }
.w-head { font: 600 clamp(2.6rem, 6vw, 3.6rem)/1.18 var(--display); margin: 0; overflow-wrap: anywhere; }
.w-plural { color: var(--muted); margin: 4px 0 0; }
.w-answer { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 14px; }
.w-meaning { font: 600 1.35rem/1.3 var(--text); }
.w-ex p { margin: 0; }
.w-ex .de { font: 500 1.1rem/1.45 var(--display); }
.w-ex .tr { color: var(--muted); font-size: .95rem; }
.w-ex .src { font: 500 .72rem/1.5 var(--mono); color: var(--muted); margin-top: 4px; }
.w-ex .ai { display: inline-block; font: 600 .66rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 6px; border-radius: 6px; margin-top: 6px; }
.w-card-foot { padding: 0 24px 24px; }
.w-reveal { width: 100%; }
.w-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.w-rate button { min-height: 46px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 600 .92rem/1.2 var(--text); cursor: pointer; }
.w-rate button:hover { border-color: var(--brand); }
.w-rate button span { display: block; font: 500 .68rem/1.4 var(--mono); color: var(--muted); margin-top: 3px; }
.w-card-note { color: var(--muted); font-size: .85rem; margin: 12px 0 0; text-align: center; }

/* ---------- languages ---------- */
.w-band { padding-block: 72px; }
.w-band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.w-langs { padding-block: 24px 72px; }
.w-lang-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.w-lang-grid a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; min-width: 0; }
.w-lang-grid a:hover, .w-lang-grid a[aria-current] { border-color: var(--brand); }
.w-lang-grid .ln { font-weight: 700; font-size: 1.05rem; }
.w-lang-grid .lc { font: 500 .75rem/1.8 var(--mono); color: var(--muted); grid-row: 1; grid-column: 2; }
.w-lang-grid .lw { grid-column: 1 / -1; color: var(--muted); font: 500 1.05rem/1.5 var(--display); }
.w-lang-word { margin: 18px 0 0; color: var(--muted); display: flex; align-items: center; gap: 8px; font: 600 1.2rem/1 var(--display); }
.w-lang-word .w-art { margin: 0; }
@media (max-width: 720px) { .w-lang-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .w-lang-grid { grid-template-columns: 1fr; } }

/* ---------- the line ---------- */
.w-line { list-style: none; padding: 0; margin: 44px 0 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.w-line::before { content: ""; position: absolute; top: 15px; inset-inline: 12.5%; height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--u-a1) 0 33%, var(--u-a2) 33% 66%, var(--u-b1) 66% 100%); }
[dir="rtl"] .w-line::before { background: linear-gradient(to left, var(--u-a1) 0 33%, var(--u-a2) 33% 66%, var(--u-b1) 66% 100%); }
.w-stop { position: relative; display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; padding-inline: 10px; }
.w-stop.a1 { --c: var(--u-a1); } .w-stop.a2 { --c: var(--u-a2); } .w-stop.b1 { --c: var(--u-b1); } .w-stop.b2 { --c: var(--u-b2); }
.w-stop .dot { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 6px solid var(--c); z-index: 1; }
.w-stop.next .dot, .w-stop.soon .dot { border-style: dashed; }
.w-stop .code { font: 700 1.5rem/1 var(--text); color: var(--c); margin-top: 8px; }
.w-stop h3 { font: 600 1.05rem/1.3 var(--text); }
.w-stop .ex-name { color: var(--muted); font-size: .88rem; max-width: 24ch; }
.w-stop .count { font: 500 .85rem/1.4 var(--mono); font-variant-numeric: tabular-nums; margin-top: 4px; }
.w-stop .pill { font: 600 .66rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 720px) {
  .w-line { grid-template-columns: 1fr; gap: 26px; }
  .w-line::before, [dir="rtl"] .w-line::before { top: 19px; bottom: 19px; inset-inline: 16px auto; width: 8px; height: auto; background: linear-gradient(to bottom, var(--u-a1) 0 33%, var(--u-a2) 33% 66%, var(--u-b1) 66% 100%); }
  .w-stop { grid-template-columns: 40px 1fr; justify-items: start; text-align: start; column-gap: 16px; padding: 0; }
  .w-stop .dot { grid-row: 1 / span 5; }
  .w-stop > :not(.dot) { grid-column: 2; }
  .w-stop .code { margin-top: 0; }
}

/* ---------- steps ---------- */
.w-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.w-step { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.w-band:not(.alt) .w-step { background: var(--surface); }
.w-step b { font: 500 .8rem/1 var(--mono); color: var(--brand); }
.w-step h3 { font: 600 1.15rem/1.3 var(--text); margin: 10px 0 6px; }
.w-step p { margin: 0; color: var(--muted); }
.w-chips { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .w-steps { grid-template-columns: 1fr; } }

/* ---------- exam table ---------- */
.w-split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.w-split > * { min-width: 0; }
@media (max-width: 860px) { .w-split { grid-template-columns: 1fr; gap: 24px; } }
.w-tbl { overflow-x: auto; min-width: 0; }
.w-tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.w-tbl th, .w-tbl td { text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.w-tbl thead th { font: 600 .72rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.w-tbl tbody th { font-weight: 600; }
.w-tbl tbody th small { display: block; font-weight: 400; color: var(--muted); }
.w-mark { white-space: nowrap; font-weight: 600; }
.w-mark.yes { color: var(--brand); } .w-mark.part, .w-mark.no { color: var(--muted); }

/* ---------- inside, good to know, FAQ ---------- */
.w-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 36px; }
.w-grid2 > div { background: var(--surface); padding: 24px; min-width: 0; }
.w-grid2 > .wide { grid-column: 1 / -1; }
.w-grid2 h3 { font: 600 1.05rem/1.3 var(--text); margin-bottom: 6px; }
.w-grid2 p { margin: 0; color: var(--muted); }
.w-grid2 .w-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.w-grid2 .w-links a { color: var(--brand); font-weight: 600; }
@media (max-width: 720px) { .w-grid2 { grid-template-columns: 1fr; } }
.w-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.w-facts li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.w-facts li > div { min-width: 0; }
.w-facts h3 { font: 600 1.05rem/1.3 var(--text); }
.w-facts p { margin: 2px 0 0; color: var(--muted); }
.w-facts a { color: var(--brand); font-weight: 600; }
.w-badge { flex: none; min-width: 64px; text-align: center; font: 600 .66rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--ink); margin-top: 2px; }
.w-badge.soon { background: transparent; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 480px) { .w-facts li { flex-direction: column; gap: 8px; } }
.w-faq { margin-top: 28px; border-top: 1px solid var(--line); }
.w-faq details { border-bottom: 1px solid var(--line); }
.w-faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after { content: "+"; font: 500 1.3rem/1 var(--mono); color: var(--brand); }
.w-faq details[open] summary::after { content: "−"; }
.w-faq p { margin: 0 0 18px; color: var(--muted); max-width: 68ch; }

/* ---------- final + footer ---------- */
.w-final { text-align: center; }
.w-final h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.w-final .w-lede { margin-inline: auto; }
.w-final .w-cta-row { justify-content: center; }
.w-foot { background: var(--bg); border-top: 1px solid var(--line); padding-block: 48px 32px; font-size: .92rem; line-height: 1.6; }
.w-cols { display: grid; grid-template-columns: 1.4fr repeat(auto-fit, minmax(120px, 1fr)); gap: 28px; }
.w-cols > * { min-width: 0; }
.w-cols h4 { font: 600 .72rem/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.w-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.w-cols li a { text-decoration: none; color: var(--muted); }
.w-cols li a:hover { color: var(--ink); }
.w-cols p { color: var(--muted); margin: 10px 0 0; max-width: 32ch; }
.w-theme { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 99px; margin-top: 16px; }
.w-theme[hidden] { display: none; }
.w-theme button { border: 0; background: none; color: var(--muted); font: 500 .8rem/1 var(--text); padding: 7px 11px; border-radius: 99px; cursor: pointer; }
.w-theme button[aria-pressed="true"] { background: var(--brand-soft); color: var(--ink); }
.w-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.w-legal a { color: inherit; }
.w-foot .w-langnav { display: flex; flex-wrap: wrap; gap: 4px 0; }
.w-foot .w-langnav a { text-decoration: none; padding: 4px 3px; }
.w-foot .w-langnav a[aria-current] { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .w-cols { grid-template-columns: 1fr 1fr; } .w-cols > :first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: no-preference) { .w-answer:not([hidden]) { animation: w-rise .35s ease-out; } @keyframes w-rise { from { opacity: .3; transform: translateY(6px); } } }
[dir="rtl"] .w-foot a[href*="tatoeba.org"] { unicode-bidi: isolate; }
.w-lang-grid a[lang="ar"] { direction: rtl; }
