/*
 * Pushwiki: encyclopedia theme. White pages, blue links, Crimson Pro headings, IBM Plex Sans text, wiki boxes, infoboxes, and A-Z category indexes.
 */

/* ------------------------------------------------------------------ Fonts */
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-600.woff2") format("woff2"); font-weight: 500 640; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/plex-700.woff2") format("woff2"); font-weight: 641 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("../fonts/crimson-latin-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ------------------------------------------------------------------ Tokens */
:root {
	--paper: #FFFFFF;
	--surface: #FFFFFF;
	--sunk: #F8F9FA;
	--ink: #202122;
	--ink-2: #202122;
	--muted: #54595D;
	--rule: #A2A9B1;
	--hair: #C8CCD1;
	--ruby: #3366CC;
	--ruby-ink: #2A4B8D;
	--ruby-soft: #EAF3FF;
	--ruby-light: #6B9BFF;
	--orange: #F28C28;
	--on-ink-muted: #C8CCD1;
	--ok: #14866D;
	--radius: 2px;

	--sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--serif: "Crimson Pro", "Linux Libertine", Georgia, "Times New Roman", serif;
	--display: var(--serif);
	--mono: var(--sans);

	--wrap: 1240px;
	--gutter: 24px;
	--header-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}
.tone-blue { --tone: #3366CC; }
.tone-green { --tone: #14866D; }
.tone-orange { --tone: #B35F0B; }
.tone-teal { --tone: #0E7490; }
.tone-red { --tone: #BF3C2C; }
.tone-purple { --tone: #6B4BA1; }
.tone-slate { --tone: #54595D; }
.tone-sky { --tone: #2A6FA8; }
.tone-pink { --tone: #AD3E7A; }

/* ------------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--ruby); color: #fff; }
:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
.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:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto;
	clip: auto; padding: 12px 18px; background: var(--ink); color: #fff; font-weight: 600;
}
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { display: block; outline: 0; }
.section { padding-block: 72px; }
.section--soft { background: var(--sunk); }

/* ------------------------------------------------------------------ Shared type */
.kicker, .label, .eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink);
}
.kicker__dot { width: 10px; height: 10px; background: var(--ruby); flex: none; }
.kicker--light { color: #fff; }
.kicker--light .kicker__dot { background: #fff; }
.label { color: var(--ruby); margin-bottom: 14px; }
.meta-line {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.cat-tag { color: var(--ruby); text-decoration: none; font-weight: 600; }
a.cat-tag:hover { text-decoration: underline; }
.byline { font-family: var(--mono); font-size: .75rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9375rem;
	text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--ruby); padding-bottom: 2px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.badge-draft { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; background: #FFF2C6; color: #6B4E00; padding: 2px 6px; }

/* ------------------------------------------------------------------ Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 0;
	background: var(--ink); color: #fff; font-family: var(--sans); font-weight: 600; font-size: .9375rem; line-height: 1.1;
	text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--ruby); border-color: var(--ruby); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--primary, .btn--ruby { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.btn--primary:hover, .btn--ruby:hover { background: var(--ruby-ink); border-color: var(--ruby-ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 1.5px solid transparent; color: var(--ink);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--sm { min-width: 40px; height: 40px; }

/* ------------------------------------------------------------------ Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.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: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__text { font-size: 1.375rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.custom-logo-link img { max-height: 44px; width: auto; }
.primary-nav { flex: 1; min-width: 0; }
.primary-nav .menu { display: flex; list-style: none; gap: 2px; counter-reset: nav; }
.primary-nav .menu > li { counter-increment: nav; }
.primary-nav .menu > li > a {
	display: flex; align-items: baseline; gap: 6px; padding: 10px 10px; font-size: .9rem; font-weight: 550; text-decoration: none; white-space: nowrap; color: var(--ink);
	border-bottom: 2px solid transparent;
}
.primary-nav .menu > li > a::before { content: counter(nav, decimal-leading-zero); font-family: var(--mono); font-size: .66rem; color: var(--ruby); font-weight: 500; }
.primary-nav .menu > li > a:hover { border-bottom-color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-post-ancestor > a, .primary-nav a[aria-current] { border-bottom-color: var(--ruby); }
.primary-nav .sub-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-btn { border-color: var(--rule); padding: 0 8px 0 12px; font-size: .875rem; color: var(--muted); }
.search-btn svg { color: var(--ink); width: 18px; height: 18px; }
.search-btn kbd { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--rule); background: var(--surface); padding: 1px 6px; color: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 1380px) {
	.search-btn__label, .search-btn kbd { display: none; }
	.search-btn { padding: 0 10px; border-color: transparent; }
	.site-header__inner { gap: 20px; }
}
@media (max-width: 1260px) {
	.primary-nav .menu > li > a { padding-inline: 6px; font-size: .84rem; gap: 4px; }
}
@media (max-width: 1160px) {
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
	.header-cta { display: none; }
}

/* Mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 200; background: rgba(18, 18, 18, .55); }
.mobile-nav__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow-y: auto;
	background: var(--paper); border-left: 2px solid var(--ink); padding: 18px 22px 32px; display: flex; flex-direction: column; gap: 18px;
}
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.mobile-nav .menu { list-style: none; counter-reset: mnav; }
.mobile-nav .menu > li { counter-increment: mnav; border-bottom: 1px solid var(--rule); }
.mobile-nav .menu a { display: flex; gap: 12px; align-items: baseline; padding: 13px 0; font-size: 1.125rem; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.mobile-nav .menu > li > a::before { content: counter(mnav, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--ruby); font-weight: 500; }
.mobile-nav .sub-menu { list-style: none; padding: 0 0 10px 30px; }
.mobile-nav .sub-menu a { font-size: .95rem; font-weight: 500; padding: 7px 0; }
.mobile-nav__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.mobile-nav__helpers { list-style: none; display: grid; gap: 2px; margin-top: -8px; }
.mobile-nav__helpers a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; }
.mobile-nav__helpers a:hover, .mobile-nav .menu a:hover { color: var(--ruby); }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(18, 18, 18, .6); display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; }
.search-overlay__box { width: min(720px, 100%); background: var(--paper); border: 2px solid var(--ink); padding: 22px 24px 24px; box-shadow: 10px 10px 0 var(--ruby); }
.search-overlay__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.search-overlay__head p { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.search-overlay__hints { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .875rem; color: var(--muted); }
.search-overlay__hints a { color: var(--ink); }

/* Search form */
.search-form { display: flex; border: 2px solid var(--ink); background: var(--surface); }
.search-form input { flex: 1; min-width: 0; height: 52px; border: 0; padding: 0 16px; background: transparent; font-size: 1.0625rem; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 2px solid var(--ruby); outline-offset: 2px; }
.search-form .btn { min-height: 52px; border: 0; border-left: 2px solid var(--ink); }

/* ------------------------------------------------------------------ Section heads */
.sec-head {
	display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: baseline; gap: 12px 20px;
	border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 32px;
}
.sec-head__num { font-family: var(--mono); font-size: .8rem; color: var(--ruby); letter-spacing: .06em; }
.sec-head__title { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 650; letter-spacing: -.04em; }
.sec-head__note { color: var(--muted); max-width: 40ch; font-size: .9375rem; justify-self: end; text-align: right; }
.sec-head .link-arrow { justify-self: end; }
.sec-head--light { border-top-color: #fff; }
.sec-head--light .sec-head__num { color: var(--ruby-light); }
.sec-head--light .sec-head__note { color: var(--on-ink-muted); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -.035em; }
@media (max-width: 700px) {
	.sec-head { grid-template-columns: 1fr; gap: 6px; }
	.sec-head__note, .sec-head .link-arrow { justify-self: start; text-align: left; }
}

/* ------------------------------------------------------------------ Cards + grids */
.post-grid { display: grid; gap: 40px 32px; }
.post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .post-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-grid--3 { grid-template-columns: 1fr; gap: 32px; } }
.card { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 14px; min-width: 0; }
.card__media { order: -1; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sunk); margin-bottom: 14px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card { padding-top: 0; border-top: 0; }
.card__body { border-top: 1px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__title { font-size: 1.25rem; font-weight: 620; letter-spacing: -.02em; line-height: 1.2; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--ruby); text-decoration-thickness: 2px; }
.card .cat-tag { position: relative; z-index: 1; }
.card__excerpt { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: var(--ink-2); }
.card .byline { margin-top: auto; padding-top: 4px; }
.card--feature .card__title { font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -.03em; }
.card--feature .card__media { aspect-ratio: 16 / 9; }

/* Rows (search / archives) */
.row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.row__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sunk); }
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row__body { display: flex; flex-direction: column; gap: 8px; }
.row__title { font-size: 1.3rem; font-weight: 620; letter-spacing: -.02em; }
.row__title a { text-decoration: none; }
.row__title a:hover { color: var(--ruby); }
.row__excerpt { font-family: var(--serif); font-size: 1.05rem; color: var(--ink-2); }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 12px; } }

/* ------------------------------------------------------------------ Toolkit band */
.toolkit { background: var(--ink); color: #fff; padding-block: 72px; }
.toolkit__grid, .tool-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.toolkit__grid { border-top: 1px solid rgba(255, 255, 255, .25); border-left: 1px solid rgba(255, 255, 255, .25); }
.toolkit__grid > li { border-right: 1px solid rgba(255, 255, 255, .25); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.tool-cell { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 280px; padding: 22px; text-decoration: none; color: inherit; transition: background .2s var(--ease); }
.tool-cell__top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.tool-cell__num { color: var(--ruby-light); }
.tool-cell__icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid currentColor; margin: 18px 0 8px; }
.tool-cell__icon svg { width: 24px; height: 24px; }
.tool-cell__title { font-size: 1.3rem; font-weight: 620; letter-spacing: -.02em; line-height: 1.15; }
.tool-cell__ask { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--on-ink-muted); line-height: 1.4; }
.tool-cell__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; }
.tool-cell__go svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.tool-cell:hover, .tool-cell:focus-visible { background: var(--ruby); outline-offset: -3px; }
.tool-cell:hover .tool-cell__num, .tool-cell:hover .tool-cell__top, .tool-cell:hover .tool-cell__ask,
.tool-cell:focus-visible .tool-cell__num, .tool-cell:focus-visible .tool-cell__top, .tool-cell:focus-visible .tool-cell__ask { color: #fff; }
.tool-cell:hover .tool-cell__go svg { transform: translateX(4px); }
/* Light version (tools hub page) */
.tool-list { border-top: 2px solid var(--ink); border-left: 1px solid var(--ink); margin: 8px 0 32px; }
.tool-list > li { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--surface); }
.tool-cell--light { color: var(--ink); }
.tool-cell--light .tool-cell__top { color: var(--muted); }
.tool-cell--light .tool-cell__num { color: var(--ruby); }
.tool-cell--light .tool-cell__ask { color: var(--ink-2); font-style: normal; font-size: 1rem; }
.tool-cell--light:hover, .tool-cell--light:focus-visible { background: var(--ink); color: #fff; }
.tool-cell--light:hover .tool-cell__num, .tool-cell--light:focus-visible .tool-cell__num { color: var(--ruby-light); }
.tool-cell--light:hover .tool-cell__top, .tool-cell--light:hover .tool-cell__ask,
.tool-cell--light:focus-visible .tool-cell__top, .tool-cell--light:focus-visible .tool-cell__ask { color: var(--on-ink-muted); }
@media (max-width: 1000px) { .toolkit__grid, .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .toolkit__grid, .tool-list { grid-template-columns: 1fr; } .tool-cell { min-height: 0; } .toolkit { padding-block: 52px; } }

/* ------------------------------------------------------------------ Newsletter (in-page box) */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; border: 2px solid var(--ink); background: var(--surface); padding: 36px; box-shadow: 8px 8px 0 var(--ruby); }
.newsletter .eyebrow { color: var(--ruby); margin-bottom: 10px; }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 650; letter-spacing: -.035em; margin-bottom: 10px; }
.newsletter__copy p:last-child { color: var(--muted); }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; padding: 26px 22px; box-shadow: 6px 6px 0 var(--ruby); } }
.nl-form__row { display: flex; border: 2px solid var(--ink); background: var(--surface); }
.nl-form__row input { flex: 1; min-width: 0; height: 52px; border: 0; padding: 0 16px; background: transparent; }
.nl-form__row input:focus { outline: none; }
.nl-form__row:focus-within { outline: 2px solid var(--ruby); outline-offset: 2px; }
.nl-form__row .btn { min-height: 52px; border: 0; border-left: 2px solid var(--ink); }
.nl-form input[aria-invalid="true"] { background: #FFF1F3; }
.consent { font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.consent a { color: inherit; }
.form-msg { font-size: .875rem; margin-top: 8px; min-height: 0; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: var(--ruby-ink); font-weight: 600; }
.form-msg.is-success { color: var(--ok); font-weight: 600; }
.form-msg.is-info { color: var(--ink-2); }
.pw-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Footer */
.site-footer { background: var(--ink); color: #fff; margin-top: 0; overflow: hidden; }
.footer-nl { background: var(--ruby); }
.footer-nl__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; padding-block: 56px; }
.footer-nl__title { font-size: clamp(2rem, 4.4vw, 3.75rem); font-weight: 650; letter-spacing: -.045em; line-height: .98; margin: 14px 0 14px; }
.footer-nl__lead { font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; max-width: 52ch; }
.footer-nl .nl-form__row { border-color: #fff; }
.footer-nl .nl-form__row .btn { background: var(--ink); border-left-color: #fff; color: #fff; }
.footer-nl .nl-form__row .btn:hover { background: #000; }
.footer-nl .nl-form__row:focus-within { outline-color: #fff; }
.footer-nl .consent, .footer-nl .consent a, .footer-nl .form-msg, .footer-nl .form-msg.is-info { color: #fff; }
.footer-nl .form-msg.is-error, .footer-nl .form-msg.is-success { color: #fff; background: rgba(0, 0, 0, .25); padding: 6px 10px; }
@media (max-width: 900px) { .footer-nl__inner { grid-template-columns: 1fr; gap: 22px; padding-block: 44px; } }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; padding-block: 56px 40px; }
.site-footer .brand { color: #fff; }
.footer-about p { color: var(--on-ink-muted); margin-top: 14px; max-width: 42ch; }
.footer-col h2 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ruby-light); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.footer-col ul { list-style: none; display: grid; gap: 6px; }
.footer-col a { text-decoration: none; color: #fff; font-size: .9375rem; }
.footer-col a:hover { text-decoration: underline; }
.social { list-style: none; display: flex; gap: 6px; margin-top: 18px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.social a:hover { background: var(--ruby); border-color: var(--ruby); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .25); font-family: var(--mono); font-size: .75rem; color: var(--on-ink-muted); }
.footer-bottom a { color: #fff; }
.to-top { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.to-top svg { width: 14px; height: 14px; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-top { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Breadcrumbs, page heroes */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--muted); }
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero, .hub-hero, .search-head { border-bottom: 2px solid var(--ink); padding-block: 40px 40px; }
.page-hero h1, .hub-hero h1, .search-head h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; margin: 18px 0 14px; max-width: 18ch; }
.page-hero p, .search-head p { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-2); max-width: 60ch; }
.hub-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-top: 18px; }
.hub-hero .kicker { margin-bottom: 4px; }
.hub-hero__page { color: var(--muted); font-weight: 600; font-size: .5em; letter-spacing: -.01em; }
.hub-hero__desc { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-2); max-width: 62ch; }
.hub-hero__desc p + p { margin-top: 10px; }
.hub-hero__icon { width: 120px; height: 120px; padding: 28px; background: var(--tone, var(--ink)); color: #fff; }
@media (max-width: 700px) { .hub-hero__icon { display: none; } .hub-hero__inner { grid-template-columns: 1fr; } }
.pill-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill-nav a, .chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--ink); background: transparent;
	font-size: .875rem; font-weight: 550; text-decoration: none; color: var(--ink);
}
.pill-nav a:hover, .chip:hover, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip small { font-family: var(--mono); font-size: .7rem; color: inherit; opacity: .8; }

/* ------------------------------------------------------------------ Hub (category) layout */
.hub-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.hub-block + .hub-block { margin-top: 56px; }
.hub-block > h2 { font-size: 1.6rem; font-weight: 650; letter-spacing: -.03em; border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 24px; }
.hub-empty { border: 1.5px dashed var(--ink); padding: 22px; margin-bottom: 28px; font-family: var(--serif); font-size: 1.15rem; display: grid; gap: 14px; }
.hub-empty .btn { margin: 0 6px 6px 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.cat-card { display: grid; gap: 8px; padding: 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; color: var(--ink); background: var(--surface); }
.cat-card__icon { width: 40px; height: 40px; padding: 9px; background: var(--tone, var(--ink)); color: #fff; }
.cat-card h3 { font-size: 1.15rem; font-weight: 620; letter-spacing: -.02em; }
.cat-card p { font-size: .9rem; color: var(--muted); }
.cat-card:hover { background: var(--ink); color: #fff; }
.cat-card:hover p { color: var(--on-ink-muted); }
@media (max-width: 1080px) { .hub-layout, .article-layout { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 10px; display: inline-grid; place-items: center; border: 1.5px solid var(--ink); text-decoration: none; font-family: var(--mono); font-size: .875rem; }
.pagination .page-numbers.current { background: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { background: var(--ruby); border-color: var(--ruby); color: #fff; }
.pagination .dots { border: 0; }

/* ------------------------------------------------------------------ Sidebar + widgets */
.sidebar { display: grid; gap: 28px; }
.widget h2, .widget-title { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ruby); border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 14px; }
.widget--cta { background: var(--ink); color: #fff; padding: 22px; }
.widget--cta h2 { border-top: 0; padding-top: 0; color: var(--ruby-light); }
.widget--cta p { color: var(--on-ink-muted); margin-bottom: 16px; font-size: .95rem; }
.widget--cta .btn { background: var(--ruby); border-color: var(--ruby); }
.widget--cta .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.mini-list { list-style: none; display: grid; gap: 14px; }
.mini { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.mini img { width: 72px; height: 72px; object-fit: cover; background: var(--sunk); }
.mini a { font-weight: 600; font-size: .95rem; line-height: 1.3; text-decoration: none; display: block; }
.mini a:hover { color: var(--ruby); }
.mini small { font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.cat-list { list-style: none; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 550; font-size: .95rem; }
.cat-list a:hover { color: var(--ruby); }
.cat-list__icon { width: 28px; height: 28px; display: grid; place-items: center; background: var(--tone, var(--ink)); color: #fff; flex: none; }
.cat-list__icon svg { width: 15px; height: 15px; }
.cat-list .count { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.sidebar--sticky-toc .widget--toc { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 1080px) { .widget--toc { display: none; } }

/* ------------------------------------------------------------------ Article */
.article-head { max-width: calc(880px + var(--gutter) * 2); padding-block: 36px 0; }
.article-head .card__cat { display: inline-block; margin-top: 22px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ruby); font-weight: 600; text-decoration: none; }
.article-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.9rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; margin: 12px 0 16px; }
.article-excerpt { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.45; color: var(--ink-2); margin-bottom: 22px; }
.article-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 14px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
	font-family: var(--mono); font-size: .78rem; color: var(--muted);
}
.article-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; }
.article-meta img { width: 28px; height: 28px; border-radius: 50%; background: var(--sunk); }
.article-meta a { color: var(--ink); font-weight: 600; }
.share { display: flex; gap: 4px; margin-left: auto; }
.share a, .share button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.share a:hover, .share button:hover { background: var(--ink); color: #fff; }
.share svg { width: 15px; height: 15px; }
.article-hero { margin: 32px auto 0; max-width: calc(1100px + var(--gutter) * 2); }
.article-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-hero figcaption { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 8px; }
.article-layout { margin-top: 40px; padding-bottom: 64px; }
.article-main { min-width: 0; max-width: 740px; }
.article-updated-note { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-top: 28px; }
@media (max-width: 640px) { .share { margin-left: 0; } }

/* Entry content (long-form reading) */
.entry-content { font-family: var(--serif); font-size: 1.22rem; line-height: 1.68; color: var(--ink-2); overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--sans); color: var(--ink); letter-spacing: -.025em; }
.entry-content h2 { font-size: 1.85rem; margin-top: 1.9em; font-weight: 650; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.4em; }
.entry-content a { color: var(--ruby-ink); text-decoration-color: rgba(196, 17, 58, .45); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content li::marker { color: var(--ruby); }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--ruby); font-style: italic; font-size: 1.4rem; line-height: 1.45; color: var(--ink); }
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--mono); font-style: normal; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.entry-content code, .entry-content kbd { font-family: var(--mono); font-size: .85em; background: var(--sunk); padding: .1em .35em; }
.entry-content pre { font-family: var(--mono); font-size: .9rem; line-height: 1.6; background: var(--ink); color: #F4F1EA; padding: 20px 22px; overflow-x: auto; }
.entry-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.entry-content img { height: auto; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 8px; }
.entry-content hr { border: 0; border-top: 2px solid var(--ink); margin: 2.2em 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content thead th { border-bottom: 2px solid var(--ink); font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: 4px; }
.entry-content .alignwide { margin-inline: 0; }
.entry-content mark.placeholder { background: #FFE58A; color: var(--ink); padding: 0 .2em; }
.entry-content .wp-block-button__link { background: var(--ruby); color: #fff; border-radius: 0; text-decoration: none; font-family: var(--sans); font-weight: 600; }
.page-body { max-width: calc(760px + var(--gutter) * 2); padding-block: 44px 72px; }
.page-body--wide { max-width: calc(var(--wrap) + var(--gutter) * 2); }
.page-body--wide > article > .entry-content { max-width: none; }

/* Callouts, pros/cons, affiliates, notices */
.callout { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border: 1.5px solid var(--ink); background: var(--surface); font-family: var(--sans); font-size: 1rem; line-height: 1.55; }
.callout > svg { width: 22px; height: 22px; color: var(--ruby); }
.callout__title { display: block; font-weight: 650; margin-bottom: 4px; color: var(--ink); }
.callout--warning { background: #FFF6D9; }
.callout--tip { background: #E9F4EE; }
.callout p { margin: 0; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); font-family: var(--sans); font-size: 1rem; }
.proscons > div { padding: 18px 20px; }
.proscons .pros { border-right: 1.5px solid var(--ink); }
.proscons__title { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.pros .proscons__title { color: var(--ok); }
.cons .proscons__title { color: var(--ruby); }
.proscons ul { padding-left: 1.1em; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } .proscons .pros { border-right: 0; border-bottom: 1.5px solid var(--ink); } }
.aff-box { border: 2px solid var(--ink); padding: 18px 20px; background: var(--surface); font-family: var(--sans); font-size: 1rem; }
.aff-box__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 8px; }
.aff-box__name { font-weight: 650; font-size: 1.15rem; color: var(--ink); }
.aff-box__disc { font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.aff-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.disclosure, .stale-note, .fin-disclaimer { font-family: var(--sans); font-size: .875rem; line-height: 1.55; color: var(--ink-2); border-left: 3px solid var(--ruby); padding: 10px 14px; background: var(--surface); margin-bottom: 24px; }
.fin-disclaimer { margin-top: 32px; margin-bottom: 0; }
.notice { padding: 14px 16px; border: 1.5px solid var(--ink); background: var(--surface); font-size: .95rem; margin-bottom: 18px; }
.notice--success { border-color: var(--ok); background: #E9F4EE; color: #10402C; }
.notice--error { border-color: var(--ruby); background: #FFF1F3; color: var(--ruby-ink); }
.legal-banner { padding: 14px 16px; background: #FFF6D9; border: 1.5px solid #9A6406; margin-bottom: 26px; font-size: .9rem; }
.ad-slot { margin: 32px 0; text-align: center; }
.ad-slot__label { display: block; font-family: var(--mono); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot--placeholder { border: 1.5px dashed var(--muted); padding: 18px; font-size: .8125rem; color: var(--muted); }

/* TOC */
.toc--inline { border: 1.5px solid var(--ink); background: var(--surface); margin-bottom: 30px; }
.toc--inline summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary svg { width: 16px; height: 16px; transition: transform .2s; }
.toc--inline[open] summary svg { transform: rotate(180deg); }
.toc--inline nav { padding: 0 18px 16px; }
.toc ol, .widget--toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li, .widget--toc li { counter-increment: toc; }
.toc a, .widget--toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); padding: 5px 0; text-decoration: none; font-size: .925rem; line-height: 1.35; color: var(--ink-2); }
.toc a::before, .widget--toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .7rem; color: var(--muted); padding-top: 3px; }
.toc a:hover, .widget--toc a:hover, .toc a.is-active, .widget--toc a.is-active { color: var(--ruby); }
.toc a.is-active::before, .widget--toc a.is-active::before { color: var(--ruby); }
.toc ol ol, .widget--toc ol ol { padding-left: 28px; }
@media (min-width: 1081px) { .sidebar--sticky-toc ~ * .toc--inline, .article-layout:has(.widget--toc) .toc--inline { display: none; } }

/* Tags, author, next step, post nav */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.tags a { display: inline-block; padding: 4px 10px; border: 1px solid var(--ink); font-family: var(--mono); font-size: .75rem; text-decoration: none; }
.tags a:hover { background: var(--ink); color: #fff; }
.author-box { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 22px; border: 1.5px solid var(--ink); background: var(--surface); }
.author-box img { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; background: var(--sunk); }
.author-box > div { flex: 1; min-width: 0; }
.author-box h2 { font-size: 1.15rem; font-weight: 650; margin-bottom: 6px; }
.author-box p { color: var(--ink-2); font-size: .95rem; }
.author-box a { color: var(--ruby-ink); }
@media (max-width: 520px) { .author-box { flex-direction: column; } }
.next-step { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 28px; padding: 22px; background: var(--ruby-soft); border-left: 4px solid var(--ruby); }
.next-step strong { display: block; font-size: 1.05rem; }
.next-step p { color: var(--ink-2); font-size: .95rem; margin-top: 2px; }
@media (max-width: 600px) { .next-step { flex-direction: column; align-items: flex-start; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 40px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.post-nav a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; font-weight: 600; line-height: 1.3; }
.post-nav .next { text-align: right; border-left: 1px solid var(--rule); padding-left: 18px; }
.post-nav .prev { padding-right: 18px; }
.post-nav small { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.post-nav a:hover { color: var(--ruby); }
.related .section-head h2 { font-size: 1.9rem; }

/* Comments */
.comments-area { margin-top: 48px; border-top: 2px solid var(--ink); padding-top: 20px; }
.comments-area > h2, .comment-reply-title { font-size: 1.4rem; font-weight: 650; margin-bottom: 18px; }
.comment-list { list-style: none; display: grid; gap: 18px; margin-bottom: 32px; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 18px; display: grid; gap: 18px; }
.comment-body { padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); }
.comment-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .875rem; margin-bottom: 8px; }
.comment-author { display: flex; align-items: center; gap: 10px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-family: var(--mono); font-size: .72rem; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: .875rem; font-weight: 600; color: var(--ruby-ink); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-notes, .logged-in-as { font-size: .875rem; color: var(--muted); }
.comment-form .submit { min-height: 48px; padding: 0 22px; background: var(--ink); color: #fff; border: 0; font-weight: 600; }
.comment-form .submit:hover { background: var(--ruby); }

/* ------------------------------------------------------------------ Forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .checks legend, .seg legend { font-weight: 600; font-size: .9rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.req { color: var(--ruby); }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], input[type="tel"], input[type="datetime-local"], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--surface); color: var(--ink); font-size: 1rem;
}
.search-form input, .hero-search input, .nl-form__row input { border: 0; min-height: 0; }
textarea { min-height: 160px; resize: vertical; }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23121212' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--ruby) !important; background-color: #FFF1F3 !important; }
.field__error { color: var(--ruby-ink); font-size: .85rem; font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { font-size: .825rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.field__hint svg { width: 14px; height: 14px; flex: none; }
.field--check { grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 4px 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ruby); }
.field--check label { font-weight: 400; font-size: .9rem; display: block; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Search page, 404, sitemap */
.empty-state { text-align: left; padding: 48px 0; max-width: 720px; }
.empty-state h1, .empty-state h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 650; letter-spacing: -.035em; margin-bottom: 12px; }
.empty-state p { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); margin-bottom: 20px; }
.empty-state + .post-grid, .empty-state + .cat-grid { margin-bottom: 64px; }
.err-code { font-size: clamp(6rem, 22vw, 14rem); font-weight: 750; letter-spacing: -.07em; line-height: .85; color: var(--ruby); margin-bottom: 12px !important; font-family: var(--sans) !important; }
.search-head .search-form { max-width: 640px; margin-top: 18px; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; font-family: var(--sans); font-size: 1rem; }
.sitemap-grid h2 { font-size: 1.1rem !important; margin-top: 0 !important; border-top: 2px solid var(--ink); padding-top: 8px; }

/* ------------------------------------------------------------------ Tools */
.tool { font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--ink); }
.entry-content .tool { margin-top: 0; }
.entry-content .tool * + * { margin-top: 0; }
.entry-content .tool ul, .entry-content .tool ol { padding-left: 0; list-style: none; }
.entry-content .tool li + li { margin-top: 0; }
.tool__block + .tool__block { margin-top: 48px; }
.entry-content .tool .tool__h, .tool__h { display: flex; align-items: center; gap: 12px; font-family: var(--sans); font-size: 1.35rem; font-weight: 650; letter-spacing: -.02em; margin: 0 0 18px; border-top: 2px solid var(--ink); padding-top: 14px; }
.tool__step { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ruby); color: #fff; font-family: var(--mono); font-size: .9rem; font-weight: 600; flex: none; }
.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 2px solid var(--ink); background: var(--surface); }
.tool__grid--wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.tool__in { padding: 26px; display: grid; gap: 20px; align-content: start; }
.tool__out { padding: 26px; }
.tool__error { color: var(--ruby-ink); font-weight: 600; font-size: .9rem; }
.tool__error:empty { display: none; }
.entry-content .tool .tool__foot, .tool__foot { font-size: .825rem; color: var(--muted); margin-top: 12px; max-width: 80ch; line-height: 1.5; }
.field__row { display: flex; gap: 8px; }
.field__row input { flex: 1; min-width: 0; }
.field__row select { width: auto; flex: 0 0 auto; min-width: 96px; }
.field__val { font-family: var(--mono); font-weight: 600; color: var(--ruby); }
.field__unit { display: flex; align-items: center; gap: 8px; }
.field__unit input { width: 110px; }
.field--inline { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
input[type="range"] { width: 100%; accent-color: var(--ruby); height: 28px; }
.checks, .seg { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.checks legend, .seg legend { margin-bottom: 8px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ruby); margin: 0; }
.seg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.seg legend { grid-column: 1 / -1; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--ink); font-weight: 600; font-size: .9rem; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ruby); outline-offset: 2px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }

/* Readout (dark output panel) */
.readout { background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 12px; }
.readout__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ruby-light); }
.readout__big { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout__big--sm { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.02em; }
.readout__pw { font-family: var(--mono); font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.4; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); padding: 14px 16px; overflow-wrap: anywhere; word-break: break-all; user-select: all; }
.readout__note { font-size: .875rem; color: var(--on-ink-muted); }
.readout__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.readout__tips { list-style: none; display: grid; gap: 6px; font-size: .9rem; color: #E9E5DC; }
.readout__tips li { padding-left: 16px; position: relative; }
.readout__tips li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; background: var(--ruby-light); }
.meter { height: 8px; background: rgba(255, 255, 255, .14); }
.meter i { display: block; height: 100%; width: 0; background: var(--ruby-light); transition: width .3s var(--ease), background .3s; }
.meter i.is-bad { background: #FF6B8B; }
.meter i.is-mid { background: #F2B544; }
.meter i.is-good { background: #7FD1B9; }
.meter i.is-great { background: #5EE08F; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2); margin: 4px 0 0; }
.stats--1 { grid-template-columns: 1fr; }
.stats > div { background: var(--ink); padding: 10px 12px; min-width: 0; }
.stats dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); }
.stats dd { margin: 2px 0 0; font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bars { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .875rem; }
.bars__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__val { font-family: var(--mono); font-size: .8rem; color: var(--on-ink-muted); }
.bars i { grid-column: 1 / -1; display: block; height: 6px; background: var(--ruby-light); min-width: 2px; }
.speed-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 4px; }
.entry-content .speed-table { font-family: var(--sans); }
.speed-table caption { text-align: left; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); padding-bottom: 6px; }
.speed-table th, .speed-table td, .entry-content .speed-table th, .entry-content .speed-table td { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); text-align: left; color: #fff; font-family: var(--sans); font-size: .9rem; letter-spacing: 0; text-transform: none; }
.speed-table thead th, .entry-content .speed-table thead th { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-ink-muted); border-bottom: 1px solid rgba(255, 255, 255, .35); }
.speed-table td { text-align: right; font-variant-numeric: tabular-nums; }
.speed-table thead th:last-child { text-align: right; }

/* SaaS subscription rows */
.subs { display: grid; gap: 10px; }
.subs__head, .sub { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .95fr) minmax(0, 1fr) minmax(0, .6fr) 40px; gap: 8px; align-items: center; }
.subs__head { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.subs__list { display: grid; gap: 8px; }
.sub input, .sub select { min-height: 44px; padding: 8px 10px; font-size: .95rem; }
.sub select { padding-right: 30px; background-position: right 8px center; }
.subs > .btn { justify-self: start; }
.icon-btn--sm:hover { color: var(--ruby); border-color: var(--ruby); }
@media (max-width: 600px) {
	.subs__head { display: flex; flex-wrap: wrap; gap: 4px 12px; }
	.subs__head span:empty { display: none; }
	.sub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px; padding: 10px; border: 1px solid var(--rule); }
	.sub input[data-f="name"] { grid-column: 1 / 3; grid-row: 1; }
	.sub [data-sub-remove] { grid-column: 3; grid-row: 1; justify-self: end; }
	.sub input[data-f="price"] { grid-column: 1; grid-row: 2; }
	.sub select { grid-column: 2; grid-row: 2; }
	.sub input[data-f="seats"] { grid-column: 3; grid-row: 2; }
}

/* Unix "now" bar */
.now-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 16px 20px; border: 2px solid var(--ink); background: var(--surface); margin-bottom: 36px; }
.now-bar__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.now-bar__val { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; color: var(--ruby); font-variant-numeric: tabular-nums; }
.now-bar .btn { margin-left: auto; }

@media (max-width: 860px) {
	.tool__grid, .tool__grid--wide { grid-template-columns: 1fr; }
	.tool__in, .tool__out { padding: 20px; }
}

/* ==================================================================
 * Pushwiki layer — encyclopedia
 * ================================================================== */
body { font-size: 1rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
a { color: var(--ruby); text-decoration: none; }
a:hover { text-decoration: underline; }
a:visited { color: #795CB2; }
.btn:visited, .tool-cell:visited, .portal:visited, .head-link:visited { color: inherit; }
.kicker, .label, .eyebrow, .meta-line, .byline, .breadcrumbs ol, .widget h2, .widget-title, .footer-col h2, .readout__label, .stats dt, .tool-cell__top, .subs__head { letter-spacing: .02em; text-transform: none; font-weight: 600; }
.meta-line, .byline { font-size: .82rem; }
.cat-tag { color: var(--ruby); font-weight: 600; }

/* Buttons: progressive blue + quiet gray */
.btn { border-radius: var(--radius); border-width: 1px; font-weight: 600; min-height: 40px; padding: 0 16px; background: #3366CC; border-color: #3366CC; color: #fff; }
.btn:hover { background: #447FF5; border-color: #447FF5; color: #fff; text-decoration: none; }
.btn--primary, .btn--ruby, .btn--ink { background: #3366CC; border-color: #3366CC; color: #fff; }
.btn--primary:hover, .btn--ruby:hover, .btn--ink:hover { background: #447FF5; border-color: #447FF5; }
.btn--outline, .btn--ghost-light { background: var(--sunk); border-color: var(--rule); color: var(--ink); }
.btn--outline:hover, .btn--ghost-light:hover { background: #fff; border-color: #72777D; color: var(--ink); }
.icon-btn { border-radius: var(--radius); }
.icon-btn:hover { border-color: var(--rule); }
input[type="text"], input[type="email"], input[type="number"], input[type="search"], input[type="password"], input[type="url"], input[type="tel"], input[type="datetime-local"], input[type="date"], select, textarea {
	width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #72777D; border-radius: var(--radius); background: #fff; color: var(--ink); font-size: 1rem;
}
input[type="date"]:focus-visible { outline: 2px solid var(--ruby); outline-offset: 1px; }
.search-form { border: 1px solid #72777D; border-radius: var(--radius); }
.search-form .btn { border-left: 1px solid #72777D; border-radius: 0; min-height: 44px; }
.search-form input { height: 44px; }

/* Header */
.site-header { position: relative; background: #fff; border-bottom: 0; }
.site-header__inner { gap: 24px; min-height: 76px; }
.brand { gap: 12px; }
.brand__mark { width: 44px; height: 44px; }
.brand__text { display: grid; gap: 1px; letter-spacing: 0; }
.brand__name { font-family: var(--serif); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--ink); }
.brand__tag { font-size: .78rem; font-weight: 400; color: var(--muted); }
.head-search { flex: 1; max-width: 560px; display: flex; align-items: center; border: 1px solid #72777D; border-radius: var(--radius); background: #fff; padding-left: 10px; }
.head-search:focus-within { outline: 2px solid var(--ruby); outline-offset: 1px; border-color: var(--ruby); }
.head-search > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.head-search input { flex: 1; min-width: 0; border: 0; min-height: 40px; padding: 0 10px; background: transparent; font-size: 1rem; }
.head-search input:focus { outline: none; }
.head-search .btn { border-radius: 0; background: var(--sunk); border: 0; border-left: 1px solid #72777D; color: var(--ink); min-height: 40px; }
.head-search .btn:hover { background: #fff; }
.head-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ruby); white-space: nowrap; padding: 6px 8px; }
.head-link svg { width: 16px; height: 16px; }
.site-header .search-btn { display: none; }
.tabs { border-bottom: 1px solid var(--rule); background: linear-gradient(#fff, #F8F9FA); }
.tabs__inner.primary-nav { display: block; }
.tabs .menu { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.tabs .menu::-webkit-scrollbar { display: none; }
.tabs .menu > li > a { padding: 10px 14px; font-size: .92rem; font-weight: 500; color: var(--ruby); border-bottom: 2px solid transparent; }
.tabs .menu > li > a:visited { color: var(--ruby); }
.tabs .menu > li > a:hover { text-decoration: none; border-bottom-color: var(--rule); }
.tabs .current-menu-item > a, .tabs .current-menu-ancestor > a, .tabs .current-post-ancestor > a, .tabs a[aria-current] { color: var(--ink) !important; border-bottom-color: var(--ink) !important; }
.primary-nav .menu > li > a::before { content: none; }
@media (max-width: 1160px) { .tabs .primary-nav { display: block; } .menu-toggle { display: inline-flex; } }
@media (max-width: 900px) {
	.head-link span { display: none; }
	.brand__tag { display: none; }
}
@media (max-width: 700px) {
	.head-search { display: none; }
	.site-header .search-btn { display: inline-flex; }
	.head-link { display: none; }
	.site-header__inner { min-height: 60px; }
	.brand__mark { width: 36px; height: 36px; }
	.brand__name { font-size: 1.5rem; }
	.tabs .menu > li > a { padding: 9px 11px; font-size: .88rem; }
}
.mobile-nav__panel { border-left: 1px solid var(--rule); background: #fff; }
.mobile-nav__top { border-bottom: 1px solid var(--rule); }
.mobile-nav .menu > li > a::before { content: none; }
.mobile-nav .menu a { font-family: var(--serif); font-size: 1.3rem; color: var(--ruby); }
.search-overlay__box { border: 1px solid var(--rule); box-shadow: 0 10px 40px rgba(0, 0, 0, .2); border-radius: 4px; background: #fff; }

/* Main page */
.mainpage { padding-block: 20px 48px; }
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; border: 1px solid var(--hair); background: var(--sunk); padding: 18px 22px; margin-bottom: 16px; border-radius: var(--radius); }
.welcome h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.1; }
.welcome h1 span { color: var(--ruby); }
.welcome__text p { font-size: 1rem; }
.welcome__count { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.welcome__portals { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 18px; }
.welcome__portals a { display: block; padding: 3px 0 3px 14px; position: relative; font-weight: 600; }
.welcome__portals a::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
@media (max-width: 800px) { .welcome { grid-template-columns: 1fr; } .welcome__portals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mp-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mp-col { display: grid; gap: 16px; }
@media (max-width: 900px) { .mp-cols { grid-template-columns: 1fr; } }
.mp-box { border: 1px solid var(--hair); background: #fff; border-radius: var(--radius); overflow: hidden; display: flow-root; }
.mp-box__h { font-size: 1.2rem; font-weight: 700; padding: 5px 12px; border-bottom: 1px solid; }
.mp-box--green { border-color: #A3BFB1; }
.mp-box--green > .mp-box__h { background: #CEF2E0; border-color: #A3BFB1; }
.mp-box--blue { border-color: #A3B0BF; }
.mp-box--blue > .mp-box__h { background: #CEDFF2; border-color: #A3B0BF; }
.mp-box--gray > .mp-box__h { background: #EAECF0; border-color: var(--hair); }
.mp-box__body { padding: 10px 14px 12px; font-size: .95rem; line-height: 1.6; display: flow-root; }
.mp-box__more { text-align: right; font-size: .88rem; margin-top: 8px; border-top: 1px solid var(--hair); padding-top: 6px; clear: both; }
.tfa__img { float: right; width: 42%; max-width: 260px; margin: 4px 0 8px 14px; border: 1px solid var(--hair); }
.tfa__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tfa__title { font-size: 1.45rem; font-weight: 600; line-height: 1.15; margin-bottom: 6px; }
.tfa__recent { clear: both; font-size: .88rem; color: var(--muted); padding-top: 8px; }
.dyk__img, .news__img { float: right; width: 120px; margin: 4px 0 8px 12px; border: 1px solid var(--hair); }
.dyk__img img, .news__img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.news__img img { aspect-ratio: 4 / 3; }
.dyk, .news { padding-left: 18px; display: grid; gap: 5px; }
.dyk li::marker, .news li::marker { color: var(--muted); }
.news__date { color: var(--muted); font-size: .85rem; }
.mp-list { list-style: none; display: grid; gap: 10px; }
.mp-list__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.mp-list__img img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--hair); }
.mp-list__title { font-weight: 600; line-height: 1.3; }
.mp-list__meta { font-size: .82rem; color: var(--muted); }
.portals { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.portal { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 4px; color: var(--ruby); border-radius: var(--radius); }
.portal:hover { background: var(--sunk); text-decoration: none; }
.portal__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tone, var(--ruby)); color: #fff; }
.portal__icon svg { width: 16px; height: 16px; }
.portal__name { font-weight: 600; }
.portal__count { font-size: .8rem; color: var(--muted); }
.mp-tools { list-style: none; display: grid; gap: 6px; }
.mp-tools a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; color: var(--ink); }
.mp-tools a b { color: var(--ruby); }
.mp-tools svg { width: 18px; height: 18px; margin-top: 3px; color: var(--muted); }
.mp-other { margin-top: 16px; }
.other { columns: 2 280px; column-gap: 32px; padding-left: 18px; }
.other li { margin-bottom: 4px; break-inside: avoid; }

/* Wiki article */
.wiki__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; padding-block: 20px 56px; }
.wiki__layout--notoc { grid-template-columns: minmax(0, 1fr); max-width: calc(1000px + var(--gutter) * 2); }
.wiki__side { position: relative; }
.wiki-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; font-size: .9rem; padding-right: 6px; }
.wiki-toc h2 { font-family: var(--sans); font-size: .95rem; font-weight: 700; padding-bottom: 6px; border-bottom: 1px solid var(--hair); margin-bottom: 6px; }
.wiki-toc__top { display: block; padding: 4px 0; }
.wiki-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 0; }
.wiki-toc li { counter-increment: toc; }
.wiki-toc a { display: block; padding: 4px 0; color: var(--ruby); font-size: .9rem; line-height: 1.35; }
.wiki-toc a::before { content: none; }
.wiki-toc a.is-active { color: var(--ink); font-weight: 600; }
.wiki-toc ol ol { padding-left: 14px; }
@media (max-width: 1000px) { .wiki__layout { grid-template-columns: minmax(0, 1fr); } .wiki__side { display: none; } }
@media (min-width: 1001px) { .wiki .toc--inline { display: none; } }
.wiki__main { min-width: 0; }
.wiki__head { margin-bottom: 14px; }
.wiki__head .breadcrumbs { margin-bottom: 8px; }
.wiki__title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 500; line-height: 1.15; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.wiki__ns { color: var(--muted); }
.wiki__from { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.wiki__from .share { margin-left: 0; }
.share a, .share button { width: 32px; height: 32px; border: 1px solid var(--hair); border-radius: var(--radius); color: var(--ink); background: #fff; }
.share a:hover, .share button:hover { background: var(--sunk); color: var(--ink); }
.infobox { float: right; clear: right; width: 300px; margin: 0 0 16px 24px; border: 1px solid var(--hair); background: var(--sunk); padding: 6px; font-size: .88rem; line-height: 1.45; }
.infobox__title { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.2; padding: 6px 4px 8px; }
.infobox__img { margin: 0 0 6px; }
.infobox__img img { width: 100%; height: auto; }
.infobox__img figcaption { font-size: .8rem; color: var(--muted); text-align: center; padding-top: 4px; }
.infobox table { width: 100%; border-collapse: collapse; }
.infobox th, .infobox td { text-align: left; vertical-align: top; padding: 4px 6px; border-top: 1px solid var(--hair); }
.infobox th { width: 38%; font-weight: 600; }
@media (max-width: 640px) { .infobox { float: none; width: auto; margin: 0 0 16px; } }
.wiki .article-excerpt { font-family: var(--sans); font-style: normal; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.entry-content { font-family: var(--sans); font-size: 1.02rem; line-height: 1.7; color: var(--ink); }
.entry-content > * + * { margin-top: .9em; }
.entry-content h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; border-bottom: 1px solid var(--rule); padding-bottom: 3px; margin-top: 1.4em; letter-spacing: 0; clear: none; }
.entry-content h3 { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; }
.entry-content a { color: var(--ruby); text-decoration: none; }
.entry-content a:hover { text-decoration: underline; }
.entry-content li::marker { color: var(--muted); }
.entry-content blockquote { border-left: 4px solid var(--hair); font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.entry-content table { border: 1px solid var(--rule); background: var(--sunk); }
.entry-content th, .entry-content td { border: 1px solid var(--rule); }
.entry-content thead th { background: #EAECF0; border-bottom: 1px solid var(--rule); text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .95rem; }
.entry-content pre { background: var(--sunk); color: var(--ink); border: 1px solid var(--hair); }
.catlinks { clear: both; border: 1px solid var(--rule); background: var(--sunk); padding: 6px 10px; font-size: .9rem; margin-top: 28px; }
.seealso { margin-top: 28px; }
.seealso h2 { font-size: 1.6rem; font-weight: 500; border-bottom: 1px solid var(--rule); padding-bottom: 3px; margin-bottom: 8px; }
.seealso ul { padding-left: 20px; display: grid; gap: 4px; }
.fin-disclaimer, .disclosure, .stale-note { border-left-color: var(--orange); background: #FEF6E7; }
.author-box { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--sunk); }
.author-box h2 { font-family: var(--serif); font-size: 1.25rem; }
.next-step { background: var(--ruby-soft); border-left: 4px solid var(--ruby); border-radius: var(--radius); }
.post-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.post-nav small { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.toc--inline { border: 1px solid var(--hair); background: var(--sunk); border-radius: var(--radius); }
.toc--inline summary { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.comments-area { border-top: 1px solid var(--rule); }
.comments-area > h2, .comment-reply-title { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.comment-form .submit { background: #3366CC; border-radius: var(--radius); }
.comment-body { border-color: var(--hair); }
.pagination .page-numbers { border: 1px solid var(--rule); border-radius: var(--radius); font-family: var(--sans); }
.pagination .page-numbers.current { background: var(--ink); }

/* Category (wiki) */
.wiki-cat { padding-block: 20px 56px; }
.wiki-cat__intro { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 18px; font-size: 1rem; }
.wiki-cat__intro .portal__icon { width: 44px; height: 44px; }
.wiki-cat__intro .portal__icon svg { width: 22px; height: 22px; }
.wiki-cat__count { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.wiki-cat .mp-box { margin-bottom: 20px; }
.subcats { list-style: none; columns: 3 200px; }
.subcats li { margin-bottom: 4px; }
.subcats__n { color: var(--muted); font-size: .85rem; }
.wiki-cat__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 1080px) { .wiki-cat__layout { grid-template-columns: 1fr; } }
.wiki-h2 { font-size: 1.65rem; font-weight: 500; border-bottom: 1px solid var(--rule); padding-bottom: 3px; margin-bottom: 4px; }
.rows .row { border-top: 0; border-bottom: 1px solid var(--hair); grid-template-columns: 160px minmax(0, 1fr); gap: 18px; padding: 16px 0; }
.row__title { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; letter-spacing: 0; }
.row__title a { color: var(--ruby); }
.row__excerpt { font-family: var(--sans); font-size: .95rem; color: var(--ink); }
.row__media { border: 1px solid var(--hair); }
@media (max-width: 640px) { .rows .row { grid-template-columns: 96px minmax(0, 1fr); } .row__excerpt { display: none; } }
.az { margin-top: 36px; }
.az__jump { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 14px; }
.az__jump a { min-width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--hair); background: var(--sunk); font-weight: 600; font-size: .9rem; border-radius: var(--radius); }
.az__cols { columns: 3 220px; column-gap: 28px; }
.az__group { break-inside: avoid; margin-bottom: 14px; }
.az__group h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.az__group ul { padding-left: 18px; font-size: .93rem; }
.az__group li { margin-bottom: 3px; }
.hub-empty { border: 1px solid var(--hair); border-radius: var(--radius); font-family: var(--sans); font-size: 1rem; background: var(--sunk); }

/* Generic pages, search, sidebar */
.page-hero, .hub-hero, .search-head { border-bottom: 0; padding-block: 20px 6px; }
.page-hero h1, .hub-hero h1, .search-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 500; letter-spacing: 0; line-height: 1.15; border-bottom: 1px solid var(--rule); padding-bottom: 6px; margin: 8px 0 10px; max-width: none; }
.page-hero p, .search-head p { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.page-body { padding-block: 16px 56px; }
.widget h2, .widget-title { color: var(--ink); border-top: 0; border-bottom: 1px solid var(--rule); padding: 0 0 4px; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.widget--cta { background: var(--ruby-soft); color: var(--ink); border: 1px solid #A3B0BF; border-radius: var(--radius); }
.widget--cta h2 { color: var(--ink); }
.widget--cta p { color: var(--ink); }
.widget--cta .btn { background: #3366CC; border-color: #3366CC; }
.widget--cta .btn:hover { background: #447FF5; color: #fff; }
.cat-list a { color: var(--ruby); border-bottom-color: var(--hair); }
.cat-list__icon { border-radius: 50%; }
.mini a { color: var(--ruby); }
.cat-grid, .cat-card { border-color: var(--hair); }
.cat-card { color: var(--ruby); }
.cat-card:hover { background: var(--sunk); color: var(--ruby); }
.cat-card:hover p { color: var(--muted); }
.card__body { border-top: 0; padding-top: 0; }
.card__title { font-family: var(--sans); font-size: 1.1rem; }
.card__title a { color: var(--ruby); }
.card__media { border: 1px solid var(--hair); }
.empty-state h1, .empty-state h2 { font-family: var(--serif); font-weight: 500; }
.empty-state p { font-family: var(--sans); font-size: 1.05rem; }
.err-code { color: var(--hair); }
.section-head { border-top: 0; border-bottom: 1px solid var(--rule); padding: 0 0 4px; }
.section-head h2 { font-weight: 500; letter-spacing: 0; }
.link-arrow { border-bottom: 0; color: var(--ruby); padding: 0; }
.newsletter { box-shadow: none; border: 1px solid #A3B0BF; background: var(--ruby-soft); border-radius: var(--radius); }
.newsletter .eyebrow { color: var(--ruby-ink); }
.newsletter h2 { font-weight: 500; }
.nl-form__row { border: 1px solid #72777D; border-radius: var(--radius); overflow: hidden; }
.nl-form__row .btn { border: 0; border-left: 1px solid #72777D; border-radius: 0; }

/* Tools (light readouts) */
.tool__grid { border: 1px solid var(--hair); border-radius: var(--radius); }
.tool__h, .entry-content .tool .tool__h { border-top: 0; padding-top: 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.tool__step { background: var(--ruby); border-radius: 50%; width: 28px; height: 28px; font-family: var(--sans); font-size: .85rem; }
.readout { background: var(--sunk); color: var(--ink); border-left: 1px solid var(--hair); }
.readout__label { color: var(--ruby-ink); font-size: .8rem; }
.readout__big { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.readout__note { color: var(--muted); }
.stats { background: var(--hair); border-color: var(--hair); }
.stats > div { background: #fff; }
.stats dt { color: var(--muted); font-size: .75rem; }
.speed-table th, .speed-table td, .entry-content .speed-table th, .entry-content .speed-table td { color: var(--ink); border-bottom-color: var(--hair); background: transparent; border-left: 0; border-right: 0; border-top: 0; }
.entry-content .speed-table { background: transparent; border: 0; }
.speed-table caption, .speed-table thead th, .entry-content .speed-table thead th { color: var(--muted); background: transparent; }
.cite { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.cite:last-child { border-bottom: 0; padding-bottom: 0; }
.cite__text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.5; background: #fff; border: 1px solid var(--hair); padding: 10px 12px; padding-left: 2.2em; text-indent: -1.4em; overflow-wrap: anywhere; }
.cite .btn { justify-self: start; }
.kw { list-style: none; display: grid; gap: 4px; counter-reset: kw; }
.kw li { counter-increment: kw; display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; background: #fff; border: 1px solid var(--hair); font-size: .92rem; }
.kw li::before { content: counter(kw) "."; color: var(--muted); margin-right: 6px; }
.kw li span:first-child { margin-right: auto; font-weight: 600; }
.kw__n { color: var(--muted); font-size: .85rem; }
.kw .kw__empty { color: var(--muted); }
.kw .kw__empty::before { content: none; }
.tool-list { border: 0; gap: 12px; }
.tool-list > li { border: 1px solid var(--hair); border-radius: var(--radius); }
.tool-cell { min-height: 0; }
.tool-cell--light .tool-cell__num { color: var(--ruby-ink); }
.tool-cell--light .tool-cell__title { font-family: var(--serif); font-size: 1.45rem; }
.tool-cell--light:hover, .tool-cell--light:focus-visible { background: var(--sunk); color: var(--ink); text-decoration: none; }
.tool-cell--light:hover .tool-cell__num, .tool-cell--light:focus-visible .tool-cell__num { color: var(--ruby-ink); }
.tool-cell--light:hover .tool-cell__top, .tool-cell--light:hover .tool-cell__ask, .tool-cell--light:focus-visible .tool-cell__top, .tool-cell--light:focus-visible .tool-cell__ask { color: var(--muted); }
.tool-cell__icon { border-radius: 50%; border-width: 1px; }
.check input { accent-color: var(--ruby); }

/* Footer (light) */
.site-footer { background: var(--sunk); color: var(--ink); border-top: 1px solid var(--hair); }
.footer-nl { background: var(--ruby-soft); border-bottom: 1px solid var(--hair); }
.footer-nl__inner { padding-block: 32px; }
.footer-nl .kicker--light { color: var(--ruby-ink); }
.footer-nl__title { font-family: var(--serif); font-weight: 500; letter-spacing: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); }
.footer-nl__lead { font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.footer-nl .nl-form__row { border-color: #72777D; }
.footer-nl .nl-form__row .btn { background: #3366CC; color: #fff; border-left: 0; }
.footer-nl .consent, .footer-nl .consent a, .footer-nl .form-msg, .footer-nl .form-msg.is-info { color: var(--muted); }
.footer-nl .consent a { color: var(--ruby); }
.footer-nl .form-msg.is-error, .footer-nl .form-msg.is-success { color: var(--ink); background: #fff; }
.site-footer .brand, .site-footer .brand__name { color: var(--ink); }
.footer-top { padding-block: 32px 24px; }
.footer-about p { color: var(--muted); }
.footer-col h2 { color: var(--ink); border-bottom-color: var(--hair); font-family: var(--serif); font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.footer-col a { color: var(--ruby); font-size: .92rem; }
.social a { border-color: var(--hair); color: var(--ink); border-radius: 50%; }
.social a:hover { background: var(--sunk); border-color: var(--rule); }
.footer-bottom { border-top-color: var(--hair); color: var(--muted); font-family: var(--sans); font-size: .85rem; }
.footer-bottom a { color: var(--ruby); }

.consent a, .tfa__recent a, .catlinks a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 600px) { .dyk__img { display: none; } .tfa__img { width: 38%; } .news__img { width: 96px; } }

/* ------------------------------------------------------------------ Motion preferences */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------------ Print */
@media print {
	.topline, .site-header, .site-footer, .sidebar, .share, .next-step, .newsletter, .post-nav, .comments-area, .related, .ad-slot { display: none !important; }
	body { background: #fff; }
	.article-layout { display: block; }
}
