/*
 * Top10at theme.
 * Layout: left-aligned editorial columns on ledger-paper; ink rules mark where a section starts.
 * The one loud element is the rank numeral: condensed, heavy, on a marigold tile. Everything else stays quiet.
 */
:root {
	--t10-ink: var(--wp--preset--color--ink);
	--t10-paper: var(--wp--preset--color--paper);
	--t10-surface: var(--wp--preset--color--surface);
	--t10-brand: var(--wp--preset--color--brand);
	--t10-brand-tint: var(--wp--preset--color--brand-tint);
	--t10-accent: var(--wp--preset--color--accent);
	--t10-rule: var(--wp--preset--color--rule);
	--t10-muted: var(--wp--preset--color--muted);
	--t10-font-display: var(--wp--preset--font-family--display);
	--t10-font-ui: var(--wp--preset--font-family--display);
	--t10-font-body: var(--wp--preset--font-family--body);
	--t10-display-stretch: 108%;
	--t10-numeral-stretch: 62%;
	--t10-wide: 78rem;
	--t10-read: 44rem;
	--t10-gutter: clamp(1rem, 4vw, 2rem);
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body { font-optical-sizing: auto; font-variant-numeric: lining-nums; margin: 0; overflow-wrap: break-word; text-rendering: optimizeLegibility; }
*, *::before, *::after { box-sizing: border-box; }
img { height: auto; max-width: 100%; }
h1, h2, h3, h4 { font-stretch: var(--t10-display-stretch); letter-spacing: -0.012em; text-wrap: balance; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--t10-brand); outline-offset: 2px; }
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > main { flex: 1; }
.skip-link:focus { background: var(--t10-ink) !important; color: #fff !important; font-family: var(--t10-font-ui) !important; }

/* ---------- Header ---------- */
.t10-header { background: var(--t10-surface); border-bottom: 1px solid var(--t10-rule); }
.t10-header__bar {
	align-items: center;
	display: flex;
	gap: 1rem 2rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: calc(var(--t10-wide) + 2 * var(--t10-gutter));
	padding: 0.9rem var(--t10-gutter) 0.8rem;
}
.t10-header__bar > * { margin: 0; }
.t10-header__brand { align-items: center; display: flex; }
.t10-header__brand > * { margin: 0; }
.t10-header__brand .wp-block-site-logo img { display: block; height: auto; }
.t10-header__brand .wp-block-site-title { font: 800 1.7rem/1 var(--t10-font-display); font-stretch: 108%; letter-spacing: -0.03em; }
.t10-header__brand .wp-block-site-title a { color: var(--t10-ink); text-decoration: none; }
.t10-header__brand:has(.wp-block-site-logo) .wp-block-site-title {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.wp-block-search__inside-wrapper { border: 1px solid var(--t10-ink); display: flex; }
.wp-block-search__input {
	appearance: none;
	background: var(--t10-surface);
	border: 0;
	border-radius: 0;
	color: var(--t10-ink);
	flex: 1;
	font: 1rem/1.3 var(--t10-font-ui);
	min-width: 0;
	padding: 0.55rem 0.8rem;
}
.wp-block-search__input::placeholder { color: var(--t10-muted); opacity: 1; }
.wp-block-search__input:focus-visible { outline-offset: -3px; }
.wp-block-search__button {
	background: var(--t10-ink);
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	font: 600 0.95rem/1.3 var(--t10-font-ui);
	margin: 0;
	padding: 0.55rem 1.1rem;
}
.wp-block-search__button:hover { background: var(--t10-brand); }
.t10-header__search { flex: 0 1 24rem; }
.t10-header__searchlink { display: none; font: 600 0.98rem/1 var(--t10-font-ui); }
.t10-header__searchlink a { color: var(--t10-ink); display: inline-block; padding: 0.75rem 0; }
@media (max-width: 43.99rem) {
	.t10-header__search { display: none; }
	.t10-header__searchlink { display: block; }
}

.t10-menu--primary { border-top: 1px solid var(--t10-rule); }
.t10-menu--primary .t10-menu__list {
	display: flex;
	gap: 0 clamp(1.1rem, 2.4vw, 2rem);
	list-style: none;
	margin: 0 auto;
	max-width: calc(var(--t10-wide) + 2 * var(--t10-gutter));
	overflow-x: auto;
	padding: 0 var(--t10-gutter);
	scrollbar-width: none;
	white-space: nowrap;
}
.t10-menu--primary .t10-menu__list::-webkit-scrollbar { display: none; }
.t10-menu--primary a {
	border-bottom: 3px solid transparent;
	color: var(--t10-ink);
	display: block;
	font: 600 0.97rem/1.2 var(--t10-font-ui);
	padding: 0.8rem 0 0.6rem;
	text-decoration: none;
}
.t10-menu--primary a:hover { border-bottom-color: var(--t10-rule); }
.t10-menu--primary .current-menu-item > a,
.t10-menu--primary .current-post-ancestor > a,
.t10-menu--primary .current-menu-parent > a,
.t10-menu--primary .current-page-ancestor > a { border-bottom-color: var(--t10-accent); }
.t10-menu--primary a:focus-visible { outline-offset: -3px; }
@media (max-width: 63.99rem) {
	.t10-menu--primary { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); }
	.t10-menu--primary .t10-menu__list { padding-right: 3rem; }
}

/* ---------- Page containers ---------- */
.t10-main { margin-inline: auto; max-width: calc(var(--t10-wide) + 2 * var(--t10-gutter)); padding: 0 var(--t10-gutter) 4rem; width: 100%; }
.t10-main > * { margin-block: 0; }

.t10-article__head, .t10-archive__head { max-width: 56rem; padding-block: 1.75rem 1.5rem; }
.t10-article__head > *, .t10-archive__head > * { margin-block: 0; }
.t10-article__head .wp-block-post-title, .t10-archive__head h1 { margin-top: 0.9rem; }
.t10-dek { margin-top: 1rem !important; }
.t10-dek .wp-block-post-excerpt__excerpt { color: var(--t10-muted); font-size: clamp(1.15rem, 2.6vw, 1.35rem); line-height: 1.45; margin: 0; max-width: 46rem; }
.t10-article__head .t10-meta { margin-top: 1.1rem; }
.t10-archive__head .wp-block-term-description, .t10-archive__head .wp-block-post-author-biography { color: var(--t10-muted); font-size: 1.15rem; line-height: 1.5; margin-top: 0.9rem; max-width: 44rem; }
.t10-archive__head .wp-block-term-description p { margin: 0; }
.t10-archive__head .t10-facts { max-width: 34rem; }
.t10-searchform { margin-top: 1.25rem !important; max-width: 34rem; }

.t10-article__grid { display: grid; gap: 1.5rem; }
.t10-article__grid > * { margin: 0; min-width: 0; }
.t10-article__side:empty, .t10-article__side:not(:has(*)) { display: none; }
.t10-article__side .t10-toc { background: var(--t10-surface); border: 1px solid var(--t10-rule); padding: 0.35rem 1rem; }
.t10-article__side .t10-ad--sidebar { display: none; }
.t10-article__main > * { margin-block: 0; }
@media (min-width: 64rem) {
	.t10-article__grid { align-items: start; column-gap: clamp(2.5rem, 6vw, 5.5rem); grid-template-columns: minmax(0, var(--t10-read)) minmax(14rem, 18.75rem); justify-content: space-between; }
	.t10-article__main { grid-column: 1; grid-row: 1; }
	.t10-article__side { grid-column: 2; grid-row: 1; position: sticky; top: 1.25rem; }
	.t10-article__side .t10-toc { background: none; border: 0; border-top: 2px solid var(--t10-ink); max-height: calc(100vh - 3rem); overflow-y: auto; padding: 0.2rem 0 0; }
	.t10-article__side .t10-toc__title { cursor: default; list-style: none; }
	.t10-article__side .t10-toc__title::-webkit-details-marker { display: none; }
	.t10-article__side .t10-ad--sidebar { display: block; margin: 2rem 0 0; }
	.t10-article__grid:has(.t10-article__side:not(:has(*))) { grid-template-columns: minmax(0, var(--t10-read)); }
}

.t10-cover { margin: 0 0 1.75rem; }
.t10-cover__img { aspect-ratio: 16 / 9; background: var(--t10-rule); display: block; object-fit: cover; outline: 1px solid var(--t10-rule); outline-offset: -1px; width: 100%; }
.t10-cover figcaption { color: var(--t10-muted); font: 0.82rem/1.4 var(--t10-font-ui); margin-top: 0.4rem; }

/* ---------- Reading text ---------- */
.t10-prose > * { margin-block: 1.35rem 0; }
.t10-prose > :first-child { margin-top: 0; }
.t10-prose h2 { margin-top: 2.9rem; scroll-margin-top: 1.5rem; }
.t10-prose h3 { margin-top: 2rem; }
.t10-prose h2 + *, .t10-prose h3 + * { margin-top: 0.75rem; }
.t10-prose ul, .t10-prose ol { padding-left: 1.4rem; }
.t10-prose li { margin-block: 0.4rem; }
.t10-prose li::marker { color: var(--t10-muted); }
.t10-prose blockquote { border-left: 3px solid var(--t10-ink); margin-inline: 0; padding-left: 1.25rem; }
.t10-prose blockquote cite { color: var(--t10-muted); display: block; font: normal 0.9rem/1.4 var(--t10-font-ui); margin-top: 0.5rem; }
.t10-prose code { background: var(--t10-surface); border: 1px solid var(--t10-rule); font-size: 0.88em; padding: 0.05em 0.3em; }
.t10-prose .wp-block-image figcaption { text-align: left; }
.t10-prose strong { font-weight: 650; }
.t10-article__main .t10-share { border-top: 1px solid var(--t10-rule); margin-top: 3rem; padding-top: 1rem; }
.t10-page__content { max-width: var(--t10-read); }
.t10-page__content.t10-page__content--wide { max-width: none; }
/* Hub pages: collections use the full width, running text keeps the reading measure. */
.t10-page__content:has(> .t10-collection) { max-width: none; }
.t10-page__content:has(> .t10-collection) > p { max-width: var(--t10-read); }

.t10-related { margin-block: 4rem 0; }

/* ---------- Archives ---------- */
.t10-loop { margin-block: 0.5rem 0; max-width: 56rem; }
.t10-loop .t10-card .t10-card__title { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
.t10-archive .t10-term-index { margin-top: 3.5rem; }
.t10-term-index h2 { border-top: 2px solid var(--t10-ink); padding-top: 0.6rem; }
.t10-empty { border-top: 2px solid var(--t10-ink); font-size: 1.15rem; max-width: 44rem; padding-top: 1rem; }
.t10-pagination { margin-top: 2.5rem; }
.t10-pagination ul { display: flex; flex-wrap: wrap; font: 600 0.95rem/1 var(--t10-font-ui); gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.t10-pagination a, .t10-pagination span { border: 1px solid var(--t10-ink); color: var(--t10-ink); display: block; min-width: 2.75rem; padding: 0.85rem 0.9rem; text-align: center; text-decoration: none; }
.t10-pagination .current { background: var(--t10-ink); color: #fff; }
.t10-pagination .dots { border-color: transparent; }
.t10-pagination a:hover { background: var(--t10-brand-tint); }

/* ---------- Home ---------- */
.t10-home__content > * { margin-block: 0; }
.t10-tagline { color: var(--t10-muted); font: 500 1rem/1.4 var(--t10-font-ui); font-stretch: 100%; letter-spacing: 0; margin: 0; padding-block: 1.1rem 0; }
.t10-hero { display: grid; gap: 1.75rem 3.5rem; padding-block: 1.5rem 1rem; }
.t10-hero__text { align-self: center; min-width: 0; }
.t10-hero__title { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.03; margin: 0.4rem 0 0; }
.t10-hero__title a { color: var(--t10-ink); text-decoration: none; }
.t10-hero__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.t10-hero__dek { color: var(--t10-muted); font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.45; margin: 1rem 0 0; max-width: 34rem; }
.t10-hero__more { font: 600 1rem/1.4 var(--t10-font-ui); margin: 1.2rem 0 0; }
.t10-hero__table { background: var(--t10-surface); border-top: 3px solid var(--t10-ink); min-width: 0; padding: 0 1.1rem 0.9rem; }
.t10-hero__table ol { list-style: none; margin: 0; padding: 0; }
.t10-hero__table li { align-items: center; border-bottom: 1px solid var(--t10-rule); display: grid; gap: 0.9rem; grid-template-columns: 2.9rem minmax(0, 1fr) auto; padding-block: 0.7rem; }
.t10-hero__rank { background: var(--t10-accent); font: 800 2rem/1 var(--t10-font-display); font-stretch: var(--t10-numeral-stretch); padding: 0.28rem 0 0.2rem; text-align: center; }
.t10-hero__name { color: var(--t10-ink); font: 650 1.08rem/1.25 var(--t10-font-display); font-stretch: var(--t10-display-stretch); text-decoration: none; }
.t10-hero__name:hover { color: var(--t10-brand); text-decoration: underline; }
.t10-hero__metric { color: var(--t10-ink); font: 500 0.98rem/1.2 var(--t10-font-ui); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.t10-hero__note { color: var(--t10-muted); font: 0.84rem/1.4 var(--t10-font-ui); margin: 0.7rem 0 0; }
@media (min-width: 60rem) {
	.t10-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-block: 2.5rem 1.5rem; }
}
@media (max-width: 26rem) {
	.t10-hero__table li { grid-template-columns: 2.4rem minmax(0, 1fr); }
	.t10-hero__metric { grid-column: 2; text-align: left; }
}

.t10-split { display: grid; gap: 0 3.5rem; }
.t10-split > * { margin: 0; min-width: 0; }
@media (min-width: 60rem) {
	.t10-split { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.t10-footer { background: var(--t10-ink); color: #e9ecf2; font-family: var(--t10-font-ui); margin-top: 0; }
.t10-footer a { color: #fff; }
.t10-footer :focus-visible { outline-color: var(--t10-accent); }
.t10-footer__top, .t10-footer__bottom { margin-inline: auto; max-width: calc(var(--t10-wide) + 2 * var(--t10-gutter)); padding-inline: var(--t10-gutter); }
.t10-footer__top { display: grid; gap: 2.25rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); padding-block: 3rem 2.25rem; }
.t10-footer__top > * { margin: 0; }
.t10-footer__about > * { margin: 0; }
.t10-footer .wp-block-site-title { font: 800 1.6rem/1 var(--t10-font-display); font-stretch: 108%; letter-spacing: -0.03em; }
.t10-footer .wp-block-site-title a { text-decoration: none; }
.t10-footer .t10-publisher-field { color: #c9cfdb; font-size: 0.95rem; line-height: 1.5; margin-top: 0.9rem; max-width: 22rem; }
.t10-menu__label { color: #c9cfdb; font-size: 0.9rem; font-weight: 600; margin: 0 0 0.6rem; }
.t10-footer .t10-menu__list { font-size: 0.97rem; list-style: none; margin: 0; padding: 0; }
.t10-footer .t10-menu__list a { display: inline-block; padding-block: 0.38rem; text-decoration: none; }
.t10-footer .t10-menu__list a:hover { text-decoration: underline; }
.t10-footer__bottom { border-top: 1px solid #3a4558; color: #c9cfdb; display: flex; flex-wrap: wrap; font-size: 0.9rem; gap: 0.4rem 2rem; justify-content: space-between; padding-block: 1.25rem 2rem; }
.t10-footer__bottom > * { margin: 0; }

/* ---------- Print ---------- */
@media print {
	.t10-header, .t10-footer, .t10-ad, .t10-share, .t10-related, .t10-article__side { display: none !important; }
	body { background: #fff; }
	.t10-article__grid { display: block; }
}

/* ---------- Wordmark ---------- */
.t10-brand { font: 800 1.7rem/1 var(--t10-font-display); font-stretch: 108%; letter-spacing: -0.03em; margin: 0; }
.t10-brand__link { align-items: center; color: var(--t10-ink); display: inline-flex; text-decoration: none; }
.t10-brand__link > span { align-items: center; display: inline-flex; }
.t10-brand__num { background: var(--t10-accent); color: var(--t10-ink); font-stretch: 62%; font-size: 1.12em; letter-spacing: 0; line-height: 0.95; margin-inline: 0.1em; padding: 0.14em 0.2em 0.06em; }
.t10-brand--logo img { display: block; height: auto; max-height: 2.6rem; width: auto; }
.t10-footer .t10-brand__link { color: #fff; }
.t10-footer .t10-brand { font-size: 1.6rem; }
