/* ==========================================================================
   The Hidden Wiki — main stylesheet
   System fonts only. No external requests. Mobile first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

	--bg: #f7f5fb;
	--bg-2: #efebf7;
	--surface: #ffffff;
	--surface-2: #f4f1fa;
	--line: #e2dcee;
	--line-2: #cfc6e2;
	--text: #17121f;
	--text-2: #4a4258;
	--text-3: #6e6680;
	--accent: #6d3fe0;
	--accent-2: #8b5cf6;
	--accent-soft: #ede6ff;
	--accent-ink: #ffffff;
	--ok: #13803d;
	--ok-soft: #e3f6ea;
	--ok-line: #9fdcb5;
	--bad: #c42121;
	--bad-soft: #fde8e8;
	--bad-line: #f2a9a9;
	--warn: #9a6400;
	--warn-soft: #fff4dc;
	--neutral-soft: #f0edf6;

	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(23, 18, 31, .06), 0 8px 24px -12px rgba(41, 22, 89, .18);
	--shadow-lg: 0 2px 4px rgba(23, 18, 31, .06), 0 24px 48px -16px rgba(41, 22, 89, .28);
	--ring: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);

	--w: 1200px;
	--w-wide: 1120px;
	--w-prose: 740px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 64px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0d0a14;
		--bg-2: #120e1c;
		--surface: #16111f;
		--surface-2: #1d1729;
		--line: #2a2338;
		--line-2: #3a3150;
		--text: #f1edf8;
		--text-2: #c4bcd4;
		--text-3: #958ca8;
		--accent: #a98bff;
		--accent-2: #c4b0ff;
		--accent-soft: #241a3d;
		--accent-ink: #120c1f;
		--ok: #4ade80;
		--ok-soft: #0f2a1a;
		--ok-line: #1f5a35;
		--bad: #ff6b6b;
		--bad-soft: #321216;
		--bad-line: #6a2228;
		--warn: #f5b74a;
		--warn-soft: #2d220c;
		--neutral-soft: #1d1729;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -16px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0d0a14;
	--bg-2: #120e1c;
	--surface: #16111f;
	--surface-2: #1d1729;
	--line: #2a2338;
	--line-2: #3a3150;
	--text: #f1edf8;
	--text-2: #c4bcd4;
	--text-3: #958ca8;
	--accent: #a98bff;
	--accent-2: #c4b0ff;
	--accent-soft: #241a3d;
	--accent-ink: #120c1f;
	--ok: #4ade80;
	--ok-soft: #0f2a1a;
	--ok-line: #1f5a35;
	--bad: #ff6b6b;
	--bad-soft: #321216;
	--bad-line: #6a2228;
	--warn: #f5b74a;
	--warn-soft: #2d220c;
	--neutral-soft: #1d1729;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
	--shadow-lg: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -16px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; text-wrap: balance; }
p { margin: 0 0 1em; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .88em; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
.i { display: inline-block; vertical-align: -3px; flex: none; }

.screen-reader-text {
	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-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.no-js .js-only { display: none !important; }

.container { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--w-wide); }
.container--prose { max-width: calc(var(--w-prose) + 2 * var(--gutter)); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px; border-radius: 10px;
	border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
	font-weight: 600; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
	white-space: nowrap;
}
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); color: var(--accent-ink); }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn .i { width: 18px; height: 18px; }
.when-light { display: none; }
.when-dark { display: inline; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .when-dark { display: none; } :root:not([data-theme="dark"]) .when-light { display: inline; } }
:root[data-theme="light"] .when-dark { display: none; }
:root[data-theme="light"] .when-light { display: inline; }

/* ---------- Notice bar ---------- */
.notice-bar { background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--line); font-size: .875rem; }
.notice-bar__inner { display: flex; align-items: center; gap: 10px; padding-block: 8px; }
.notice-bar__inner p { margin: 0; flex: 1; }
.notice-bar .i { color: var(--ok); }
.notice-bar__close { border: 0; background: none; font-size: 1.4rem; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--text-2); border-radius: 6px; }
.notice-bar.is-hidden { display: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { margin: 0; white-space: nowrap; font-weight: 800; font-size: 1.125rem; letter-spacing: -.02em; }
.brand a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__mark {
	display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
	background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #ff4fa3));
	color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.brand__mark .i { width: 20px; height: 20px; }
.custom-logo-link img { max-height: 40px; width: auto; }

.nav--desktop { display: none; margin-left: 8px; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__list a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-category-ancestor > a, .nav__list .current-post-ancestor > a { color: var(--text); background: var(--surface-2); }
.nav__list .sub-menu { display: none; }
.nav__list li { position: relative; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu {
	display: block; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
}

.site-header__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hsearch { display: none; position: relative; align-items: center; }
.hsearch .i { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.hsearch input {
	width: 240px; height: 42px; padding: 0 40px 0 36px; border-radius: 10px; border: 1px solid var(--line);
	background: var(--surface); transition: width .2s ease, border-color .2s ease;
}
.hsearch input:focus { width: 300px; outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.hsearch__kbd { position: absolute; right: 10px; font-size: .75rem; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--surface-2); }

.nav-mobile { position: static; }
.nav-mobile > summary { list-style: none; }
.nav-mobile__panel {
	position: absolute; left: 0; right: 0; top: 100%; padding: 16px var(--gutter) 24px;
	background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
	max-height: calc(100vh - var(--header-h)); overflow: auto;
}
.nav-mobile .nav__list { flex-direction: column; gap: 2px; }
.nav-mobile .nav__list a { padding: 12px; font-size: 1.05rem; }
.nav-mobile .nav__list .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding-left: 12px; background: none; }
.msearch { display: flex; gap: 8px; margin-bottom: 12px; }
.msearch input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }

@media (min-width: 1180px) {
	.nav--desktop { display: block; }
	.nav-mobile { display: none; }
	.hsearch { display: flex; }
}
@media (min-width: 1180px) and (max-width: 1300px) { .hsearch input { width: 170px; } .hsearch input:focus { width: 210px; } .nav__list a { padding-inline: 9px; } }
@media (min-width: 720px) and (max-width: 1179px) { .hsearch { display: flex; } .hsearch input { width: 220px; } }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ff4fa3); }

/* ---------- The onion address component ---------- */
.onion { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; text-indent: 0; }
.onion__chip {
	display: inline-block; max-width: 100%; padding: 2px 6px 2px 4px; border-radius: 7px;
	background: var(--neutral-soft); border: 1px solid var(--line);
	color: var(--text); text-decoration: none !important;
	box-decoration-break: clone; -webkit-box-decoration-break: clone;
	transition: border-color .15s ease, background .15s ease;
}
.onion__dot { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 4px; vertical-align: -2px; border-radius: 50%; color: var(--text-3); }
.onion__dot .i { width: 14px; height: 14px; vertical-align: 0; }
.onion__label { font-weight: 650; margin-right: 6px; white-space: nowrap; }
.onion__addr { font-size: .84em; word-break: normal; overflow-wrap: anywhere; background: none; padding: 0; color: inherit; }
.onion__addr b { font-weight: 800; color: var(--text); }
.onion__mid, .onion__tld, .onion__sub, .onion__path { color: var(--text-2); }
.onion__tld, .onion__path { opacity: .85; }

.onion.is-verified .onion__chip { background: var(--ok-soft); border-color: var(--ok-line); }
.onion.is-verified .onion__dot { color: var(--ok); }
.onion.is-lookalike .onion__chip, .onion.is-invalid .onion__chip {
	background: repeating-linear-gradient(-45deg, var(--bad-soft), var(--bad-soft) 6px, color-mix(in srgb, var(--bad-soft) 60%, var(--surface)) 6px, color-mix(in srgb, var(--bad-soft) 60%, var(--surface)) 12px);
	border-color: var(--bad-line);
}
.onion.is-lookalike .onion__dot, .onion.is-invalid .onion__dot { color: var(--bad); }
.onion.is-lookalike .onion__addr, .onion.is-invalid .onion__addr { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.onion__chip:hover, .onion:focus-within .onion__chip { border-color: var(--accent); }
.onion__chip.is-blocked { cursor: help; }

/* Floating toolbar */
.onion__tools {
	position: absolute; z-index: 40; left: 0; top: 100%;
	padding-top: 8px; /* hover bridge */
	display: none; width: max-content; max-width: min(92vw, 400px);
	transform: translateX(var(--shift, 0));
}
.onion:hover > .onion__tools,
.onion:focus-within > .onion__tools,
.onion.is-open > .onion__tools { display: block; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translate(var(--shift, 0), -4px); } to { opacity: 1; transform: translate(var(--shift, 0), 0); } }

.onion__bar {
	display: flex; align-items: center; gap: 4px; padding: 5px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg);
	font-size: .85rem; line-height: 1.2;
}
.onion__badge {
	padding: 5px 9px; border-radius: 8px; font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
	background: var(--neutral-soft); color: var(--text-2);
}
.is-verified .onion__badge { background: var(--ok-soft); color: var(--ok); }
.is-lookalike .onion__badge, .is-invalid .onion__badge { background: var(--bad-soft); color: var(--bad); }
.onion__btn {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; border: 0;
	background: transparent; color: var(--text); font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: none;
	white-space: nowrap; min-height: 34px;
}
.onion__btn:hover, .onion__btn:focus-visible { background: var(--surface-2); text-decoration: none; color: var(--text); }
.onion__btn[data-act="copy"] { background: var(--accent); color: var(--accent-ink); }
.onion__btn[data-act="copy"]:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); color: var(--accent-ink); }
.onion__btn.is-done { background: var(--ok) !important; color: #fff !important; }

.onion__panel {
	display: none; margin-top: 6px; padding: 12px; width: min(92vw, 400px);
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg);
	font-size: .875rem; line-height: 1.5; color: var(--text-2); white-space: normal;
}
.onion.is-checking .onion__panel,
.onion:has([data-act="check"]:focus) .onion__panel,
.onion__panel:focus, .onion__panel:focus-within { display: block; }
.onion__panel:focus { outline: none; }
.onion__status { display: block; margin-bottom: 10px; }
.onion__status strong { color: var(--text); }
.is-lookalike .onion__status, .is-invalid .onion__status { color: var(--bad); }

/* Groups of seven */
.onion__groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; font-family: var(--mono); font-size: .82rem; }
.onion__groups .g {
	position: relative; display: block; padding: 6px 4px 4px; text-align: center; border-radius: 6px;
	background: var(--surface-2); border: 1px solid var(--line); color: var(--text); letter-spacing: .04em;
}
.onion__groups .g::before { content: attr(data-i); position: absolute; top: -6px; left: 4px; font-size: .58rem; color: var(--text-3); background: var(--surface); padding: 0 2px; line-height: 1; }
.onion__groups .g:first-child, .onion__groups .g:last-child { font-weight: 800; border-color: var(--line-2); }
.onion__groups .g.is-diff { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.onion__groups .g.is-same { background: var(--ok-soft); border-color: var(--ok-line); }

.onion__raw, .onion__cmp input {
	display: block; width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line);
	background: var(--bg); font-family: var(--mono); font-size: .78rem; color: var(--text);
}
.onion__raw:focus, .onion__cmp input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.onion__cmp { display: block; margin-top: 8px; }
.onion__cmp-out { display: block; margin-top: 6px; font-weight: 600; }
.onion__cmp-out.is-ok { color: var(--ok); }
.onion__cmp-out.is-bad { color: var(--bad); }

/* Touch devices: give the chip a larger target */
@media (hover: none) {
	.onion__chip { padding-block: 4px; }
}

/* Card variant */
.onion-card {
	position: relative; display: flex; flex-direction: column; gap: 10px;
	padding: 16px; margin: 1.25em 0; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
	overflow: hidden;
}
.onion-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line-2); }
.onion-card.is-verified::before { background: var(--ok); }
.onion-card.is-lookalike::before, .onion-card.is-invalid::before { background: var(--bad); }
.onion-card.is-lookalike, .onion-card.is-invalid { background: linear-gradient(var(--bad-soft), var(--surface) 70%); border-color: var(--bad-line); }
.onion-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.onion-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.onion-badge {
	display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px;
	font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
	background: var(--neutral-soft); color: var(--text-2);
}
.onion-badge .i { width: 14px; height: 14px; vertical-align: 0; }
.is-verified .onion-badge { background: var(--ok-soft); color: var(--ok); }
.is-lookalike .onion-badge, .is-invalid .onion-badge { background: var(--bad); color: #fff; }
.onion-card__name { font-weight: 750; font-size: 1.05rem; color: var(--text); letter-spacing: -.01em; }
.onion-card__cat { margin-left: auto; font-size: .75rem; color: var(--text-3); font-weight: 600; }
.onion-card__addr {
	display: block; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line-2);
	color: var(--text); text-decoration: none !important; line-height: 1.5;
}
.onion-card__addr:hover { border-color: var(--accent); border-style: solid; }
.onion-card__addr .onion__addr { font-size: .86rem; }
.onion-card__addr.is-blocked .onion__addr { text-decoration: line-through; text-decoration-color: var(--bad); }
.onion-card__status, .onion-card__note { margin: 0; font-size: .875rem; color: var(--text-2); line-height: 1.5; }
.is-lookalike .onion-card__status, .is-invalid .onion-card__status { color: var(--bad); font-weight: 550; }
.onion-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.onion__btn--lg { min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); }
.onion__btn--lg[data-act="copy"] { border-color: var(--accent); }
.onion-card__check { font-size: .875rem; }
.onion-card__check > summary {
	display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-2); font-weight: 600; list-style: none;
	padding: 4px 0;
}
.onion-card__check > summary::-webkit-details-marker { display: none; }
.onion-card__check > summary::after { content: "+"; font-weight: 700; margin-left: 2px; }
.onion-card__check[open] > summary::after { content: "−"; }
.onion-card__checkbody { padding-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
		radial-gradient(40% 40% at 0% 100%, color-mix(in srgb, #ff4fa3 12%, transparent), transparent 70%);
}
.hero__bg::after { content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px; opacity: .35;
	mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000, transparent 75%);
}
.hero__bg span { position: absolute; right: -120px; top: -120px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); animation: layer 9s ease-in-out infinite; }
.hero__bg span:nth-child(1) { width: 280px; height: 280px; right: -40px; top: -40px; }
.hero__bg span:nth-child(2) { width: 440px; height: 440px; animation-delay: -2s; opacity: .7; }
.hero__bg span:nth-child(3) { width: 600px; height: 600px; right: -200px; top: -200px; animation-delay: -4s; opacity: .45; }
.hero__bg span:nth-child(4) { width: 780px; height: 780px; right: -290px; top: -290px; animation-delay: -6s; opacity: .25; }
@keyframes layer { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.hero__inner { position: relative; }
.hero__eyebrow {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; margin-bottom: 20px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); font: 600 .78rem/1.2 var(--mono); color: var(--text-2); letter-spacing: .02em;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title { font-size: clamp(2.25rem, 6.2vw, 4.25rem); font-weight: 820; letter-spacing: -.035em; max-width: 15ch; margin-bottom: 18px; line-height: 1.04; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-2); max-width: 60ch; margin-bottom: 28px; }
.hero__checker { max-width: 720px; }

.stats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--text-3); font-size: .9rem; }
.stats strong { display: inline-block; color: var(--text); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-right: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Checker ---------- */
.checker { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 1.5em 0; }
.hero .checker { margin: 0; }
.checker__title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 12px; letter-spacing: -.01em; }
.checker__title .i { color: var(--ok); width: 18px; height: 18px; }
.checker__form { display: flex; gap: 8px; }
.checker__input {
	flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
	background: var(--bg); font-family: var(--mono); font-size: .9rem;
}
.checker__input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.checker__form .btn { height: 52px; padding-inline: 22px; }
.checker__hint { margin: 10px 0 0; font-size: .8rem; color: var(--text-3); }
.checker__out:empty { display: none; }
.checker__out .onion-card { margin: 14px 0 0; }
.checker__msg { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: .9rem; }
.checker__msg .i { margin-top: 3px; }
@media (max-width: 520px) { .checker__form { flex-direction: column; } .checker__input { flex: none; width: 100%; } .checker__form .btn { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section--tight { padding: 24px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 28px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.section__sub { color: var(--text-2); margin: 0; }
.section--content { background: var(--bg-2); }

/* Directory */
.directory__filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; padding: 8px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.admin-bar .directory__filter { top: calc(var(--header-h) + 40px); }
.chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .875rem; text-decoration: none; cursor: pointer;
}
.chip span { font-size: .75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip.is-active span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.directory__search { position: relative; display: flex; align-items: center; margin-left: auto; }
.directory__search .i { position: absolute; left: 10px; color: var(--text-3); }
.directory__search input { height: 36px; width: 200px; padding: 0 12px 0 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.directory__search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
@media (max-width: 640px) { .directory__search { margin-left: 0; width: 100%; } .directory__search input { width: 100%; } .directory__filter { position: static; } }
.directory__group { margin-bottom: 32px; scroll-margin-top: calc(var(--header-h) + 80px); }
.directory__group[hidden] { display: none; }
.directory__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 750; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.directory__cat::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.directory__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.directory__item[hidden] { display: none; }
.directory__item .onion-card { margin: 0; height: 100%; }
.directory__empty { color: var(--text-3); }

/* Latest */
.latest { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.latest__h { font-size: 1.05rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid var(--text); }
.latest__h a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.latest__h a:hover .i { transform: translateX(3px); }
.latest__h .i { transition: transform .15s ease; }
.latest__list { list-style: none; margin: 0; padding: 0; }
.latest__list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.latest__list a { color: var(--text); font-weight: 650; text-decoration: none; line-height: 1.35; display: block; }
.latest__list a:hover { color: var(--accent); }
.latest__meta { display: block; margin-top: 4px; font-size: .8rem; color: var(--text-3); }

/* CTA */
.cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding: clamp(24px, 4vw, 40px); border-radius: 22px; color: #fff;
	background: radial-gradient(120% 140% at 100% 0%, #ff4fa3 0%, transparent 45%), linear-gradient(135deg, #3b1d8f, #6d3fe0);
	box-shadow: var(--shadow-lg);
}
.cta__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; color: #fff; }
.cta p { margin: 0; opacity: .9; max-width: 52ch; }
.cta .btn--primary { background: #fff; border-color: #fff; color: #2a1366; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.listing { padding: 32px 0; }
.card {
	display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.card__cat { align-self: flex-start; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--accent); }
.card__title { font-size: 1.15rem; margin: 0; letter-spacing: -.015em; }
.card__title a { color: var(--text); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__cat { position: relative; z-index: 1; }
.card__excerpt { margin: 0; color: var(--text-2); font-size: .95rem; }
.card__meta { margin: auto 0 0; padding-top: 8px; font-size: .8rem; color: var(--text-3); }
.card--feature { grid-column: 1 / -1; }
@media (min-width: 900px) {
	.card--feature { flex-direction: row; }
	.card--feature .card__media { flex: 0 0 52%; }
	.card--feature .card__media img { height: 100%; }
	.card--feature .card__body { padding: 32px; justify-content: center; }
	.card--feature .card__title { font-size: 1.75rem; }
}

/* Category colours */
.cat-safety, .cat-safety-scam-awareness { --cat: var(--bad); }
.cat-tor-news { --cat: #2f7de1; }
.cat-getting-started { --cat: var(--ok); }
.cat-advanced { --cat: var(--warn); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 12%, transparent); margin-bottom: 14px; }
.card__cat[class*="cat-"] { color: var(--cat, var(--accent)); }
.latest__h[class*="cat-"] { border-color: var(--cat, var(--text)); }

/* ---------- Archive head ---------- */
.archive-head { padding: clamp(28px, 5vw, 56px) 0 8px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--bg-2), var(--bg)); }
.archive-head__title { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; }
.archive-head__desc { color: var(--text-2); max-width: 70ch; font-size: 1.05rem; }
.archive-head__count { color: var(--text-3); font: 600 .8rem var(--mono); }
.section--directory-inline { padding-bottom: 0; }
.big-search { display: flex; gap: 8px; max-width: 640px; margin: 16px 0 24px; }
.big-search input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.big-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.big-search .btn { height: 50px; }
.empty { padding: 24px 0; color: var(--text-2); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); }

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { display: inline-block; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* ---------- Single post ---------- */
.post-head { padding: clamp(28px, 5vw, 56px) 0 24px; }
.post-head__title { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 820; letter-spacing: -.035em; line-height: 1.08; max-width: 22ch; }
.post-head__dek { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--text-3); font-size: .9rem; }
.post-head__meta strong { color: var(--text); }
.post-head__meta .btn { margin-left: auto; }
.meta__updated { color: var(--ok); font-weight: 600; }
.avatar-initial { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .85rem; vertical-align: middle; }
.post-hero { margin: 0 auto 24px; }
.post-hero img { display: block; width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; }

.post-layout { display: grid; gap: 40px; padding-bottom: 48px; }
.post-main { min-width: 0; max-width: var(--w-prose); }
.post-aside { display: none; }
@media (min-width: 1080px) {
	.post-layout.has-toc { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; }
	.post-aside { display: block; }
	.post-aside .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; }
	.toc--inline:not(.toc--always) { display: none; }
}
.toc__title { font: 700 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc ol ol { padding-left: 12px; margin: 2px 0 6px; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; font-size: .875rem; line-height: 1.35; }
.toc ol ol a { font-size: .82rem; color: var(--text-3); }
.toc a:hover { color: var(--text); border-color: var(--line-2); }
.toc a.is-active { color: var(--accent); border-color: var(--accent); font-weight: 650; }
.toc--inline { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc--inline > summary { padding: 14px 16px; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.toc--inline > summary::-webkit-details-marker { display: none; }
.toc--inline > summary::after { content: "+"; font-weight: 800; color: var(--text-3); }
.toc--inline[open] > summary::after { content: "−"; }
.toc--inline > ol { padding: 0 16px 16px; }

/* ---------- Prose ---------- */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { position: relative; font-size: clamp(1.5rem, 3vw, 1.95rem); margin: 2.2em 0 .6em; letter-spacing: -.025em; }
.prose h3 { position: relative; font-size: clamp(1.2rem, 2.2vw, 1.4rem); margin: 1.8em 0 .5em; letter-spacing: -.015em; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 .4em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.h-anchor { margin-left: .35em; color: var(--text-3); text-decoration: none; opacity: 0; font-weight: 500; transition: opacity .15s; }
.prose h2:hover .h-anchor, .prose h3:hover .h-anchor, .h-anchor:focus { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; color: var(--text); }
.prose a:not(.onion__chip):not(.onion__btn):not(.onion-card__addr):not(.btn) { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-2); font-size: 1.1rem; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose code:not(.onion__addr) { padding: .15em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); word-break: break-word; }
.prose pre { padding: 16px 18px; border-radius: 12px; background: #0b0811; color: #e9e3f5; overflow: auto; font-size: .875rem; line-height: 1.6; border: 1px solid var(--line); }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose img { border-radius: 12px; }
.prose figure { margin: 1.8em 0; }
.prose figcaption, .prose .wp-element-caption { font-size: .85rem; color: var(--text-3); margin-top: 8px; text-align: center; }

/* Tables become scrollable cards on small screens */
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.prose .wp-block-table { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.prose .wp-block-table table { margin: 0; }
.prose > table { display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); font-weight: 750; }
.prose tr:last-child td { border-bottom: 0; }
.prose td .onion { white-space: normal; }
.prose .wp-block-table thead { border-bottom: 0; }
@media (max-width: 640px) {
	.prose .wp-block-table.is-style-directory table, .prose .wp-block-table.is-style-directory tbody, .prose .wp-block-table.is-style-directory tr, .prose .wp-block-table.is-style-directory td { display: block; width: 100%; }
	.prose .wp-block-table.is-style-directory thead { display: none; }
	.prose .wp-block-table.is-style-directory tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
	.prose .wp-block-table.is-style-directory td { border: 0; padding: 4px 14px; }
}

/* Block styles */
.prose .is-style-note, .prose .is-style-tip, .prose .is-style-warning, .prose .is-style-callout {
	padding: 16px 18px 16px 48px; border-radius: 14px; position: relative; border: 1px solid var(--line); background: var(--surface);
}
.prose .is-style-note::before, .prose .is-style-tip::before, .prose .is-style-warning::before {
	position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 .75rem var(--font);
}
.prose .is-style-note { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.prose .is-style-note::before { content: "i"; background: var(--accent); color: var(--accent-ink); }
.prose .is-style-tip { background: var(--ok-soft); border-color: var(--ok-line); }
.prose .is-style-tip::before { content: "✓"; background: var(--ok); color: #fff; }
.prose .is-style-warning { background: var(--bad-soft); border-color: var(--bad-line); }
.prose .is-style-warning::before { content: "!"; background: var(--bad); color: #fff; }
.prose .is-style-callout { padding-left: 18px; box-shadow: var(--shadow); }
.prose ul.is-style-checklist { list-style: none; padding-left: 0; }
.prose ul.is-style-checklist li { position: relative; padding-left: 32px; }
.prose ul.is-style-checklist li::before { content: "✓"; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.prose ol.is-style-steps { list-style: none; padding-left: 0; counter-reset: s; }
.prose ol.is-style-steps > li { counter-increment: s; position: relative; padding: 2px 0 6px 48px; min-height: 36px; }
.prose ol.is-style-steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }

/* Details / FAQ */
.prose details:not(.onion-card__check) { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 16px; }
.prose details:not(.onion-card__check) + details { margin-top: 8px; }
.prose details:not(.onion-card__check) > summary { padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.prose details:not(.onion-card__check) > summary::-webkit-details-marker { display: none; }
.prose details:not(.onion-card__check) > summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.prose details:not(.onion-card__check)[open] > summary::after { content: "−"; }
.prose details:not(.onion-card__check)[open] { padding-bottom: 14px; }

/* Onion components inside prose */
.onion__chip { line-height: 1.55; }
@media (max-width: 760px) {
	.onion__addr { word-break: break-all; }
	.onion-card__addr .onion__addr { word-break: break-all; }
}

/* ---------- Post footer ---------- */
.post-foot { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tags a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-size: .82rem; text-decoration: none; }
.report-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line-2); background: var(--surface); font-size: .925rem; color: var(--text-2); }
.report-box p { margin: 0; }
.report-box .i { color: var(--warn); margin-top: 4px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.nav-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.nav-title { display: block; color: var(--text); font-weight: 650; line-height: 1.35; margin-top: 4px; }
@media (max-width: 560px) { .post-navigation .nav-links { grid-template-columns: 1fr; } .post-navigation .nav-next { grid-column: auto; } }
.related { padding: 48px 0; border-top: 1px solid var(--line); }

/* Pagination */
.pagination { padding: 8px 0 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.page-numbers:hover:not(.current) { border-color: var(--accent); }

/* Comments */
.comments { padding: 32px 0 56px; max-width: var(--w-prose); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: .85rem; color: var(--text-3); display: flex; gap: 10px; align-items: center; }
.comment-author .fn { color: var(--text); font-style: normal; font-weight: 700; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
}
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.comment-form .submit { background: var(--accent); color: var(--accent-ink); border: 0; padding: 12px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; }

/* 404 */
.notfound { padding: clamp(48px, 10vw, 120px) 0; }
.notfound__code { font: 800 clamp(5rem, 18vw, 9rem)/1 var(--mono); letter-spacing: -.06em; margin: 0 0 8px; background: linear-gradient(135deg, var(--accent), #ff4fa3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--bg-2); font-size: .925rem; }
.site-footer__grid { display: grid; gap: 32px; padding-block: 56px 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1fr; } .site-footer__about { grid-column: auto; } }
.site-footer__about p { color: var(--text-2); max-width: 46ch; margin-top: 14px; }
.site-footer__mirror span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 6px; }
.site-footer__h { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 750; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer__col a { color: var(--text-2); text-decoration: none; }
.site-footer__col a:hover { color: var(--accent); text-decoration: underline; }
.promise li { display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.promise li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: .7rem; font-weight: 800; flex: none; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.legal { display: flex; flex-wrap: wrap; gap: 16px; }
.legal li + li { margin: 0; }
.legal a { color: var(--text-3); }

/* ---------- Toast ---------- */
.toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
	max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg);
	font-size: .9rem; font-weight: 550; box-shadow: var(--shadow-lg); transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { font-family: var(--mono); }

/* WordPress core classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.prose .alignwide { margin-inline: calc(-1 * min(80px, 6vw)); max-width: none; }
.prose .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.sticky, .bypostauthor, .gallery-caption { }
.wp-block-button__link { border-radius: 10px; }

/* Print: show full URLs, hide chrome */
@media print {
	.site-header, .site-footer, .notice-bar, .post-aside, .toc, .onion__tools, .onion-card__actions, .onion-card__check, .related, .comments, .report-box, .toast { display: none !important; }
	body { background: #fff; color: #000; }
	.onion__chip { border: 0; background: none; }
}

/* Directory cards already sit under a category heading */
.directory .onion-card__cat { display: none; }
.directory .onion-card__status { font-size: .82rem; color: var(--text-3); }

/* Hero anatomy panel */
.hero__grid { display: grid; gap: 40px; align-items: center; }
.anatomy { display: none; }
@media (min-width: 1100px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; }
	.anatomy { display: block; position: relative; padding: 22px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.anatomy__title { font: 700 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.anatomy__addr { font: 500 .95rem/1.7 var(--mono); word-break: break-all; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); margin: 0 0 16px; }
.anatomy__addr b { color: var(--ok); font-weight: 800; background: var(--ok-soft); border-radius: 4px; padding: 0 2px; }
.anatomy__addr span { color: var(--text-3); }
.anatomy ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; color: var(--text-2); counter-reset: a; }
.anatomy li { counter-increment: a; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.anatomy li::before { content: counter(a); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; }
.anatomy li strong { color: var(--text); }
