/*
Theme Name: Sorgu
Theme URI: https://sgksorgulama.us/
Author: sgksorgulama.us
Description: A "civic ledger" theme for SGK Sorgulama: paper tones, petrol ink and a vermilion approval stamp. Ledger-style post lists, ticket-style Popular Topics cards (random, cached), a raw "Header" widget area printed right after </header> for Google Analytics / AdSense, no category or legal links in the header and no categories in the footer. Self-hosted fonts, no jQuery.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sorgu
Tags: blog, news, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--paper: #f5f1e8;
	--paper-2: #ece6d8;
	--card: #fffcf5;
	--ink: #10292e;
	--ink-2: #2e4a4f;
	--teal: #3e6a6f;
	--mint: #dce8e1;
	--muted: #56676a;
	--line: #d9d0bd;
	--line-2: #c4b89e;
	--accent: #c8401a;
	--accent-ink: #a5341a;
	--sun: #f2b33d;

	--font-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
	--font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
	--shadow-stamp: 5px 5px 0 var(--ink);
	--topline-h: 34px;
	--ease: cubic-bezier(.2, .8, .2, 1);

	--mark-paper: var(--paper);
	--mark-fold: var(--teal);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background-color: var(--paper);
	background-image: radial-gradient(rgba(16, 41, 46, .07) 1px, transparent 1.2px);
	background-size: 22px 22px;
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 750;
	line-height: 1.12;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible {
	outline: 3px solid var(--sun);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection { background: var(--sun); color: var(--ink); }

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

.site-main { display: block; outline: 0; padding-bottom: clamp(48px, 7vw, 96px); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--sun); color: var(--ink); font-weight: 700;
	padding: 10px 16px; border-radius: var(--r-sm); text-decoration: none;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Components: buttons, chips, badges
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: 0 22px;
	font: 700 1rem/1 var(--font-body);
	border: 2px solid var(--ink); border-radius: 999px;
	background: var(--card); color: var(--ink);
	text-decoration: none; cursor: pointer;
	box-shadow: 3px 3px 0 var(--ink);
	transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }

.chip {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 16px;
	border: 2px solid var(--ink); border-radius: 999px;
	font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap;
	color: var(--ink); background: transparent;
	transition: background .18s, color .18s;
}
.chip--accent::before {
	content: ""; width: 9px; height: 9px; border-radius: 50%;
	background: var(--accent); box-shadow: 0 0 0 3px rgba(200, 64, 26, .2);
}
.chip:hover { background: var(--ink); color: var(--paper); }

.badge {
	display: inline-flex; align-items: center;
	padding: 5px 10px; border-radius: 6px;
	background: var(--mint); color: var(--ink);
	border: 1.5px solid var(--ink);
	font: 700 .72rem/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase;
	text-decoration: none;
	transition: background .18s;
}
.badge:hover { background: var(--sun); }

.iconbtn {
	display: none; place-items: center;
	width: 46px; height: 46px; padding: 0;
	border: 2px solid var(--ink); border-radius: 50%;
	background: var(--card); color: var(--ink); cursor: pointer;
}

.kicker {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
	margin: 0 0 18px;
	font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
	color: var(--ink-2);
}
.kicker__dot { width: 10px; height: 10px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.kicker__count {
	padding: 5px 9px; border: 1.5px dashed var(--line-2); border-radius: 6px;
	color: var(--accent-ink); letter-spacing: .06em;
}

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
	position: sticky; top: calc(var(--topline-h) * -1); z-index: 50;
	background: rgba(245, 241, 232, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 2px solid var(--ink);
}
.admin-bar .masthead { top: calc(var(--topline-h) * -1 + 32px); }

.topline { background: var(--ink); color: var(--paper); height: var(--topline-h); }
.topline__row {
	height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	font-size: .8rem; letter-spacing: .02em;
}
.topline__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.topline__date {
	flex: none; font-weight: 700; color: var(--sun);
	font-variant-numeric: tabular-nums;
}

.masthead__row {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: 78px;
}
.masthead__tools { display: flex; align-items: center; gap: 12px; flex: 1; justify-content: flex-end; }
.masthead .qform { max-width: 440px; flex: 1; }

.brand {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--ink); text-decoration: none; flex: none;
}
.brand__mark { width: 44px; height: 44px; flex: none; transition: transform .35s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__img { max-height: 52px; width: auto; }
.brand__word {
	display: flex; flex-direction: column;
	font-family: var(--font-display); line-height: .9; letter-spacing: -.02em;
}
.brand__a { font-size: 1.55rem; font-weight: 800; }
.brand__b { font-size: 1.12rem; font-weight: 700; color: var(--accent); letter-spacing: -.01em; }

.progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; pointer-events: none; }
.progress__bar {
	display: block; height: 100%; background: var(--accent);
	transform: scaleX(0); transform-origin: 0 50%;
}

/* ==========================================================================
   Search form (query field)
   ========================================================================== */
.qform {
	display: flex; align-items: stretch;
	background: var(--card);
	border: 2px solid var(--ink); border-radius: var(--r);
	box-shadow: 3px 3px 0 var(--ink);
	overflow: hidden;
	transition: box-shadow .18s var(--ease), transform .18s var(--ease);
}
.qform:focus-within { box-shadow: 5px 5px 0 var(--accent); transform: translate(-2px, -2px); }
.qform__label {
	display: grid; place-items: center; padding: 0 12px;
	background: var(--paper-2); border-right: 2px dashed var(--line-2);
	font: 700 .68rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
	color: var(--ink-2);
}
.qform__input {
	flex: 1; min-width: 0; min-height: 46px; padding: 0 14px;
	border: 0; background: transparent; color: var(--ink);
	font: 400 1rem var(--font-body);
}
.qform__input::placeholder { color: #7b8a8b; }
.qform__input:focus { outline: 0; }
.qform__input::-webkit-search-cancel-button { cursor: pointer; }
.qform__btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 0 18px; border: 0; cursor: pointer;
	background: var(--ink); color: var(--paper);
	font: 700 .95rem var(--font-body);
	transition: background .18s;
}
.qform__btn:hover { background: var(--accent); }
.qform__btn-text { display: none; }

.qform--big { max-width: 620px; border-radius: var(--r-lg); box-shadow: var(--shadow-stamp); }
.qform--big .qform__input { min-height: 62px; font-size: 1.08rem; padding: 0 18px; }
.qform--big .qform__label { padding: 0 18px; }
.qform--big .qform__btn { padding: 0 26px; font-size: 1rem; }
.qform--big .qform__btn-text { display: inline; }

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(28px, 4vw, 56px); }
.hero__grid {
	display: grid; gap: clamp(32px, 5vw, 64px);
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	align-items: center;
}
.hero__title {
	font-size: clamp(2.35rem, 5.2vw, 4.4rem);
	font-weight: 800; line-height: 1.01; letter-spacing: -.035em;
	margin-bottom: 22px; max-width: 14ch;
}
.hero__text { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 54ch; margin-bottom: 30px; }

.lead {
	position: relative;
	background: var(--card);
	border: 2px solid var(--ink); border-radius: var(--r-lg);
	box-shadow: 8px 8px 0 var(--ink);
	transform: rotate(.6deg);
	transition: transform .3s var(--ease);
}
.lead:hover { transform: rotate(0); }
.lead__tab {
	position: absolute; top: -16px; left: 22px; z-index: 2;
	padding: 7px 14px; border: 2px solid var(--ink); border-radius: 8px;
	background: var(--accent); color: #fff;
	font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.lead__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px 20px 0 0; border-bottom: 2px solid var(--ink); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; }
.lead__body { padding: 26px 26px 24px; }
.lead__title { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 14px 0 10px; }
.lead__link { text-decoration: none; background: linear-gradient(var(--sun), var(--sun)) 0 92% / 0 .32em no-repeat; transition: background-size .35s var(--ease); }
.lead__link:hover { background-size: 100% .32em; }
.lead__excerpt { color: var(--ink-2); margin-bottom: 14px; }

/* ==========================================================================
   Page head
   ========================================================================== */
.pagehead { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.pagehead__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.pagehead__desc { color: var(--ink-2); max-width: 62ch; margin-bottom: 24px; }
.pagehead .qform--big { margin-top: 18px; margin-bottom: 22px; }

.empty {
	padding: 28px; border: 2px dashed var(--line-2); border-radius: var(--r);
	background: var(--card); color: var(--ink-2);
}

/* ==========================================================================
   Meta
   ========================================================================== */
.meta {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
	font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.meta__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* ==========================================================================
   Ledger (post list)
   ========================================================================== */
.ledger { padding-top: clamp(12px, 2vw, 24px); }
.ledger__head, .pt__head {
	display: flex; align-items: center; gap: 16px; margin-bottom: 8px;
}
.ledger__title, .pt__title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); font-weight: 800; margin: 0; white-space: nowrap; }
.ledger__rule, .pt__rule {
	flex: 1; height: 10px;
	background:
		linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 12px) 0 100% / 100% 6px no-repeat;
	opacity: .85;
}

.ledger__rows { border-top: 2px solid var(--ink); }

.row {
	position: relative;
	display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 20px; align-items: center;
	padding: 22px 14px 22px 0;
	border-bottom: 1.5px dashed var(--line-2);
	transition: background .2s;
}
.row:hover { background: rgba(255, 252, 245, .85); }
.row__no {
	align-self: start; padding-top: 2px;
	font: 800 2.3rem/1 var(--font-display); letter-spacing: -.04em;
	color: transparent; -webkit-text-stroke: 1.5px var(--line-2);
	font-variant-numeric: tabular-nums; text-align: center;
	transition: color .2s, -webkit-text-stroke-color .2s;
}
.row:hover .row__no { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.row__title { font-size: clamp(1.12rem, 1.7vw, 1.32rem); margin: 0 0 6px; }
.row__link { text-decoration: none; }
.row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.row__link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.row__excerpt { color: var(--ink-2); margin: 0 0 8px; font-size: .98rem; max-width: 72ch; }
.row__thumb {
	display: block; width: 118px; aspect-ratio: 1; flex: none;
	border: 2px solid var(--ink); border-radius: 12px; overflow: hidden;
	transform: rotate(-1.5deg);
	transition: transform .25s var(--ease);
}
.row:hover .row__thumb { transform: rotate(0) scale(1.03); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.pager .page-numbers,
.pager .post-page-numbers {
	display: inline-grid; place-items: center;
	min-width: 46px; height: 46px; padding: 0 14px;
	border: 2px solid var(--ink); border-radius: 12px;
	background: var(--card); color: var(--ink);
	font-weight: 700; text-decoration: none; white-space: nowrap;
	transition: background .18s, color .18s;
}
.pager a.page-numbers:hover, .pager a.post-page-numbers:hover { background: var(--sun); }
.pager .current { background: var(--ink); color: var(--paper); }
.pager .dots { border-style: dashed; background: transparent; }

/* ==========================================================================
   Popular Topics
   ========================================================================== */
.pt { margin-top: clamp(48px, 6vw, 80px); }
.pt__stamp {
	display: grid; place-items: center; flex: none;
	width: 46px; height: 46px; border-radius: 50%;
	border: 2px dashed var(--accent);
}
.pt__mark { width: 30px; height: 30px; color: var(--ink); }

.pt__list {
	list-style: none; margin: 22px 0 0; padding: 0;
	display: grid; gap: 20px;
	grid-template-columns: 1fr;
}

.ptile { display: flex; min-width: 0; }
.ptile__link {
	position: relative;
	display: flex; flex-direction: column; width: 100%;
	background: var(--card); color: var(--ink); text-decoration: none;
	border: 2px solid var(--ink); border-radius: var(--r);
	overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ptile__link:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }

.ptile__media {
	position: relative; display: block; aspect-ratio: 16 / 10;
	background: var(--ink); overflow: hidden;
}
.ptile__media img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ptile__link:hover .ptile__media img { transform: scale(1.05); }

.ptile__glyph {
	position: absolute; inset: 0; display: grid; place-items: center;
	font: 800 clamp(3.2rem, 6vw, 4.6rem)/1 var(--font-display); letter-spacing: -.05em;
	color: var(--paper);
	background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 11px);
}
.ptile__glyph::after {
	content: ""; position: absolute; right: 14px; bottom: 14px;
	width: 34px; height: 34px; border-radius: 50%;
	border: 2px dashed currentColor; opacity: .55;
}
.ptile--t0 .ptile__media { background-color: var(--ink); }
.ptile--t1 .ptile__media { background-color: var(--accent); }
.ptile--t2 .ptile__media { background-color: var(--teal); }
.ptile--t3 .ptile__media { background-color: var(--sun); }
.ptile--t3 .ptile__glyph { color: var(--ink); }

.ptile__text {
	position: relative;
	display: flex; flex-direction: column; gap: 8px; flex: 1;
	padding: 18px 18px 16px;
	border-top: 2px dashed var(--line-2);
}
/* ticket notches */
.ptile__text::before,
.ptile__text::after {
	content: ""; position: absolute; top: -11px;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--paper); border: 2px solid var(--ink);
}
.ptile__text::before { left: -12px; }
.ptile__text::after { right: -12px; }

.ptile__no {
	font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
	color: var(--accent-ink);
}
.ptile__title {
	font: 750 1.05rem/1.25 var(--font-display); letter-spacing: -.01em;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ptile__go {
	margin-top: auto; padding-top: 6px;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .85rem; font-weight: 700; color: var(--ink-2);
}
.ptile__link:hover .ptile__go { color: var(--accent-ink); }
.ptile__go svg { transition: transform .2s var(--ease); }
.ptile__link:hover .ptile__go svg { transform: translateX(4px); }

/* Rail variant (beside / under each content) */
.pt--rail { margin-top: 0; }
.pt--rail .pt__head { margin-bottom: 0; }
.pt--rail .pt__title { font-size: 1.3rem; }
.pt--rail .pt__list { gap: 12px; margin-top: 18px; }
.pt--rail .ptile__link { flex-direction: row; align-items: stretch; border-radius: 12px; }
.pt--rail .ptile__link:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.pt--rail .ptile__media { width: 92px; flex: none; aspect-ratio: auto; min-height: 92px; }
.pt--rail .ptile__glyph { font-size: 2.3rem; }
.pt--rail .ptile__glyph::after { width: 18px; height: 18px; right: 8px; bottom: 8px; border-width: 1.5px; }
.pt--rail .ptile__text {
	padding: 12px 14px; gap: 5px; justify-content: center;
	border-top: 0; border-left: 2px dashed var(--line-2);
}
.pt--rail .ptile__text::before,
.pt--rail .ptile__text::after { top: auto; left: -11px; width: 18px; height: 18px; }
.pt--rail .ptile__text::before { top: -11px; }
.pt--rail .ptile__text::after { bottom: -11px; right: auto; }
.pt--rail .ptile__title { font-size: .97rem; -webkit-line-clamp: 3; }
.pt--rail .ptile__go { display: none; }

/* ==========================================================================
   Single / page
   ========================================================================== */
.doc {
	display: grid; gap: 40px;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "article" "rail" "comments";
	padding-top: clamp(24px, 4vw, 48px);
}
.doc__article { grid-area: article; min-width: 0; max-width: 780px; }
.doc__rail { grid-area: rail; min-width: 0; }
.doc__comments { grid-area: comments; min-width: 0; max-width: 780px; }

.crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	margin-bottom: 18px; font-size: .88rem; color: var(--muted);
}
.crumbs__link { color: var(--ink-2); font-weight: 700; text-decoration: none; border-bottom: 1.5px solid var(--line-2); }
.crumbs__link:hover { color: var(--accent-ink); border-color: var(--accent); }
.crumbs__sep { color: var(--line-2); }

.doc__title { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.doc__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	padding: 14px 0; margin: 8px 0 28px;
	border-top: 2px solid var(--ink); border-bottom: 1.5px dashed var(--line-2);
}
.meta--upd { color: var(--teal); font-weight: 700; }

.doc__figure { margin: 0 0 32px; border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-stamp); }
.doc__figure img { width: 100%; }

/* Prose */
.prose { font-size: 1.125rem; line-height: 1.72; counter-reset: sec; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { counter-increment: sec; font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2em 0 .6em; padding-top: .2em; }
.prose h2::before {
	content: "§" counter(sec, decimal-leading-zero);
	display: block; margin-bottom: 10px;
	font: 700 .78rem/1 var(--font-body); letter-spacing: .14em; color: var(--accent-ink);
}
.prose h3 { font-size: clamp(1.22rem, 2vw, 1.42rem); margin: 1.7em 0 .5em; }
.prose h4 { font-size: 1.12rem; margin: 1.5em 0 .4em; }
.prose a { color: var(--accent-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul li::marker { color: var(--accent); content: "■  "; font-size: .7em; }
.prose ol li::marker { color: var(--accent-ink); font-weight: 700; font-family: var(--font-display); }
.prose img { border-radius: var(--r); }
.prose figure { margin-inline: 0; }
.prose figcaption, .wp-caption-text { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose hr { border: 0; height: 10px; margin: 2.4em 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px) 0 50% / 100% 2px no-repeat; }
.prose blockquote {
	position: relative; margin: 1.6em 0; padding: 22px 24px 20px;
	background: var(--card); border: 2px solid var(--ink); border-left-width: 8px; border-left-color: var(--accent);
	border-radius: 0 var(--r) var(--r) 0;
	font-size: 1.06rem;
}
.prose blockquote::before {
	content: "Note"; display: block; margin-bottom: 8px;
	font: 700 .72rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.prose blockquote p + p { margin-top: .8em; }
.prose code, .prose kbd { font-size: .9em; padding: .12em .4em; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--line); }
.prose pre { overflow-x: auto; padding: 18px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-size: .92rem; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }

.prose .table-wrap, .prose .wp-block-table {
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	border: 2px solid var(--ink); border-radius: var(--r); background: var(--card);
}
.prose .wp-block-table { margin-inline: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose .wp-block-table table { margin: 0; }
.prose .wp-block-table figcaption { padding: 0 14px 12px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--line); }
.prose thead th, .prose tr:first-child th { background: var(--ink); color: var(--paper); font-weight: 700; border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: rgba(236, 230, 216, .55); }
.prose tr:last-child td { border-bottom: 0; }

.prose iframe { width: 100%; border-radius: var(--r); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; text-align: center; }
.alignwide { max-width: none; }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { /* core classes */ }

.tags { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
	border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card);
	color: var(--ink-2); font-size: .88rem; font-weight: 700; text-decoration: none;
}
.tag:hover { border-color: var(--ink); color: var(--ink); background: var(--mint); }

.doc__slots { margin-top: 36px; }
.slot + .slot { margin-top: 20px; }
.slot__title { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.pnav { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 40px; }
.pnav__link {
	display: flex; flex-direction: column; gap: 6px;
	padding: 18px 20px; border: 2px solid var(--ink); border-radius: var(--r);
	background: var(--card); text-decoration: none;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pnav__link:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.pnav__link--next { text-align: right; }
.pnav__dir { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.pnav__title { font: 750 1.05rem/1.3 var(--font-display); }

/* ==========================================================================
   Comments
   ========================================================================== */
.notes { padding-top: 32px; border-top: 2px solid var(--ink); }
.notes__title, .comment-reply-title { font-size: 1.5rem; font-weight: 800; }
.notes__list, .notes__list .children { list-style: none; margin: 0; padding: 0; }
.notes__list .children { margin-left: clamp(16px, 4vw, 40px); }
.note { padding: 18px 0; border-bottom: 1.5px dashed var(--line-2); }
.note__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.note__avatar {
	display: grid; place-items: center; width: 40px; height: 40px; flex: none;
	border-radius: 50%; background: var(--teal); color: var(--paper);
	font: 800 1.05rem var(--font-display);
}
.note__who { display: flex; flex-direction: column; line-height: 1.25; }
.note__name { font-weight: 700; text-decoration: none; }
.note__time { font-size: .82rem; color: var(--muted); }
.note__pending { font-size: .9rem; color: var(--accent-ink); }
.note__body p { margin-bottom: .6em; }
.comment-reply-link, .cancel-reply { font-size: .88rem; font-weight: 700; color: var(--accent-ink); }

.comment-respond { margin-top: 32px; }
.comment-form { display: grid; gap: 14px; }
.comment-form label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; padding: 12px 14px; min-height: 46px;
	border: 2px solid var(--ink); border-radius: 12px; background: var(--card);
	font: inherit; color: var(--ink);
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; box-shadow: 4px 4px 0 var(--accent); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }
.form-submit { margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.colophon {
	position: relative; margin-top: clamp(40px, 6vw, 80px);
	background: var(--ink); color: var(--paper);
	--mark-paper: var(--ink);
	--mark-fold: var(--line-2);
}
.perf {
	position: absolute; left: 0; right: 0; top: -9px; height: 18px;
	background: radial-gradient(circle at 9px 9px, var(--paper) 6px, transparent 6.5px) 0 0 / 22px 18px repeat-x;
}
.colophon__grid {
	display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr);
	padding-top: 64px; padding-bottom: 36px;
}
.colophon .brand { color: var(--paper); }
.colophon .brand__b { color: var(--sun); }
.colophon__about { margin-top: 18px; max-width: 46ch; color: rgba(245, 241, 232, .82); }
.fnav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.fnav__link {
	display: inline-flex; min-height: 44px; align-items: center;
	color: var(--paper); text-decoration: none; font-weight: 700;
	border-bottom: 2px solid transparent;
}
.fnav__link:hover { border-color: var(--sun); color: var(--sun); }
.colophon__base {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
	padding-top: 22px; padding-bottom: 28px;
	border-top: 1.5px dashed rgba(245, 241, 232, .25);
	font-size: .86rem; color: rgba(245, 241, 232, .7);
}
.colophon__disclaimer { max-width: 80ch; margin: 0; }
.colophon__copy { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Phones: grid cards turn into compact horizontal tickets */
@media (max-width: 599px) {
	.pt--grid .pt__list { gap: 12px; }
	.pt--grid .ptile__link { flex-direction: row; border-radius: 12px; }
	.pt--grid .ptile__media { width: 92px; flex: none; aspect-ratio: auto; min-height: 96px; }
	.pt--grid .ptile__glyph { font-size: 2.3rem; }
	.pt--grid .ptile__glyph::after { width: 18px; height: 18px; right: 8px; bottom: 8px; border-width: 1.5px; }
	.pt--grid .ptile__text { padding: 12px 14px; gap: 5px; justify-content: center; border-top: 0; border-left: 2px dashed var(--line-2); }
	.pt--grid .ptile__text::before, .pt--grid .ptile__text::after { left: -11px; width: 18px; height: 18px; }
	.pt--grid .ptile__text::before { top: -11px; }
	.pt--grid .ptile__text::after { top: auto; bottom: -11px; right: auto; }
	.pt--grid .ptile__title { font-size: .97rem; }
	.pt--grid .ptile__go { display: none; }
}

@media (min-width: 600px) {
	.pt--grid .pt__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
	.pt--rail .pt__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pnav { grid-template-columns: 1fr 1fr; }
	.pnav__link--next:only-child { grid-column: 2; }
}

@media (min-width: 760px) {
	.colophon__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.colophon__nav { justify-self: end; }
}

@media (min-width: 1000px) {
	.pt--grid .pt__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
	.doc {
		grid-template-columns: minmax(0, 1fr) 340px;
		grid-template-areas: "article rail" "comments rail";
		grid-template-rows: auto 1fr;
		column-gap: clamp(40px, 5vw, 72px);
	}
	.doc__rail { align-self: start; }
	.pt--rail .pt__list { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) and (min-height: 1000px) {
	.doc__rail { position: sticky; top: 108px; }
}

@media (max-width: 960px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.hero__title { max-width: 18ch; }
	.lead { transform: none; max-width: 640px; }
}

@media (max-width: 860px) {
	.masthead .qform, .masthead .chip { display: none; }
	.iconbtn { display: inline-grid; }
	.masthead.is-search-open .qform {
		display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 10px);
		max-width: none;
	}
	.masthead__row { min-height: 68px; }
	.topline__text { font-size: .74rem; }
}

@media (max-width: 600px) {
	:root { --topline-h: 30px; }
	.topline__date { display: none; }
	.row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; align-items: start; }
	.row__no { font-size: 1.5rem; }
	.row__thumb { width: 76px; border-radius: 10px; transform: none; }
	.row__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .94rem; }
	.qform__label { display: none; }
	.qform--big .qform__btn-text { display: none; }
	.qform--big .qform__btn { padding: 0 20px; }
	.lead__body { padding: 22px 18px 20px; }
	.prose { font-size: 1.06rem; }
	.alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (max-width: 782px) {
	.admin-bar .masthead { top: calc(var(--topline-h) * -1 + 46px); }
}
@media (max-width: 600px) {
	.admin-bar .masthead { top: calc(var(--topline-h) * -1); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	.lead, .row__thumb { transform: none; }
}

@media print {
	.masthead, .colophon, .doc__rail, .pt, .pnav, .notes, .doc__slots { display: none !important; }
	body { background: #fff; }
}
