:root {
  --bg: #f8fafd; --surface: #ffffff; --ink: #13223a; --muted: #55627a; --line: #dfe5ee;
  --accent: #1560bd; --accent-ink: #fff; --accent-soft: #e8f0fa; --leak: #b45309; --leak-soft: #fdf1e2;
  --radius: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans SC", "Hiragino Sans", "PingFang SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Noto Serif", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1522; --surface: #151e2d; --ink: #e8edf5; --muted: #9aa7bb; --line: #263247; --accent: #6ea8ff; --accent-ink: #0b1424; --accent-soft: #172a47; --leak: #f0a35a; --leak-soft: #33240f; }
}
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.65 var(--font); }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; } .skip:focus { inset-inline-start: 1rem; top: 1rem; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.top { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.mark { width: 1.45rem; height: 1.8rem; display: inline-block; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124'%3E%3Cpath d='M50 4 C62 21 82 41 82 64 A32 32 0 0 1 61 94 L55 87 A26 26 0 0 0 74 64 C74 46 61 31 50 17 C39 31 26 46 26 64 A26 26 0 0 0 45 87 L39 94 A32 32 0 0 1 18 64 C18 41 38 21 50 4 Z' fill='%231560BD'/%3E%3Ccircle cx='50' cy='64' r='20' fill='%23D97706'/%3E%3Ctext x='50' y='74' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-weight='700' font-size='29' fill='%23fff'%3E%24%3C/text%3E%3Cpath d='M50 98 C54 104 58 108.500 58 112.500 A8 8 0 0 1 42 112.500 C42 108.500 46 104 50 98 Z' fill='%23D97706'/%3E%3C/svg%3E"); }
.nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; } .nav a:hover { color: var(--accent); }
.lang { position: relative; } .lang summary { cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; margin: .4rem 0 0; padding: .4rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 11rem; box-shadow: 0 10px 30px #0002; max-height: 70vh; overflow: auto; }
.lang li a { display: block; padding: .35rem .7rem; border-radius: 8px; } .lang li a:hover, .lang li a[aria-current] { background: var(--accent-soft); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; }
h1 { font: 700 clamp(1.9rem, 4.6vw, 3rem)/1.12 var(--serif); margin: 0 0 1rem; }
:lang(zh) h1, :lang(ja) h1, :lang(ar) h1, :lang(hi) h1, :lang(ru) h1 { font-family: var(--font); letter-spacing: 0; line-height: 1.3; }
h2 { font-size: 1.5rem; margin: 2.2rem 0 .8rem; }
.hero { padding-block: clamp(2rem, 6vw, 4.2rem) 1.4rem; } .hero.small { padding-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; margin: 0 0 1rem; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .35rem .95rem; font-size: .9rem; font-weight: 600; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; cursor: pointer; padding: .65rem 1.15rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.btn:hover { border-color: var(--accent); } .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; } .btn.sm { padding: .3rem .65rem; font-size: .85rem; border-radius: 8px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.tool { padding-block: 1rem 2rem; }
.drop { border: 2px dashed var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.6rem); text-align: center; transition: .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-title { font: 600 1.25rem/1.3 var(--font); margin: 0 0 .3rem; } .drop-sub { margin: 0 0 1rem; color: var(--muted); }
.paste { margin-top: .9rem; } .paste summary { cursor: pointer; color: var(--accent); font-weight: 600; }
textarea, input[type=text], select { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
textarea { width: 100%; margin-top: .6rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.opts { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 1rem 0; color: var(--muted); font-size: .92rem; } .opts label { display: inline-flex; align-items: center; gap: .5rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; }
#results { margin-top: 1.6rem; }
.msg-err { background: var(--leak-soft); color: var(--leak); padding: .9rem 1.1rem; border-radius: 10px; font-weight: 600; }
.summary { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1rem; }
.summary .num { font: 700 clamp(2rem, 6vw, 3.2rem)/1 var(--serif); color: var(--leak); } .summary .num2 { font: 700 1.6rem/1.2 var(--font); } .summary .num3 { font-weight: 600; }
.lbl { color: var(--muted); font-size: .88rem; margin-top: .25rem; }
@media (max-width: 720px) { .summary { grid-template-columns: 1fr 1fr; } .summary .big { grid-column: 1 / -1; } }
.leaks { background: var(--leak-soft); border: 1px solid color-mix(in srgb, var(--leak) 35%, transparent); border-radius: var(--radius); padding: .4rem 1.3rem 1rem; margin-bottom: 1rem; }
.leaks h3 { margin: .9rem 0 .4rem; color: var(--leak); } .leaks ul { margin: 0; padding-inline-start: 1.1rem; } .leaks li { margin: .3rem 0; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 760px; }
th, td { padding: .7rem .8rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); } th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; } td.num, td.date { font-variant-numeric: tabular-nums; white-space: nowrap; } .strong { font-weight: 700; }
td.name strong { font-size: 1rem; } .muted { color: var(--muted); font-size: .82rem; word-break: break-word; }
.acts { min-width: 14rem; } .acts .btn { margin: .15rem .3rem .15rem 0; } [dir=rtl] .acts .btn { margin: .15rem 0 .15rem .3rem; }
.tags { display: flex; gap: .3rem; margin-top: .25rem; } .tag { font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); } .tag.bad, .tag.warn { background: var(--leak-soft); color: var(--leak); }
.mini { margin-bottom: 1rem; } .mini summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.how, .faq, .more { padding-block: 1rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.2rem; margin: 0; color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: .6rem 0; }
.faq summary { cursor: pointer; font-weight: 600; } .faq details p { margin: .6rem 0 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card { display: flex; flex-direction: column; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--accent); } .card span { color: var(--muted); font-size: .92rem; }
.prose { max-width: 46rem; padding-block: 2rem 3rem; } .prose p, .prose li { max-width: 68ch; }
.key { background: var(--accent-soft); border-radius: var(--radius); padding: .4rem 1.2rem; margin: 1.4rem 0; } .key li { margin: .5rem 0; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .8rem; }
.msg { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; font: inherit; }
.cta { margin: 1.6rem 0; } .small { font-size: .85rem; color: var(--muted); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; } .chips a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.chips a:hover { border-color: var(--accent); } .chips.big a { font-size: 1.15rem; padding: .6rem 1.2rem; }
h2.cat { font-size: 1.1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 1.8rem; }
.foot { border-top: 1px solid var(--line); padding-block: 1.6rem 2.4rem; color: var(--muted); font-size: .9rem; } .foot a { color: var(--muted); }
  .pad { padding-block: 4rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* Results: keep clear of the sticky header; cards instead of a wide table on phones */
#results { scroll-margin-top: 5rem; }
@media (max-width: 640px) {
  .scroll { overflow: visible; background: transparent; border: 0; }
  .scroll table { min-width: 0; }
  .scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .scroll tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: .7rem; }
  .scroll td { border: 0; padding: .15rem 0; }
  .scroll td.name, .scroll td.acts { grid-column: 1 / -1; }
  .scroll td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .scroll td.num, .scroll td.date { white-space: normal; }
  .acts { min-width: 0; padding-top: .5rem !important; border-top: 1px solid var(--line) !important; margin-top: .3rem; }
}
.foot .legal a { margin-inline-end: .1rem; }

/* ---- hero with example card ---- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.trust { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 600; font-size: .95rem; }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.example { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.1rem .7rem; box-shadow: 0 18px 44px #13223a14; transform: rotate(-1.2deg); }
[dir=rtl] .example { transform: rotate(1.2deg); }
.example figcaption { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .5rem; }
.ex-total { margin: 0 0 .6rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.ex-total strong { font: 700 2.1rem/1 var(--serif); color: var(--leak); } .ex-total span { color: var(--muted); font-size: .88rem; }
.ex-rows { list-style: none; padding: 0; margin: 0; }
.ex-rows li { display: flex; align-items: center; gap: .7rem; padding: .6rem .55rem; border-top: 1px solid var(--line); border-radius: 10px; }
.ex-rows li.bad { background: var(--leak-soft); border-color: transparent; margin-top: .3rem; }
.ex-rows li.bad + li { border-top-color: transparent; }
.ex-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); flex: none; }
.ex-rows .bad .ex-dot { background: var(--leak); } .ex-rows .warn .ex-dot { background: var(--accent); }
.ex-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; } .ex-name b { font-size: .95rem; } .ex-name em { font-style: normal; font-size: .8rem; color: var(--muted); }
.ex-rows .bad em { color: var(--leak); font-weight: 600; }
.ex-amt { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .example { max-width: 26rem; transform: none; } }
@media (max-width: 640px) { .example { display: none; } }
/* ---- upload box ---- */
.drop-icon svg { width: 3rem; height: 3rem; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .3rem; }
.drop-acts { display: flex; justify-content: center; align-items: center; gap: .8rem; flex-wrap: wrap; }
.drop-or { color: var(--muted); font-size: .9rem; }
@media (prefers-color-scheme: dark) { .example { box-shadow: 0 18px 44px #0006; } }
@media (max-width: 480px) { .drop-acts { flex-direction: column; gap: .5rem; } .drop-acts .btn { width: 100%; } }

@media (prefers-color-scheme: dark) { .mark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 124'%3E%3Cpath d='M50 4 C62 21 82 41 82 64 A32 32 0 0 1 61 94 L55 87 A26 26 0 0 0 74 64 C74 46 61 31 50 17 C39 31 26 46 26 64 A26 26 0 0 0 45 87 L39 94 A32 32 0 0 1 18 64 C18 41 38 21 50 4 Z' fill='%236EA8FF'/%3E%3Ccircle cx='50' cy='64' r='20' fill='%23D97706'/%3E%3Ctext x='50' y='74' text-anchor='middle' font-family='Arial, Helvetica, sans-serif' font-weight='700' font-size='29' fill='%23fff'%3E%24%3C/text%3E%3Cpath d='M50 98 C54 104 58 108.500 58 112.500 A8 8 0 0 1 42 112.500 C42 108.500 46 104 50 98 Z' fill='%23D97706'/%3E%3C/svg%3E"); } }
/* "Possible leaks" box in brand blue; amber bullets keep the "check this" signal */
.leaks { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 28%, transparent); }
.leaks h3 { color: var(--accent); }
.leaks li::marker { color: var(--leak); font-size: 1.15em; }

/* leak illustration on Articles pages */
.banner { margin: 1.4rem 0; } .banner img { width: 100%; max-width: 460px; height: auto; display: block; }
.hero-grid .banner { margin: 0; justify-self: end; }
@media (max-width: 900px) { .hero-grid .banner { justify-self: start; } .hero-grid .banner img { max-width: 320px; } }
.hero.small { color: var(--ink); font-size: 1rem; }

/* hero: brand card illustration peeking behind the example result */
.hero-art { position: relative; padding: 4.2rem 0 0; }
.hero-card { position: absolute; width: 70%; height: auto; top: -.6rem; inset-inline-end: -1.4rem; transform: rotate(5deg); z-index: 0; }
.hero-art .example { position: relative; z-index: 1; margin-inline-end: 6.2rem; }
@media (max-width: 900px) { .hero-art { max-width: 30rem; } }
@media (max-width: 640px) { .hero-art { display: none; } }

.sources ul { padding-inline-start: 1.1rem; } .sources li { margin: .3rem 0; font-size: .93rem; }
.more-articles { margin-top: 2rem; } .prose .faq details { margin: .5rem 0; }
