/* ==========================================================================
   Askara - clean editorial theme (light + dark)
   No frameworks, no web fonts, no icon fonts: system fonts + inline SVG.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--surface: #f5f5f2;
	--surface-2: #ebebe6;
	--text: #121316;
	--muted: #5d626b;
	--line: #e2e2dc;
	--line-strong: #121316;
	--accent: #e8711f;          /* Askara orange */
	--accent-ink: #b64f08;      /* orange for text on light (AA) */
	--brand: #0d8467;           /* Askara green */
	--brand-ink: #0a6b53;
	--link: #0a6b53;
	--on-accent: #ffffff;
	--shadow: 0 6px 24px rgba(0, 0, 0, .10);
	--radius: 10px;
	--wrap: 1240px;
	--gutter: 16px;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	color-scheme: light;
}
:root[data-theme="dark"] {
	--bg: #0f1113;
	--surface: #171a1d;
	--surface-2: #20242a;
	--text: #ececec;
	--muted: #a2a8b0;
	--line: #2a2f36;
	--line-strong: #ececec;
	--accent: #ff8a3d;
	--accent-ink: #ff9a57;
	--brand: #2fc29a;
	--brand-ink: #4fd6b0;
	--link: #4fd6b0;
	--on-accent: #111;
	--shadow: 0 6px 24px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--text);
	font: 400 1rem/1.55 var(--font-sans);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }
.sr-only { position: absolute; 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: 8px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 6px; z-index: 1000; font-weight: 600; }
.skip-link:focus { top: 8px; color: var(--on-accent); }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* ---------- Buttons / icon buttons ---------- */
.ib { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; color: inherit; }
.ib:hover { background: var(--surface-2); color: var(--text); }
.ib--lg { width: 44px; height: 44px; }
.ib--lg .ico { width: 24px; height: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; background: var(--accent); color: var(--on-accent); padding: .65em 1.2em; border-radius: 8px; font-weight: 700; min-height: 44px; }
.btn:hover { filter: brightness(.94); color: var(--on-accent); }

/* ---------- Top bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.topbar__in { display: flex; align-items: center; gap: 16px; min-height: 40px; }
.topbar__date { white-space: nowrap; }
.topbar__trending { display: flex; align-items: center; gap: 14px; overflow: hidden; white-space: nowrap; flex: 1; min-width: 0; }
.topbar__label { color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.topbar__trending a { color: var(--text); font-weight: 600; }
.topbar__trending a:hover { color: var(--accent-ink); }
.topbar__tools { display: flex; gap: 2px; margin-left: auto; }
.topbar__tools .ib { width: 32px; height: 32px; }
.topbar__tools .ico { width: 17px; height: 17px; }

/* ---------- Masthead ---------- */
.masthead { background: var(--bg); position: relative; }
.masthead__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 18px; }
.logo { justify-self: center; display: block; line-height: 0; grid-column: 2; }
.logo img { width: auto; height: 56px; }
.masthead__ad { display: none; }
.masthead__tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; grid-column: 3; }
.nav-open { display: none; grid-column: 1; justify-self: start; }

/* Theme switch */
.theme-switch { border: 0; background: none; padding: 4px; border-radius: 999px; }
.theme-switch__track { position: relative; display: block; width: 58px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.theme-switch__track .ico { position: absolute; top: 6px; width: 16px; height: 16px; color: var(--muted); z-index: 1; }
.theme-switch__sun { left: 7px; }
.theme-switch__moon { right: 7px; }
.theme-switch__thumb { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); transition: transform .25s ease; }
:root[data-theme="dark"] .theme-switch__thumb { transform: translateX(28px); }
:root[data-theme="light"] .theme-switch__sun { color: #fff; }
:root[data-theme="dark"] .theme-switch__moon { color: #111; }
.theme-switch__sun, .theme-switch__moon { transition: color .2s; }
.theme-switch__track .ico { z-index: 2; }
.theme-switch__thumb { z-index: 1; }

/* Search panel */
.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding-block: 14px; }
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.search-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- Main navigation ---------- */
.mainnav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-top: 3px solid var(--text); border-bottom: 1px solid var(--line); }
.mainnav.is-stuck { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.mainnav__list { display: flex; flex-wrap: wrap; column-gap: 0; justify-content: space-between; }
.mainnav__list > li { position: relative; display: flex; align-items: center; }
.mainnav__list > li > a { display: block; padding: 13px 7px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.mainnav__list > li > a:hover, .mainnav__list > li:focus-within > a { color: var(--accent-ink); }
.sub-toggle { display: inline-grid; place-items: center; width: 22px; height: 30px; margin-left: -8px; border: 0; background: none; padding: 0; color: var(--muted); }
.sub-toggle .ico { width: 14px; height: 14px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.mainnav .sub { position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); box-shadow: var(--shadow); padding: 6px 0; display: none; z-index: 60; }
.mainnav .has-sub:hover > .sub, .mainnav .has-sub.is-open > .sub { display: block; }
.mainnav .sub a { display: block; padding: 9px 16px; font-size: .9rem; font-weight: 600; }
.mainnav .sub a:hover { background: var(--surface); color: var(--accent-ink); }

/* ---------- Drawer (mobile) ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(88vw, 360px); background: var(--bg); overflow-y: auto; padding: 14px 16px 32px; box-shadow: var(--shadow); animation: slidein .22s ease; }
@keyframes slidein { from { transform: translateX(-100%); } to { transform: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer__head img { height: 40px; width: auto; }
.drawer__list { margin-top: 14px; }
.drawer__list > li { border-bottom: 1px solid var(--line); }
.drawer__list a { display: block; padding: 13px 4px; font-weight: 700; font-size: 1rem; }
.drawer__row { display: flex; align-items: center; justify-content: space-between; }
.drawer__row a { flex: 1; }
.drawer__row .sub-toggle { width: 44px; height: 44px; margin: 0; }
.drawer .sub { display: none; padding: 0 0 8px 14px; }
.drawer .has-sub.is-open > .sub { display: block; }
.drawer .sub a { font-weight: 500; padding: 9px 4px; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.main { padding-block: 24px 48px; min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.layout__aside { position: relative; }
.stack { display: grid; gap: 32px; align-content: start; min-width: 0; }
.ad { text-align: center; overflow: hidden; }
.ad:empty { display: none; }
.ad img { display: inline-block; max-width: 100%; height: auto; }
.ad-strip { padding-block: 24px; text-align: center; overflow: hidden; }
.ad-strip .wrap:empty { display: none; }
.banner-300x250 { max-width: 100%; overflow: hidden; }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 3px solid var(--text); padding-top: 10px; margin-bottom: 18px; }
.section-head__title { font: 800 .95rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; }
.section-head__more { font-size: .82rem; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 4px; }
.section-head__more .ico { width: 15px; height: 15px; }
.section-head--accent { border-top-color: var(--accent); }
.section-head--brand { border-top-color: var(--brand); }

/* ---------- Cards ---------- */
.kicker { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.kicker:hover { text-decoration: underline; }
.card { min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding-top: 10px; }
.card__title { font: 700 1.125rem/1.28 var(--font-serif); letter-spacing: -.005em; margin-block: 4px 0; }
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.card__title a:hover { color: inherit; background-size: 100% 1px; }
.card__excerpt { color: var(--muted); margin: 8px 0 0; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: 8px; font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.byline { font-weight: 700; color: var(--text); }
.dot { opacity: .6; }

.card--lead .card__title { font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.015em; }
.card--lead .card__media { aspect-ratio: 16 / 10; }
.card--lead .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 3; }
.card--row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--row .card__body { padding-top: 0; }
.card--row .card__media { aspect-ratio: 4 / 3; border-radius: 8px; }
.card--row .card__title { font-size: 1.02rem; }
.card--row.card--big { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; }
.card--row.card--big .card__title { font-size: 1.35rem; }
.card--mini { display: block; }
.card--mini .card__title { font-size: 1rem; }
.card--text .card__body { padding: 0; }

/* Grids */
.grid { display: grid; gap: 28px 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list { display: grid; }
.list > * { padding-block: 18px; border-bottom: 1px solid var(--line); }
.list > *:first-child { padding-top: 0; }
.list > *:last-child { border-bottom: 0; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.hero__side { display: grid; align-content: start; }
.hero__side > * { padding-block: 18px; border-bottom: 1px solid var(--line); }
.hero__side > *:first-child { padding-top: 0; }
.hero__side > *:last-child { border-bottom: 0; padding-bottom: 0; }
.hero__side .card--stack .card__title { font-size: 1.25rem; }

/* Latest feed */
.feed li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed__time { font-size: .75rem; color: var(--muted); font-weight: 700; padding-top: 3px; }
.feed__t { font: 700 1rem/1.3 var(--font-serif); display: block; margin-top: 2px; }

/* Ranked list */
.ranked li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.ranked li:last-child { border-bottom: 0; }
.ranked__n { font: 800 1.9rem/1 var(--font-serif); color: var(--accent); }
.ranked__t { display: block; font: 700 1rem/1.3 var(--font-serif); margin-top: 3px; }
.ranked__t:hover { text-decoration: underline; color: inherit; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.tags a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Widgets */
.social-row { display: flex; gap: 8px; }
.social-row .ib { border: 1px solid var(--line); }

/* Video strip */
.video-band { background: var(--surface); margin-block: 40px; padding-block: 32px; }
.video-band .section-head { border-top-color: var(--accent); }
.video-band__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.video-band__list { display: grid; gap: 16px; align-content: start; }
.playbadge { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.playbadge span { width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .85); }
.playbadge .ico { width: 24px; height: 24px; margin-left: 3px; }
.card__media--rel { position: relative; }

/* ---------- Page headers ---------- */
.crumbs { margin-bottom: 18px; font-size: .82rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .5; }
.crumbs a:hover { color: var(--accent-ink); }
.page-head { border-bottom: 3px solid var(--text); padding-bottom: 14px; margin-bottom: 26px; }
.page-head__title { font: 800 clamp(1.8rem, 1.3rem + 2vw, 2.8rem)/1.1 var(--font-serif); letter-spacing: -.02em; }
.page-head__sub { margin: 6px 0 0; color: var(--muted); }

/* ---------- Pagination (markup produced by model files) ---------- */
.paging { margin-top: 36px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination li a, .pagination li span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; font-size: .9rem; }
.pagination li a:hover { border-color: var(--accent); color: var(--accent-ink); }
.pagination li.active a, .pagination li.current a { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination .fa { display: inline-block; width: .6em; height: .6em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.pagination .fa-angle-left { transform: rotate(135deg); margin-left: .25em; }
.pagination .fa-angle-right { transform: rotate(-45deg); margin-right: .25em; }
.pagination .mdicon { font-size: 0; }
.pagination li.disabled a, .pagination li a[href="#"]:not(.current) { opacity: .45; }

/* ---------- Article ---------- */
.article { max-width: 760px; }
.article__head { margin-bottom: 20px; }
.article__kick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.article__pre { font: 600 1.05rem/1.3 var(--font-serif); color: var(--muted); margin-bottom: 6px; }
.article__title { font: 800 clamp(1.9rem, 1.2rem + 3vw, 3.1rem)/1.1 var(--font-serif); letter-spacing: -.02em; text-wrap: balance; }
.article__sub { font: 400 1.2rem/1.45 var(--font-serif); color: var(--muted); margin-top: 12px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 18px; padding-block: 12px; border-block: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.article__meta strong, .article__meta a.byline { color: var(--text); }
.article__fig { margin: 0 0 26px; }
.article__fig img, .article__fig iframe { width: 100%; border-radius: var(--radius); }
.article__fig figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prose { font: 400 1.1875rem/1.75 var(--font-serif); }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font: 800 1.6rem/1.25 var(--font-serif); margin: 1.8em 0 .6em; }
.prose h3 { font: 700 1.3rem/1.3 var(--font-serif); margin: 1.6em 0 .5em; }
.prose h4 { font: 700 1.1rem/1.3 var(--font-serif); margin: 1.4em 0 .4em; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose img { border-radius: 8px; margin-inline: auto; height: auto !important; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-caption-text { font: 400 .85rem/1.45 var(--font-sans); color: var(--muted); margin-top: 6px; }
.prose ul, .prose ol { margin: 0 0 1.25em 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-style: italic; color: var(--muted); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose iframe { display: block; margin: 1.4em auto; border: 0; width: 100%; }
.prose iframe[src*="youtube"], .prose iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font: 400 .95rem/1.5 var(--font-sans); margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose th { background: var(--surface); }
.prose pre, .prose code { font: .9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border-radius: 6px; }
.prose code { padding: .15em .35em; }
.prose pre { padding: 14px; overflow-x: auto; }
.prose [style*="width"] { max-width: 100% !important; }
.prose .align-center, .prose center { text-align: center; }
.article__editor { font: 700 .9rem/1.4 var(--font-sans); color: var(--muted); margin-top: 24px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 24px; }
.share__label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .85rem; font-weight: 700; }
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent-ink); }
.share .ico { width: 17px; height: 17px; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-block: 36px; }
.pn a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.pn a:hover { border-color: var(--accent); }
.pn small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--accent-ink); margin-bottom: 6px; }
.pn strong { font: 700 1rem/1.3 var(--font-serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pn .pn__next { text-align: right; grid-column: 2; }

.comments { margin-top: 40px; }
.comments .fb-comments, .comments .fb-comments span, .comments .fb-comments iframe { max-width: 100% !important; }
.admin-link { display: inline-block; margin-top: 20px; font-size: .8rem; font-weight: 700; color: var(--muted); border: 1px dashed var(--line); padding: 6px 12px; border-radius: 6px; }

/* Author / reporter box */
.person { display: flex; gap: 20px; align-items: center; padding: 22px; background: var(--surface); border-radius: var(--radius); margin-bottom: 32px; }
.person img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; }
.person h1 { font: 800 1.6rem/1.2 var(--font-serif); }
.person p { margin: 4px 0 0; color: var(--muted); }
.person__count { font-size: .8rem; font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }

/* Microsite tabs */
.subnav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 16px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--accent-ink); border-color: var(--accent); }

/* Index (date archive) */
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 16px; background: var(--surface); border-radius: var(--radius); margin-bottom: 24px; }
.filter label { display: grid; gap: 4px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filter select, .filter input[type=date] { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; font: inherit; }
.timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 800; font-size: .85rem; color: var(--accent-ink); padding-top: 3px; }
.timeline a.t { font: 700 1.1rem/1.3 var(--font-serif); display: block; }

/* 404 */
.notfound { text-align: center; padding-block: 60px; }
.notfound__code { font: 800 clamp(5rem, 20vw, 9rem)/1 var(--font-serif); color: var(--accent); }
.notfound h1 { font: 800 1.8rem/1.2 var(--font-serif); margin-bottom: 10px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; }
.footer__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; padding-block: 36px; }
.footer__brand p { color: var(--muted); margin: 10px 0 14px; }
.footer__social { display: flex; gap: 6px; }
.footer__social .ib { border: 1px solid var(--line); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; font-weight: 600; font-size: .92rem; }
.footer__nav a:hover { color: var(--accent-ink); }
.footer__copy { border-top: 1px solid var(--line); padding-block: 16px; font-size: .82rem; color: var(--muted); text-align: center; }

.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: var(--shadow); z-index: 90; }
.to-top .ico { width: 22px; height: 22px; }

/* ---------- Responsive ---------- */
@media (min-width: 1100px) {
	.masthead__in { grid-template-columns: 300px 1fr 300px; }
	.logo { justify-self: start; grid-column: 1; }
	.masthead__ad { display: block; grid-column: 2; text-align: center; max-height: 110px; overflow: hidden; }
	.masthead__ad:empty { display: none; }
	.masthead__tools { grid-column: 3; }
}
@media (max-width: 1239px) {
	.mainnav__list > li > a { padding-inline: 5px; font-size: .7rem; letter-spacing: .02em; }
}
@media (max-width: 1099px) {
	.masthead__ad { display: none; }
}
@media (max-width: 1023px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.article { max-width: none; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.video-band__grid { grid-template-columns: minmax(0, 1fr); }
	.video-band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mainnav { display: none; }
	.nav-open { display: inline-grid; }
	.topbar__trending { display: none; }
	.topbar__tools { margin-left: auto; }
}
@media (max-width: 860px) {
	.hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
	:root { --gutter: 14px; }
	.main { padding-block: 16px 36px; }
	.logo img { height: 46px; }
	.topbar__date { font-size: .75rem; }
	.topbar__tools { display: none; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
	.video-band__list { grid-template-columns: minmax(0, 1fr); }
	.card--row { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
	.card--row.card--big { grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
	.card--row.card--big .card__title { font-size: 1.05rem; }
	.card--row.card--big .card__excerpt { display: none; }
	.prose { font-size: 1.125rem; line-height: 1.7; }
	.person { flex-direction: column; text-align: center; }
	.pn { grid-template-columns: minmax(0, 1fr); }
	.pn .pn__next { grid-column: 1; }
	.masthead__in { padding-block: 12px; }
	.share a span { display: none; }
	.share a { padding: 0 12px; }
}

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .masthead__ad, .mainnav, .drawer, .ad, .ad-strip, .layout__aside, .share, .to-top, .comments, .pn, .footer, .nav-open, .masthead__tools { display: none !important; }
	body { background: #fff; color: #000; }
	.layout { display: block; }
	.prose a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
