/*
Theme Name: 0 Hour Media
Theme URI: https://0hour.media
Description: The 0 Hour Media website: Indian business, startup and AI news, laid out as a phone-first news front page. White, black and yellow highlighter system with the ring-and-tick zero. One reading face (Inter, with optical sizes) for every size.
Version: 0.6.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: ohm
License: GPL-2.0-or-later
*/

/* ---------- Fonts (self-hosted: no third-party requests, faster first paint) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-normal-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-normal-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Archivo Black is used only for the HOUR wordmark in the logo. */
@font-face {
	font-family: "Archivo Black";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/archivo-black-normal-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
	--bg: #ffffff;
	--ink: #000000;
	--ink-2: #1f1f1f;
	--mut: #555555;      /* 7.5:1 on white */
	--mut-2: #6b6b6b;    /* meta text, 5.3:1 on white */
	--rule: #e6e6e6;     /* hairlines */
	--rule-2: #cfcfcf;   /* control borders */
	--tint: #f5f5f5;
	--hl: #ffe500;       /* the highlighter: key numbers, the logo tick, small active accents */

	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-logo: "Archivo Black", var(--font);

	--wrap: 1280px;
	--measure: 40rem;    /* ~68 characters of body text */
	--gutter: 16px;

	--mast-h: 50px;      /* masthead row; the sticky header is masthead + tab row (<= 100px on phones) */
	--tabs-h: 44px;
	--thumb: 80px;       /* list thumbnails */

	--t-meta: 0.8125rem;
	--t-label: 0.6875rem;

	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--fast: 200ms;
	--slow: 650ms;
}
@media (min-width: 700px) { :root { --gutter: 28px; --thumb: 96px; } }
@media (min-width: 900px) { :root { --mast-h: 76px; --tabs-h: 48px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + var(--tabs-h) + 12px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.5;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 760; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--hl); color: #000; padding: 12px 16px; font-weight: 700; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Small type roles ---------- */
.label {
	display: inline-block; font-size: var(--t-label); font-weight: 700; letter-spacing: 0.1em;
	text-transform: uppercase; line-height: 1.3; color: var(--ink);
}
a.label:hover { text-decoration: underline; text-underline-offset: 0.3em; }
.meta { font-size: var(--t-meta); color: var(--mut-2); line-height: 1.4; font-variant-numeric: tabular-nums; }
.meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: 0.24em; margin: 0 0.5em; opacity: 0.7; }
.meta .label { font-size: var(--t-label); color: var(--ink); }
.meta__num { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.dek { color: var(--ink-2); }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.14em; }

/* ---------- The highlighter ----------
 * A flat yellow fill painted as a background image so it can "draw" left to right.
 * Without JS (or with reduced motion) it is simply full. */
.num, mark, .hl {
	background-color: transparent;
	background-image: linear-gradient(var(--hl), var(--hl));
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: 100% 100%;
	color: #000;
}
mark, .hl { padding: 0.02em 0.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.num {
	display: inline-block; max-width: 100%; font-weight: 780; line-height: 1; letter-spacing: -0.03em;
	padding: 0.1em 0.18em 0.06em; font-variant-numeric: lining-nums tabular-nums; overflow-wrap: break-word;
}
/* Quiet numbers: the black figure with a thin yellow rule beneath (the loud chip is kept to one per screen). */
.num--quiet { padding: 0 0 0.1em; background-position: 0 100%; background-size: 100% 0.14em; letter-spacing: -0.02em; }
.ohm-js .num, .ohm-js .story-body mark { transition: background-size var(--slow) var(--ease) 80ms; }
.ohm-js .num:not(.is-drawn), .ohm-js .story-body mark:not(.is-drawn) { background-size: 0% 100%; }
.ohm-js .num--quiet:not(.is-drawn) { background-size: 0% 0.14em; }
/* On the black band the figure stays readable (white) until the yellow arrives. */
.ohm-js .numbers .num { transition: background-size var(--slow) var(--ease) 80ms, color var(--fast) var(--ease) 220ms; }
.ohm-js .numbers .num:not(.is-drawn) { color: #fff; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.42em; color: var(--ink); line-height: 1; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 1.05em; height: 1.05em; flex: none; overflow: visible; }
.brand__word { display: flex; flex-direction: column; gap: 0.24em; }
.brand__hour { font-family: var(--font-logo); font-size: 1em; letter-spacing: 0.02em; }
.brand__media { font-size: 0.26em; font-weight: 600; letter-spacing: 0.24em; color: var(--mut); }
.brand--light { color: #fff; }
.brand--light .brand__media { color: #a6a6a6; }
.ohm-js .masthead .brand__tick { transform-box: view-box; transform-origin: 50px 50px; animation: ohm-tick 700ms var(--ease) 120ms both; }
@keyframes ohm-tick {
	0%   { transform: rotate(-38deg); opacity: 0; }
	35%  { opacity: 1; }
	100% { transform: rotate(0deg); opacity: 1; }
}

/* ---------- Header: one slim sticky bar (masthead row + section tabs) ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.masthead .wrap { display: flex; align-items: center; gap: 12px; height: var(--mast-h); }
.masthead__title { margin: 0; font-size: inherit; letter-spacing: 0; line-height: 1; }
.masthead .brand { font-size: 1.5rem; }
.masthead .brand__media { display: none; } /* compact on phones; the full lockup returns on wide screens */
.masthead__date { margin: 0 0 0 auto; font-size: 0.75rem; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.masthead__date > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: 0.24em; margin: 0 0.5em; opacity: 0.7; }
.masthead__updated time { color: var(--ink); font-weight: 650; }
.masthead__long { display: none; }
.masthead__statement { display: none; margin: 0; }

.site-nav { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); background: var(--bg); }
.site-nav .wrap { display: flex; align-items: center; gap: 8px; }
.site-nav__mark { display: none; }
.site-nav ul {
	list-style: none; display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
	margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 12px); scroll-padding: 0 var(--gutter);
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { flex: none; }
.site-nav li a {
	position: relative; display: flex; align-items: center; height: var(--tabs-h); padding: 0 12px;
	font-size: 0.875rem; font-weight: 650; white-space: nowrap; color: var(--ink-2);
}
.site-nav li a::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--ink);
	transform: scaleX(0); transform-origin: 0 50%; transition: transform 240ms var(--ease);
}
.site-nav li a:hover { text-decoration: none; color: var(--ink); }
.site-nav li a:hover::after { transform: scaleX(1); }
.site-nav li.current-menu-item a, .site-nav li.current-cat a, .site-nav li.is-current a { color: var(--ink); font-weight: 760; }
.site-nav li.current-menu-item a::after, .site-nav li.current-cat a::after, .site-nav li.is-current a::after { transform: scaleX(1); background: var(--hl); box-shadow: 0 1px 0 var(--ink); }

.search-toggle { position: relative; flex: none; }
.search-toggle summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 2px; transition: background-color var(--fast) var(--ease); }
.search-toggle summary:hover { background: var(--tint); }
.search-toggle summary::-webkit-details-marker { display: none; }
.search-toggle svg { width: 20px; height: 20px; stroke-width: 2.25; }
.search-toggle[open] summary { background: var(--tint); }
.search-toggle[open] .search-pop { display: block; animation: ohm-pop 200ms var(--ease) both; }
@keyframes ohm-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.search-pop { display: none; position: absolute; right: 0; top: calc(100% + 4px); width: min(calc(100vw - 2 * var(--gutter)), 400px); background: #fff; border: 1px solid var(--ink); padding: 12px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.25); z-index: 40; }
.search-toggle--mast { margin-right: -10px; }
.search-toggle--nav { display: none; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; min-height: 46px; font: inherit; font-size: 1rem; padding: 10px 12px;
	border: 1px solid var(--rule-2); border-radius: 0; background: #fff; color: var(--ink);
}
.search-form input[type="search"]:hover { border-color: #8a8a8a; }
.search-form input[type="search"]:focus { border-color: var(--ink); outline: none; box-shadow: inset 0 -2px 0 var(--hl); }
.search-form button, .btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
	font: inherit; font-size: 0.9375rem; font-weight: 650; padding: 10px 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
}
.search-form button:hover, .btn:hover { background: #fff; color: var(--ink); text-decoration: none; }
.search-form button:active, .btn:active { background: var(--hl); color: #000; }

@media (min-width: 560px) {
	.masthead__long { display: inline; }
	.masthead__short { display: none; }
}
@media (min-width: 900px) {
	/* Wide screens: the masthead scrolls away and the tab row stays (the header sticks at minus the masthead height). */
	.site-header { top: calc(-1 * var(--mast-h)); }
	.masthead .brand { font-size: 2.125rem; }
	.masthead .brand__media { display: block; }
	.masthead__date { margin-left: 28px; padding-left: 28px; border-left: 1px solid var(--rule); align-self: center; line-height: 2; }
	.masthead__statement {
		display: block; margin-left: auto; text-align: right; font-size: 0.9375rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em;
	}
	.masthead__statement span { display: block; color: var(--mut); font-weight: 450; }
	.search-toggle--mast { display: none; }
	.search-toggle--nav { display: block; margin-right: -10px; }
	.site-nav ul { margin: 0 0 0 -12px; padding: 0; -webkit-mask-image: none; mask-image: none; }
	.site-nav__mark { display: flex; opacity: 0; width: 0; overflow: hidden; transition: opacity var(--fast) var(--ease); }
	.site-nav.is-stuck .site-nav__mark { opacity: 1; width: auto; margin-right: 16px; }
	.site-nav__mark .brand { font-size: 1.125rem; }
}

/* ---------- Shared list furniture ---------- */
.rail-title {
	display: flex; align-items: center; gap: 8px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
	padding: 10px 0 2px; border-top: 2px solid var(--ink);
}
.more-link {
	display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 0.875rem; font-weight: 700; color: var(--ink);
}
.more-link span { font-size: 1.25em; line-height: 1; transition: transform var(--fast) var(--ease); }
.more-link:hover span { transform: translateX(3px); }

/* ---------- Cards ---------- */
.card { position: relative; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the tap target */
.card .label { position: relative; z-index: 1; padding: 13px 0; margin: -13px 0; } /* 44px hit area, layout unchanged */
.card__title { font-weight: 740; letter-spacing: -0.015em; color: var(--ink); }
.card__title a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: background-size 320ms var(--ease); }
.card__title a:hover, .card__title a:focus-visible { text-decoration: none; background-size: 100% 1px; }
.card .meta { margin-top: 6px; }
.card .dek { font-size: 0.9375rem; line-height: 1.45; color: var(--mut); margin: 6px 0 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Story art: drawn from the story's own data. Fixed boxes, so nothing shifts as pages load. */
.art { margin: 0; position: relative; overflow: hidden; background: var(--tint); }
.art svg, .art .art__photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.art svg { transform-origin: 70% 50%; transition: transform var(--slow) var(--ease); }
.card:hover .art svg { transform: scale(1.03); }
.art--lead { aspect-ratio: 5 / 2; }
.art--banner { aspect-ratio: 3 / 1; }
.art--card { aspect-ratio: 16 / 9; }
.art--thumb { aspect-ratio: 1; width: var(--thumb); flex: none; }
.art--white { outline: 1px solid var(--rule); outline-offset: -1px; }
.art--dark { background: #0b0b0b; }

/* Second and item: headline left, square thumbnail right */
.second, .item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); }
.card__text { flex: 1; min-width: 0; }
.second .card__title, .item .card__title { font-size: 1.0625rem; line-height: 1.26; }
.second .dek { display: none; }

/* Line: text-only headline */
.line { padding: 12px 0; border-top: 1px solid var(--rule); }
.line .card__title { font-size: 1rem; line-height: 1.3; font-weight: 680; }
.line .meta { margin-top: 4px; }

/* ---------- Homepage ---------- */
.front-top { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 14px; }

/* Lead */
.lead .art { margin: 0 0 12px; }
.lead .meta { margin: 0 0 6px; }
.lead .card__title { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); line-height: 1.1; letter-spacing: -0.024em; font-weight: 780; }
.lead .card__title a { background-size: 0% 2px; }
.lead .card__title a:hover { background-size: 100% 2px; }
.lead__num { margin: 10px 0 0; }
.lead__num .num { font-size: 1.5rem; margin-left: -0.18em; }
.lead .dek { font-size: 1rem; line-height: 1.45; color: var(--ink-2); margin: 8px 0 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.seconds { margin-top: 14px; }

/* Latest list */
.latest { margin-top: 20px; }
.latest ol { list-style: none; counter-reset: none; }
.latest__item { padding: 11px 0; border-top: 1px solid var(--rule); }
.latest .rail-title + ol .latest__item:first-child { border-top: 0; }
.latest__item .meta { margin: 0 0 3px; }
.latest__item time { color: var(--ink); font-weight: 700; }
.latest__item .card__title { font-size: 1rem; line-height: 1.3; font-weight: 680; }

/* Numbers strip: compact, scrolls sideways on phones */
.numbers { background: var(--ink); color: #fff; margin-top: 28px; padding: 4px 0 18px; }
.numbers .rail-title { border-top: 0; color: #fff; padding-top: 14px; }
.numbers__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 0;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
	margin: 6px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter);
}
.numbers__track::-webkit-scrollbar { display: none; }
.numbers__track:focus-visible { outline-color: #fff; }
.numcard { scroll-snap-align: start; padding: 8px 18px 4px 0; margin-right: 18px; border-right: 1px solid #333; }
.numcard:last-child { border-right: 0; margin-right: 0; }
.numcard .num { font-size: 1.625rem; margin-left: -0.18em; }
.numcard .card__title { font-size: 0.9375rem; line-height: 1.35; font-weight: 560; letter-spacing: -0.005em; margin-top: 10px; color: #fff; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.numcard .meta { color: #a8a8a8; }
.numcard .meta .label { color: #d6d6d6; }

/* Section blocks */
.sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 40px; padding-top: 24px; }
.secblock { padding-top: 4px; }
.secblock__head { display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--ink); }
.secblock__title { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.secblock__title a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.secblock__title a:hover { text-decoration: none; }
.secblock__icon { width: 18px; height: 18px; }
.secblock__list { list-style: none; }
.secblock__list > .card:first-child { border-top: 0; padding-top: 6px; }
.secblock .more-link { margin-top: 2px; }

@media (min-width: 700px) {
	.front-top { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding-top: 24px; }
	.front-top > .lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 24px; align-items: start; padding-bottom: 8px; }
	.front-top > .lead .art { margin: 0; }
	.lead .dek { -webkit-line-clamp: 3; }
	.seconds { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.second .dek { display: -webkit-box; }
	.latest { grid-column: 1 / -1; }
	.latest ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
	.latest .rail-title + ol .latest__item:nth-child(2) { border-top: 0; }
	.numbers__track { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 6px 0 0; padding: 0; }
	.numcard { margin-right: 0; padding: 8px 18px 4px; }
	.numcard:first-child { padding-left: 0; }
	.sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Article ---------- */
.story-head { max-width: 50rem; padding-top: 16px; padding-bottom: 16px; }
.story-head .kicker { margin: 0; }
.story-head .kicker .label { padding: 13px 0; margin: -13px 0; }
.story-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 790; margin-top: 8px; }
.story-head .dek { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.45; margin: 12px 0 0; max-width: 42rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 14px; padding-top: 6px; border-top: 1px solid var(--rule); }
.byline .meta { margin: 0; padding: 6px 0; }
.byline strong { color: var(--ink); font-weight: 700; }
.meta__icon { display: inline-flex; align-items: center; gap: 4px; }
.meta__icon .icon { width: 14px; height: 14px; }

/* Share: a compact row of icon buttons, each a 44px target */
.share-row { list-style: none; display: flex; gap: 4px; }
.share-row a, .share-row button {
	display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; font: inherit;
}
.share-row a:hover, .share-row button:hover { border-color: var(--ink); text-decoration: none; }
.share-row a:active, .share-row button:active, .share-row button.is-done { background: var(--hl); border-color: var(--ink); }
.share-row .icon { width: 19px; height: 19px; }
.share-row__done { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.share-row--top { margin-left: -1px; }

.story-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 8px 0 40px; }
.story-grid > * { min-width: 0; }
.story-grid > .art--banner { max-width: var(--measure); }

/* 30-second read */
.summary { border-top: 2px solid var(--ink); padding-top: 10px; }
.summary__title { font-size: var(--t-label); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.summary ul { list-style: none; display: grid; gap: 10px; counter-reset: pt; }
.summary li { counter-increment: pt; position: relative; padding-left: 28px; font-size: 1.0625rem; line-height: 1.45; }
.summary li::before { content: counter(pt, decimal-leading-zero); position: absolute; left: 0; top: 0.3em; font-size: 0.6875rem; font-weight: 800; color: var(--mut-2); font-variant-numeric: tabular-nums; }

/* Snapshot card */
.snapshot { border: 1px solid var(--rule); border-top: 2px solid var(--ink); padding: 10px 14px 4px; background: #fff; }
.snapshot__title { font-size: var(--t-label); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.snapshot .num { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-left: -0.18em; }
.snapshot dl { margin: 12px 0 0; display: grid; }
.snapshot dl div { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.snapshot dt { font-size: var(--t-meta); font-weight: 500; color: var(--mut); line-height: 1.4; }
.snapshot dd { margin: 0; font-size: 0.9375rem; font-weight: 650; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Body */
.story-body { font-size: 1.0625rem; line-height: 1.62; max-width: var(--measure); color: var(--ink-2); }
.story-body p { margin-bottom: 1.1em; }
.story-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: #8a8a8a; }
.story-body a:hover { text-decoration-color: currentColor; color: var(--ink); }
.story-body h2 { font-size: 1.375rem; margin: 1.6em 0 0.5em; color: var(--ink); }
.story-body h3 { font-size: 1.1875rem; margin: 1.4em 0 0.5em; color: var(--ink); }
.story-body ul, .story-body ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.story-body li { margin-bottom: 0.4em; }
.story-body li::marker { color: var(--mut-2); }
.story-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--ink); font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
.story-body figure { margin: 1.6em 0; }
.story-body figcaption, .wp-caption-text { font-size: var(--t-meta); color: var(--mut); margin-top: 8px; }
.story-body mark { font-weight: 650; }
.story-body img, .story-body iframe, .story-body video, .story-body table { max-width: 100%; }

.block-title { font-size: var(--t-label); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 10px; border-top: 2px solid var(--ink); margin-bottom: 12px; }
.why, .data, .share { max-width: var(--measure); }
.why p { font-size: 1.125rem; line-height: 1.5; margin: 0; }

/* Data table */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.data caption { caption-side: top; text-align: left; font-weight: 700; font-size: 1rem; padding-bottom: 10px; }
.data th, .data td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule); overflow-wrap: break-word; }
.data thead th { font-size: var(--t-label); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); border-bottom-color: var(--ink); }
.data td:first-child { font-weight: 650; }

/* Keep reading: More in section + Latest */
.after-story { border-top: 1px solid var(--rule); padding: 20px 0 8px; }
.after-story__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; }
.after-story .latest { margin-top: 0; }
.list--tight > .card:first-child { border-top: 0; }

@media (min-width: 900px) {
	.story-head { padding-top: 28px; padding-bottom: 20px; }
	.story-body { font-size: 1.125rem; line-height: 1.65; }
	.after-story__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* Reading progress (articles) */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; background: var(--hl); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Section, archive, search, plain pages ---------- */
.page-head { padding: 24px 0 12px; }
.page-head--compact { display: flex; align-items: center; gap: 12px; padding: 16px 0 6px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.page-head--compact > div { flex: 1; min-width: 0; }
.page-head h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -0.028em; line-height: 1.05; font-weight: 800; }
.page-head p { color: var(--mut); font-size: 0.9375rem; line-height: 1.45; margin: 4px 0 0; max-width: 40rem; }
.page-head .label { color: var(--mut); }
.page-head__icon { width: 34px; height: 34px; stroke-width: 1.5; color: var(--ink); }
.page-head__page { font-size: var(--t-meta); color: var(--mut); font-weight: 650; }
.page-head--search { display: block; }
.page-head--search .meta { margin-top: 2px; }
.page-head .search-form { margin: 12px 0 10px; max-width: 34rem; }
.page-head--404 .num { font-size: 2.5rem; margin: 0 0 12px -0.18em; }
.page-head--404 h1 { margin-bottom: 6px; }

.list { list-style: none; max-width: 52rem; }
.list > .card:first-child { border-top: 0; }
/* Section page: the newest story a little bigger */
.feature { padding: 12px 0 16px; border-top: 1px solid var(--rule); }
.feature .art { margin-bottom: 12px; }
.feature .card__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -0.022em; }
.feature__num { margin: 0 0 6px; }
.feature__num .num { font-size: 1.375rem; }
.feature .dek { -webkit-line-clamp: 2; font-size: 1rem; margin-top: 8px; }
@media (min-width: 700px) {
	.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 20px; }
	.feature .art { margin: 0; }
	.item .card__title { font-size: 1.1875rem; }
	.page-head--compact { padding-top: 24px; }
}

.latest--page { max-width: 40rem; margin: 8px 0 24px; }

.pagination { padding: 20px 0 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--rule-2); font-weight: 650; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pagination .page-numbers.current { background: var(--hl); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); text-decoration: none; }
.pagination .dots { border-color: transparent; }

.page-body { padding-bottom: 56px; }
.page-body .page-head { border-bottom: 2px solid var(--ink); margin-bottom: 20px; padding-bottom: 12px; }
.page-body .story-body { max-width: var(--measure); }
.empty { padding: 20px 0 56px; max-width: 40rem; color: var(--mut); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }

/* ---------- Reveal on scroll (wide screens only, items below the fold, only with motion) ---------- */
.ohm-live .reveal { opacity: 0; transform: translateY(12px); transition: opacity 450ms var(--ease), transform 550ms var(--ease); }
.ohm-live .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; margin-top: 40px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 28px; }
.site-footer .brand { font-size: 2rem; }
.footer-about { color: #c9c9c9; font-size: 0.9375rem; line-height: 1.55; max-width: 26rem; margin-top: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.footer-grid > :first-child { grid-column: 1 / -1; }
.footer-col h2 { font-size: var(--t-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #a6a6a6; margin-bottom: 4px; }
.footer-col ul { list-style: none; display: grid; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; font-weight: 520; color: #fff; }
.footer-col a:hover { color: var(--hl); text-decoration: none; }
.footer-social { gap: 10px; }
.footer-social .icon { width: 18px; height: 18px; color: #a6a6a6; }
.footer-social:hover .icon { color: #fff; }
.footer-base { border-top: 1px solid #2e2e2e; margin-top: 28px; padding-top: 16px; font-size: 0.75rem; color: #a6a6a6; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; letter-spacing: 0.02em; }
@media (min-width: 800px) {
	.footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
	.footer-grid > :first-child { grid-column: auto; }
}

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image img { height: auto; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.num, mark, .hl { background-size: 100% 100% !important; }
	.num--quiet { background-size: 100% 0.14em !important; }
	.reveal { opacity: 1 !important; transform: none !important; }
}

@media print {
	.site-nav, .share, .share-row, .after-story, .site-footer, .search-toggle, .read-progress { display: none !important; }
	.site-header { position: static; }
	.story-grid { display: block; }
	.num, mark { background: none; border: 2px solid #000; }
}

/* Pictures made for a story: small "Illustration" tag, bottom left. */
.art--photo { position: relative; background: var(--tint, #f4f4f4); }
.art__tag {
	position: absolute; right: 6px; bottom: 6px; z-index: 1;
	font-size: 9px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
	padding: 3px 5px; border-radius: 2px; background: rgba(0, 0, 0, 0.55); color: rgba(255, 255, 255, 0.92);
	pointer-events: none;
}

/* Phones: pictures in the natural news ratio, never letterboxed. */
@media (max-width: 760px) {
	.art--lead, .art--banner { aspect-ratio: 16 / 9; }
}
.art .art__photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Latest list: a small picture beside each headline. */
.latest__item { display: flex; gap: 12px; align-items: flex-start; }
.latest__item .card__text { flex: 1; min-width: 0; }
.latest__item .art--thumb { width: 64px; flex: none; }

/* ==========================================================================
   Desktop and tablet grid (0.6.0). Phones (below 768px) are unchanged: every rule
   below is either inside a min-width: 768px / 1024px query or hides an element
   that only exists for desktop.
   One grid for every page on desktop: a centred container (1280px max, 1200px of
   content), 12 columns, 32px gutters. Main column = 8 columns, rail = 4 columns
   (at least 340px).
   ========================================================================== */
.card__pic, .card .card__deskdek, .latest__all, .story-rail, .section-rail { display: none; }
.front-top .latest__item:nth-child(n+9) { display: none; } /* the homepage list carries two spare stories for wide screens */

/* Tablet (768-1023px): balanced single column pages. */
@media (min-width: 768px) {
	.list { max-width: none; }
	/* An odd section block spans the row, so the 2-column grid never ends on a hole. */
	.sections > .secblock:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.story-layout { max-width: 46rem; }
	/* Section blocks (tablet and desktop): picture, headline, three more headlines; rows align. */
	.secblock { display: flex; flex-direction: column; }
	.secblock__list { flex: 1; }
	.secblock .more-link { margin-top: 4px; }
	.item--pic { display: block; padding-top: 8px; }
	.item--pic .card__pic { display: block; aspect-ratio: 16 / 9; margin-bottom: 12px; }
	.item--pic > .art--thumb { display: none; }
	.secblock .item--pic .card__title { font-size: 1.1875rem; line-height: 1.22; }
	/* A section with one or two stories: a taller picture and the full dek, so its block fills the row. */
	.secblock--thin .item--pic .card__pic { aspect-ratio: 4 / 3; }
	.secblock--thin .item--pic .card__title { font-size: 1.375rem; line-height: 1.18; }
	.secblock--thin .card .card__deskdek { display: -webkit-box; -webkit-line-clamp: 6; font-size: 1rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
	.story-layout { margin: 0 auto; }
	.story-body, .why, .data, .share { max-width: none; }
	.story-grid > .art--banner { max-width: none; }
	.story-grid > .art--banner.art--photo { aspect-ratio: 16 / 9; }
}

@media (min-width: 1024px) {
	:root { --col-gap: 32px; --rail: minmax(340px, 4fr); }

	/* ---- Homepage, above the fold: lead + top stories (8 cols) | Latest rail (4 cols) ---- */
	.front-top {
		grid-template-columns: minmax(0, 8fr) var(--rail); grid-template-rows: auto 1fr;
		column-gap: var(--col-gap); align-items: start; padding-top: 28px;
	}
	.front-top > .lead { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
	.front-top > .lead .art { margin: 0 0 16px; aspect-ratio: 2 / 1; }
	.lead .card__title { font-size: clamp(2.125rem, 1.2rem + 1.5vw, 2.625rem); line-height: 1.08; }
	.lead__num .num { font-size: 1.875rem; }
	.lead .dek { font-size: 1.125rem; -webkit-line-clamp: 2; max-width: 46rem; }
	.seconds { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); margin-top: 20px; }
	.second .card__title { font-size: 1.0625rem; }
	.second .dek { -webkit-line-clamp: 2; }
	.front-top > .latest { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
	.front-top .latest .rail-title { padding-top: 8px; }
	.latest ol { display: block; }
	.latest .rail-title + ol .latest__item:nth-child(2) { border-top: 1px solid var(--rule); }
	.latest__item { padding: 12px 0; gap: 14px; }
	.latest__item .art--thumb { width: 72px; }
	/* The rail stops level with the lead column (site.js fits it; 8 without JS); the rest is one click away. */
	.front-top .latest--fit .latest__item:nth-child(n+9) { display: flex; }
	.front-top .latest .latest__item[hidden] { display: none; }
	.latest__all { display: inline-flex; border-top: 1px solid var(--rule); width: 100%; }

	/* ---- Numbers band: full width, unchanged ---- */
	.numbers { margin-top: 36px; }

	/* ---- Section blocks: one aligned row (picture, headline, three more headlines) ---- */
	.sections { gap: 0 var(--col-gap); padding-top: 36px; align-items: stretch; }
	.sections--n2, .sections--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.sections--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sections--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
	.sections--n5 > .secblock { grid-column: span 2; }
	.sections--n5 > .secblock:nth-child(n+4) { grid-column: span 3; }
	.sections > .secblock:last-child:nth-child(odd) { grid-column: auto; }
	.sections--n5 > .secblock:last-child:nth-child(odd) { grid-column: span 3; }
	.sections--n1 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
	.card .card__deskdek { display: -webkit-box; -webkit-line-clamp: 3; }

	/* ---- Article: main column (header + story) | rail (snapshot, More in section) ---- */
	.story-layout { display: grid; grid-template-columns: minmax(0, 8fr) var(--rail); column-gap: clamp(40px, 4.5vw, 72px); max-width: none; align-items: start; }
	.story-main { min-width: 0; }
	.story-head { max-width: none; }
	.story-head .dek { max-width: 46rem; }
	.story-grid { padding-top: 12px; }
	.story-grid > .snapshot-wrap { display: none; }
	.story-body, .why, .data, .share { max-width: 45rem; }
	.summary { max-width: 45rem; }
	.story-grid > .art--banner { max-width: none; }
	.story-grid > .art--banner.art--photo { aspect-ratio: 16 / 9; }
	.story-rail { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
	.story-rail .snapshot .num { font-size: 2.5rem; }
	.story-rail .latest { margin: 0; }
	.story-rail .more-link { border-top: 1px solid var(--rule); width: 100%; }
	.after-story .related { display: none; }
	.after-story--in-rail { display: none; }
	.after-story { padding-top: 28px; }
	.after-story__grid { grid-template-columns: minmax(0, 1fr); }
	.after-story .latest ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); }
	.after-story .latest .rail-title + ol .latest__item:nth-child(-n+3) { border-top: 0; }

	/* ---- Section pages: lead + list (8 cols) | Latest across 0 Hour (4 cols) ---- */
	.section-layout.has-rail { display: grid; grid-template-columns: minmax(0, 8fr) var(--rail); column-gap: var(--col-gap); align-items: start; }
	.section-main { min-width: 0; }
	.section-rail { display: block; grid-column: 2; margin-top: 16px; }
	.section-rail .more-link { border-top: 1px solid var(--rule); width: 100%; }
	.section-main .feature { display: block; padding-top: 16px; padding-bottom: 20px; }
	.section-main .feature .art { aspect-ratio: 2 / 1; margin: 0 0 16px; }
	.section-main .feature .card__title { font-size: clamp(1.75rem, 1rem + 1.2vw, 2.25rem); line-height: 1.1; }
	.section-main .feature .dek { font-size: 1.0625rem; max-width: 46rem; }
	.section-main .item { padding: 16px 0; gap: 20px; }
	.section-main .item .art--thumb { width: 120px; aspect-ratio: 4 / 3; }
	.section-main .item.card .card__deskdek { -webkit-line-clamp: 2; margin-top: 4px; }

	/* ---- All latest (/latest/) and search: two columns of stories ---- */
	.list--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); }
	.list--grid > .card:nth-child(2) { border-top: 0; }
}

@media (min-width: 1200px) {
	.sections--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.sections--n4 .secblock .item--pic .card__title { font-size: 1.125rem; }
}

