/* www.8pwd.com — 唯一的样式表。零 JavaScript，系统字体。
   骨架与 www.babeltoken.com 同源；品牌色换成 8PWD 的琥珀（与 App 的 DS.brand 一致）。

   浅 / 深色默认跟随系统；每页顶部有「跟随系统 · 浅色 · 深色」三个链接，指向 /light/… 与 /dark/… 两套
   预生成的变体页（html[data-theme]），仍然零脚本、零 cookie，隐私政策里「不执行 JavaScript」一字不改。
   截图的深浅两套图：默认页用 <picture media="(prefers-color-scheme: dark)"> 切换，变体页直接给对应那张。 */

:root {
  --bg: #faf8f5;
  --bg-2: #f3efe8;
  --card: #ffffff;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #8a827a;
  --line: #e7e1d8;
  --brand: #b45309;
  --brand-ink: #ffffff;
  --brand-soft: #fdf3e3;
  --accent: #ea580c;
  --ok: #16a34a;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .05), 0 10px 30px -18px rgba(28, 25, 23, .28);
  --measure: 68ch;
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17140f;
    --bg-2: #1f1b15;
    --card: #221e18;
    --ink: #f5f3f0;
    --ink-2: #cfc7bc;
    --ink-3: #948b80;
    --line: #38312a;
    --brand: #fbbf24;
    --brand-ink: #2a1c05;
    --brand-soft: #33240e;
    --accent: #fb923c;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
    --bg: #17140f;
    --bg-2: #1f1b15;
    --card: #221e18;
    --ink: #f5f3f0;
    --ink-2: #cfc7bc;
    --ink-3: #948b80;
    --line: #38312a;
    --brand: #fbbf24;
    --brand-ink: #2a1c05;
    --brand-soft: #33240e;
    --accent: #fb923c;
    --ok: #4ade80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -16px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
        "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
code { font: 0.92em/1 var(--mono); background: var(--bg-2); padding: .1em .35em; border-radius: 6px; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2.2em; }
h3 { font-size: 1.1rem; margin: 0 0 .3em; }
p { margin: 0 0 1em; }
.inner { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* 页眉 */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* 頁眉比正文寬（正文 1080，頁眉 1360）：六個導航項 + 主題切換 + 語言選單在德 / 西 / 葡 / 日文里要 1280px 才放得下。
   品牌區 flex:none + 圖標固定尺寸：以前它是唯一能被壓縮的項，一超寬「8PWD」就擠進導航、圖標被壓扁（2026-09-29 用戶反饋）。
   放不下時先把主題切換退到頁腳，再把導航收進 ☰（<details>，零腳本）；中文標籤短，斷點另設。 */
.site-header .inner { display: flex; align-items: center; gap: 22px; height: 60px; max-width: 1360px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; color: var(--ink); white-space: nowrap; flex: none; }
.brand img { border-radius: 8px; flex: none; width: 28px; height: 28px; max-width: none; }
.site-nav { display: flex; gap: 16px; margin-left: auto; font-size: .95rem; }
.site-nav a, .menu nav a, .lang { color: var(--ink-2); white-space: nowrap; }
.site-nav a:hover, .lang:hover { color: var(--brand); text-decoration: none; }
.lang { font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.controls { display: flex; align-items: center; gap: 8px; flex: none; }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; font-size: 1.05rem; line-height: 1; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { color: var(--brand); }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: flex; flex-direction: column; gap: 2px; min-width: 220px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.menu nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.menu nav a:hover { background: var(--bg-2); text-decoration: none; }
/* 非中文：主題切換 < 1300 退到頁腳；導航 < 1020 收進 ☰。中文：分別是 920 / 700。 */
@media (max-width: 1019px) { html:not([lang^="zh"]) .site-nav { display: none; } html:not([lang^="zh"]) .menu { display: block; } html:not([lang^="zh"]) .controls { margin-left: auto; } }
@media (max-width: 699px) { html[lang^="zh"] .site-nav { display: none; } html[lang^="zh"] .menu { display: block; } html[lang^="zh"] .controls { margin-left: auto; } }

/* 首页 */
.hero { padding: 72px 0 44px; background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.kicker { color: var(--brand); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: var(--measure); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 1.6em; }
.button { display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: 13px 22px; border-radius: 999px; }
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.ghost { background: var(--brand-soft); color: var(--brand); margin-right: 10px; }
.store { color: var(--ink-3); font-size: .95rem; }
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .inner { grid-template-columns: 1fr; }
}

/* 手机截图外框 */
.phone {
  margin: 0; justify-self: center; width: min(300px, 78vw);
  border-radius: 44px; padding: 12px; background: #100d09;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.phone img { border-radius: 34px; }
.phone.small { width: 100%; max-width: 240px; border-radius: 36px; padding: 9px; }
.phone.small img { border-radius: 28px; }
.phone.aside { width: 220px; border-radius: 34px; padding: 8px; }
.phone.aside img { border-radius: 27px; }

/* 「开始之前请先看这一段」—— 整个产品最该被读到的一句话 */
.warn-wrap { padding: 8px 0 18px; }
.warn-wrap .inner { max-width: 900px; }
.warn {
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
  border-left: 4px solid var(--brand); border-radius: 14px; padding: 22px 26px;
}
.warn h2 { margin: 0 0 .4em; font-size: 1.15rem; color: var(--brand); }
.warn p { margin: 0; color: var(--ink-2); }

/* 三步 */
.how { padding: 30px 0 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.steps li p { color: var(--ink-2); font-size: .98rem; margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

/* 特性 */
.facts-wrap { padding: 34px 0 10px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.facts li > b { display: block; font-size: 1.05rem; margin-bottom: .35em; }
.facts span { color: var(--ink-2); font-size: .98rem; }
.facts span b { color: var(--ink); }

/* 自己动手验证 */
.verify { padding: 44px 0 10px; }
.verify .inner { max-width: 900px; }
.verify > .inner > p { color: var(--ink-2); }

/* 刻意不做的事 */
.nots { padding: 34px 0 10px; }
.nots .inner { max-width: 820px; }
.nots ul { padding-left: 1.2em; }
.nots li { margin-bottom: .55em; color: var(--ink-2); }
.nots li b { color: var(--ink); }

.privacy { padding: 44px 0 10px; }
.privacy .inner { max-width: 820px; }
.privacy p { font-size: 1.08rem; color: var(--ink-2); }

.screens { padding: 34px 0 70px; }
/* 固定三列：六张图刚好两行。用 auto-fill 的话宽屏会排成 5 + 1，最后一张孤零零挂着。 */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery li { display: grid; justify-items: center; gap: 10px; }
.gallery figcaption { font-size: .9rem; color: var(--ink-2); text-align: center; }
.note { color: var(--ink-3); font-size: .95rem; }

/* 文档页 */
.doc { padding: 56px 0 80px; }
.doc .inner { max-width: 820px; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--ink-3); font-size: .95rem; }
.doc .big a { font-size: 1.4rem; font-weight: 700; }
.doc h3 { margin-top: 1.6em; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; max-width: none; }
.cards li h3 { margin-top: 0; }
.cards li p { max-width: none; }
.cards li p:last-child { margin-bottom: 0; }
.legal .num { color: var(--brand); margin-right: .3em; }
.legal h2 { font-size: 1.25rem; margin-top: 2em; }

/* 说明书 */
.guide .inner { max-width: 1000px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px 8px; margin: 30px 0 10px; }
.toc h2 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .6em; }
.toc ol { columns: 2; column-gap: 30px; margin: 0; padding-left: 1.2em; }
.toc li { break-inside: avoid; margin-bottom: .3em; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.chapter { padding: 26px 0; border-bottom: 1px solid var(--line); }
.chapter:last-of-type { border-bottom: 0; }
.chapter h2 { margin-top: 0; }
.chapter.with-shot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: start; }
.chapter .text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .chapter.with-shot { grid-template-columns: 1fr; }
  .phone.aside { justify-self: start; }
}

/* 语言菜单：<details>，不用脚本 */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; font-size: .9rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--brand); }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; list-style: none; margin: 0; padding: 8px; min-width: 200px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); columns: 2; column-gap: 4px; }
.langs li { break-inside: avoid; }
.langs li a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: .92rem; white-space: nowrap; }
.langs li a:hover { background: var(--bg-2); text-decoration: none; }
.langs li a[aria-current] { color: var(--brand); font-weight: 700; }
/* 375px 以下只有「Português (Brasil)」放不下：按剩余宽度截断，其余语言不受影响 */
@media (max-width: 399px) { .langs summary { max-width: calc(100vw - 212px); overflow: hidden; text-overflow: ellipsis; } }

/* App Store 徽章、评分、分享 */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .6em; }
.badges img { height: 50px; width: auto; }
.badge-pending { display: inline-block; opacity: .38; filter: grayscale(1); cursor: default; }
.pending { color: var(--ink-3); font-size: .9rem; max-width: var(--measure); margin-top: -.2em; }
.rating { color: var(--ink-2); font-size: .95rem; }
.rating .stars { color: var(--brand); letter-spacing: .05em; }
.share { padding: 30px 0 60px; }
.share .inner { max-width: 820px; }
.share p { color: var(--ink-2); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.share-links a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .92rem; }
.share-links a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.share-copy label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-3); }
.share-copy input { flex: 1 1 260px; font: inherit; font-size: .92rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--ink); }

/* 三平台 */
.platforms { padding: 34px 0 10px; }
.platforms > .inner > p { color: var(--ink-2); max-width: var(--measure); }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 26px; }
.cards.two { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cards.two h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.cards.two p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.gallery.pads, .gallery.macs { margin-top: 18px; }
.gallery.macs { grid-template-columns: 1fr; }
.gallery.macs li { justify-items: stretch; }
figure.ipad { margin: 0; width: 100%; max-width: 300px; border-radius: 22px; padding: 10px; background: #100d09; box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .07); }
figure.ipad img { border-radius: 14px; }
figure.mac { margin: 0; width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }

/* FAQ、更新日志、对比表、迁移指南、媒体包 */
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style: none; position: relative; padding-right: 28px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--brand); font-weight: 400; font-size: 1.3rem; }
.qa[open] summary::after { content: "–"; }
.qa p { color: var(--ink-2); margin: 0 0 14px; }
.faq-group { margin-top: 30px; }
.faq-group h2 { margin-bottom: .2em; }
.release { padding: 22px 0; border-bottom: 1px solid var(--line); }
.release:last-of-type { border-bottom: 0; }
.release h2 { margin: 0 0 .2em; }
.release .meta { margin-bottom: .8em; }
.steps.stacked { grid-template-columns: 1fr; }
.steps.stacked li p { color: var(--ink); }
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; -webkit-overflow-scrolling: touch; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); max-width: none; }
.table-wrap thead th { background: var(--bg-2); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.table-wrap tbody th { font-weight: 600; color: var(--ink); width: 26%; }
.table-wrap td:nth-child(2) { background: var(--brand-soft); font-weight: 600; }
.facts-table { min-width: 0 !important; }
.facts-table th { width: 30%; }
.press-icons { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 16px; }
.press-icons a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
.press-icons img { border-radius: 14px; }
.prevails { background: var(--brand-soft); color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: .95rem; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 50px; color: var(--ink-2); font-size: .92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.site-footer nav a { color: var(--ink-2); }
.site-footer .footer-langs a { color: var(--ink-3); font-size: .88rem; }
.site-footer .copy { color: var(--ink-3); }

/* 打印：法律文件经常被打印存档，导航、截图、外观说明都没有意义。 */
@media print {
  .site-header, .site-footer nav, .skip, .phone, .actions, .toc, .share, .badges, .langs, .menu { display: none; }
  body { font-size: 11pt; background: #fff; color: #000; }
  .doc { padding: 0; }
  .inner { max-width: none; padding: 0; }
  .cards li, .steps li, .facts li { border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
}

/* 顶部「跟随系统 · 浅色 · 深色」（零脚本：三个链接指向三套页面） */
/* 外觀切換：頂欄是三顆圖標（跟隨系統 / 淺色 / 深色），任何寬度、任何語言都常駐 —— 以前非中文頁在 1300px 以下藏到頁腳，
   英文用戶在筆記本上根本看不到（用戶 2026-10-05 反饋，2.0 畫布 D1）。文字版留在頁腳。 */
.theme { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.theme a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px; color: var(--ink-2); border-radius: 999px; }
.theme a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme a:hover { color: var(--brand); text-decoration: none; }
.theme a[aria-current="true"] { background: var(--brand-soft); color: var(--brand); }
.theme .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-theme { display: flex; gap: 14px; justify-content: center; margin: 6px 0 10px; font-size: .9rem; border: 0; padding: 0; }
.footer-theme a { width: auto; height: auto; padding: 3px 10px; gap: 6px; font-size: .9rem; }
.footer-theme .sr { position: static; width: auto; height: auto; clip: auto; }
.footer-theme a[aria-current="true"] { font-weight: 600; }

/* 版本注：站点写的是 1.1，商店里还是 0.0.2 */
.version-note { margin: 0; padding: 8px 20px; text-align: center; font-size: .88rem; color: var(--ink-2); background: var(--brand-soft); border-bottom: 1px solid var(--line); }

/* 首页「1.1 新功能」专区 */
.new-wrap { padding: 40px 0 6px; }
.new-wrap .kicker { margin-bottom: .5em; }
.new-wrap h2 { margin-top: 0; }
.new-wrap .lede { color: var(--ink-2); max-width: var(--measure); margin: -.2em 0 1.1em; }
.new-wrap .actions { margin: 18px 0 0; }


/* 2.0 預覽視頻（首頁）：手機豎屏，左文右影；窄屏上下排。 */
.preview-wrap { padding: 56px 0; background: var(--bg-2); }
.preview-wrap .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.preview-wrap video { display: block; width: 100%; max-width: 320px; margin: 0 auto; border-radius: 28px; border: 1px solid var(--line); background: #000; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.preview-wrap .note { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 860px) { .preview-wrap .inner { grid-template-columns: 1fr; } }

/* 意图页（/pay-once 等，2026-10-07）：底部下载区与「接着读」 */
.doc .cta { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 8px; margin: 2.2em 0 1.6em; }
.doc .cta h2 { margin-top: 0; }
.doc .related { list-style: none; padding-left: 0; }
.doc .related li { margin-bottom: .5em; }

/* 3.1 科普頁（/learn 與各篇） */
.explainer .kicker a, .learn .kicker a { color: inherit; }
.link-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 10px 0 26px; }
.link-cards li { padding: 0; }
.link-cards li a { display: block; padding: 18px 20px; color: inherit; height: 100%; }
.link-cards li a:hover { text-decoration: none; border-color: var(--brand); }
.link-cards li a:hover h3 { color: var(--brand); }
.link-cards h3 { margin: 0 0 .35em; font-size: 1.05rem; }
.link-cards p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.explainer pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font: .85rem/1.5 var(--mono); max-width: none; white-space: pre-wrap; word-break: break-word; }
.explainer pre code { background: none; padding: 0; font: inherit; }
.explainer .in-app { color: var(--ink-3); font-size: .95rem; border-left: 3px solid var(--line); padding-left: 12px; }
[dir="rtl"] .explainer .in-app { border-left: 0; border-right: 3px solid var(--line); padding-left: 0; padding-right: 12px; }
.facts.compact { grid-template-columns: 1fr; gap: 8px; margin: 10px 0 14px; }
.facts.compact li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 14px; padding: 12px 16px; align-items: baseline; max-width: none; }
.facts.compact li > b { margin: 0; font-size: 1rem; }
@media (max-width: 520px) { .facts.compact li { grid-template-columns: 1fr; gap: 4px; } }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; margin-inline-start: 6px; vertical-align: middle; white-space: nowrap; }
.tag.diff-easy { color: #15803d; border-color: #15803d55; }
.tag.diff-medium { color: #b45309; border-color: #b4530955; }
.tag.diff-hard, .tag.diff-limited { color: #c2410c; border-color: #c2410c55; }
.tag.diff-impossible { color: #b91c1c; border-color: #b91c1c55; }
.kind { font-size: .8rem; font-weight: 500; color: var(--ink-3); margin-inline-start: 8px; }
.services { list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.services li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; max-width: none; }
.services li h3 { margin: 0 0 .4em; font-size: 1.02rem; }
.services li p { font-size: .93rem; color: var(--ink-2); margin: 0 0 .5em; max-width: none; }
.services .path code { font-size: .85em; white-space: normal; }
.site-list { columns: 3; column-gap: 24px; list-style: none; padding: 0; margin: 10px 0 14px; font-size: .92rem; }
.site-list li { break-inside: avoid; margin: 0 0 .35em; max-width: none; }
@media (max-width: 760px) { .site-list { columns: 2; } }
@media (max-width: 480px) { .site-list { columns: 1; } }
.letters ul { list-style: none; padding: 0; margin: 10px 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.letters li { margin: 0; }
.letters a, .letters .muted { display: inline-block; min-width: 36px; text-align: center; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: .92rem; }
.letters a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.letters a[aria-current] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.letters .muted { color: var(--ink-3); opacity: .5; }
.deletion-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.deletion-list li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; max-width: none; }
.deletion-list h3 { margin: 0 0 .3em; font-size: 1.02rem; }
.deletion-list .meta { margin: 0 0 .4em; font-size: .9rem; }
.deletion-list .meta .tag { margin-inline-start: 0; }
.deletion-list p { font-size: .93rem; color: var(--ink-2); margin: 0; max-width: none; }
.explainer details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 10px 16px; margin: 0 0 10px; max-width: none; }
.explainer details summary { cursor: pointer; font-weight: 600; }
.explainer details pre { margin: 10px 0 4px; }
