/*
Theme Name: Koroudjieva Legal
Theme URI: https://www.law-firm-bg.com/
Author: Алфа Сорс ЕООД
Description: Авторска тема за правния архив на адв. Д. Симеонова-Коруджиева. Указател на правните области, типография за дълъг текст и знакът § като структурен елемент. Без външни зависимости — шрифтовете се хостват локално.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.2
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: koroudjieva
Tags: blog, custom-menu, featured-images, threaded-comments, right-sidebar, accessibility-ready
*/

/* =========================================================================
   1. Tokens

   Burgundy is inherited from the outgoing theme — fourteen years of brand
   equity, and the colour of legal buckram. It is the only chromatic accent;
   everything else is ink on paper. The boldness is spent on the hero maxim
   and on § as a structural mark, so the palette stays disciplined.

   No dark mode: three hundred legacy articles carry inline colours from
   fifteen years of editing, and remapping the ground would break them.
   ====================================================================== */

:root {
	--ink: #171a1c;
	--ink-soft: #40454a;
	--muted: #6b7075;
	--burgundy: #7e0017;
	--burgundy-deep: #4a0210;
	--burgundy-tint: #f6ecee;
	--paper: #fcfbf9;
	--vellum: #efede7;
	--rule: #d8d4cc;
	--rule-soft: #e7e4dd;

	--display: 'Literata', Georgia, 'Times New Roman', serif;
	--sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

	--step--2: 0.75rem;
	--step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
	--step-0: clamp(1rem, 0.97rem + 0.16vw, 1.075rem);
	--step-1: clamp(1.16rem, 1.1rem + 0.3vw, 1.35rem);
	--step-2: clamp(1.4rem, 1.28rem + 0.58vw, 1.8rem);
	--step-3: clamp(1.7rem, 1.46rem + 1.05vw, 2.4rem);
	/* The maxim shares the hero with the banner, so it is sized for a column
	   rather than the full measure. */
	--hero-maxim: clamp(1.72rem, 1.05rem + 2.05vw, 2.6rem);

	--wrap: 74rem;
	--rail: 17.5rem;
	--measure: 68ch;
	--gutter: clamp(1.15rem, 4vw, 2.5rem);
	--section-gap: clamp(2.75rem, 6vw, 5rem);
	--flow: 1.15em;
}

/* =========================================================================
   2. Base
   ====================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--display);
	font-size: var(--step-0);
	line-height: 1.7;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--burgundy);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

a:hover {
	color: var(--burgundy-deep);
}

:focus-visible {
	outline: 2px solid var(--burgundy);
	outline-offset: 2px;
}

button {
	font: inherit;
	cursor: pointer;
}

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin-block: 2rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--burgundy);
	color: var(--paper);
	font-family: var(--sans);
	text-decoration: none;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
}

/* =========================================================================
   3. Layout primitives
   ====================================================================== */

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

.site-main {
	display: block;
	min-height: 50vh;
}

.section {
	padding-block: var(--section-gap);
}

/* Sits directly under the vellum hero, so it takes the paper ground instead —
   two adjacent vellum bands would read as one block. */
.section--index {
	background: var(--paper);
	border-bottom: 1px solid var(--rule);
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--section-gap);
	padding-block: var(--section-gap);
}

@media (min-width: 62rem) {
	.layout {
		grid-template-columns: minmax(0, 1fr) var(--rail);
		gap: clamp(2.5rem, 5vw, 4.5rem);
	}
}

.layout__main {
	margin-top: -15px;
	min-width: 0;
}

.layout__rail {
	min-width: 0;
	align-self: start;
}

/* =========================================================================
   4. Masthead
   ====================================================================== */

.masthead {
	background: var(--paper);
}

.masthead__utility {
	background: var(--vellum);
	border-bottom: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.utility {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	align-items: center;
	justify-content: flex-end;
	padding-block: 0.5rem;
	color: var(--muted);
}

.utility__item {
	color: inherit;
	text-decoration: none;
}

.utility__item--address {
	margin-right: auto;
}

.utility a.utility__item:hover {
	color: var(--burgundy);
	text-decoration: underline;
}

.masthead__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: clamp(1.1rem, 3vw, 1.9rem);
}

.wordmark,
.custom-logo-link {
	/* Shrinkable, so the mark never rides over the buttons beside it. */
	flex: 0 1 auto;
	min-width: 0;
	max-width: min(27rem, 100%);
	text-decoration: none;
	color: var(--ink);
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 4rem;
}

/* Scales illustration + two lines of live text, ruled apart. Only the scales
   are a bitmap; the wording is set here so it stays crisp and editable. */
.wordmark {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	line-height: 1.2;
}

.wordmark__scales {
	flex: 0 0 auto;
	width: auto;
	height: clamp(2.8rem, 5vw, 3.85rem);
}

.wordmark__text {
	display: block;
	min-width: 0;
}

.wordmark__office {
	display: block;
	padding-bottom: 0.16em;
	border-bottom: 1px solid var(--ink);
	font-family: var(--sans);
	font-size: clamp(1.12rem, 1.2rem + 0.48vw, 1.7rem);
	/* 700 is the top of the Plex Sans wght axis; see fonts.css. */
	font-weight: 700;
	letter-spacing: 0.005em;
	color: var(--burgundy);
}

.wordmark__name {
	display: block;
	padding-top: 0.22em;
	font-family: var(--sans);
	font-size: clamp(0.84rem, 0.75rem + 0.3vw, 1.01rem);
	font-weight: 400;
	white-space: nowrap;
	color: var(--ink-soft);
}

.wordmark:hover .wordmark__office {
	color: var(--burgundy-deep);
}

.masthead__tools {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

/* Below this the logo and the two buttons cannot share a row without the
   logo shrinking past legibility, so give the logo its own row. */
@media (max-width: 48rem) {
	.masthead__main {
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem;
	}

	.wordmark,
	.custom-logo-link {
		flex: 1 0 100%;
		max-width: 100%;
	}

	.wordmark {
		justify-content: center;
	}

	.custom-logo {
		max-width: min(22rem, 80vw);
		margin-inline: auto;
	}
}

.tool-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.9rem;
	background: transparent;
	border: 1px solid var(--rule);
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.tool-btn:hover {
	border-color: var(--burgundy);
	color: var(--burgundy);
}

.tool-btn--nav {
	display: none;
}

.tool-btn__bars,
.tool-btn__bars::before,
.tool-btn__bars::after {
	display: block;
	width: 1rem;
	height: 1px;
	background: currentColor;
}

.tool-btn__bars {
	position: relative;
}

.tool-btn__bars::before,
.tool-btn__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.tool-btn__bars::before {
	top: -5px;
}

.tool-btn__bars::after {
	top: 5px;
}

.search-panel {
	background: var(--vellum);
	border-top: 1px solid var(--rule);
	padding-block: 1.15rem;
}

/* Primary nav: a deep burgundy band, the way a bound volume carries its
   spine. It anchors the page and keeps the brand colour doing real work. */
.primary-nav {
	background: var(--burgundy-deep);
}

/* The eight top-level items must sit on a single line. Tight tracking and
   padding get them into the 1184px measure with room to spare; the scroll
   fallback keeps them on one line if more items are added later. */
.primary-nav__list {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav__list::-webkit-scrollbar {
	display: none;
}

.primary-nav__list li {
	position: relative;
	flex: 0 0 auto;
}

.primary-nav__list a {
	display: block;
	padding: 0.85rem 0.78rem;
	color: #f2e9e6;
	font-family: var(--sans);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
}

/* Narrower desktops: shed a little more before the scroll fallback engages. */
@media (min-width: 60.0625rem) and (max-width: 78rem) {
	.primary-nav__list a {
		padding-inline: 0.58rem;
		font-size: 0.75rem;
		letter-spacing: 0.01em;
	}
}

.primary-nav__list a:hover,
.primary-nav__list a:focus-visible {
	color: #fff;
	background: rgba(0, 0, 0, 0.22);
}

.primary-nav__list .current-menu-item > a,
.primary-nav__list .current-menu-ancestor > a,
.primary-nav__list .current-menu-parent > a {
	color: #fff;
	border-bottom-color: #f2e9e6;
}

/* Submenus */
.primary-nav__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 60.0625rem) {
	.primary-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		min-width: 16rem;
		background: var(--burgundy-deep);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.15s ease;
	}

	.primary-nav__list li:hover > .sub-menu,
	.primary-nav__list li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}

	.primary-nav__list .sub-menu a {
		text-transform: none;
		letter-spacing: 0.02em;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
}

@media (max-width: 60rem) {
	.tool-btn--nav {
		display: inline-flex;
	}

	.primary-nav__list {
		flex-direction: column;
		flex-wrap: wrap;
		overflow-x: visible;
		padding-block: 0.5rem;
	}

	.primary-nav__list a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.primary-nav__list .sub-menu a {
		padding-left: 2.2rem;
		text-transform: none;
	}
}

/* =========================================================================
   5. Hero — the maxim the practice already leads with
   ====================================================================== */

/* Brand strip carried over from the old theme, on inner pages only. */
.page-band {
	height: clamp(2.75rem, 5vw, 4.25rem);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-bottom: 1px solid var(--rule);
}

.hero {
	background: var(--vellum);
	border-bottom: 1px solid var(--rule);
}

/* The front page opens on the whole welcome article, with the banner and the
   curated practice areas stacked in the column beside it. */
.hero__inner {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: start;
	padding-block: clamp(2.25rem, 5vw, 4rem);
}

@media (min-width: 62rem) {
	/* Weighted to the text: it carries a full article at a readable measure. */
	.hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}
}

.hero__text {
	min-width: 0;
}

.hero__aside {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.25rem);
	min-width: 0;
}

.hero__figure {
	margin: 0;
	min-width: 0;
}

.hero__figure img {
	display: block;
	width: 100%;
	height: auto;
}

/* The article fills its column rather than the global reading measure, which
   is wider than the column here. */
.hero__article {
	max-width: none;
	margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.hero__maxim {
	margin: 0;
	font-family: var(--display);
	font-size: var(--hero-maxim);
	font-style: italic;
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--burgundy);
	text-wrap: balance;
}

.hero__translation {
	margin: clamp(0.9rem, 2vw, 1.4rem) 0 0;
	font-family: var(--display);
	font-size: var(--step-2);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--ink);
	text-wrap: balance;
}

/* Standfirst: the welcome line, set in the sans face above the serif article. */
.hero__lead {
	font-family: var(--sans);
	font-size: var(--step-1);
	font-weight: 500;
	line-height: 1.5;
	color: var(--ink);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: clamp(1.5rem, 3vw, 2.15rem) 0 0;
}

/* =========================================================================
   6. § — the structural mark

   § is the section sign of Bulgarian statutory text (Преходни и заключителни
   разпоредби, § 1, § 2 …). It divides sections here for the same reason.
   ====================================================================== */

.rule {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-block: clamp(2rem, 5vw, 3rem);
}

.rule::before,
.rule::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rule);
}

.rule__mark {
	font-family: var(--display);
	font-size: 1.05rem;
	color: var(--burgundy);
	line-height: 1;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.7rem;
	border-bottom: 2px solid var(--burgundy);
}

.section-head__title {
	margin: 0;
	font-family: var(--display);
	font-size: var(--step-1);
	font-weight: 600;
	letter-spacing: -0.005em;
}

.section-head__mark,
.rail-block__mark,
.form__mark {
	color: var(--burgundy);
	margin-right: 0.45em;
	font-weight: 400;
}

.section-head__link {
	font-family: var(--sans);
	font-size: var(--step--1);
	text-decoration: none;
	white-space: nowrap;
}

.section-head__link:hover {
	text-decoration: underline;
}

/* =========================================================================
   7. Branch index — the signature block
   ====================================================================== */

.branch-index {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
	gap: 0 clamp(1.5rem, 3vw, 3rem);
}

.branch-index__link {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.95rem 0 1.05rem;
	border-top: 2px solid var(--rule);
	text-decoration: none;
	color: var(--ink);
	transition: border-color 0.18s ease, color 0.18s ease;
}

.branch-index__link:hover,
.branch-index__link:focus-visible {
	border-top-color: var(--burgundy);
	color: var(--burgundy);
}

.branch-index__name {
	font-family: var(--display);
	font-size: var(--step-0);
	font-weight: 600;
	line-height: 1.35;
}

.branch-index__count {
	font-family: var(--mono);
	font-size: var(--step--2);
	letter-spacing: 0.02em;
	color: var(--muted);
}

/* =========================================================================
   8. Entry rows and meta
   ====================================================================== */

.entry-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-row {
	padding-block: 1.05rem 1.15rem;
	border-top: 1px solid var(--rule-soft);
}

.entry-row:first-child {
	border-top: 0;
	padding-top: 0;
}

.entry-row__title {
	display: block;
	font-family: var(--display);
	font-size: var(--step-1);
	font-weight: 600;
	line-height: 1.32;
	color: var(--ink);
	text-decoration: none;
	text-wrap: pretty;
}

.entry-row__title:hover {
	color: var(--burgundy);
	text-decoration: underline;
	text-decoration-color: var(--rule);
}

.entry-rows--lead .entry-row__title {
	font-size: var(--step-2);
}

.entry-row__excerpt {
	margin: 0.5rem 0 0;
	max-width: var(--measure);
	font-size: var(--step--1);
	line-height: 1.65;
	color: var(--ink-soft);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.9rem;
	margin-top: 0.4rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--muted);
}

.entry-meta__cat {
	color: var(--burgundy);
	text-decoration: none;
	font-weight: 500;
}

.entry-meta__cat:hover {
	text-decoration: underline;
}

.entry-meta__date {
	font-family: var(--mono);
	font-size: var(--step--2);
	letter-spacing: 0.01em;
}

.empty {
	margin: 0;
	padding: 2rem 0;
	color: var(--muted);
}

/* =========================================================================
   9. Breadcrumbs and archive headers
   ====================================================================== */

.crumbs {
	margin-bottom: 1.1rem;
}

.crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--muted);
}

.crumbs__item + .crumbs__item::before {
	content: "›";
	margin-right: 0.4rem;
	color: var(--rule);
}

.crumbs__item a {
	text-decoration: none;
}

.crumbs__item a:hover {
	text-decoration: underline;
}

.crumbs__item [aria-current] {
	color: var(--ink-soft);
}

.archive-head {
	margin-bottom: 2rem;
	padding-bottom: 1.4rem;
	border-bottom: 2px solid var(--burgundy);
}

.archive-head__title {
	margin: 0;
	font-family: var(--display);
	font-size: var(--step-3);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.archive-head__title em {
	font-style: italic;
	color: var(--burgundy);
}

.archive-head__count {
	margin: 0.5rem 0 0;
	font-family: var(--mono);
	font-size: var(--step--1);
	color: var(--muted);
}

.archive-head__intro {
	margin-top: 1rem;
}

.archive-head__search,
.notfound__search {
	margin-top: 1.25rem;
	max-width: 34rem;
}

/* =========================================================================
   10. The article
   ====================================================================== */

.entry__head {
	margin-bottom: 1.75rem;
	padding-bottom: 1.25rem;
	border-bottom: 2px solid var(--burgundy);
}

.entry__title {
	margin: 0;
	font-family: var(--display);
	font-size: var(--step-3);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.entry__head .entry-meta {
	margin-top: 0.8rem;
}

.entry__figure {
	margin: 0 0 1.75rem;
}

.entry__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 0.85rem;
	margin-top: 2rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--rule-soft);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.entry__tags-label {
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--step--2);
}

.entry__tags ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry__tags a {
	text-decoration: none;
	border-bottom: 1px solid var(--rule);
}

.entry__tags a:hover {
	border-bottom-color: var(--burgundy);
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin-top: 1.5rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--rule-soft);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.share__label {
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: var(--step--2);
}

.share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.share__list a,
.share__list button {
	padding: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--rule);
	color: var(--burgundy);
	font: inherit;
	text-decoration: none;
}

.share__list a:hover,
.share__list button:hover {
	border-bottom-color: var(--burgundy);
	color: var(--burgundy-deep);
}

.share__list button.is-done {
	color: var(--muted);
	border-bottom-color: transparent;
}

.post-nav {
	display: grid;
	gap: 1rem;
	margin-block: 2rem;
}

@media (min-width: 40rem) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

.post-nav__link {
	display: block;
	padding: 1rem 1.15rem;
	border: 1px solid var(--rule);
	text-decoration: none;
	color: var(--ink);
}

.post-nav__link:hover {
	border-color: var(--burgundy);
}

.post-nav__link--next {
	text-align: right;
}

.post-nav__dir {
	display: block;
	font-family: var(--sans);
	font-size: var(--step--2);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}

.post-nav__title {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--display);
	font-size: var(--step-0);
	font-weight: 600;
	line-height: 1.35;
}

.related {
	margin-top: 2.5rem;
}

/* =========================================================================
   11. Prose — fifteen years of legal writing lives in here
   ====================================================================== */

.prose {
	max-width: var(--measure);
	font-family: var(--display);
	font-size: var(--step-0);
	line-height: 1.78;
	color: var(--ink);
}

.prose > * {
	margin-block: 0;
}

.prose > * + * {
	margin-top: var(--flow);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
	font-family: var(--display);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.prose > h2 + *,
.prose > h3 + *,
.prose > h4 + * {
	margin-top: 0.6em;
}

.prose > * + :is(h2, h3, h4, h5, h6) {
	margin-top: 1.9em;
}

.prose h2 {
	font-size: var(--step-2);
}

.prose h3 {
	font-size: var(--step-1);
}

.prose h4,
.prose h5,
.prose h6 {
	font-size: var(--step-0);
}

.prose strong,
.prose b {
	font-weight: 600;
}

.prose a {
	color: var(--burgundy);
	text-decoration: underline;
	text-decoration-color: rgba(126, 0, 23, 0.35);
}

.prose a:hover {
	text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose li::marker {
	color: var(--burgundy);
}

.prose blockquote {
	padding: 0.15rem 0 0.15rem 1.35rem;
	border-left: 3px solid var(--burgundy);
	color: var(--ink-soft);
	font-style: italic;
}

.prose blockquote > * + * {
	margin-top: 0.75em;
}

.prose img {
	height: auto;
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-caption-text {
	margin-top: 0.5rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--muted);
}

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: var(--step--1);
}

.prose th,
.prose td {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--vellum);
	font-weight: 600;
}

.prose pre {
	padding: 1rem;
	overflow-x: auto;
	background: var(--vellum);
	font-family: var(--mono);
	font-size: var(--step--1);
	line-height: 1.6;
}

.prose code {
	font-family: var(--mono);
	font-size: 0.92em;
}

.prose hr {
	margin-block: 2rem;
}

.page-links {
	margin-top: 1.5rem;
	font-family: var(--sans);
	font-size: var(--step--1);
}

/* WordPress core alignment and caption classes */
.alignleft {
	float: left;
	margin: 0.35rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.35rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignnone {
	height: auto;
}

.wp-caption {
	max-width: 100%;
}

.sticky,
.gallery-caption,
.bypostauthor {
	/* Required by the theme review guidelines; no visual treatment needed. */
}

@media (max-width: 34rem) {
	.alignleft,
	.alignright {
		float: none;
		margin-inline: 0;
		display: block;
	}
}

/* =========================================================================
   12. Rail
   ====================================================================== */

.rail-block {
	margin-bottom: 2.5rem;
}

.rail-block:last-child {
	margin-bottom: 0;
}

.rail-block__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--burgundy);
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.rail-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rail-list li {
	border-top: 1px solid var(--rule-soft);
}

.rail-list li:first-child {
	border-top: 0;
}

.rail-list a {
	display: block;
	padding: 0.6rem 0;
	font-family: var(--display);
	font-size: var(--step--1);
	line-height: 1.45;
	color: var(--ink);
	text-decoration: none;
}

.rail-list a:hover {
	color: var(--burgundy);
	text-decoration: underline;
	text-decoration-color: var(--rule);
}

/* Closes the list of rows and sends the reader to the whole category. */
.rail-block__more {
	display: block;
	padding-top: 0.6rem;
	border-top: 1px solid var(--rule-soft);
	font-family: var(--sans);
	font-size: var(--step--2);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.rail-block__more:hover {
	text-decoration: underline;
}

.rail .branch-index {
	grid-template-columns: 1fr;
}

.rail .branch-index__link {
	padding-block: 0.6rem 0.7rem;
	border-top-width: 1px;
}

.rail .branch-index__name {
	font-size: var(--step--1);
	font-weight: 400;
}

.widget {
	margin-bottom: 2.5rem;
	font-size: var(--step--1);
}

.widget__title {
	margin: 0 0 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--burgundy);
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 0.45rem 0;
	border-top: 1px solid var(--rule-soft);
}

.widget li:first-child {
	border-top: 0;
}

/* =========================================================================
   13. Forms, buttons, notices
   ====================================================================== */

.btn {
	display: inline-block;
	padding: 0.72rem 1.45rem;
	border: 1px solid transparent;
	background: transparent;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn--primary {
	background: var(--burgundy);
	border-color: var(--burgundy);
	color: #fff;
}

.btn--primary:hover {
	background: var(--burgundy-deep);
	border-color: var(--burgundy-deep);
	color: #fff;
}

.btn--quiet {
	border-color: var(--rule);
	color: var(--ink);
}

.btn--quiet:hover {
	border-color: var(--burgundy);
	color: var(--burgundy);
}

.form {
	max-width: 38rem;
	margin-block: 2rem;
}

.form__title {
	margin: 0 0 1.25rem;
	padding-bottom: 0.7rem;
	border-bottom: 2px solid var(--burgundy);
	font-family: var(--display);
	font-size: var(--step-1);
	font-weight: 600;
}

.form__row {
	margin-block: 0 1.1rem;
}

.form__row label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 500;
}

.form__req {
	font-weight: 400;
	color: var(--muted);
}

.form__note {
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--muted);
}

.form__row--trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__row--submit {
	margin-bottom: 0;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 0.68rem 0.85rem;
	background: #fff;
	border: 1px solid var(--rule);
	border-radius: 0;
	color: var(--ink);
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.5;
}

textarea {
	resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
	border-color: var(--burgundy);
	outline: 2px solid var(--burgundy);
	outline-offset: 1px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
	border-color: var(--burgundy);
	background: var(--burgundy-tint);
}

.notice {
	margin-bottom: 1.35rem;
	padding: 0.9rem 1.1rem;
	border-left: 3px solid var(--burgundy);
	background: var(--vellum);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.notice p,
.notice ul {
	margin: 0;
}

.notice ul {
	padding-left: 1.1rem;
}

.notice--error {
	background: var(--burgundy-tint);
}

.notice--ok {
	border-left-color: #2f6b3f;
}

.searchform {
	display: flex;
	gap: 0.5rem;
}

.searchform__field {
	flex: 1;
	min-width: 0;
}

.searchform__submit {
	flex-shrink: 0;
	padding: 0.68rem 1.25rem;
	background: var(--burgundy);
	border: 1px solid var(--burgundy);
	color: #fff;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 500;
}

.searchform__submit:hover {
	background: var(--burgundy-deep);
	border-color: var(--burgundy-deep);
}

/* =========================================================================
   14. Map — nothing is fetched until the visitor asks
   ====================================================================== */

.map {
	margin-block: 1.75rem;
	border: 1px solid var(--rule);
	background: var(--vellum);
}

.map__prompt {
	padding: clamp(1.25rem, 4vw, 2rem);
}

.map__address {
	margin: 0;
	font-family: var(--display);
	font-size: var(--step-1);
	font-weight: 600;
}

.map__note {
	margin: 0.5rem 0 0;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--muted);
}

.map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.1rem 0 0;
}

.map.is-loaded {
	display: block;
	line-height: 0;
}

.map iframe {
	display: block;
	width: 100%;
	height: clamp(18rem, 45vw, 26rem);
	border: 0;
}

/* =========================================================================
   15. Comments
   ====================================================================== */

.comments {
	margin-top: 3rem;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-top: 1.1rem;
	margin-left: clamp(1rem, 4vw, 2.75rem);
	padding-left: clamp(0.85rem, 3vw, 1.5rem);
	border-left: 2px solid var(--rule-soft);
}

.comment {
	padding-block: 1.25rem;
	border-top: 1px solid var(--rule-soft);
}

.comment:first-child {
	border-top: 0;
	padding-top: 0;
}

.comment__head {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 0.7rem;
}

.comment__avatar {
	flex-shrink: 0;
	border-radius: 50%;
}

.comment__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.7rem;
	font-family: var(--sans);
	font-size: var(--step--1);
}

.comment__author {
	font-weight: 600;
}

.comment__date {
	font-family: var(--mono);
	font-size: var(--step--2);
	color: var(--muted);
	text-decoration: none;
}

.comment__date:hover {
	text-decoration: underline;
}

.comment__text {
	font-size: var(--step--1);
	line-height: 1.7;
}

.comment__text > * {
	margin-block: 0;
}

.comment__text > * + * {
	margin-top: 0.8em;
}

.comment__pending {
	margin: 0 0 0.6rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--burgundy);
}

.comment__reply {
	margin-top: 0.6rem;
	font-family: var(--sans);
	font-size: var(--step--2);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.comment__edit a {
	font-size: var(--step--2);
	color: var(--muted);
}

.comments__closed {
	margin-top: 1.5rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	color: var(--muted);
}

.comment-respond {
	margin-top: 2.5rem;
	max-width: 38rem;
}

.comment-reply-title {
	margin: 0 0 1.25rem;
	padding-bottom: 0.7rem;
	border-bottom: 2px solid var(--burgundy);
	font-family: var(--display);
	font-size: var(--step-1);
	font-weight: 600;
}

.comment-reply-title small {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 400;
}

.comment-form .form-submit {
	margin-bottom: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-weight: 500;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	font-family: var(--sans);
	font-size: var(--step--1);
}

.comment-form .comment-form-cookies-consent input {
	width: auto;
	margin-top: 0.3rem;
}

.comment-form .comment-form-cookies-consent label {
	margin-bottom: 0;
	font-weight: 400;
}

/* =========================================================================
   16. Pagination
   ====================================================================== */

.pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: var(--step--1);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.4rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--rule);
	color: var(--ink);
	text-align: center;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--burgundy);
	color: var(--burgundy);
}

.pagination .page-numbers.current {
	background: var(--burgundy);
	border-color: var(--burgundy);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* =========================================================================
   17. Footer
   ====================================================================== */

.site-footer {
	margin-top: var(--section-gap);
	background: var(--vellum);
	border-top: 3px solid var(--burgundy);
}

.footer-grid {
	display: grid;
	gap: clamp(1.75rem, 4vw, 3rem);
	padding-block: clamp(2rem, 5vw, 3.25rem);
}

@media (min-width: 48rem) {
	.footer-grid {
		grid-template-columns: 1.3fr 1fr 1fr;
	}
}

.footer-wordmark {
	margin: 0;
	font-family: var(--display);
	font-size: var(--step-1);
	font-weight: 600;
}

.footer-role {
	margin: 0.25rem 0 0;
	font-family: var(--sans);
	font-size: var(--step--2);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--muted);
}

.footer-address {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-top: 1rem;
	font-family: var(--sans);
	font-size: var(--step--1);
	font-style: normal;
	color: var(--ink-soft);
}

.footer-address a {
	color: inherit;
	text-decoration: none;
	width: fit-content;
}

.footer-address a:hover {
	color: var(--burgundy);
	text-decoration: underline;
}

.footer-col__title {
	margin: 0 0 0.75rem;
	font-family: var(--sans);
	font-size: var(--step--2);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--sans);
	font-size: var(--step--1);
}

.footer-list li {
	padding: 0.3rem 0;
}

.footer-list a {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	color: var(--ink);
	text-decoration: none;
}

.footer-list a:hover {
	color: var(--burgundy);
	text-decoration: underline;
}

.footer-list__count {
	font-family: var(--mono);
	font-size: var(--step--2);
	color: var(--muted);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	justify-content: space-between;
	padding-block: 1.1rem;
	border-top: 1px solid var(--rule);
	font-family: var(--sans);
	font-size: var(--step--2);
	color: var(--muted);
}

.footer-copy,
.footer-note {
	margin: 0;
}

/* =========================================================================
   18. Motion and print
   ====================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.masthead,
	.site-footer,
	.layout__rail,
	.share,
	.post-nav,
	.related,
	.comment-respond,
	.skip-link,
	.pagination,
	.crumbs {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.layout {
		display: block;
		padding-block: 0;
	}

	.prose {
		max-width: none;
	}

	.prose a::after {
		content: " (" attr(href) ")";
		font-family: var(--mono);
		font-size: 9pt;
		word-break: break-all;
	}

	.entry__head {
		border-bottom: 1pt solid #000;
	}
}
