/*
Theme Name: Briefline
Theme URI: https://example.com/briefline
Author: Your Name
Description: A fast, lightweight news theme for US stock market publishers. Built around a daily market brief, a live session clock in Eastern Time, data panels (index snapshot, top movers, earnings this week, economic calendar) and ticker tagging with live quotes. No jQuery, no web fonts, one stylesheet and one small script.
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: briefline
Tags: news, blog, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, dark-mode
*/

/* ------------------------------------------------------------------
   1. Tokens
------------------------------------------------------------------ */
:root {
	--paper: #ffffff;
	--surface: #f1f3f6;
	--line: #dde2e9;
	--ink: #13203a;
	--ink-2: #33415c;
	--muted: #566275;
	--accent: #2952cc;
	--accent-ink: #ffffff;
	--up: #0e7a4e;
	--up-bg: #e2f3ea;
	--down: #b83a18;
	--down-bg: #fbe7df;
	--pre: #8a5a00;
	--pre-bg: #fbefd6;

	--serif: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;

	--step--1: 0.8125rem;
	--step-0: 1rem;
	--step-1: 1.125rem;
	--step-2: 1.375rem;
	--step-3: 1.75rem;
	--step-4: 2.25rem;
	--step-5: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);

	--wrap: 1220px;
	--gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 16px;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--paper: #0e1626;
	--surface: #16213a;
	--line: #26334f;
	--ink: #e6ebf4;
	--ink-2: #c3cbda;
	--muted: #9aa6bc;
	--accent: #7c9bff;
	--accent-ink: #0e1626;
	--up: #39c98b;
	--up-bg: rgba(57, 201, 139, 0.14);
	--down: #ff8a66;
	--down-bg: rgba(255, 138, 102, 0.14);
	--pre: #f2c14e;
	--pre-bg: rgba(242, 193, 78, 0.14);
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

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

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0; color: var(--ink); letter-spacing: -0.005em; }

p { margin: 0 0 1em; }

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

.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:focus {
	position: fixed; top: 0.5rem; left: 0.5rem; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: 0.75rem 1rem; background: var(--paper); color: var(--ink); border: 2px solid var(--accent);
}

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

.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-sm); border: 1px solid transparent;
	background: var(--accent); color: var(--accent-ink); font: 600 0.9375rem/1 var(--sans);
	text-decoration: none; cursor: pointer;
}
.button:hover { color: var(--accent-ink); filter: brightness(1.08); }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { color: var(--ink); border-color: var(--ink-2); filter: none; }

.icon-button {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: var(--r-sm);
	border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-button:hover { border-color: var(--ink-2); }
.icon-button svg { width: 20px; height: 20px; }

/* Change pills */
.chg { display: inline-block; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--step--1); padding: 0.1rem 0.45rem; border-radius: 4px; white-space: nowrap; }
.chg.is-up { color: var(--up); background: var(--up-bg); }
.chg.is-down { color: var(--down); background: var(--down-bg); }
.chg.is-flat { color: var(--muted); background: var(--surface); }
.txt-up { color: var(--up); }
.txt-down { color: var(--down); }

/* ------------------------------------------------------------------
   3. Status strip (top) and header
------------------------------------------------------------------ */
.strip { background: var(--ink); color: var(--paper); font-size: var(--step--1); }
:root[data-theme="dark"] .strip { background: #070c16; color: var(--ink); }
.strip__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.strip__inner::-webkit-scrollbar { display: none; }
.strip__status { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; font-weight: 600; }
.strip__dot { width: 8px; height: 8px; border-radius: 50%; background: #8b95a7; }
.strip__status[data-session="open"] .strip__dot { background: #39c98b; }
.strip__status[data-session="pre"] .strip__dot,
.strip__status[data-session="after"] .strip__dot { background: #f2c14e; }
.strip__until { font-weight: 400; opacity: 0.8; }
.strip__quotes { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.strip__quotes li { display: inline-flex; gap: 0.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.strip__quotes a { text-decoration: none; }
.strip__quotes .label { opacity: 0.75; }
.strip .txt-up { color: #5fe0a6; }
.strip .txt-down { color: #ffa284; }

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { max-height: 40px; width: auto; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }

.primary-nav ul { display: flex; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.primary-nav a { text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 0.5rem 0; display: inline-block; }
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--accent); }
.primary-nav .sub-menu { display: none; }

.header-actions { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.menu-toggle { display: none; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.header-search { border-top: 1px solid var(--line); padding-block: 1rem; }
.header-search[hidden] { display: none; }

.search-form { display: flex; gap: 0.5rem; max-width: 640px; }
.search-form input[type="search"] {
	flex: 1; min-height: 44px; padding: 0 0.9rem; border-radius: var(--r-sm);
	border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit;
}

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 0.5rem var(--gap) 1rem; }
	.primary-nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--line); }
	.primary-nav .sub-menu { display: block; padding: 0 0 0 1rem; }
	.header-actions .button { display: none; }
}

/* ------------------------------------------------------------------
   4. Session clock (homepage signature)
------------------------------------------------------------------ */
.session { border-bottom: 1px solid var(--line); background: var(--surface); }
.session__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; padding-block: 1.25rem; }
.session__now { font-family: var(--serif); font-size: var(--step-2); font-weight: 700; }
.session__now small { display: block; font-family: var(--sans); font-size: var(--step--1); font-weight: 400; color: var(--muted); margin-top: 0.15rem; }
.session__clock { font-variant-numeric: tabular-nums; font-size: var(--step-1); font-weight: 600; text-align: right; }
.session__clock small { display: block; font-size: var(--step--1); color: var(--muted); font-weight: 400; }

.timeline { grid-column: 1 / -1; position: relative; padding-top: 0.25rem; }
.timeline__bar { display: grid; grid-template-columns: 5.5fr 6.5fr 4fr; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); }
.timeline__seg--pre, .timeline__seg--after { background: var(--pre-bg); }
.timeline__seg--open { background: color-mix(in srgb, var(--up) 28%, transparent); }
.timeline__seg.is-active.timeline__seg--open { background: var(--up); }
.timeline__seg.is-active.timeline__seg--pre,
.timeline__seg.is-active.timeline__seg--after { background: var(--pre); }
.timeline__marker {
	position: absolute; top: -2px; width: 4px; height: 24px; border-radius: 2px;
	background: var(--ink); transform: translateX(-50%); display: none;
}
.timeline__marker.is-visible { display: block; }
.timeline__ticks { display: grid; grid-template-columns: 5.5fr 6.5fr 4fr; margin-top: 0.45rem; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline__ticks > span { display: flex; align-items: baseline; gap: 0.5rem; min-width: 0; }
.timeline__ticks b { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.timeline__ticks b:last-child:not(:first-child) { margin-left: auto; }
.timeline__ticks .tick-label { font-size: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
	.session__inner { grid-template-columns: 1fr; }
	.session__clock { text-align: left; }
	.timeline__ticks .tick-label { display: none; }
}

/* ------------------------------------------------------------------
   5. Homepage layout
------------------------------------------------------------------ */
.home-section { padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.home-section + .home-section { border-top: 1px solid var(--line); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head a { font-size: 0.9375rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: calc(var(--gap) * 1.25); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Brief hero */
.brief__date { font-size: 0.9375rem; color: var(--muted); margin-bottom: 0.75rem; }
.brief__date strong { color: var(--accent); font-weight: 600; }
.brief__title { font-size: var(--step-5); line-height: 1.08; letter-spacing: -0.015em; max-width: 22ch; }
.brief__title a { text-decoration: none; }
.brief__title a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.brief__dek { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; margin: 1rem 0 1.25rem; line-height: 1.6; }
.brief__media { margin-top: 1.5rem; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.brief__media img { width: 100%; height: 100%; object-fit: cover; }
.brief__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.brief__meta { font-size: var(--step--1); color: var(--muted); }

/* Panels */
.panel { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.25rem; background: var(--paper); }
.panel + .panel { margin-top: 1.25rem; }
.panel__title { font-family: var(--sans); font-size: 1rem; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin-bottom: 0.5rem; }
.panel__title small { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.panel__empty { color: var(--muted); font-size: 0.9375rem; margin: 0.5rem 0 0; }
.panel__note { color: var(--muted); font-size: var(--step--1); margin: 0.75rem 0 0; }

.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: center; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.qlist li:first-child { border-top: 0; }
.qlist__name { min-width: 0; }
.qlist__name a { text-decoration: none; font-weight: 600; }
.qlist__name span { display: block; color: var(--muted); font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qlist__price { font-variant-numeric: tabular-nums; font-weight: 500; }

.snapshot .qlist li { padding: 0.8rem 0; }
.snapshot .qlist__price { font-size: var(--step-1); }

.data-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 960px) { .data-row { grid-template-columns: minmax(0, 1fr); } }
.data-row .panel + .panel { margin-top: 0; }

.earnings li { grid-template-columns: 4.5rem minmax(0, 1fr) auto; }
.earnings__day { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.earnings__time { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }

.econ li { grid-template-columns: 6.75rem minmax(0, 1fr); }
.econ__when { font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Feed rows */
.feed { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.feed > .row:first-child { border-top: 0; padding-top: 0; }
.row--no-thumb { grid-template-columns: minmax(0, 1fr); }
.row__meta { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
.row__meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.row__title { font-size: var(--step-2); line-height: 1.22; }
.row__title a { text-decoration: none; }
.row__title a:hover { text-decoration: underline; }
.row__excerpt { color: var(--ink-2); margin: 0.45rem 0 0; font-size: 0.9688rem; max-width: 66ch; }
.row__thumb { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); align-self: start; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
	.row { grid-template-columns: minmax(0, 1fr) 96px; gap: 0.9rem; }
	.row__title { font-size: var(--step-1); }
	.row__excerpt { display: none; }
}

/* Ticker chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip {
	display: inline-flex; align-items: center; gap: 0.4rem; min-height: 28px; padding: 0 0.55rem;
	border: 1px solid var(--line); border-radius: 999px; font-size: var(--step--1); text-decoration: none;
	font-variant-numeric: tabular-nums; background: var(--paper);
}
.chip b { font-weight: 700; }
.chip:hover { border-color: var(--accent); color: var(--ink); }

/* Cards (data desk sections) */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card__media { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); margin-bottom: 0.75rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: flex; align-items: flex-end; padding: 0.9rem; font-family: var(--serif); font-weight: 700; font-size: var(--step-1); color: var(--muted); text-decoration: none; border: 1px solid var(--line); }
.card__meta { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.3rem; }
.card__title { font-size: var(--step-1); line-height: 1.28; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }

/* Newsletter */
.signup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--gap); align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); background: var(--surface); }
.signup h2 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.signup p { color: var(--ink-2); margin: 0; }
.signup form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.signup input[type="email"] { flex: 1 1 220px; min-height: 48px; padding: 0 1rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; }
.signup .button { min-height: 48px; }
.sidebar .signup { grid-template-columns: 1fr; }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }

.admin-hint { border: 1px dashed var(--accent); border-radius: var(--r-sm); padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--ink-2); background: var(--paper); }

/* ------------------------------------------------------------------
   6. Archive, search, single
------------------------------------------------------------------ */
.page-head { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem) 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.page-head h1 { font-size: var(--step-4); }
.page-head__desc { color: var(--ink-2); max-width: 66ch; margin-top: 0.6rem; }
.page-head__desc p:last-child { margin-bottom: 0; }

.quote-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; margin-top: 0.75rem; }
.quote-head__price { font-size: var(--step-4); font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-head__sub { color: var(--muted); font-size: 0.9375rem; }

.ratings { margin-top: 1rem; max-width: 520px; }
.ratings__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.ratings__bar span { display: block; height: 100%; }
.ratings__buy { background: var(--up); }
.ratings__hold { background: var(--muted); }
.ratings__sell { background: var(--down); }
.ratings__legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: var(--step--1); color: var(--ink-2); margin-top: 0.4rem; font-variant-numeric: tabular-nums; }

.content-area { padding-bottom: 3rem; }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 0.75rem; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.article-head { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem) 1.5rem; }
.article-head__cat { font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.75rem; }
.article-head__cat a { color: var(--accent); text-decoration: none; }
.article-head h1 { font-size: var(--step-5); line-height: 1.1; letter-spacing: -0.015em; max-width: 24ch; }
.article-head__dek { font-size: var(--step-1); color: var(--ink-2); margin: 1rem 0 0; max-width: 62ch; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: center; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--muted); }
.byline .avatar { border-radius: 50%; width: 36px; height: 36px; }
.byline__author { color: var(--ink); font-weight: 600; text-decoration: none; }

.article-media { margin: 0 0 2rem; }
.article-media img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-md); }
.article-media figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: calc(var(--gap) * 2); align-items: start; }
@media (max-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr); } }
.article-aside { position: sticky; top: 1.5rem; }
@media (max-width: 960px) { .article-aside { position: static; } }

/* Entry content typography */
.entry-content { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.72; max-width: 68ch; color: var(--ink); }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content p { margin: 0; }
.entry-content h2 { font-size: var(--step-3); margin-top: 1.8em; }
.entry-content h3 { font-size: var(--step-2); margin-top: 1.6em; }
.entry-content a { color: var(--accent); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote { margin-inline: 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--accent); color: var(--ink-2); font-style: italic; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption, .entry-content .wp-element-caption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
.entry-content img { border-radius: var(--r-sm); }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.entry-content th, .entry-content td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content pre { overflow-x: auto; background: var(--surface); padding: 1rem; border-radius: var(--r-sm); font-size: 0.9rem; }
.entry-content .alignwide { max-width: none; }

.entry-content a.inline-quote { font-family: var(--sans); font-size: 0.92em; white-space: nowrap; text-decoration: none; color: var(--ink); }
.entry-content a.inline-quote:hover b { text-decoration: underline; }

.disclaimer { margin-top: 2.5rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: var(--r-sm); font-size: 0.875rem; color: var(--ink-2); max-width: 68ch; }
.disclaimer p:last-child { margin-bottom: 0; }

.post-tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.post-tags a { font-size: var(--step--1); padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--surface); text-decoration: none; }

.author-box { display: flex; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 68ch; }
.author-box .avatar { border-radius: 50%; width: 64px; height: 64px; flex: none; }
.author-box h2 { font-family: var(--sans); font-size: 1rem; }
.author-box p { color: var(--ink-2); font-size: 0.9375rem; margin: 0.3rem 0 0; }

.related { border-top: 1px solid var(--line); padding-block: 2.5rem; margin-top: 2rem; }

/* Widgets & sidebar */
.sidebar .widget { margin-bottom: 1.5rem; }
.sidebar__widgets { margin-top: 1.5rem; }
.widget-title, .widget h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45rem 0; border-top: 1px solid var(--line); }
.widget li:first-child { border-top: 0; }
.widget a { text-decoration: none; }
.wp-block-search__label { font-weight: 700; display: block; margin-bottom: 0.4rem; }
.wp-block-search__inside-wrapper { display: flex; gap: 0.5rem; }
.wp-block-search__input { flex: 1; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; }
.wp-block-search__button { min-height: 44px; margin: 0; padding: 0 1rem; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font: 600 0.9375rem var(--sans); cursor: pointer; }

/* Comments */
.comments-area { margin-top: 3rem; max-width: 68ch; }
.comments-area h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--line); }
.comment-meta { font-size: var(--step--1); color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit;
}
.comment-form .submit { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font: 600 0.9375rem var(--sans); cursor: pointer; }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.sticky, .bypostauthor, .gallery-caption { }

/* ------------------------------------------------------------------
   7. Footer
------------------------------------------------------------------ */
.site-footer { margin-top: 3rem; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr); gap: calc(var(--gap) * 1.5); padding-block: 3rem 2rem; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__about p { color: var(--ink-2); margin-top: 0.75rem; max-width: 44ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 3 160px; column-gap: 1.5rem; }
.footer-nav li { break-inside: avoid; padding: 0.3rem 0; }
.footer-nav a { text-decoration: none; color: var(--ink-2); }
.footer-nav a:hover { color: var(--accent); }
.site-footer__legal { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; color: var(--muted); font-size: var(--step--1); line-height: 1.6; }
.site-footer__legal p { max-width: 110ch; }

/* ------------------------------------------------------------------
   8. Motion & print
------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.strip, .site-header, .session, .sidebar, .article-aside, .site-footer, .related, .comments-area { display: none !important; }
	body { color: #000; background: #fff; }
}
