/* avoid-coinomi.com, one stylesheet (2026-10-18 redesign).
   Dark is the default theme; [data-theme="light"] on <html> switches to light (assets/theme.js sets it
   before first paint from the visitor's saved choice). No web fonts and no third-party requests: this
   page documents data leaving a computer without the user knowing, so it sends none of its own. */

:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-2: #0d121c;
  --surface: #121826;
  --surface-2: #182033;
  --border: #243049;
  --border-soft: #1b2336;
  --text: #e8ebf1;
  --text-2: #c2c9d6;
  --muted: #8f9aae;
  --accent: #f43f5e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(244, 63, 94, .12);
  --link: #5cc8f5;
  --link-hover: #9be0ff;
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, .10);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, .10);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .10);
  --info-soft: rgba(92, 200, 245, .08);
  --code-bg: #0b1220;
  --paper: #ffffff;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px rgba(0, 0, 0, .38);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, .28);
  --hero-glow: radial-gradient(900px 480px at 12% -8%, rgba(244, 63, 94, .16), transparent 60%),
               radial-gradient(800px 520px at 100% 0%, rgba(92, 200, 245, .10), transparent 60%);
  --radius: 14px;
  --radius-sm: 9px;
  --read: 74ch;
  --topbar: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f9;
  --bg-2: #eceff4;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --border: #d8dee8;
  --border-soft: #e6eaf0;
  --text: #121826;
  --text-2: #374151;
  --muted: #5b6577;
  /* #be123c on the light background is 5.9:1 (the first light accent, #e11d48, was 4.35:1 on small caps) */
  --accent: #be123c;
  --accent-soft: rgba(190, 18, 60, .08);
  --link: #0a66a8;
  --link-hover: #074b7c;
  --amber: #8a4b06;
  --amber-soft: rgba(217, 119, 6, .10);
  --ok: #047857;
  --ok-soft: rgba(4, 120, 87, .08);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, .09);
  --info-soft: rgba(10, 102, 168, .06);
  --code-bg: #f1f4f8;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .07);
  --shadow-sm: 0 4px 14px rgba(16, 24, 40, .08);
  --hero-glow: radial-gradient(900px 480px at 12% -8%, rgba(225, 29, 72, .10), transparent 60%),
               radial-gradient(800px 520px at 100% 0%, rgba(10, 102, 168, .08), transparent 60%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.7; text-rendering: optimizeLegibility; overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
a.ext::after { content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .22em; vertical-align: .05em; background: currentColor; opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat; }
code, kbd, samp { font-family: var(--mono); font-size: .86em; background: var(--code-bg); border: 1px solid var(--border-soft); padding: .08em .38em; border-radius: 6px; overflow-wrap: anywhere; }
pre { font-family: var(--mono); font-size: .84rem; line-height: 1.6; background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; max-width: 100%; margin: 14px 0; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; }
strong { color: var(--text); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.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; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 8px; border: 2px solid var(--link); }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 60; height: var(--topbar); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--border-soft); }
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: .1px; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.brand span { line-height: 1.15; font-size: 1.02rem; }
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav a { color: var(--text-2); text-decoration: none; font-size: .9rem; font-weight: 550; padding: 7px 11px; border-radius: 8px; }
.topnav a:hover, .topnav a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--link); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: linear-gradient(90deg, var(--accent), var(--link)); }

/* ---------- hero ---------- */
.hero { background: var(--hero-glow), var(--bg); border-bottom: 1px solid var(--border-soft); padding: 56px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.eyebrow { display: inline-flex; align-items: flex-start; gap: 10px; font-size: .76rem; line-height: 1.5; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow .dot { flex: none; width: 8px; height: 8px; margin-top: .42em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 16px; font-weight: 800; text-wrap: balance; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--text-2); margin: 0 0 22px; max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; font-weight: 650; font-size: .95rem; text-decoration: none; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.btn:hover { border-color: var(--link); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn svg { width: 17px; height: 17px; }
.safety { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-2); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: var(--radius-sm); padding: 12px 14px; max-width: 62ch; }
.safety svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.safety strong { color: var(--ok); }
.casecard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.casecard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.casecard-head .tag { color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; letter-spacing: .08em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 13px 14px; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.stat span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 4px; }
.stat.wide { grid-column: 1 / -1; }
.stat .accent { color: var(--accent); }
.casecard-foot { margin-top: 12px; font-size: .78rem; color: var(--muted); }

/* the five-step exposure path */
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 14px 14px; box-shadow: var(--shadow-sm); }
.flow li::after { content: ""; position: absolute; top: 34px; right: -11px; width: 10px; height: 2px; background: var(--border); }
.flow li:last-child::after { display: none; }
.flow .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--info-soft); color: var(--link); margin-bottom: 10px; }
.flow .ico svg { width: 21px; height: 21px; }
.flow li.danger { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.flow li.danger .ico { background: var(--accent-soft); color: var(--accent); }
.flow .n { position: absolute; top: 14px; right: 14px; font-size: .72rem; font-weight: 800; color: var(--muted); }
.flow h3 { font-size: .95rem; line-height: 1.3; margin: 0 0 6px; }
.flow p { font-size: .83rem; line-height: 1.5; color: var(--text-2); margin: 0; }
.flow code { font-size: .78rem; }
.flow-caption { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; padding-top: 36px; padding-bottom: 40px; }
.toc { position: sticky; top: calc(var(--topbar) + 20px); align-self: start; max-height: calc(100vh - var(--topbar) - 40px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.toc-title { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol > li { margin-bottom: 2px; }
.toc a { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .88rem; line-height: 1.35; border-left: 2px solid transparent; }
.toc a .num { font-variant-numeric: tabular-nums; font-size: .74rem; color: var(--muted); font-weight: 700; min-width: 1.6em; }
.toc a:hover { background: var(--surface); color: var(--text); }
.toc a.active { color: var(--text); background: var(--surface); border-left-color: var(--accent); }
.toc ol ol { margin: 2px 0 6px 28px; display: none; }
.toc li.open > ol { display: block; }
.toc ol ol a { font-size: .82rem; padding: 4px 10px; }
.toc-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: .78rem; color: var(--muted); }

.content { min-width: 0; }
.chapter { padding: 8px 0 36px; margin-bottom: 26px; border-bottom: 1px solid var(--border-soft); scroll-margin-top: calc(var(--topbar) + 16px); }
.chapter:last-child { border-bottom: 0; }
.ch-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; margin-bottom: 18px; }
.ch-num { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; color: var(--accent); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-variant-numeric: tabular-nums; }
.ch-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; color: var(--muted); }
.chapter > .ch-head h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.01em; }
.ch-intro { color: var(--text-2); font-size: 1.03rem; max-width: var(--read); margin: 0 0 18px; }
.block { scroll-margin-top: calc(var(--topbar) + 16px); margin: 30px 0 0; }
.block > h3, .chapter h3.sub { font-size: 1.22rem; line-height: 1.3; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.block > h3::before { content: ""; width: 4px; height: 1.05em; border-radius: 2px; background: var(--accent); flex: none; }
.block h4 { font-size: 1.02rem; margin: 22px 0 8px; color: var(--text); }
.prose { max-width: var(--read); }
.prose p, .block > p, .block > ul, .block > ol { max-width: var(--read); }
.content p { margin: 0 0 14px; color: var(--text-2); }
.content li { color: var(--text-2); margin: 4px 0; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 14px; }
.content ul.ticks { list-style: none; padding-left: 0; }
.content ul.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.content ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.content ul.dots li::marker { color: var(--accent); }
.dated { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin-left: 4px; white-space: nowrap; }

/* callouts */
.note { border: 1px solid var(--border); border-left: 4px solid var(--link); background: var(--info-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 16px 0; max-width: var(--read); }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.note.danger { border-left-color: var(--accent); background: var(--accent-soft); }
.note.ok { border-left-color: var(--ok); background: var(--ok-soft); }
.note-title { display: block; font-weight: 750; color: var(--text); margin-bottom: 6px; font-size: .95rem; }
blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: var(--read); }
blockquote p { margin: 0 !important; color: var(--text) !important; font-style: italic; font-weight: 550; }
blockquote cite { display: block; margin-top: 8px; font-size: .8rem; color: var(--muted); font-style: normal; }

/* cards and grids */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.kf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.kf .card h3 { font-size: 1rem; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.kf .card p { font-size: .92rem; margin: 0; }
.kf .card ul { font-size: .92rem; margin: 0; padding-left: 1.1em; }
.kf .card.shown { border-top: 3px solid var(--ok); }
.kf .card.says { border-top: 3px solid var(--warn); }
.kf .card.open { border-top: 3px solid var(--muted); }
.pill { display: inline-block; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border-soft); }
.pill.red { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.pill.amber { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.pill.green { color: var(--ok); background: var(--ok-soft); border-color: transparent; }

/* questions */
.qa { margin: 18px 0 0; display: grid; gap: 10px; max-width: 900px; }
.qa details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.qa summary { cursor: pointer; padding: 13px 16px; font-weight: 650; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.qa details[open] summary::after { content: "\2212"; }
.qa .ans { padding: 0 16px 14px; }
.qa .ans p { margin: 0 0 8px; }

/* video */
.video { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 860px; margin: 16px 0; background: #000; text-decoration: none; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .9; transition: opacity .2s; }
.video:hover img { opacity: 1; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play span { width: 74px; height: 74px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.video .play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.video .vlabel { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .85rem; font-weight: 650; padding: 6px 11px; border-radius: 7px; }

/* timeline */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { display: grid; grid-template-columns: 104px 1fr; gap: 30px; padding: 8px 0; position: relative; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 112px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--link); }
.timeline li.key::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline time { font-variant-numeric: tabular-nums; font-weight: 750; color: var(--text); font-size: .9rem; padding-top: 4px; text-align: right; }
.timeline time small { display: block; font-weight: 600; color: var(--muted); font-size: .76rem; }
.timeline .ev { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-2); font-size: .95rem; }
.timeline .ev b { color: var(--text); }
.timeline .ev a { font-size: .9rem; }

/* figures */
figure { margin: 18px 0; }
figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.shot { max-width: 920px; }
.shot a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); background: var(--surface-2); cursor: zoom-in; }
/* never upscale a screenshot past its own pixels: small ones sit centred in their frame */
.shot img { width: auto; max-width: 100%; margin: 0 auto; }
.shot.wide { max-width: none; }
details.more { margin: 10px 0 18px; }
details.more > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-weight: 650; font-size: .9rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; color: var(--muted); font-weight: 800; }
details.more[open] > summary::after { content: "\2212"; }
details.more > summary:hover { border-color: var(--link); }
.doc { max-width: 640px; }
.doc a { display: block; background: var(--paper); border-radius: var(--radius-sm); padding: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.doc img { margin: 0 auto; }
.doc.small { max-width: 420px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; margin: 16px 0; }
.gallery figure { margin: 0; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--paper); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* file chips */
.files { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.file { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: .87rem; font-weight: 600; max-width: 100%; }
.file:hover { border-color: var(--link); color: var(--text); }
.file svg { width: 16px; height: 16px; color: var(--link); flex: none; }
.file .sz { color: var(--muted); font-weight: 500; font-size: .78rem; }
.file span.fn { overflow-wrap: anywhere; }

/* addresses and hashes */
.addr { display: grid; gap: 10px; margin: 14px 0; max-width: 900px; }
.addr-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.addr-row .lbl { font-weight: 700; font-size: .85rem; color: var(--text); }
.addr-row .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.addr-row code { background: none; border: 0; padding: 0; color: var(--amber); font-size: .86rem; overflow-wrap: anywhere; }
.copy { font: inherit; font-size: .76rem; font-weight: 650; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.copy:hover { border-color: var(--link); color: var(--text); }
.copy.done { color: var(--ok); border-color: var(--ok); }

/* on-chain flow */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.chain .node { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.chain .node::after { content: ""; position: absolute; right: -12px; top: 50%; width: 12px; height: 2px; background: var(--accent); }
.chain .node:last-child::after { display: none; }
.chain .node .role { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chain .node b { display: block; margin: 4px 0 6px; font-size: 1rem; }
.chain .node code { display: block; background: none; border: 0; padding: 0; color: var(--amber); font-size: .76rem; }
.chain .node.ex { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }

/* tables */
.tablewrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 16px 0; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
thead th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); font-weight: 750; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .hash { font-family: var(--mono); font-size: .76rem; color: var(--amber); overflow-wrap: anywhere; }
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { font: inherit; font-size: .84rem; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.archive td:first-child a { font-weight: 650; overflow-wrap: anywhere; }
.archive .kind { display: block; font-size: .74rem; color: var(--muted); }
.archive td.sha { white-space: normal; min-width: 15rem; }
.archive td.sha .hash, .archive td.sha .copy { white-space: nowrap; }
.archive td.sha .hash { background: none; border: 0; padding: 0; margin-right: 8px; font-size: .78rem; }
.archive td.sha .pill { margin-left: 6px; }
.chip .muted { font-size: .76rem; margin-left: 2px; }

/* people and reports */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 16px 0; }
.person { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; }
.person .av { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: var(--link); background: var(--info-soft); border: 1px solid var(--border); }
.person b { font-size: .95rem; line-height: 1.25; }
.person span { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.person .links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; margin-top: 4px; }
.reports { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.report { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.report-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.report-top time { font-size: .8rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.report-top .src { font-size: .78rem; color: var(--muted); }
.report a.t { font-weight: 650; text-decoration: none; color: var(--text); line-height: 1.35; }
.report a.t:hover { color: var(--link); }
.report p { font-size: .88rem; margin: 0; }
.report .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.posts li { margin: 0; }
.posts a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .88rem; font-weight: 600; }
.posts a:hover { border-color: var(--link); }
.posts a time { color: var(--muted); font-weight: 500; font-size: .78rem; white-space: nowrap; }

/* resources */
.res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.res a { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-items: center; padding: 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.res a:hover { border-color: var(--link); }
.res .ri { grid-row: span 2; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.res .ri svg { width: 22px; height: 22px; }
.res b { font-size: .98rem; }
.res span { font-size: .84rem; color: var(--muted); }

/* lightbox */
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: #fff; }
dialog.lightbox::backdrop { background: rgba(3, 6, 12, .9); }
.lb-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-inner img { max-width: 94vw; max-height: 80vh; width: auto; height: auto; border-radius: 8px; background: #fff; }
.lb-bar { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 94vw; }
.lb-bar p { margin: 0 8px; font-size: .9rem; color: #e5e7eb; text-align: center; }
.lb-bar button, .lb-bar a { font: inherit; font-size: .85rem; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: 6px 12px; cursor: pointer; text-decoration: none; }
.lb-bar button:hover, .lb-bar a:hover { background: rgba(255, 255, 255, .22); }

/* drawer (phones) */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px); z-index: 80; background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 750; }
.drawer-body { overflow: auto; padding: 12px 10px 24px; }
.drawer .toc { position: static; max-height: none; display: block; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); }
.scrim[hidden] { display: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* disclaimer */
.disclaimer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.disclaimer p { font-size: .93rem; }

/* footer: the founder line every one of Warith's five systems carries; its markup is checked by
   the founder-line checker, so only its look changes here. */
.ac-footer { box-sizing: border-box; width: 100%; margin: 0; padding: 26px 20px 92px; border-top: 1px solid var(--border-soft); background: var(--bg-2); text-align: center; color: var(--muted); font-size: 13px; line-height: 1.55; }
.ac-footer p { margin: 0 0 8px; }
.ac-founder { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; }
.ac-founder a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); text-decoration: none; border-bottom: 1px dotted currentColor; }
.ac-founder a:hover, .ac-founder a:focus-visible { color: var(--link); }
.ac-founder .ac-self { color: var(--text); font-weight: 700; }
.ac-founder .ac-item { display: inline-flex; align-items: center; gap: 8px; }
.ac-founder .ac-sep { opacity: .55; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .topnav { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > .toc { display: none; }
  .menu-btn { display: inline-grid; }
  .theme-toggle { margin-left: auto; }
  .flow { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .flow li { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .kf, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .chain { grid-template-columns: minmax(0, 1fr); }
  .chain .node::after { right: auto; left: 24px; top: auto; bottom: -12px; width: 2px; height: 12px; }
  .reports, .res, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 34px 0 30px; }
  .brand small { display: none; }
  .flow { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .flow li::after { right: auto; left: 32px; top: auto; bottom: -12px; width: 2px; height: 10px; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 30px; }
  .timeline li::before { left: 1px; top: 8px; }
  .timeline time { text-align: left; padding-top: 0; }
  .timeline time small { display: inline; margin-left: 6px; }
  .addr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .addr-row .lbl { grid-column: 1 / -1; }
  .ch-num { width: 44px; height: 44px; font-size: .95rem; }
  .stat b { font-size: 1.3rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery figcaption { font-size: .76rem; }
  .to-top { right: 12px; bottom: 12px; width: 38px; height: 38px; }
  /* a 42-character address fits one line at 390 px */
  #eth-path li code { font-size: .72rem; padding: .05em .25em; }
}
@media print {
  .topbar, .toc, .drawer, .scrim, .to-top, .cta, .theme-toggle, .menu-btn, .filterbar, .copy { display: none !important; }
  body { background: #fff; color: #000; }
  .layout { display: block; }
}

/* small helpers */
.muted { color: var(--muted); font-size: .86rem; }
/* what was added in 2026 to the 2019 statements, visibly apart from the operator's words */
.n26 { font-size: .86em; font-style: normal; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: 6px; padding: 0 .4em; }
.drawer .toc-title { display: none; }
.archive td:first-child { min-width: 14rem; }
.archive td:first-child a { overflow-wrap: normal; word-break: normal; }
.hash { font-family: var(--mono); font-size: .8rem; color: var(--amber); overflow-wrap: anywhere; }
.hash code { color: inherit; background: none; border: 0; padding: 0; font-size: inherit; }

/* below 900 px both data tables become one card per row (measured: at 768 the archive overflowed by 198 px) */
@media (max-width: 900px) {
  /* the archive table becomes one compact card per file: name and size, what it shows, its hash */
  .archive thead { display: none; }
  .archive, .archive tbody { display: block; width: 100%; }
  .archive tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; border-bottom: 1px solid var(--border); padding: 10px 12px; }
  .archive tr[hidden] { display: none; }
  .archive td { display: block; border: 0; padding: 0; }
  .archive td[data-l="File"] { grid-column: 1; grid-row: 1; }
  .archive td[data-l="Size"] { grid-column: 2; grid-row: 1; }
  .archive td[data-l="Shows"] { grid-column: 1 / -1; font-size: .86rem; color: var(--text-2); }
  .archive td[data-l="Added"] { display: none; }
  .archive td.sha { grid-column: 1 / -1; white-space: normal; margin-top: 2px; }
  .archive .kind { display: inline; margin-left: 6px; }
  /* the transfers table: one card per transfer instead of a sideways scroll */
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { padding: 10px 12px; border-bottom: 1px solid var(--border); }
  .stack td { border: 0; padding: 2px 0; text-align: left !important; white-space: normal !important; }
  .stack td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .archive td:first-child, .archive td.sha { min-width: 0; }
}
