/* News Chinese (뉴스중국어학습 · 新闻中文) — landing site styles.
   Palette from the iOS app (NewsTheme.swift) + the icon's navy / paper / red seal.
   System fonts only. No inline styles anywhere (strict CSP). */

:root {
  color-scheme: light dark;
  --bg: #f4f7fb;            /* NewsTheme ambient (light) */
  --bg-alt: #eaf0f8;
  --surface: #ffffff;       /* NewsTheme cell */
  --ink: #16233a;           /* NewsTheme primaryText, a touch deeper */
  --ink-2: #435269;         /* NewsTheme secondaryText, AA on --bg */
  --muted: #59677c;
  --line: #d7dfea;          /* NewsTheme separator */
  --accent: #2c63b9;        /* NewsTheme accent #3870C7, deepened for AA text */
  --accent-ink: #ffffff;
  --accent-soft: #dde9fb;   /* NewsTheme highlightBackground */
  --accent-strong: #1c4d94; /* NewsTheme highlightForeground */
  --seal: #c8161d;          /* the red 新 of the icon (background, white text on it) */
  --seal-ink: #ffffff;
  --seal-text: #c8161d;     /* red used as text on --bg */
  --glow: #d7e7fd;
  --band: #e3ecf8;
  --shadow: 0 1px 2px rgba(22, 35, 58, 0.06), 0 12px 32px rgba(32, 58, 98, 0.14);
  --shadow-sm: 0 1px 2px rgba(22, 35, 58, 0.08), 0 4px 14px rgba(32, 58, 98, 0.08);
  --radius: 18px;
  --gutter: 16px;
  --maxw: 1120px;
  --narrow: 760px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ko: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --font-ja: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --font-zh: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151f;          /* NewsTheme ambient (dark) */
    --bg-alt: #151c29;
    --surface: #1c2433;     /* NewsTheme card (dark) */
    --ink: #eef3fa;
    --ink-2: #bccadb;
    --muted: #97a6ba;
    --line: #2d3848;
    --accent: #7db7f8;      /* NewsTheme accent (dark) */
    --accent-ink: #0d1626;
    --accent-soft: #1d2f4d;
    --accent-strong: #a9cffc;
    --seal: #cc3036;        /* white on it: 5.2:1 */
    --seal-ink: #ffffff;
    --seal-text: #ec5b60;   /* on --bg: 5.1:1 */
    --glow: #172a47;
    --band: #172033;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(0, 0, 0, 0.3);
  }
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 68px; } }

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  overflow-wrap: break-word;   /* long compounds (German, French, Vietnamese) never push the page wider */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:lang(ko) { font-family: var(--font-ko); word-break: keep-all; overflow-wrap: break-word; }
:lang(ja) { font-family: var(--font-ja); line-break: strict; }
:lang(zh-Hans) { font-family: var(--font-zh); word-break: normal; }
body:lang(ko), body:lang(ja) { line-height: 1.75; }
/* Japanese headings, "who it's for" items and screenshot titles break only between phrases, never
   inside a word ("中国語ニュー / ス"): the build puts <wbr> between phrases (util.mjs inlineJa) and
   keep-all forbids every other break, in Safari as well as Chrome. A phrase wider than the line
   still breaks (overflow-wrap: anywhere) instead of overflowing. */
:lang(ja) :is(h1, h2, h3, .check-list li > span, .shot figcaption strong) { word-break: keep-all; overflow-wrap: anywhere; }

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }

h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Short pieces the build keeps on one line (scripts/lib/util.mjs glue): the hyphenated app name,
   {zh:…} proper nouns such as 联合国新闻 / VOA 中文, "-Oberstufe", "한자·", "7章". */
.nobr { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon { flex: none; display: block; }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 10px; color: var(--accent-ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------------------------------------------------------------- badge */

.badge { display: inline-block; flex: none; line-height: 0; border-radius: 9px; }
.badge img { display: block; width: auto; }
.badge-header img { height: 40px; }
.badge-hero img { height: 56px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.brand-text { display: flex; flex-direction: column; min-width: 0; overflow: hidden; line-height: 1.15; }
/* Long names (fr, vi, de) wrap to a second line instead of being cut off. */
.brand-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 750;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}
/* Phones: the name stays in the link's accessible name but only 新闻中文 is drawn. */
@media (max-width: 559px) {
  .brand-name {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    border: 0;
  }
}
@media (min-width: 560px) {
  .brand-text .brand-mark { font-size: 0.74rem; color: var(--seal-text); letter-spacing: 0.14em; margin-top: 2px; }
}

/* Narrow phones: everything in the bar must fit in 360px without overlap
   (icon + 新闻中文 + language button + 40px-high official badge with >= 10px clear space). */
@media (max-width: 419px) {
  .brand { gap: 8px; }
  .brand-mark { font-size: 0.95rem; letter-spacing: 0.04em; }
  .lang-menu summary { padding: 0 8px; }
  .lang-menu .chevron { display: none; }
}
/* Below 360px 新闻中文 no longer fits next to the language button and the badge (it would be cut to
   "新闻中"): only the icon is drawn, and the app name + 新闻中文 stay the link's accessible name. */
@media (max-width: 359px) {
  .brand-text .brand-mark {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    border: 0;
  }
}

/* In-page links only where the bar has room for them next to long app names (fr, vi, de);
   if a translation is still too long the links wrap onto a second row instead of overlapping. */
.page-nav { display: none; }
@media (min-width: 1200px) {
  .page-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 4px; min-width: 0; margin-right: 8px; }
  .page-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .page-nav a:hover { background: var(--bg-alt); color: var(--ink); }
}

.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--muted); }
.lang-menu .chevron { transition: transform 0.2s ease; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 184px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang-list a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.lang-list a:hover { background: var(--bg-alt); }
.lang-list a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; }
/* Phones: anchor the list to the header's right gutter, not to the globe button, so a 184px list
   never starts left of a 320px screen. */
@media (max-width: 419px) {
  .lang-menu { position: static; }
  .lang-list { right: var(--gutter); }
}

/* ---------------------------------------------------------------- language suggestion */

/* site.js may un-hide the bar after the first paint, so it floats at the bottom instead of
   pushing the page down (no layout shift). */
.suggest {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--accent-soft);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 14px rgba(32, 58, 98, 0.12);
}
/* While the bar is shown, the end of the footer can still scroll above it. */
body:has(#lang-suggest:not([hidden])) { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.suggest-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 10px 40px 10px 0;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
}
.suggest-item a { font-weight: 700; }
.suggest-close {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.suggest-close:hover { background: var(--surface); color: var(--ink); }

/* ---------------------------------------------------------------- hero */

.hero {
  padding-block: 36px 56px;
  background:
    radial-gradient(900px 420px at 88% -8%, var(--glow), transparent 62%),
    radial-gradient(600px 360px at -10% 110%, var(--glow), transparent 60%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seal {
  display: inline-block;
  padding: 5px 10px 6px;
  border-radius: 6px;
  background: var(--seal);
  color: var(--seal-ink);
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

.hero h1 {
  font-size: clamp(2.2rem, 1.55rem + 3.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
/* ニュース中国語学習 is 9 full-width characters: keep it on one line on every width — below ~310px
   (page zoom, narrow phones) the font shrinks with the line instead of orphaning 習. */
.hero h1:lang(ja) { font-size: min(clamp(1.9rem, 1.35rem + 2.5vw, 3.3rem), calc((100vw - 2 * var(--gutter)) / 9.4)); letter-spacing: -0.01em; }
/* "News-Chinesisch" never breaks at its hyphen (a nobr span, ~7.9em wide): below ~320px (page zoom,
   narrow phones) the font shrinks so it still fits the line instead of running off the screen. */
.hero h1:lang(de) { font-size: min(clamp(2.2rem, 1.55rem + 3.4vw, 3.9rem), calc((100vw - 2 * var(--gutter)) / 8.3)); }
.hero-subtitle {
  margin-top: 12px;
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 650;
  color: var(--accent-strong);
}
.hero-lead {
  margin-top: 18px;
  max-width: 38em;
  font-size: 1.05rem;
  color: var(--ink-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 28px;
}
.cta-note { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.hero-shot {
  margin: 0 auto;
  width: min(76%, 300px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 720 / 1180;
  object-fit: cover;
  object-position: top;
}

@media (min-width: 900px) {
  .hero { padding-block: 64px 88px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .hero-shot { width: min(100%, 360px); margin-right: 0; }
}

/* ---------------------------------------------------------------- sections */

.intro, .features, .gallery, .compare, .recommend, .faq { padding-block: clamp(56px, 8vw, 96px); }
.features, .compare, .faq { border-top: 1px solid var(--line); }
.gallery, .recommend { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--seal);
}

/* intro */
.intro { background: var(--surface); border-top: 1px solid var(--line); }
.hook {
  font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  padding-left: 18px;
  border-left: 4px solid var(--seal);
}
.intro p { margin-top: 18px; font-size: 1.06rem; color: var(--ink-2); }
.intro .hook + p { margin-top: 26px; }

/* features */
.feature-grid {
  display: grid;
  gap: 36px;
  margin-top: 36px;
}
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; } }
.feature { border-top: 2px solid var(--ink); padding-top: 16px; min-width: 0; }
.feature-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--seal-text);
  font-variant-numeric: tabular-nums;
}
.feature h3 { margin-top: 6px; font-size: 1.22rem; font-weight: 750; letter-spacing: -0.01em; }
.feature p { margin-top: 12px; color: var(--ink-2); }
.dot-list { margin: 12px 0 0; padding: 0; list-style: none; }
.dot-list li { position: relative; padding-left: 20px; color: var(--ink); font-weight: 600; }
.dot-list li + li { margin-top: 6px; }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* gallery */
.swipe-hint { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.shots {
  margin-top: 28px;
  padding: 4px var(--gutter) 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}
.shots:focus-visible { outline-offset: -3px; }
.shot-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 250px);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shot { scroll-snap-align: start; min-width: 0; }
/* Phones/tablets: the end gutter belongs to the list itself (Safari leaves a scroller's own end
   padding out of the scroll range), so the last card stops one gutter short of the edge. */
@media (max-width: 959px) {
  .shots { padding-right: 0; }
  .shot-list { width: max-content; padding-right: var(--gutter); }
}
.shot figure { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); line-height: 1.55; }
.shot figcaption strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1rem; }

@media (min-width: 960px) {
  .swipe-hint { display: none; }
  .shots { overflow: visible; scroll-snap-type: none; padding: 0; }
  .shot-list {
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 36px 22px;
  }
}

/* compare */
.compare .lead { margin-top: 16px; color: var(--ink-2); font-size: 1.04rem; }
.compare-table {
  width: 100%;
  margin-top: 28px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  overflow-wrap: anywhere;   /* last-resort guard: a cell never grows wider than its column */
  hyphens: manual;
}
/* Only German compounds ("kapitelübergreifend") hyphenate in the 3-column table — and every
   language below 360px, where whole words would otherwise be cut without a hyphen. Short words
   ("lesen") are never split: at least 3 letters on each side, 6 in the word. From 340px German
   needs 6 letters on each side, so only long compounds break: Safari ignores
   hyphenate-limit-chars and would otherwise split words that fit on the next line ("kos-tenlos",
   "Kapi-tel", "chi-nesische"). Below 340px 6/6 is too strict and cuts "Kostenlo/s" unhyphenated. */
.compare-table :is(th, td):lang(de) { -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 359px) { .compare-table :is(th, td) { -webkit-hyphens: auto; hyphens: auto; } }
.compare-table :is(th, td) {
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  hyphenate-limit-chars: 6 3 3;
}
@media (min-width: 340px) {
  .compare-table :is(th, td):lang(de) {
    -webkit-hyphenate-limit-before: 6;
    -webkit-hyphenate-limit-after: 6;
    hyphenate-limit-chars: 12 6 6;
  }
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  background: var(--bg-alt);
}
.compare-table thead th:first-child { text-align: left; width: 40%; }
.compare-table thead th.pro { color: var(--accent-ink); background: var(--accent); }
.compare-table tbody th { text-align: left; font-weight: 650; color: var(--ink); }
.compare-table td { text-align: center; color: var(--ink-2); }
.compare-table td.pro { background: var(--accent-soft); background: color-mix(in srgb, var(--accent-soft) 70%, transparent); color: var(--ink); font-weight: 650; }
.mark { display: inline-flex; vertical-align: middle; }
.mark.yes { color: var(--accent); }
.mark.no { color: var(--muted); }
@media (min-width: 600px) {
  .compare-table th, .compare-table td { padding: 16px 18px; }
}
.pricing-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* recommend */
/* minmax(0, 1fr): the implicit track would grow to min-content ("Wirtschaftschinesisch") on narrow screens. */
.check-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
}
.check-list li > span { text-wrap: pretty; min-width: 0; }
@media (min-width: 720px) {
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* An odd last card (3 or 5 items) spans the row instead of leaving an empty cell. */
  .check-list > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.check-list .icon {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* faq */
.faq-list { margin-top: 24px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.45; }
.faq-icon { color: var(--accent); transition: transform 0.2s ease; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 2px 20px; color: var(--ink-2); }

/* closing */
.closing { padding-block: clamp(56px, 8vw, 96px); background: var(--band); border-top: 1px solid var(--line); }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.closing-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 8px; }
.closing h2 { font-size: clamp(1.45rem, 1.15rem + 1.5vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.closing p { color: var(--ink-2); max-width: 34em; font-size: 1.05rem; }
.closing .badge { margin-top: 10px; }
.closing .cta-note { font-size: 0.9rem; color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: 40px 48px;
  border-top: 3px double var(--line);
  background: var(--bg);
  font-size: 0.92rem;
  color: var(--ink-2);
}
.footer-top { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-brand .brand-mark { font-size: 0.85rem; color: var(--seal-text); letter-spacing: 0.12em; }
/* icon + "News-Chinesisch" (nobr) + 新闻中文 no longer fit one row below ~300px. */
@media (max-width: 299px) { .footer-brand { flex-wrap: wrap; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .footer-lang-list a { color: var(--ink-2); }
.footer-links a:hover, .footer-lang-list a:hover { color: var(--accent); }
.footer-langs { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-heading { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-lang-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; padding: 0; list-style: none; }
.footer-lang-list a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.fine { margin-top: 24px; display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: auto 1fr; align-items: center; }
  .footer-links { justify-content: flex-end; }
}

/* ---------------------------------------------------------------- 404 */

.page-404 { display: grid; place-items: center; min-height: 100vh; }
.nf { padding-block: 48px; text-align: center; }
.nf-icon { width: 80px; height: 80px; border-radius: 20px; box-shadow: var(--shadow); }
.nf .eyebrow { justify-content: center; margin: 22px 0 6px; }
.nf .eyebrow::after { display: none; }
.nf h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.nf-list {
  display: grid;
  gap: 10px;
  margin: 26px auto 0;
  padding: 0;
  max-width: 720px;
  list-style: none;
  text-align: left;
}
@media (min-width: 640px) { .nf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nf-list li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.nf-list p { color: var(--ink-2); font-size: 0.92rem; }
.nf-list a { font-weight: 700; }

/* ---------------------------------------------------------------- motion */

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