/**
 * Base — Premium Editorial: reset, typography, chrome (utility bar,
 * nameplate + sticky nav on home, compact masthead on interior pages,
 * footer), text patterns, prose. Mobile-first.
 */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--body);
	font-family: var(--font-sans);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	min-width: 320px;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }

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

::placeholder { color: #9c968a; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }

.tnum { font-variant-numeric: tabular-nums; }

.screen-reader-text {
	position: absolute;
	clip-path: inset(50%);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.bc-skip:focus {
	clip-path: none;
	width: auto; height: auto;
	left: 12px; top: 12px;
	z-index: 200;
	padding: 10px 16px;
	background: var(--teal);
	color: #fff;
	border-radius: var(--radius-ctl);
	font-weight: 600;
}

/* ── Layout primitives ────────────────────────────────────────────── */

.bc-wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 24px; }
.bc-section { padding-block: 40px 8px; }
.bc-main { min-height: 55vh; }
.bc-muted { color: var(--muted); }

.bc-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 52px;
	align-items: start;
}
.bc-layout__main { min-width: 0; }
.bc-layout__rail {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
@media (min-width: 901px) {
	.bc-layout__rail--sticky { position: sticky; top: 84px; }
}
@media (max-width: 900px) {
	.bc-layout { grid-template-columns: 1fr; }
	.bc-layout__rail { order: 2; }
}

@media (max-width: 720px) {
	.bc-wrap { padding-inline: 18px; }
	.bc-section { padding-block: 28px 8px; }
}

/* ── Text patterns ────────────────────────────────────────────────── */

.bc-kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}
.bc-kicker--accent { color: var(--teal); }
.bc-serif { font-family: var(--font-serif); }

.bc-sechead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 13px;
	margin-bottom: 22px;
}
.bc-sechead--minor { border-bottom: 1px solid var(--rule-strong); padding-bottom: 12px; }
.bc-sechead__title {
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: clamp(24px, 2.6vw, 29px);
	letter-spacing: -0.01em;
	line-height: 1.1;
	color: var(--ink);
}
.bc-sechead__more {
	font-size: 13px;
	font-weight: 600;
	color: var(--teal);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	padding-bottom: 3px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.bc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 18px;
	border: none;
	border-radius: var(--radius-ctl);
	background: var(--teal);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}
.bc-btn:hover { background: var(--teal-hover); color: #fff; }

.bc-btn--ghost {
	background: none;
	border: 1px solid var(--teal);
	color: var(--teal);
}
.bc-btn--ghost:hover { background: var(--paper-2); color: var(--teal); }

.bc-btn--warn { background: none; border: 1px solid var(--gold-border); color: var(--gold); }
.bc-btn--warn:hover { background: var(--highlight); color: var(--gold); }

.bc-iconbtn {
	width: 36px; height: 36px;
	display: grid;
	place-items: center;
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius-ctl);
	background: none;
	color: var(--muted);
	cursor: pointer;
}
.bc-iconbtn:hover { color: var(--ink); border-color: var(--faint); }

/* ── Utility bar ──────────────────────────────────────────────────── */

.bc-utility { border-bottom: 1px solid var(--rule); background: var(--paper); }
.bc-utility__in {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-block: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint);
}
.bc-utility__stats { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-utility__meta { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.bc-utility__meta a { color: var(--muted); }
.bc-utility__meta a:hover, .bc-utility__meta a.bc-utility__accent { color: var(--teal); }
.bc-utility__search {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: var(--muted);
	cursor: pointer;
}
.bc-utility__search:hover { color: var(--teal); }

@media (max-width: 480px) {
	.bc-utility__date { display: none; }
}

/* ── Nameplate (homepage) ─────────────────────────────────────────── */

.bc-nameplate { text-align: center; padding: 26px 24px 22px; max-width: var(--maxw); margin: 0 auto; }
.bc-nameplate__est {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}
.bc-nameplate__est::before, .bc-nameplate__est::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--rule-strong);
	max-width: 220px;
}
.bc-nameplate__est span {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--faint);
	white-space: nowrap;
}
.bc-nameplate__brand {
	margin: 14px 0 0;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: clamp(46px, 8vw, 88px);
	line-height: 0.94;
	letter-spacing: -0.025em;
	color: var(--ink);
}
.bc-nameplate__brand a:hover { color: var(--ink); }
.bc-nameplate__tagline {
	margin: 12px 0 0;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 17px;
	color: var(--muted);
}

/* Homepage sticky nav: ink rules top+bottom, centered links with dividers */
.bc-homenav {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}
.bc-homenav__in {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
}
.bc-homenav .bc-nav {
	margin: 0;
	padding-right: 0;
	-webkit-mask-image: none;
	mask-image: none;
}
.bc-homenav .bc-nav a { font-size: 13px; letter-spacing: 0.04em; }
.bc-homenav .bc-nav li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 14px;
	background: var(--rule-strong);
	vertical-align: middle;
	margin-inline: 1px;
}

/* ── Compact masthead (interior pages) ────────────────────────────── */

.bc-masthead {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--rule-strong);
}
.bc-masthead__in { display: flex; align-items: center; gap: 26px; height: 62px; }

.bc-brand {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.01em;
	color: var(--ink);
	white-space: nowrap;
	flex: none;
}
.bc-brand:hover { color: var(--ink); }
.bc-brand__dot { color: var(--teal); }

.bc-nav {
	display: flex;
	gap: 2px;
	align-items: center;
	margin-right: auto;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	/* Fade zone covers this padding, not glyphs, when the menu fits. */
	padding-right: 28px;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.bc-nav::-webkit-scrollbar { display: none; }
.bc-nav ul, .bc-nav li { display: contents; list-style: none; margin: 0; padding: 0; }
.bc-nav a {
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--muted);
	white-space: nowrap;
}
.bc-nav a:hover { color: var(--teal); }
.bc-nav .current-menu-item > a, .bc-nav a[aria-current="page"] {
	color: var(--ink);
	font-weight: 600;
	border-bottom: 2px solid var(--teal);
}

.bc-masthead__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.bc-search { border-top: 1px solid var(--rule); padding-block: 12px; background: var(--paper-2); }
.bc-search__form { display: flex; gap: 8px; }
.bc-search__form input {
	flex: 1;
	min-width: 0;
	background: var(--surface);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius-ctl);
	padding: 10px 12px;
	color: var(--ink);
	font-size: 14px;
	font-family: inherit;
}

@media (max-width: 720px) {
	.bc-masthead__cta { display: none; }
	.bc-masthead__in { gap: 14px; }
}

/* ── Footer ───────────────────────────────────────────────────────── */

.bc-footer { border-top: 2px solid var(--ink); margin-top: 56px; background: var(--paper); }
.bc-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	padding-block: 40px 0;
}
.bc-footer__brandcol .bc-brand { font-size: 24px; }
.bc-footer__blurb {
	margin: 10px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--muted);
	max-width: 36ch;
}
.bc-footer__colhead {
	margin: 0 0 12px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.bc-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bc-footer__links a { font-size: 13.5px; color: var(--body); }
.bc-footer__links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.bc-footer__legal {
	border-top: 1px solid var(--rule);
	margin-top: 32px;
	padding-block: 20px 48px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.bc-footer__disclaimer {
	margin: 0;
	font-size: 12.5px;
	color: var(--muted);
	line-height: 1.6;
	max-width: 960px;
}
.bc-footer__disclaimer a { text-decoration: underline; text-underline-offset: 2px; }
.bc-footer__copy { margin: 0; font-size: 12px; color: var(--faint); }

@media (max-width: 900px) {
	.bc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.bc-footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ── Prose (long-form content) ────────────────────────────────────── */

.bc-prose { max-width: 70ch; font-size: 16px; line-height: 1.7; color: var(--body); }
.bc-prose h2, .bc-prose h3 {
	font-family: var(--font-serif);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	margin: 1.7em 0 0.55em;
}
.bc-prose h2 { font-size: 27px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 12px; }
.bc-prose h3 { font-size: 21px; }
.bc-prose p { margin: 0 0 1em; }
.bc-prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.bc-prose blockquote {
	margin: 1.4em 0;
	padding-left: 18px;
	border-left: 3px solid var(--teal);
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 1.1em;
	color: var(--muted);
}
.bc-prose img { border: 1px solid var(--rule); }
.bc-prose table { width: 100%; border-collapse: collapse; background: var(--surface); }
.bc-prose td, .bc-prose th { border: 1px solid var(--rule); padding: 8px 10px; font-size: 14px; }

/* ── Fallback article/teaser lists ────────────────────────────────── */

.bc-article__title {
	font-family: var(--font-serif);
	font-size: clamp(34px, 4.6vw, 54px);
	line-height: 1.04;
	letter-spacing: -0.018em;
	color: var(--ink);
	margin-top: 16px;
}
.bc-article__meta {
	font-size: 13px;
	color: var(--muted);
	margin: 16px 0 26px;
	padding-top: 16px;
	border-top: 1px solid var(--rule);
}
.bc-teasers { display: grid; gap: 0; }
.bc-teaser { padding-block: 18px; border-bottom: 1px solid var(--rule); }
.bc-teaser__title { font-family: var(--font-serif); font-size: 21px; line-height: 1.2; color: var(--ink); margin-top: 6px; }
.bc-teaser__excerpt { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; max-width: 66ch; }
.bc-main .page-numbers { font-size: 13px; font-weight: 600; padding: 6px 10px; }
