/* ==========================================================================
   Book of News — main stylesheet
   ========================================================================== */

@font-face { font-family: "BON Sans"; src: url(../fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "BON Blackletter"; src: url(../fonts/unifraktur.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: block; }

:root {
	--ink: #121212;
	--ink-2: #3a3a3a;
	--muted: #6b6b6b;
	--rule: #e5e5e5;
	--rule-strong: #121212;
	--paper: #ffffff;
	--paper-2: #f7f5f0;
	--accent: #b3121f;
	--accent-ink: #ffffff;
	--navy: #0f2847;
	--band: #121212;      /* ticker + footer: always dark */
	--band-2: #2f2f2f;
	--field: #ffffff;
	--field-border: #cfcfcf;
	--seal-filter: none;
	color-scheme: light;

	--sans: "BON Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--serif: var(--sans); /* site is Inter-only by design */
	--blackletter: "BON Blackletter", "Old English Text MT", Georgia, serif;

	--wrap: 1200px;
	--read: 680px;
	--gutter: 16px;
	--radius: 4px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
	--ink: #ececec;
		--ink-2: #c6c6c6;
		--muted: #9b9b9b;
		--rule: #2b2c30;
		--rule-strong: #ececec;
		--paper: #111214;
		--paper-2: #1a1b1f;
		--accent: #e5484d;
		--accent-ink: #ffffff;
		--band: #0a0a0b;
		--band-2: #26272b;
		--field: #1a1b1f;
		--field-border: #3a3b40;
		--seal-filter: invert(1) hue-rotate(180deg) brightness(1.05);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--ink: #ececec;
	--ink-2: #c6c6c6;
	--muted: #9b9b9b;
	--rule: #2b2c30;
	--rule-strong: #ececec;
	--paper: #111214;
	--paper-2: #1a1b1f;
	--accent: #e5484d;
	--accent-ink: #ffffff;
	--band: #0a0a0b;
	--band-2: #26272b;
	--field: #1a1b1f;
	--field-border: #3a3b40;
	--seal-filter: invert(1) hue-rotate(180deg) brightness(1.05);
	color-scheme: dark;
}

*, *::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(--serif);
	font-size: 17px;
	line-height: 1.6;
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.022em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--paper); padding: 8px 12px; }

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

/* Small utility type ------------------------------------------------------ */
.kicker {
	font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 6px;
}
.meta { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.meta a { color: var(--ink-2); font-weight: 600; }
.meta .sep { margin: 0 6px; }
.section-title {
	font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	border-top: 2px solid var(--rule-strong); padding-top: 10px; margin: 0 0 20px;
}
.section-title a.more { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: none; }
.section-title a.more:hover { color: var(--accent); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font-family: var(--sans); font-size: 14px; font-weight: 700; line-height: 1;
	padding: 11px 18px; border-radius: var(--radius); border: 1px solid var(--accent);
	background: var(--accent); color: var(--accent-ink); cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(.88); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }

/* Header (emblem · nameplate · actions) ------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 12px; }
.site-header__left { display: flex; align-items: center; gap: 10px; }
.site-header__emblem { display: inline-flex; width: 42px; height: 42px; }
.site-header__emblem img { width: 42px; height: 42px; }
.site-header__date { font-size: 12px; color: var(--muted); line-height: 1.3; }
.site-header__date strong { display: block; color: var(--ink-2); font-weight: 600; }
.nameplate { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin: 0; font-size: inherit; }
.nameplate:hover { color: var(--ink); }
.nameplate__word { font-family: var(--blackletter); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.nameplate__seal { width: 46px; height: 46px; flex: none; }
.site-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.site-header__actions .btn { padding: 10px 16px; }

/* Category nav --------------------------------------------------------------- */
.catnav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.admin-bar .catnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .catnav { top: 0; } }
.catnav .wrap { display: flex; align-items: center; }
.catnav .catnav__brand { display: none; padding: 0; align-items: center; gap: 6px; margin-right: 14px; font-family: var(--blackletter); font-size: 22px; white-space: nowrap; color: var(--ink); }
.catnav__brand img { width: 24px; height: 24px; }
.catnav.is-stuck .catnav__brand { display: inline-flex; border: 0; }
.catnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: 1; justify-content: center; }
.catnav.is-stuck ul { justify-content: flex-start; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav li { flex: none; }
.catnav a { display: block; font-family: var(--sans); font-size: 14.5px; font-weight: 500; padding: 13px 12px; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav .current-menu-item > a, .catnav .current-cat > a { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

/* Ticker ---------------------------------------------------------------------- */
.ticker { background: var(--band); color: #fff; font-family: var(--sans); font-size: 14px; }
.ticker .wrap { display: flex; align-items: center; height: 40px; gap: 14px; overflow: hidden; }
.ticker__label { flex: none; background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; }
.ticker--latest .ticker__label { background: #fff; color: #121212; }
.ticker__track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); }
.ticker__list { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; white-space: nowrap; width: max-content; animation: bon-ticker 45s linear infinite; }
.ticker:hover .ticker__list { animation-play-state: paused; }
.ticker__list a { color: #fff; font-weight: 500; }
.ticker__list a:hover { text-decoration: underline; color: #fff; }
.ticker__list li::before { content: "•"; color: var(--accent); margin-right: 10px; }
@keyframes bon-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__list { animation: none; } }

/* Search panel ---------------------------------------------------------------- */
.search-panel { display: none; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.search-panel.is-open { display: block; }
.search-panel .wrap { padding-top: 16px; padding-bottom: 16px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type=search] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field); color: var(--ink); font-family: var(--sans); font-size: 16px; }

/* Media / placeholder ---------------------------------------------------------- */
.media { position: relative; display: block; overflow: hidden; background: var(--paper-2); border-radius: 2px; aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover > .media img, .media:hover img { transform: scale(1.02); }
.media--placeholder { display: flex; align-items: center; justify-content: center; }
.media--placeholder img { width: 22%; height: auto; max-width: 72px; opacity: .25; object-fit: contain; transform: none !important; }
.media--sq { aspect-ratio: 1 / 1; }
.media--43 { aspect-ratio: 4 / 3; }

/* Cards ------------------------------------------------------------------------ */
.card { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 20px; line-height: 1.22; margin: 0; font-weight: 700; letter-spacing: -.015em; }
.card__title a:hover { color: var(--accent); }
.card__dek { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin: 0; }
.card--lead .card__title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }
.card--lead .card__dek { font-size: 19px; }
.card--sm .card__title { font-size: 18px; }

.row-card { display: grid; grid-template-columns: 1fr 132px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.row-card:first-child { padding-top: 0; }
.row-card:last-child { border-bottom: 0; }
.row-card .card__title { font-size: 19px; }
.row-card .card__dek { font-size: 15px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-card .meta { margin-top: 6px; }
.row-card .media { aspect-ratio: 4 / 3; }

.list-card { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.list-card:first-child { padding-top: 0; }
.list-card:last-child { border-bottom: 0; }
.list-card .card__title { font-size: 17px; line-height: 1.25; }

/* Home: hero ------------------------------------------------------------------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; padding: 30px 0 40px; }
.home-hero__side { border-left: 1px solid var(--rule); padding-left: 32px; }
.home-hero__side .section-title { border-top-width: 2px; }
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; }
.top-list li { counter-increment: top; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.top-list li:first-child { padding-top: 0; }
.top-list li:last-child { border-bottom: 0; }
.top-list li::before { content: counter(top); font-size: 28px; font-weight: 800; line-height: 1; color: var(--accent); }
.top-list .card__title { font-size: 17px; line-height: 1.25; }

/* Newsletter -------------------------------------------------------------------- */
.newsletter { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 44px 0; text-align: center; }
.newsletter__seal { width: 48px; height: 48px; margin: 0 auto 12px; }
.newsletter h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.newsletter p { color: var(--ink-2); max-width: 520px; margin: 0 auto 20px; font-size: 17px; }
.newsletter-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.newsletter-form input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--field-border); border-radius: var(--radius); background: var(--field); color: var(--ink); font-family: var(--sans); font-size: 16px; }
.newsletter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter__note { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 10px !important; }
.newsletter__msg { font-family: var(--sans); font-size: 14px; font-weight: 600; margin: 0 auto 14px; padding: 10px 14px; border-radius: var(--radius); display: inline-block; }
.newsletter__msg--ok { background: #e7f4ea; color: #1d5a2c; }
.newsletter__msg--err { background: #fbe9ea; color: #8f0e18; }
.newsletter--inline { border: 1px solid var(--rule); border-radius: 6px; padding: 30px 22px; margin: 40px 0; }

/* Home: popular --------------------------------------------------------------- */
.home-section { padding: 40px 0 8px; }
.popular-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; counter-reset: pop; }
.popular-item { counter-increment: pop; display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.popular-item::before { content: counter(pop); font-size: 36px; line-height: .9; font-weight: 200; color: var(--muted); letter-spacing: -.04em; }
.popular-item .card__title { font-size: 18px; }

/* Home: category blocks ------------------------------------------------------- */
.cat-block { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
.cat-block__list { display: flex; flex-direction: column; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.cat-grid .cat-block { grid-template-columns: 1fr; gap: 18px; }

/* Home: latest + sidebar ------------------------------------------------------ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.sidebar { position: relative; }
.sidebar__inner { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 32px; }
.widget-box { border: 1px solid var(--rule); border-radius: 6px; padding: 22px; }
.widget-box h3 { font-size: 20px; }
.widget-box p { font-size: 15px; color: var(--ink-2); }
.widget-box .newsletter-form { flex-direction: column; }

/* Pagination ------------------------------------------------------------------ */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 32px 0; font-family: var(--sans); font-size: 14px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--radius); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }

/* Archive header ------------------------------------------------------------- */
.archive-head { padding: 36px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.archive-head h1 { font-size: clamp(32px, 4.5vw, 52px); margin: 0; }
.archive-head__desc { color: var(--ink-2); font-size: 17px; margin-top: 10px; max-width: 680px; }
.archive-head .author-avatar { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 12px; }

/* Single article --------------------------------------------------------------- */
.article { padding: 36px 0 20px; }
.article__head { margin-bottom: 22px; }
.article__title { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 12px; }
.article__dek { font-size: 20px; font-weight: 400; line-height: 1.45; color: var(--ink-2); margin: 0 0 20px; }
.byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.byline__text { flex: 1; min-width: 0; font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.byline__name { font-weight: 700; color: var(--ink); }
.byline__date { color: var(--muted); font-size: 13px; }
.share { display: flex; gap: 4px; flex: none; }
.share .icon-btn { border: 1px solid var(--rule); width: 34px; height: 34px; }
.share .icon-btn svg { width: 16px; height: 16px; }
.share .copied { border-color: var(--accent); color: var(--accent); }

.article__figure { margin: 26px auto 30px; max-width: 920px; padding: 0 var(--gutter); }
.article__figure .media { aspect-ratio: auto; background: none; }
.article__figure img { width: 100%; height: auto; }
.article__figure figcaption, .entry figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

.entry { font-size: 18.5px; line-height: 1.72; color: var(--ink); letter-spacing: -.003em; }
.entry > * { margin-top: 0; margin-bottom: 1.15em; }
.entry h2 { font-size: 28px; margin-top: 1.6em; }
.entry h3 { font-size: 23px; margin-top: 1.4em; }
.entry a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry a:hover { color: var(--accent); }
.entry blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-weight: 500; color: var(--ink-2); }
.entry .wp-block-pullquote, .entry .pullquote { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 18px 0; text-align: center; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: 2px; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry hr { border: 0; text-align: center; margin: 2em 0; }
.entry hr::before { content: "* * *"; letter-spacing: .6em; color: var(--muted); }
.entry table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
.entry th, .entry td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.entry iframe { width: 100%; }
.single-post .entry > p:first-of-type::first-letter { font-size: 3.4em; float: left; line-height: .85; margin: 6px 10px 0 0; font-weight: 800; color: var(--ink); }

.source-note { font-family: var(--sans); font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; font-family: var(--sans); }
.tags a { font-size: 13px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }
.tags a:hover { border-color: var(--ink); color: var(--ink); }

.author-box { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 30px 0; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-box h3 { font-size: 18px; margin-bottom: 4px; }
.author-box p { font-size: 15px; color: var(--ink-2); margin: 0; }

.related { padding: 40px 0; border-top: 1px solid var(--rule); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--rule); padding: 22px 0; font-family: var(--sans); font-size: 14px; }
.post-nav a { display: block; }
.post-nav span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.post-nav strong { font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.post-nav .next { text-align: right; }

/* Comments ---------------------------------------------------------------------- */
.comments { padding: 30px 0; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 15px; }
.comments h2, .comments h3 { font-family: var(--serif); }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.comment-author img { border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); border-radius: var(--radius); }
.comment-respond .submit { background: var(--ink); color: var(--paper); border: 0; padding: 11px 18px; border-radius: var(--radius); font-weight: 700; cursor: pointer; }

/* Pages / 404 --------------------------------------------------------------------- */
.page-plain { padding: 40px 0 60px; }
.page-plain h1 { font-size: clamp(32px, 4.5vw, 46px); }
.notfound { text-align: center; padding: 80px 0; }
.notfound h1 { font-size: 64px; font-family: var(--blackletter); font-weight: 400; }

/* Footer ------------------------------------------------------------------------- */
.site-footer { background: var(--band); color: #d9d9d9; margin-top: 60px; font-family: var(--sans); font-size: 14px; }
.site-footer a { color: #d9d9d9; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-family: var(--blackletter); font-size: 32px; line-height: 1; }
.footer-about { margin-top: 14px; color: #b5b5b5; line-height: 1.6; max-width: 340px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid #444; border-radius: 50%; }
.social a:hover { border-color: #fff; }
.social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid var(--band-2); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #9a9a9a; font-size: 13px; }
.footer-bottom ul { flex-direction: row; flex-wrap: wrap; gap: 16px; }

/* Responsive ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.layout { grid-template-columns: 1fr; }
	.sidebar__inner { position: static; }
	.footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.site-header__date { display: none; }
	.home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 22px; }
	.home-hero__side { border-left: 0; padding-left: 0; }
	.cat-block { grid-template-columns: 1fr; gap: 18px; }
	.cat-grid { grid-template-columns: 1fr; }
	.popular-grid { grid-template-columns: 1fr 1fr; }
	.related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.site-header .wrap { grid-template-columns: 1fr auto; height: 62px; gap: 6px; }
	.site-header__left { display: none; }
	.nameplate { gap: 6px; }
	.nameplate__word { font-size: 25px; }
	.nameplate__seal { width: 32px; height: 32px; }
	.site-header__actions .btn { padding: 8px 11px; font-size: 13px; }
	.site-header__actions .icon-btn { width: 34px; height: 34px; }
	.catnav ul { justify-content: flex-start; }
	.catnav a { padding: 12px 10px; font-size: 13.5px; }
	.popular-grid, .related-grid { grid-template-columns: 1fr; gap: 20px; }
	.row-card { grid-template-columns: 1fr 96px; gap: 12px; }
	.row-card .card__title { font-size: 17px; }
	.row-card .card__dek { display: none; }
	.newsletter-form { flex-direction: column; }
	.entry { font-size: 17.5px; }
	.article__dek { font-size: 18px; }
	.byline { flex-wrap: wrap; }
	.footer-top { grid-template-columns: 1fr; gap: 28px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { text-align: left; }
}

.in-article { margin: 1.6em 0; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; }
.widget-area .widget { margin-bottom: 28px; }
.newsletter--inline .wrap { padding: 0; }
.home-cat .section-title a:first-child:hover { color: var(--accent); }
.newsletter__msg[hidden] { display: none; }
.cat-block--single { grid-template-columns: 1fr; }

/* Theme toggle + dark-mode details ------------------------------------------ */
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.nameplate__seal, .site-header__emblem img, .catnav__brand img, .newsletter__seal, .media--placeholder img { filter: var(--seal-filter); }
.newsletter__msg--ok { background: color-mix(in srgb, #2e9b4e 16%, var(--paper)); color: var(--ink); }
.newsletter__msg--err { background: color-mix(in srgb, var(--accent) 16%, var(--paper)); color: var(--ink); }
.site-footer .btn { color: #fff; }
body { transition: background-color .2s ease, color .2s ease; }

/* Web Stories rings (Instagram-style, native horizontal scroll) ----------------- */
.story-rings { border-bottom: 1px solid var(--rule); padding: 14px 0 10px; }
.rings { list-style: none; margin: 0; padding: 2px 0 4px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rings::-webkit-scrollbar { display: none; }
.ring { flex: 0 0 78px; scroll-snap-align: start; }
.ring a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.ring__img { width: 72px; height: 72px; border-radius: 50%; padding: 3px; display: block; background: conic-gradient(from 210deg, #b3121f, #e5484d, #f2a33a, #b3121f, #0f2847, #b3121f); transition: transform .2s ease; }
.ring__img img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; border: 2.5px solid var(--paper); background: var(--paper-2); }
.ring a:hover .ring__img { transform: scale(1.05); }
.ring a:hover { color: var(--accent); }
.ring__title { font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center; width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ring--all .ring__img { background: var(--rule); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 22px; font-weight: 700; color: var(--ink); }
.ring--all .ring__img { box-shadow: inset 0 0 0 3px var(--paper); }
.ring--all .ring__title { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) {
	.rings { gap: 12px; }
	.ring { flex-basis: 70px; }
	.ring__img { width: 64px; height: 64px; }
	.story-rings .wrap { padding-right: 0; }
}

/* Mobile header fit + no sideways scroll --------------------------------------- */
html, body { overflow-x: clip; }
@media (max-width: 600px) {
	.nameplate { gap: 5px; }
	.nameplate__word { font-size: 23px; }
	.nameplate__seal { width: 28px; height: 28px; }
	.site-header__actions { gap: 2px; }
	.site-header__actions .icon-btn { width: 34px; height: 34px; }
	.site-header__actions .icon-btn svg { width: 19px; height: 19px; }
	.site-header__actions .btn { padding: 8px 11px; font-size: 12.5px; }
}
@media (max-width: 400px) {
	.site-header .wrap { gap: 4px; }
	.nameplate { gap: 4px; }
	.nameplate__word { font-size: 19px; }
	.nameplate__seal { width: 24px; height: 24px; }
	.site-header__actions { gap: 0; }
	.site-header__actions .icon-btn { width: 32px; height: 32px; }
	.site-header__actions .icon-btn svg { width: 18px; height: 18px; }
	.site-header__actions .btn { padding: 7px 9px; font-size: 12px; margin-left: 2px; }
}
@media (max-width: 340px) {
	.nameplate__word { font-size: 17px; }
	.site-header__actions .btn { padding: 6px 7px; font-size: 11.5px; }
}

/* Story overlay player --------------------------------------------------------- */
.story-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; }
.story-lightbox.is-open { display: flex; }
html.story-open, html.story-open body { overflow: hidden; }
.story-lightbox__player { width: min(100vw, calc(92vh * 9 / 16)); height: min(100dvh, 92vh); border-radius: 12px; overflow: hidden; background: #000; }
@media (max-width: 600px) {
	.story-lightbox__player { width: 100vw; height: 100dvh; border-radius: 0; }
	}
.story-lightbox__player > a, .story-lightbox__player > script { display: none; }
.admin-bar .story-lightbox { top: 0; }
html.story-open #wpadminbar { display: none; }
.story-lightbox__player:focus, .story-lightbox__player:focus-visible { outline: none; }
