/*
 * Stratum -- component classes for the pages added on top of the
 * hand-built homepage shell (formulas, journal, ingredient index, the
 * section, about, contact, search, 404). Composes tokens.css and the
 * .st-band / .st-eyebrow / .st-data-table / .st-cross-section system
 * from main.css; does not redefine any of it.
 */

/* ---------------------------------------------------------------------
   Defensive: every grid track below is declared minmax(0, Nfr), but a
   grid ITEM's own default min-width is still `auto` (content-based) --
   which let a replaced element's intrinsic HTML width/height attributes
   or a long unbroken string hold a column at its full content width and
   overflow the viewport on mobile (found on the About page's founder
   card during verification; same root cause as the search-input fix
   below). Zeroing it on every direct child of every grid/flex container
   added in this file closes the whole bug class at once rather than
   chasing it instance by instance.
   ------------------------------------------------------------------- */
.st-page-head-inner > *,
.st-formula-row > *,
.st-formula-head-grid > *,
.st-layers-grid > *,
.st-about-grid > *,
.st-contact-grid > *,
.st-journal-row > * {
	min-width: 0;
}

/* ---------------------------------------------------------------------
   Shared: sub-page header band. A smaller sibling of the homepage hero
   -- same asymmetric logic, no photographic hero, no centering.
   ------------------------------------------------------------------- */
.st-page-head {
	padding: var(--st-space-8) var(--st-space-4) var(--st-space-6);
	border-bottom: 1px solid var(--st-line);
}
.st-page-head-inner {
	max-width: var(--st-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--st-space-8);
	align-items: end;
}
.st-page-title {
	font-family: var(--st-font-display);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: -.01em;
	line-height: .92;
	margin: 0;
	font-size: clamp(2.4rem, 2rem + 3.6vw, var(--st-size-4));
	text-wrap: balance;
	max-width: 18ch;
}
.st-page-title em { font-style: normal; color: var(--st-amber); }
.st-page-lede {
	font-family: var(--st-font-editorial);
	font-style: italic;
	font-size: var(--st-size-1);
	line-height: 1.5;
	color: var(--st-ink-soft);
	max-width: var(--st-measure);
	margin: 0;
	text-wrap: balance;
}
@media (max-width: 900px) {
	.st-page-head-inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Formula archive: dense mono list, not a card grid. Each row is a
   formula; figures line up like the homepage ingredient table.
   ------------------------------------------------------------------- */
.st-filter-bar {
	display: flex; flex-wrap: wrap; gap: var(--st-space-2);
	margin: 0 0 var(--st-space-6);
	font-family: var(--st-font-mono); font-size: .8125rem;
}
.st-filter-bar a {
	display: inline-flex; align-items: center;
	padding: var(--st-space-1) var(--st-space-3);
	border: 1px solid var(--st-line-strong);
	border-radius: var(--st-radius);
	text-decoration: none; color: var(--st-ink-soft);
}
.st-filter-bar a:hover, .st-filter-bar a:focus-visible { border-color: var(--st-ink); color: var(--st-ink); }
.st-filter-bar a.is-current { background: var(--st-ink); color: var(--st-ground); border-color: var(--st-ink); }

.st-formula-row {
	display: grid;
	grid-template-columns: minmax(0,4fr) minmax(0,2fr) minmax(0,3fr) minmax(0,1fr);
	gap: var(--st-space-4);
	align-items: center;
	padding: var(--st-space-4) 0;
	border-bottom: 1px solid var(--st-line);
	text-decoration: none;
	color: var(--st-ink);
}
.st-formula-row:hover .st-formula-row-name,
.st-formula-row:focus-visible .st-formula-row-name { color: var(--st-amber-deep); }
.st-formula-row-thumb {
	width: 4rem; height: 4rem; flex-shrink: 0;
	background: var(--st-paper);
	overflow: hidden;
}
.st-formula-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-formula-row-head { display: flex; align-items: center; gap: var(--st-space-3); min-width: 0; }
.st-formula-row-name {
	font-family: var(--st-font-display); font-weight: 700; text-transform: uppercase;
	font-size: var(--st-size-1); letter-spacing: -.005em; margin: 0 0 .2em;
	transition: color .15s ease;
}
.st-formula-row-strap { font-size: .875rem; color: var(--st-ink-soft); margin: 0; }
.st-formula-row-format {
	font-family: var(--st-font-mono); font-size: .75rem; text-transform: uppercase;
	letter-spacing: .08em; color: var(--st-ink-faint);
}
.st-formula-row-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.st-formula-row-price {
	font-family: var(--st-font-mono); font-size: var(--st-size-1); font-weight: 500;
	text-align: right; font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
	.st-formula-row { grid-template-columns: 1fr; gap: var(--st-space-2); }
	.st-formula-row-price { text-align: left; }
}

/* ---------------------------------------------------------------------
   Formula single: asymmetric head (name/strap/price/CTA left, scoped
   cross-section right), then INCI table + usage note bands.
   ------------------------------------------------------------------- */
.st-formula-head-grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: var(--st-space-8);
	align-items: start;
}
.st-formula-eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: var(--st-space-4); flex-wrap: wrap; }
.st-formula-format-chip {
	font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--st-ink-soft); border: 1px solid var(--st-line-strong); border-radius: var(--st-radius);
	padding: .3em .7em;
}
.st-formula-name {
	font-family: var(--st-font-display); font-weight: 900; text-transform: uppercase;
	line-height: .9; letter-spacing: -.01em; margin: 0;
	font-size: clamp(2.6rem, 2.1rem + 3.6vw, var(--st-size-4));
	text-wrap: balance;
}
.st-formula-strap {
	font-family: var(--st-font-editorial); font-style: italic; font-size: var(--st-size-1);
	color: var(--st-ink-soft); max-width: 36ch; margin: var(--st-space-4) 0 0; line-height: 1.4;
}
.st-formula-price-row {
	display: flex; align-items: baseline; gap: var(--st-space-4);
	margin-top: var(--st-space-6); padding-top: var(--st-space-4);
	border-top: 1px solid var(--st-line);
}
.st-formula-price { font-family: var(--st-font-mono); font-size: var(--st-size-2); font-weight: 500; }
.st-formula-size { font-family: var(--st-font-mono); font-size: .8125rem; color: var(--st-ink-faint); }
.st-formula-anchors { margin-top: var(--st-space-6); }
.st-formula-anchors h2 {
	font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--st-ink-faint); margin: 0 0 var(--st-space-3);
}
.st-formula-anchor-list { display: flex; flex-direction: column; gap: var(--st-space-3); list-style: none; margin: 0; padding: 0; }
.st-formula-anchor-list li { display: flex; gap: var(--st-space-3); align-items: flex-start; padding-bottom: var(--st-space-3); border-bottom: 1px solid var(--st-line); }
.st-formula-anchor-name { font-weight: 600; display: block; }
.st-formula-anchor-note { color: var(--st-ink-soft); font-size: .9375rem; max-width: 48ch; }

.st-formula-visual {
	position: relative;
	border: 1px solid var(--st-line-strong);
	background: var(--st-ground);
	min-height: 24rem;
	overflow: hidden;
}
.st-formula-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.st-usage-note {
	max-width: var(--st-measure);
	background: var(--st-paper);
	border-left: 2px solid var(--st-amber-deep);
	padding: var(--st-space-4) var(--st-space-6);
	font-size: .9375rem;
	color: var(--st-ink-soft);
}
.st-usage-note strong { color: var(--st-ink); }

@media (max-width: 900px) {
	.st-formula-head-grid { grid-template-columns: 1fr; }
	.st-formula-visual { min-height: 18rem; }
}

/* ---------------------------------------------------------------------
   Ingredient index page: same table system as the homepage, wrapped
   in its own band with an eyebrow + intro, plus its own full-page
   cross-section instance.
   ------------------------------------------------------------------- */
.st-ingredient-index-visual {
	min-height: 22rem;
	margin-bottom: var(--st-space-8);
}

/* ---------------------------------------------------------------------
   The Section standalone page: four stacked layer cards next to a
   tall full-height cross-section, each card focusable to probe it.
   ------------------------------------------------------------------- */
.st-layers-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--st-space-8);
	align-items: start;
}
.st-layer-cards { display: flex; flex-direction: column; gap: 0; }
.st-layer-card {
	padding: var(--st-space-4) 0;
	border-bottom: 1px solid var(--st-line);
	cursor: default;
}
.st-layer-card:first-child { padding-top: 0; }
.st-layer-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--st-space-3); }
.st-layer-card-name { font-family: var(--st-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--st-size-2); margin: 0; }
.st-layer-card-depth { font-family: var(--st-font-mono); font-size: .8125rem; color: var(--st-ink-faint); white-space: nowrap; }
.st-layer-card-about { color: var(--st-ink-soft); margin: var(--st-space-2) 0 0; max-width: 50ch; }
.st-layer-card-note { font-family: var(--st-font-mono); font-size: .75rem; color: var(--st-ink-faint); margin: var(--st-space-2) 0 0; }
.st-layer-card.is-active { border-color: var(--st-ink); }
.st-layer-card.is-active .st-layer-card-name { color: var(--st-amber-deep); }
.st-section-visual-tall { min-height: 40rem; }
@media (max-width: 900px) {
	.st-layers-grid { grid-template-columns: 1fr; }
	.st-section-visual-tall { min-height: 22rem; }
}

/* ---------------------------------------------------------------------
   About / studio page: editorial two-column bio + a small facts list,
   same visual grammar as the quote band (editorial serif) without
   inverting to dark -- reserved for the pull-quote only.
   ------------------------------------------------------------------- */
.st-about-grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--st-space-8);
	align-items: start;
}
.st-about-body { max-width: var(--st-measure); min-width: 0; }
.st-about-body p { color: var(--st-ink-soft); font-size: 1rem; line-height: 1.7; }
.st-about-body p:first-child { font-family: var(--st-font-editorial); font-style: italic; font-size: var(--st-size-1); color: var(--st-ink); line-height: 1.5; }
.st-founder-card {
	border: 1px solid var(--st-line-strong);
	padding: var(--st-space-6);
	min-width: 0; /* grid item default min-width:auto otherwise lets the
		featured image's intrinsic HTML width/height attributes force this
		column (and the whole grid) wider than the viewport on mobile --
		a real bug found and fixed during Stratum verification. */
}
.st-founder-photo { display: block; width: 100%; max-width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: var(--st-space-4); background: var(--st-paper); }
.st-founder-name { font-family: var(--st-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--st-size-2); margin: 0; }
.st-founder-title { font-family: var(--st-font-mono); font-size: .75rem; letter-spacing: .06em; color: var(--st-ink-soft); margin: .25rem 0 0; }
@media (max-width: 900px) { .st-about-grid { grid-template-columns: 1fr; } }

.st-facts-list { list-style: none; margin: var(--st-space-6) 0 0; padding: var(--st-space-4) 0 0; border-top: 1px solid var(--st-line); display: flex; flex-direction: column; gap: var(--st-space-3); }
.st-facts-list dt { font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--st-ink-faint); }
.st-facts-list dd { margin: .15rem 0 0; font-size: .9375rem; }

/* ---------------------------------------------------------------------
   Contact page: form styled with the same hairline/mono instrumentation
   as the rest of the site, not a rounded card widget.
   ------------------------------------------------------------------- */
.st-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--st-space-8);
}
.st-studio-details dt { font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--st-ink-faint); margin-top: var(--st-space-4); }
.st-studio-details dt:first-child { margin-top: 0; }
.st-studio-details dd { margin: .25rem 0 0; font-size: .9375rem; }
.st-studio-details a { text-decoration: underline; text-decoration-color: var(--st-line-strong); }

.st-form-field { margin-bottom: var(--st-space-4); }
.st-form-field label { display: block; font-family: var(--st-font-mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ink-soft); margin-bottom: .4rem; }
.st-form-field input, .st-form-field select, .st-form-field textarea {
	width: 100%;
	font-family: var(--st-font-body); font-size: 1rem;
	padding: var(--st-space-3);
	border: 1px solid var(--st-line-strong);
	border-radius: var(--st-radius);
	background: var(--st-paper);
	color: var(--st-ink);
}
.st-form-field input:focus, .st-form-field select:focus, .st-form-field textarea:focus { outline: 2px solid var(--st-amber); outline-offset: 1px; }
.st-form-field textarea { resize: vertical; min-height: 8rem; }
.st-form-hp { position: absolute; left: -9999px; top: -9999px; }
.st-form-status { font-family: var(--st-font-mono); font-size: .8125rem; margin-top: var(--st-space-3); }
.st-form-status[data-state="ok"] { color: var(--st-verdigris-deep); }
.st-form-status[data-state="error"] { color: var(--st-amber-deep); }
@media (max-width: 900px) { .st-contact-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Journal (post) content: `.st-prose` is a deliberately separate scope
   from `.st-band` so author-entered HTML never inherits layout rules
   meant for hand-built sections.
   ------------------------------------------------------------------- */
.st-article-head { max-width: 46rem; margin: 0 auto var(--st-space-8); text-align: left; }
.st-article-meta { font-family: var(--st-font-mono); font-size: .75rem; color: var(--st-ink-faint); display: flex; gap: var(--st-space-3); flex-wrap: wrap; margin-top: var(--st-space-3); }
.st-article-thumb { max-width: var(--st-container); margin: 0 auto var(--st-space-8); }
.st-article-thumb img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }

.st-prose { max-width: 46rem; margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; }
.st-prose > * + * { margin-top: var(--st-space-4); }
.st-prose h2 { font-family: var(--st-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--st-size-2); line-height: 1.05; margin-top: var(--st-space-8); text-wrap: balance; }
.st-prose h3 { font-family: var(--st-font-body); font-weight: 700; font-size: var(--st-size-1); margin-top: var(--st-space-6); }
.st-prose p { color: var(--st-ink-soft); }
.st-prose a { color: var(--st-ink); text-decoration-color: var(--st-line-strong); }
.st-prose a:hover { text-decoration-color: var(--st-amber); }
.st-prose ul, .st-prose ol { color: var(--st-ink-soft); padding-left: 1.4em; }
.st-prose li + li { margin-top: .5em; }
.st-prose blockquote.st-quote { max-width: none; padding: var(--st-space-6); border: 1px solid var(--st-line-strong); background: var(--st-paper); font-size: var(--st-size-2); color: var(--st-ink); }
.st-prose blockquote.st-quote cite { color: var(--st-ink-faint); }
.st-prose figure { margin: 0; }
.st-prose figure img { width: 100%; height: auto; }
.st-prose figcaption { font-family: var(--st-font-mono); font-size: .75rem; color: var(--st-ink-faint); margin-top: var(--st-space-2); }

.st-related-band .st-band-inner > h2 {
	font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--st-ink-faint); margin: 0 0 var(--st-space-4);
}
.st-related-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; margin-left: auto; margin-right: auto; }
.st-related-list li { border-bottom: 1px solid var(--st-line); padding: var(--st-space-3) 0; }
.st-related-list a { text-decoration: none; font-weight: 600; }
.st-related-list a:hover { color: var(--st-amber-deep); }

/* ---------------------------------------------------------------------
   Comments (comments.php). WP's default comment_form() markup styled
   with the same field/label language as .st-form-field so it doesn't
   drop back to unstyled browser-default inputs at the bottom of an
   otherwise fully on-brand journal post.
   ------------------------------------------------------------------- */
.st-comments { margin-top: var(--st-space-8); }
.st-comments .comments-title,
.st-comments #reply-title {
	font-family: var(--st-font-display); font-weight: 700; text-transform: uppercase;
	font-size: var(--st-size-2); margin: 0 0 var(--st-space-4);
}
.st-comments .comment-list { list-style: none; margin: 0 0 var(--st-space-6); padding: 0; }
.st-comments .comment-list li { border-top: 1px solid var(--st-line); padding: var(--st-space-4) 0; }
.st-comments .comment-list .children { list-style: none; padding-left: var(--st-space-6); margin: 0; }
.st-comments .comment-author { font-weight: 600; font-size: .9375rem; }
.st-comments .comment-author img { border-radius: 50%; vertical-align: middle; margin-right: var(--st-space-2); }
.st-comments .comment-metadata { font-family: var(--st-font-mono); font-size: .75rem; color: var(--st-ink-faint); margin-bottom: var(--st-space-2); }
.st-comments .comment-metadata a { text-decoration: none; }
.st-comments .comment-content p { color: var(--st-ink-soft); }
.st-comments .comment-reply-link {
	font-family: var(--st-font-mono); font-size: .75rem; text-decoration: none;
	border: 1px solid var(--st-line-strong); border-radius: var(--st-radius); padding: .3em .7em;
}
.st-comments .comment-form p { margin: 0 0 var(--st-space-4); }
.st-comments .comment-form label {
	display: block; font-family: var(--st-font-mono); font-size: .75rem; letter-spacing: .06em;
	text-transform: uppercase; color: var(--st-ink-soft); margin-bottom: .4rem;
}
.st-comments .comment-form input[type="text"],
.st-comments .comment-form input[type="email"],
.st-comments .comment-form input[type="url"],
.st-comments .comment-form textarea {
	width: 100%; max-width: 34rem; font-family: var(--st-font-body); font-size: 1rem; padding: var(--st-space-3);
	border: 1px solid var(--st-line-strong); border-radius: var(--st-radius); background: var(--st-paper); color: var(--st-ink);
}
.st-comments .comment-form textarea { min-height: 8rem; max-width: 46rem; resize: vertical; }
.st-comments .comment-form input:focus, .st-comments .comment-form textarea:focus { outline: 2px solid var(--st-amber); outline-offset: 1px; }
.st-comments .comment-notes, .st-comments .comment-form-cookies-consent { font-size: .875rem; color: var(--st-ink-faint); }
.st-comments .comment-form-cookies-consent { display: flex; align-items: center; gap: .5em; }
.st-comments .comment-navigation { margin-top: var(--st-space-4); }

/* ---------------------------------------------------------------------
   Journal archive / category list: dense editorial index, not cards.
   Paired with a real sidebar (category links + a mono stat), not left
   asymmetric with empty ground on the right -- every other asymmetric
   grid on this site pairs its second column with actual content (the
   hero's diagram, The Section's cards), so the list needed one too.
   ------------------------------------------------------------------- */
.st-journal-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); gap: var(--st-space-8); align-items: start; }
.st-journal-layout > * { min-width: 0; }
.st-journal-list { list-style: none; margin: 0; padding: 0; }
.st-journal-row { display: grid; grid-template-columns: 8rem 1fr; gap: var(--st-space-6); padding: var(--st-space-6) 0; border-bottom: 1px solid var(--st-line); }
.st-journal-row-date { font-family: var(--st-font-mono); font-size: .75rem; color: var(--st-ink-faint); padding-top: .3em; }
.st-journal-row-title { font-family: var(--st-font-display); font-weight: 700; text-transform: uppercase; font-size: var(--st-size-2); margin: 0 0 var(--st-space-2); line-height: 1.05; }
.st-journal-row-title a { text-decoration: none; }
.st-journal-row-title a:hover { color: var(--st-amber-deep); }
.st-journal-row-excerpt { color: var(--st-ink-soft); max-width: var(--st-measure); margin: 0; }
@media (max-width: 700px) { .st-journal-row { grid-template-columns: 1fr; gap: var(--st-space-2); } }

.st-journal-aside { position: sticky; top: calc(4.5rem + var(--st-space-4)); }
.st-journal-aside h2 {
	font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
	color: var(--st-ink-faint); margin: 0 0 var(--st-space-3);
}
.st-journal-aside-list { list-style: none; margin: 0 0 var(--st-space-6); padding: 0; display: flex; flex-direction: column; }
.st-journal-aside-list li { border-bottom: 1px solid var(--st-line); }
.st-journal-aside-list a {
	display: flex; justify-content: space-between; align-items: baseline; gap: var(--st-space-2);
	padding: var(--st-space-2) 0; text-decoration: none; font-size: .9375rem;
}
.st-journal-aside-list a:hover, .st-journal-aside-list a.is-current { color: var(--st-amber-deep); }
.st-journal-aside-list a.is-current { font-weight: 600; }
.st-journal-aside-list .st-journal-aside-count { font-family: var(--st-font-mono); font-size: .75rem; color: var(--st-ink-faint); }
.st-journal-aside-stat { padding-top: var(--st-space-4); border-top: 1px solid var(--st-line); }
.st-journal-aside-stat dt { font-family: var(--st-font-mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--st-ink-faint); }
.st-journal-aside-stat dd { margin: .2rem 0 0; font-family: var(--st-font-mono); font-size: var(--st-size-1); font-weight: 500; }
@media (max-width: 900px) {
	.st-journal-layout { grid-template-columns: 1fr; }
	.st-journal-aside { position: static; margin-top: var(--st-space-8); padding-top: var(--st-space-6); border-top: 1px solid var(--st-line); }
}

/* ---------------------------------------------------------------------
   Search + 404.
   ------------------------------------------------------------------- */
.st-search-form { display: flex; gap: var(--st-space-2); max-width: 34rem; }
.st-search-form input[type="search"] {
	flex: 1; min-width: 0; /* flex items default to min-width:auto, which
		let a long placeholder string hold this input at its full content
		width and overflow the viewport on mobile -- fixed during
		verification (search.php and 404.php both use this form). */
	font-family: var(--st-font-body); font-size: 1rem; padding: var(--st-space-3);
	border: 1px solid var(--st-line-strong); border-radius: var(--st-radius); background: var(--st-paper); color: var(--st-ink);
}
.st-search-form button {
	font-family: var(--st-font-mono); font-size: .8125rem; padding: 0 var(--st-space-4);
	border: 1px solid var(--st-ink); border-radius: var(--st-radius); background: var(--st-ink); color: var(--st-ground); cursor: pointer;
}
.st-empty-state { padding: var(--st-space-8) 0; max-width: 40rem; }
.st-empty-state p { color: var(--st-ink-soft); font-size: 1.0625rem; }
.st-404-figure { font-family: var(--st-font-display); font-weight: 900; font-size: clamp(4rem, 3rem + 8vw, 10rem); line-height: .85; color: var(--st-paper-deep); margin: 0 0 var(--st-space-4); }

/* ---------------------------------------------------------------------
   Pagination.
   ------------------------------------------------------------------- */
.st-pagination { margin-top: var(--st-space-8); }
.st-pagination ul { display: flex; flex-wrap: wrap; gap: var(--st-space-2); list-style: none; margin: 0; padding: 0; font-family: var(--st-font-mono); font-size: .8125rem; }
.st-pagination a, .st-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem;
	border: 1px solid var(--st-line-strong); border-radius: var(--st-radius);
	text-decoration: none; color: var(--st-ink);
}
.st-pagination a:hover { border-color: var(--st-ink); }
.st-pagination span.current { background: var(--st-ink); color: var(--st-ground); border-color: var(--st-ink); }

/* ---------------------------------------------------------------------
   Mobile nav dropdown (the sticky header nav collapses under 900px in
   main.css; this supplies the open-state panel so it degrades safely
   instead of clipping the brand mark or overflowing).
   ------------------------------------------------------------------- */
@media (max-width: 900px) {
	.st-nav {
		position: absolute; top: 100%; left: 0; right: 0;
		background: var(--st-ground);
		border-bottom: 1px solid var(--st-line-strong);
		padding: var(--st-space-2) var(--st-space-4) var(--st-space-4);
	}
	.st-nav[data-st-nav].is-open { display: block; }
	.st-nav ul { flex-direction: column; align-items: flex-start; gap: var(--st-space-1); }
	.st-nav li { width: 100%; }
	.st-nav li + li::before { content: none; }
	.st-nav a { display: block; width: 100%; padding: var(--st-space-2) 0; }
}
