/*
Theme Name: Telly Drama
Theme URI: https://tellydrama.com/
Author: Digital Sukoon
Description: The tellydrama.com theme, built from the client's design handoff: Hindi TV and OTT news, daily written updates, the TRP chart and videos. Bebas Neue, Plus Jakarta Sans and JetBrains Mono on warm paper with the amber-to-pink brand gradient. No type is ever set over a photograph, and a still too small for its frame is letterboxed rather than blown up. Reads the Newspaper theme's posts and Yoast data in place and converts nothing.
Version: 1.0.0
Requires at least: 6.1
Tested up to: 6.7
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: telly-drama
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, translation-ready
*/

/* ---------- Tokens (README: Design Tokens) ---------- */
:root {
	--amber: #FFB000;
	--amber-2: #FFA800;
	--orange: #FF8A00;
	--orange-2: #FF6A00;
	--action: #FF4D00;
	--red: #FF1A3C;
	--pink: #FF0A78;
	--grad: linear-gradient(100deg, #FFA800, #FF5A00 45%, #FF1A3C 75%, #FF0A78);
	--grad-btn: linear-gradient(100deg, #FF8A00, #FF2A3C 60%, #FF0A78);
	--grad-badge: linear-gradient(100deg, #FF8A00, #FF1A3C);
	--grad-play: linear-gradient(135deg, #FF8A00, #FF0A78);
	--grad-news: linear-gradient(135deg, #FFB000 0%, #FF6A00 40%, #FF1A3C 75%, #FF0A78 100%);
	--grad-rank: linear-gradient(180deg, #FFA800, #FF1A3C);
	--ink: #1A1210;
	--deep: #120C0A;
	--dark-line: #2A1E1A;
	--dark-line-2: #33251F;
	--page: #FBF8F5;
	--surface: #FFFFFF;
	--tint: #FFF1E6;
	--tint-line: #FFDCC2;
	--line: #EFE7E1;
	--line-2: #E4D8D2;
	--text-2: #4A3D38;
	--text-3: #5A4C46;
	--muted: #7A6C66;
	--on-dark: #EDE6E1;
	--on-dark-muted: #B9A79E;
	--on-dark-accent: #FFB76B;
	--pos: #5FD08A;
	--neg: #FF5A6E;
	--ground: #F1E8E2;          /* the tint a letterboxed still sits on */
	--shadow: 0 8px 24px rgba(255, 90, 0, .12);
	--display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
	--sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
	--r-chip: 6px;
	--r-thumb: 12px;
	--r-card: 14px;
	--r-update: 16px;
	--r-panel: 20px;
	--r-block: 24px;
	--pill: 999px;
	--gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--action); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--action); }
a.kicker:hover { color: var(--ink); }
.meta { font-size: 12px; color: var(--muted); }

/* ---------- Photographs ----------
   A frame crops by cover; a still that would have to be enlarged to fill it is shown at its own size
   on the tint (is-small); a still far from the frame's shape is shown whole on the tint (is-whole). */
.media { position: relative; display: block; overflow: hidden; background: var(--ground); }
.media.r-16x9 { aspect-ratio: 16 / 9; }
.media.r-16x10 { aspect-ratio: 16 / 10; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.media.is-small img { object-fit: scale-down; object-position: 50% 50%; }
.media.is-whole img { object-fit: contain; object-position: 50% 50%; }
.media.is-empty { background: repeating-linear-gradient(135deg, #F1E8E2 0 10px, #EADFD8 10px 20px); }

/* ---------- 1. Top bar ---------- */
.topbar { background: var(--ink); color: var(--on-dark); font-size: 12px; }
.topbar__in { padding-top: 8px; padding-bottom: 8px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.topbar__left, .topbar__right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar__right { gap: 16px; }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: var(--on-dark-accent); }
.topbar__date { font-family: var(--mono); letter-spacing: .04em; }
.topbar__div { opacity: .5; }

/* ---------- 2. Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__in { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand:hover { color: inherit; }
.brand__logo { width: 52px; height: 52px; border-radius: 50%; display: block; object-fit: cover; }
.brand__text { display: flex; flex-direction: column; line-height: .9; }
.brand__name { font-family: var(--display); font-size: 34px; letter-spacing: .02em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-top: 2px; }
.brand__tag { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; min-width: 0; }
.nav__pill { padding: 8px 12px; border-radius: var(--pill); font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); white-space: nowrap; }
.nav__pill:hover { background: var(--tint); color: var(--action); }
.nav__pill[aria-current] { background: var(--ink); color: #fff; }
.site-header__actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.icon-btn:hover { border-color: var(--action); color: var(--action); }
.drawer-toggle { display: none; }
.btn-grad { height: 40px; padding: 0 18px; border-radius: var(--pill); border: 0; background: var(--grad-btn); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.btn-grad:hover { color: #fff; filter: saturate(1.15) brightness(1.04); }
.search-panel { border-top: 1px solid var(--line); background: var(--surface); }
.search-panel__in { padding-top: 12px; padding-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.search-panel .search-form { flex: 1; }
.search-panel__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.drawer { border-top: 1px solid var(--line); background: var(--surface); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 80px); overflow-y: auto; display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer__row { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700; }
.drawer__row[aria-current] { color: var(--action); }
.drawer__small { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.drawer__small a { color: var(--text-3); }

/* ---------- Forms shared ---------- */
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form__input { flex: 1; min-width: 0; height: 44px; border-radius: var(--pill); border: 1px solid var(--line-2); background: #fff; padding: 0 18px; font-size: 15px; }
.search-form__input:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 3px rgba(255, 77, 0, .15); }
.search-form__btn, .btn-ink { height: 44px; padding: 0 20px; border-radius: var(--pill); border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.search-form__btn:hover, .btn-ink:hover { background: var(--action); }

/* ---------- 3. Ticker ---------- */
.ticker { background: var(--tint); border-bottom: 1px solid var(--tint-line); display: flex; align-items: stretch; overflow: hidden; }
.ticker__label { flex: none; background: var(--red); color: #fff; font-family: var(--display); font-size: 20px; letter-spacing: .06em; line-height: 1.2; padding: 8px 18px; display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: tdPulse 1.2s infinite; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.ticker__track { display: flex; width: max-content; animation: tdTicker 40s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__run { display: flex; align-items: center; flex: none; white-space: nowrap; padding: 0 24px 0 24px; font-size: 14px; font-weight: 600; }
.ticker__run a { color: var(--ink); }
.ticker__run a:hover { color: var(--action); }
.ticker__sep { margin: 0 18px; font-size: 10px; color: var(--red); }
@keyframes tdTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tdPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
	.ticker__track, .ticker__dot { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__run[aria-hidden] { display: none; }
	* { scroll-behavior: auto !important; }
}

/* ---------- Page frames ---------- */
.front, .page-list, .article, .page-plain { padding-top: 28px; padding-bottom: 64px; flex: 1 0 auto; }
.front { display: flex; flex-direction: column; gap: 56px; }

/* ---------- 4. Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: start; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
.lead { display: flex; flex-direction: column; border-radius: var(--r-panel); overflow: hidden; background: var(--ink); min-width: 0; }
.lead__media { display: block; }
.lead__media .media { border-radius: var(--r-panel) var(--r-panel) 0 0; background: var(--dark-line); }
.lead__panel { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.lead__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.badge { background: var(--grad-badge); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 5px 10px; border-radius: var(--pill); text-transform: uppercase; line-height: 1.2; }
.lead__cat { color: var(--on-dark-accent); font-size: 12px; font-weight: 600; }
.lead__title { color: #fff; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-wrap: pretty; }
.lead__title a { color: #fff; }
.lead__title a:hover { color: var(--on-dark-accent); }
.lead__dek { margin: 0; color: var(--line-2); font-size: 16px; line-height: 1.5; max-width: 560px; text-wrap: pretty; }
.hero__side { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; min-width: 0; }
.hero__side--four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .media { border-radius: var(--r-card); }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.25; text-wrap: pretty; }
.card:hover .card__title { color: var(--action); }
.card:hover .kicker { color: var(--action); }

/* ---------- Section heading ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.sec-title { font-family: var(--display); font-size: 36px; letter-spacing: .02em; font-weight: 400; line-height: 1; }
.sec-more { font-size: 14px; font-weight: 700; color: var(--action); }
.sec-more:hover { color: var(--ink); }

/* ---------- 5. Written Updates ---------- */
.wu { display: flex; flex-direction: column; gap: 18px; }
.wu__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.wu-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-update); padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s; }
.wu-card:hover { border-color: var(--orange); box-shadow: var(--shadow); color: var(--ink); }
.wu-card__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wu-card__meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.wu-card__ep { font-family: var(--mono); font-size: 11px; color: var(--red); white-space: nowrap; }
.wu-card__show { font-family: var(--display); font-size: 26px; letter-spacing: .02em; line-height: 1; }
.wu-card__line { font-size: 14px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }

/* ---------- 6. Latest + sidebar ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; }
.latest { grid-column: span 2; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.latest .sec-head { align-items: center; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 6px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 700; line-height: 1.4; cursor: pointer; white-space: nowrap; }
.pill:hover { border-color: var(--action); color: var(--action); }
.pill.is-active, .pill.is-active:hover { background: var(--action); border-color: var(--action); color: #fff; }
.latest__list { display: flex; flex-direction: column; transition: opacity .15s; }
.latest__list[aria-busy="true"] { opacity: .45; }
.row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.row__thumb .media { border-radius: var(--r-thumb); }
.row__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row__title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: pretty; }
.row__dek { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-3); text-wrap: pretty; }
.load-more { align-self: center; margin-top: 8px; height: 44px; padding: 0 28px; border-radius: var(--pill); border: 1.5px solid var(--ink); background: transparent; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; cursor: pointer; color: var(--ink); }
.load-more:hover { background: var(--ink); color: #fff; }
.load-more[hidden] { display: none; }
.load-more--left { align-self: flex-start; margin-top: 18px; }
.sidebar { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.empty-note { color: var(--muted); font-size: 15px; padding: 24px 0; margin: 0; }

/* TRP Top 5 */
.trp { background: var(--ink); color: #fff; border-radius: var(--r-panel); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.trp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.trp__title { font-family: var(--display); font-size: 30px; letter-spacing: .02em; font-weight: 400; line-height: 1; }
.trp__week { font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted); }
.trp__row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--dark-line-2); }
.trp__rank { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--orange); }
.trp__show { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trp__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.trp__channel { font-size: 12px; color: var(--on-dark-muted); }
.trp__nums { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.trp__rating { font-family: var(--mono); font-size: 14px; }
.trp__delta { font-family: var(--mono); font-size: 11px; color: var(--on-dark-muted); white-space: nowrap; }
.trp__delta.is-up { color: var(--pos); }
.trp__delta.is-down { color: var(--neg); }
.trp__more { font-size: 13px; font-weight: 700; color: var(--on-dark-accent); }
.trp__more:hover { color: #fff; }

/* Most Read */
.most-read { display: flex; flex-direction: column; gap: 4px; }
.most-read__title { margin: 0 0 8px; font-family: var(--display); font-size: 28px; letter-spacing: .02em; font-weight: 400; line-height: 1; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.most-read__row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.most-read__n { font-family: var(--display); font-size: 32px; line-height: 1; background: var(--grad-rank); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.most-read__t { font-size: 15px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }

/* Newsletter */
.newsletter { border-radius: var(--r-panel); padding: 24px; background: var(--grad-news); color: #fff; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 110px; }
.newsletter__title { font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: .02em; font-weight: 400; }
.newsletter__body { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; }
.newsletter__form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter__input { flex: 1; min-width: 140px; height: 44px; border-radius: var(--pill); border: 0; padding: 0 16px; font-size: 14px; color: var(--ink); background: #fff; outline: none; }
.newsletter__input:focus { box-shadow: 0 0 0 3px rgba(26, 18, 16, .35); }
.newsletter__input[aria-invalid="true"] { box-shadow: 0 0 0 3px var(--ink); }
.newsletter__btn { height: 44px; padding: 0 18px; border-radius: var(--pill); border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.newsletter__btn:hover { background: #000; }
.newsletter__btn:disabled { opacity: .7; cursor: progress; }
.newsletter__msg { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; background: rgba(26, 18, 16, .78); border-radius: 10px; padding: 8px 12px; }
.newsletter__msg[hidden] { display: none; }
.newsletter__msg.is-error { background: var(--ink); }
.newsletter.is-done .newsletter__msg::before { content: '✓ '; color: var(--pos); }

/* ---------- 7. Videos ---------- */
.videos { background: var(--ink); border-radius: var(--r-block); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.videos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.videos__title { font-family: var(--display); font-size: 40px; letter-spacing: .02em; font-weight: 400; line-height: 1; color: #fff; }
.videos__more { font-size: 14px; font-weight: 700; color: var(--on-dark-accent); }
.videos__more:hover { color: #fff; }
.videos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.vcard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vcard .media { border-radius: var(--r-card); background: var(--dark-line); }
.vcard .media.is-empty { background: repeating-linear-gradient(135deg, #2A1E1A 0 10px, #33251F 10px 20px); }
.vcard__row { display: flex; align-items: center; gap: 8px; }
.play { width: 26px; height: 26px; border-radius: 50%; background: var(--grad-play); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding-left: 2px; flex: none; }
.vcard__dur { font-family: var(--mono); font-size: 11px; color: var(--on-dark); letter-spacing: .02em; }
.vcard__title { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.vcard:hover .vcard__title { color: var(--on-dark-accent); }
.vcard__meta { color: var(--on-dark-muted); font-size: 12px; }
.vcard__meta:empty { display: none; }

/* ---------- 8. Footer ---------- */
.site-footer { background: var(--deep); color: #CFC3BD; margin-top: auto; }
.site-footer__grid { padding-top: 48px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.fbrand { display: flex; flex-direction: column; gap: 14px; grid-column: span 2; min-width: 0; }
.fbrand__logo { display: flex; align-items: center; gap: 12px; }
.fbrand__logo img { width: 44px; height: 44px; border-radius: 50%; }
.fbrand__logo span { font-family: var(--display); font-size: 30px; color: #fff; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.fbrand p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 380px; }
.fcol { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fcol__label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--orange); font-weight: 400; text-transform: uppercase; }
.fcol a { color: #CFC3BD; }
.fcol a:hover, .fbrand__logo:hover span { color: var(--orange); }
.site-footer__bar { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--dark-line); font-size: 12px; color: #8E7F78; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Ads ---------- */
.ad-slot { text-align: center; }
.ad-slot__label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot__unit { display: flex; justify-content: center; overflow: hidden; }
.entry .ad-slot { margin: 32px 0; }

/* ---------- List pages (section, search, page 2) ---------- */
.page-head { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.page-head__title { font-family: var(--display); font-size: clamp(44px, 6vw, 64px); font-weight: 400; letter-spacing: .02em; line-height: .95; }
.page-head__desc { color: var(--text-3); font-size: 15px; line-height: 1.6; max-width: 720px; }
.page-head__desc p { margin: 0; }
.page-head .search-form { margin-top: 8px; }
.page-list .latest .row:first-child { padding-top: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.pager .page-numbers, .pager > a, .pager .post-page-numbers { border: 1px solid var(--line-2); background: #fff; padding: 8px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 700; line-height: 1.2; }
.pager .page-numbers.current, .pager .post-page-numbers.current { background: var(--action); border-color: var(--action); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; }

/* ---------- Article ---------- */
.single__grid { display: grid; grid-template-columns: minmax(0, 720px) 340px; justify-content: space-between; gap: 48px; align-items: start; }
.entry { min-width: 0; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--action); }
.entry__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entry__title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin: 10px 0 12px; text-wrap: pretty; }
.entry__dek { margin: 0; font-size: 18px; line-height: 1.5; color: var(--text-2); }
.entry__byline { display: flex; gap: 12px; align-items: center; margin: 18px 0 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry__byline > span { display: flex; flex-direction: column; gap: 2px; }
.entry__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.entry__author { font-size: 14px; font-weight: 700; }
.entry__episode { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-thumb); padding: 10px 14px; margin: -6px 0 22px; }
.entry__figure { margin: 0 0 28px; }
.entry__figure .media { border-radius: var(--r-panel); }
.entry__figure figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.prose { font-size: 18px; line-height: 1.7; color: #2B201C; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.1em; }
.prose h2 { font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; margin-top: 1.6em; margin-bottom: .6em; }
.prose h3 { font-size: 21px; font-weight: 800; line-height: 1.25; margin-top: 1.4em; margin-bottom: .5em; }
.prose h4 { font-size: 18px; font-weight: 800; margin-top: 1.3em; margin-bottom: .4em; }
.prose a { color: var(--action); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--action); font-size: 20px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.prose blockquote cite { display: block; font-size: 13px; font-style: normal; font-weight: 600; color: var(--muted); margin-top: 6px; }
.prose img { border-radius: var(--r-card); }
.prose figure { margin-left: 0; margin-right: 0; max-width: 100%; }
.prose figcaption, .prose .wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.prose iframe, .prose embed, .prose video { max-width: 100%; }
.prose .wp-block-embed__wrapper iframe { width: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2em 0; }
.prose pre, .prose code { font-family: var(--mono); font-size: 14px; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.prose::after { content: ''; display: table; clear: both; }
.entry__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.related { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.related .card__title { font-size: 16px; }
.page-plain .entry { max-width: 720px; margin: 0 auto; }
.page-plain .entry__title { margin-top: 0; margin-bottom: 24px; }

/* Comments */
.comments { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 24px; border-left: 2px solid var(--line); }
.comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.comment-meta a { color: var(--muted); }
.reply a { font-size: 13px; font-weight: 700; color: var(--action); }
.comment-respond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-update); padding: 22px; }
.comment-reply-title { font-family: var(--display); font-size: 28px; font-weight: 400; letter-spacing: .02em; margin-bottom: 8px; }
.comment-form p { margin: 0 0 12px; font-size: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-thumb); padding: 10px 14px; background: #fff; font-size: 15px; }
.comment-form textarea { min-height: 120px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1147px) {
	.split { grid-template-columns: minmax(0, 1fr); }
	.latest { grid-column: auto; }
	.split > .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: start; }
	.single__grid { grid-template-columns: minmax(0, 1fr); }
	.article .entry { max-width: 760px; }
	.article .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
}
@media (max-width: 767px) {
	:root { --gutter: 16px; }
	.topbar__div, .topbar__link { display: none; }
	.site-header__in { gap: 12px; padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
	.brand { gap: 10px; min-width: 0; }
	.brand__logo { width: 44px; height: 44px; }
	.brand__name { font-size: 30px; }
	.nav { display: none; }
	.site-header__actions { gap: 8px; }
	.site-header__actions .btn-grad { display: none; }
	.drawer-toggle { display: inline-flex; }
	.drawer .btn-grad { margin-top: 16px; align-self: flex-start; }
	.ticker__label { font-size: 18px; padding: 8px 12px; }
	.front { gap: 44px; padding-top: 20px; }
	.lead__panel { padding: 20px; }
	.hero__side:not(.hero__side--four) { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.hero__side:not(.hero__side--four) .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.hero__side:not(.hero__side--four) .card .media { grid-row: 1 / 4; border-radius: var(--r-thumb); align-self: start; }
	.hero__side:not(.hero__side--four) .card__title { font-size: 16px; }
	.sec-title { font-size: 32px; }
	.row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 0; }
	.row__title { font-size: 16px; }
	.row__dek { display: none; }
	.row__text { gap: 6px; }
	.videos { padding: 22px 18px; border-radius: var(--r-panel); }
	.videos__title { font-size: 34px; }
	.fbrand { grid-column: 1 / -1; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 40px; }
	.prose { font-size: 17px; }
	.entry__episode { flex-wrap: wrap; }
	.related__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}
@media (min-width: 768px) {
	.drawer, .drawer[hidden] { display: none; }
}
