/*
Theme Name: Incredible Moments Daily
Theme URI: https://incrediblemomentsdaily.com
Author: Incredible Moments Daily
Description: News theme for Incredible Moments Daily. Breaking news, explainers, Real or AI fact checks and a video hub linked to the YouTube channel. Four colour-coded pillars, ad slots that stay hidden until ads are switched on, click-to-load social embeds.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: imdaily
*/

/* ---------- Tokens ---------- */
:root {
	--red: #C73B36;
	--red-dark: #A22E2A;
	--ink: #121518;
	--ink-2: #22282D;
	--ink-3: #3A4148;
	--muted: #5B636B;
	--line: #E3E6EA;
	--line-2: #C9CED4;
	--bg: #F4F5F7;
	--surface: #FFFFFF;
	--night: #121518;
	--night-2: #1A1F23;
	--night-line: #2A3036;
	--night-muted: #A9B1BA;
	--real: #1A4F8A; --real-bg: #E4EEF9;
	--ai: #8E3A0C; --ai-bg: #FBEDE4;
	--old: #3A4148; --old-bg: #ECEEF1;
	--p: #121518; --pt: #121518; --ps: #F4F5F7;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--gutter: 20px;
	--radius: 8px;
}
.pillar-natural-disasters { --p: #D0571B; --pt: #B0470F; --ps: #FBEDE4; }
.pillar-accidents-incidents { --p: #B07A00; --pt: #8A5E00; --ps: #FBF1DC; }
.pillar-science-mysteries { --p: #1E67B0; --pt: #1A5A9A; --ps: #E5EEF8; }
.pillar-entertainment { --p: #7446C4; --pt: #5E36A6; --ps: #EEE8F9; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
body.single, body.page { background: var(--surface); }
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--real); outline-offset: 2px; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; clip: auto; width: auto; height: auto; }

.hl { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
a:hover .hl, a.hl:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: inherit; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pt); }
.meta { font-size: 13px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.section-head a { font-size: 13px; font-weight: 600; color: var(--red); }
.section-head.pillar { border-top-color: var(--p); }
.section-head.pillar h2 a { color: var(--pt); font-size: 20px; }

/* ---------- Buttons & badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 22px; font-size: 14px; font-weight: 600; border: 1.5px solid transparent; white-space: nowrap; }
.btn-sub { background: var(--red); color: #fff; }
.btn-sub:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; border-radius: 6px; }
.btn-dark:hover { background: #000; color: #fff; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid #DDE1E6; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 4px; line-height: 1.2; }
.badge-live, .badge-breaking { background: var(--red); color: #fff; }
.badge-format { background: var(--ink); color: #fff; }
.badge-real, .badge-verified { background: var(--real-bg); color: var(--real); }
.badge-ai, .badge-unverified { background: var(--ai-bg); color: var(--ai); }
.badge-old, .badge-edited, .badge-misleading { background: var(--old-bg); color: var(--old); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: imd-pulse 1.4s ease-in-out infinite; } }
@keyframes imd-pulse { 50% { opacity: 0.35; } }

/* ---------- Header ---------- */
.utility-bar { background: var(--night); color: #C9CED4; font-size: 13px; }
.utility-bar .wrap { height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-bar nav { display: flex; gap: 24px; }
.utility-bar a { color: #E8EBEE; }
.utility-bar a:hover { color: #fff; }
.site-header { background: var(--surface); position: relative; z-index: 20; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 100px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 60px; height: 60px; }
.brand-name { font-family: var(--serif); font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; display: block; }
.brand-name span { color: var(--red); }
.brand-tag { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; display: block; margin-top: 4px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.pillar-nav { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; gap: 32px; align-items: center; }
.pillar-nav li { margin: 0; }
.pillar-nav a { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; padding: 15px 0 13px; border-bottom: 3px solid var(--p, transparent); }
.pillar-nav a:hover { color: var(--ink); }
.pillar-nav .nav-breaking a { color: var(--red); border-bottom-color: transparent; }
.pillar-nav .nav-latest a { border-bottom-color: transparent; }
.pillar-nav .nav-videos { margin-left: auto; }
.pillar-nav .nav-videos a { border-bottom-color: transparent; }
.pillar-nav .current a, .pillar-nav a[aria-current="page"] { color: var(--pt); }
.pillar-nav .nav-breaking.current a { border-bottom-color: var(--red); }
.sub-nav { background: var(--ps); }
.sub-nav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; min-height: 44px; font-size: 14px; }
.sub-nav strong { color: var(--pt); }
.sub-nav a { color: var(--ink-3); }
.sub-nav a.is-current { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.breaking-bar { display: block; background: var(--red); color: #fff; }
.breaking-bar:hover { color: #fff; background: var(--red-dark); }
.breaking-bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 50px; padding-top: 8px; padding-bottom: 8px; }
.breaking-bar .badge { background: #fff; color: var(--red); }
.breaking-bar .title { font-size: 16px; font-weight: 600; }
.breaking-bar .when { font-size: 14px; opacity: 0.85; white-space: nowrap; }
.breaking-bar .more { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; padding: 16px 0; }
.search-form input[type="search"] { flex: 1; height: 48px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 6px; font-size: 16px; font-family: var(--sans); }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; }
.card-media { position: relative; border-radius: 6px; overflow: hidden; background: #DDE1E6; aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.credit { position: absolute; right: 6px; bottom: 6px; background: rgba(18,21,24,0.72); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 3px; max-width: 80%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duration { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,0.82); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 3px; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(18,21,24,0.8); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; }
.card .hl { font-size: 22px; }
.card-sm .hl { font-size: 18px; }
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-box .card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.card-box .card-media { border-radius: 0; }
.card .dek { font-size: 15px; line-height: 1.5; color: #4A525A; margin: 0; }
.list-item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .hl { font-size: 20px; }
.list-item.has-thumb { flex-direction: row; gap: 12px; }
.list-item .thumb { width: 104px; flex-shrink: 0; aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.numbered { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.numbered:last-child { border-bottom: 0; }
.numbered .n { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); min-width: 20px; }
.numbered .hl { font-size: 18px; }

/* ---------- Home ---------- */
.home-main { padding-top: 40px; display: flex; flex-direction: column; gap: 56px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.lead-story { display: flex; flex-direction: column; gap: 14px; }
.lead-story .card-media { aspect-ratio: 2 / 1; }
.lead-story .hl { font-size: 44px; }
.lead-story .dek { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.lead-map { background: #0F1B26; display: flex; align-items: center; justify-content: center; }
.lead-story .badge { position: absolute; left: 20px; top: 20px; }
.latest-col { border-top: 3px solid var(--ink); padding-top: 12px; }
.latest-col h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.latest-col h2 a { font-size: 13px; color: var(--red); }
.realai-strip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.realai-strip header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.realai-strip header div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.realai-strip h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 700; }
.realai-strip header span { color: var(--muted); }
.realai-strip header a { color: var(--red); font-weight: 600; font-size: 14px; }
.realai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.realai-grid .card { padding-top: 14px; border-top: 1px solid var(--line); }
.realai-grid .badge { align-self: flex-start; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.pillar-col { display: flex; flex-direction: column; gap: 14px; border-top: 4px solid var(--p); padding-top: 14px; }
.pillar-col > a.pillar-title { font-size: 20px; font-weight: 700; color: var(--pt); }
.pillar-col .card .hl { font-size: 24px; }
.pillar-col .more-link { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.25; padding-top: 10px; border-top: 1px solid var(--line); }
.video-band { background: var(--night); color: #fff; padding: 56px 0 64px; margin-top: 64px; }
.video-band a { color: #fff; }
.video-band a:hover { color: #F08A84; }
.video-band header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.video-band header .brandline { display: flex; align-items: center; gap: 16px; }
.video-band header img { width: 52px; height: 52px; }
.video-band h2 { margin: 4px 0 0; font-family: var(--serif); font-size: 34px; font-weight: 700; }
.video-band .kicker, .kicker-night { color: #F08A84; }
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.video-grid .feature { grid-column: span 2; grid-row: span 2; }
.video-grid .feature .card-media { aspect-ratio: auto; height: 100%; min-height: 340px; }
.video-grid .feature .vt { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.vt { font-size: 15px; font-weight: 600; line-height: 1.35; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--p, var(--line-2)); font-size: 14px; font-weight: 600; background: transparent; }
.chip.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.night .chip { border-color: #3A424B; color: #fff; }
.night .chip.pillar-chip { border-color: var(--p); }
.night .chip.is-current { background: #fff; color: var(--ink); border-color: #fff; }
.explained-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.newsletter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.newsletter h2 { margin: 6px 0; font-family: var(--serif); font-size: 32px; font-weight: 700; }
.newsletter p { margin: 0; color: #4A525A; max-width: 560px; }
.nl-form { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 280px; max-width: 520px; }
.nl-form label { font-size: 13px; font-weight: 600; }
.nl-form .row { display: flex; gap: 10px; }
.nl-form input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 6px; border: 1.5px solid var(--line-2); font-size: 16px; font-family: var(--sans); }
.nl-form small { color: var(--muted); font-size: 12px; }
.submit-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.submit-cta span { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.submit-cta a { color: var(--red); font-weight: 600; }

/* ---------- Ads ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; max-width: 100%; }
.ad-slot .ad-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: #8A9199; margin-bottom: 4px; text-transform: uppercase; }
.ad-slot.ad-leaderboard { min-height: 250px; width: 970px; }
.ad-slot.ad-inarticle { min-height: 120px; width: 100%; }
.ad-slot.ad-sidebar { min-height: 600px; width: 300px; position: sticky; top: 20px; }
.ad-slot.ad-mrec { min-height: 250px; width: 300px; }
.ad-slot.is-placeholder { background: #ECEEF1; border: 1px dashed #C3C8CE; border-radius: 4px; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); margin-top: 64px; font-size: 14px; }
.site-footer a { color: var(--night-muted); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brandline { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong { font-family: var(--serif); font-size: 24px; color: #fff; }
.footer-brand p { margin: 0; line-height: 1.6; max-width: 380px; }
.footer-col h3 { margin: 0 0 12px; color: #fff; font-size: 14px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { border-top: 1px solid var(--night-line); padding: 18px 0 28px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; }

/* ---------- Single article ---------- */
.article-top { padding-top: 32px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--red); }
.article-title { font-family: var(--serif); font-size: 56px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.08; margin: 0; }
.standfirst { font-family: var(--serif); font-size: 23px; line-height: 1.45; color: var(--ink-3); margin: 0; }
.byline { display: flex; align-items: center; gap: 14px; padding-top: 4px; flex-wrap: wrap; }
.byline .avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--line); }
.byline .who { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.byline .who strong { font-weight: 600; }
.byline .who span { color: var(--muted); }
.share { margin-left: auto; display: flex; gap: 8px; }
.share .icon-btn { width: 40px; height: 40px; }
.hero-figure { margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hero-figure img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 6px; }
.hero-figure figcaption, .wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 416px; gap: 64px; align-items: start; margin-top: 32px; }
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.side-card .brandline { display: flex; align-items: center; gap: 10px; }
.side-card .brandline img { width: 36px; height: 36px; }
.side-list { border-top: 3px solid var(--ink); padding-top: 12px; }
.side-list h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.side-form { background: var(--night); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.side-form strong { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.side-form label { font-size: 13px; color: #C9CED4; }
.side-form input { height: 46px; padding: 0 14px; border-radius: 6px; border: 0; font-size: 15px; font-family: var(--sans); }
.side-form .btn { border-radius: 6px; }
.quick-answer { background: var(--bg); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.quick-answer p { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; font-size: 15px; }
.toc summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 28px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.toc a { color: var(--real); }
.entry-content { font-family: var(--serif); font-size: 20px; line-height: 1.65; color: var(--ink-2); display: flex; flex-direction: column; gap: 22px; }
.entry-content > * { margin: 0; }
.entry-content h2 { font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--ink); margin-top: 12px; scroll-margin-top: 20px; }
.entry-content h3 { font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.entry-content a { color: var(--real); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.entry-content blockquote { border-left: 4px solid var(--p); padding: 4px 0 4px 20px; font-style: italic; border-radius: 0; }
.entry-content figure { display: flex; flex-direction: column; gap: 8px; }
.entry-content img { border-radius: 6px; }
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; }
.wp-block-table { overflow-x: auto; }
.entry-content th { background: var(--ink); color: #fff; text-align: left; padding: 12px 14px; font-weight: 600; }
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content tr:nth-child(even) td { background: #F9FAFB; }
.entry-content .wp-block-details, .entry-content details { border-bottom: 1px solid var(--line); padding: 16px 0; font-family: var(--sans); font-size: 16px; }
.entry-content details summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.entry-content details p { margin: 10px 0 0; line-height: 1.6; color: var(--ink-3); }
.safety-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px 24px; font-family: var(--sans); font-size: 17px; line-height: 1.55; }
.safety-box > *:first-child { margin-top: 0; }
.safety-box strong:first-child { display: block; font-size: 17px; margin-bottom: 6px; }
.sources { font-family: var(--sans); font-size: 14px; color: var(--ink-3); }
.sources h2, .sources strong { font-size: 15px; font-weight: 700; color: var(--ink); font-family: var(--sans); margin: 0 0 6px; }
.author-box { display: flex; gap: 16px; align-items: center; background: var(--bg); border-radius: var(--radius); padding: 20px; font-family: var(--sans); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-box strong { font-size: 16px; }
.author-box p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: #4A525A; }
.channel-cta { display: flex; flex-direction: column; gap: 12px; background: var(--night); border-radius: var(--radius); padding: 14px; color: #fff; }
.channel-cta:hover { color: #fff; }
.channel-cta .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px 4px; }
.channel-cta .watch { font-size: 14px; font-weight: 600; border: 1px solid #3A424B; padding: 10px 16px; border-radius: 20px; }
.more-like { margin-top: 56px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* Social embeds */
.imd-embed { margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--sans); max-width: 100%; }
.imd-embed .embed-frame { border: 1px solid #DDE1E6; border-radius: 12px; overflow: hidden; background: #fff; }
.imd-embed iframe { display: block; width: 100%; border: 0; }
.imd-embed .embed-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #4A525A; }
.embed-facade { position: relative; width: 100%; background: #1B2632; color: #fff; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; font-family: var(--sans); }
.embed-facade .fa-play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; }
.embed-facade strong { font-size: 16px; }
.embed-facade small { font-size: 12px; color: #C9D2DB; max-width: 260px; line-height: 1.45; }
.embed-facade.is-tiktok { aspect-ratio: 9 / 16; max-width: 340px; }
.embed-facade.is-youtube { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.embed-facade.is-youtube .fa-play { background: var(--red); }
.embed-row { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.wp-block-embed { margin: 0; }
.wp-block-embed__wrapper { position: relative; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper iframe { aspect-ratio: 16/9; height: auto; width: 100%; }

/* ---------- Live ---------- */
.live-hero { background: var(--red); color: #fff; }
.live-hero .wrap { padding-top: 36px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.live-hero .badge { background: #fff; color: var(--red); align-self: flex-start; }
.live-hero h1 { font-family: var(--serif); font-size: 54px; font-weight: 700; line-height: 1.08; margin: 0; max-width: 1000px; }
.live-hero p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.45; max-width: 900px; color: #FDEBEA; }
.live-hero .meta { color: #FDEBEA; }
.live-hero a { color: #fff; text-decoration: underline; }
.key-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.key-facts .fact { padding: 18px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid var(--line); }
.key-facts .fact:nth-child(4n) { border-right: 0; }
.key-facts .fact span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.key-facts .fact strong { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.1; }
.key-facts .fact.is-alert { background: #FDF1D8; }
.key-facts .fact.is-alert span, .key-facts .fact.is-alert strong { color: #7A5200; }
.key-facts .fact-source { grid-column: 1 / -1; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: #F9FAFB; }
.know-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-family: var(--sans); font-size: 16px; line-height: 1.6; }
.know-grid > div { background: var(--bg); border-radius: var(--radius); padding: 20px 22px; }
.know-grid > div + div { background: var(--surface); border: 1px dashed var(--line-2); }
.know-grid h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; font-family: var(--sans); }
.know-grid ul { margin: 0; padding-left: 18px; }
.live-updates { display: flex; flex-direction: column; }
.live-update { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.live-update .time { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--red); display: flex; flex-direction: column; gap: 6px; }
.live-update .time .badge { font-size: 11px; background: var(--ink); color: #fff; align-self: flex-start; }
.live-update .body { display: flex; flex-direction: column; gap: 12px; }
.live-update .body h3 { font-size: 24px; margin: 0; }
.correction-note { font-family: var(--sans); font-size: 14px; color: #4A525A; padding: 16px 0; }

/* ---------- Real or AI ---------- */
.verdict-box { border: 2px solid var(--vc, var(--real)); border-radius: 10px; overflow: hidden; font-family: var(--sans); }
.verdict-box .v-head { background: var(--vc, var(--real)); color: #fff; padding: 16px 22px; display: flex; align-items: center; gap: 14px; }
.verdict-box .v-head span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; display: block; }
.verdict-box .v-head strong { font-family: var(--serif); font-size: 30px; font-weight: 700; display: block; }
.verdict-box .v-body { padding: 18px 22px; background: var(--vb, #F3F7FC); font-family: var(--serif); font-size: 19px; line-height: 1.6; }
.verdict-real { --vc: #1A4F8A; --vb: #F3F7FC; }
.verdict-ai { --vc: #8E3A0C; --vb: #FDF5F0; }
.verdict-old, .verdict-edited, .verdict-misleading { --vc: #3A4148; --vb: #F6F7F9; }
.checks { display: flex; flex-direction: column; font-family: var(--sans); }
.check { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.check:last-child { border-bottom: 1px solid var(--line); }
.check .num { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.check h3 { margin: 0 0 4px; font-size: 17px; font-family: var(--sans); }
.check p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-3); }

/* ---------- Pillar / archive ---------- */
.pillar-hero { background: var(--pt); color: #fff; }
.pillar-hero .wrap { padding-top: 44px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 16px; }
.pillar-hero h1 { margin: 0; font-family: var(--serif); font-size: 64px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.pillar-hero p { margin: 0; max-width: 820px; font-family: var(--serif); font-size: 22px; line-height: 1.5; color: #FFF6F0; }
.pillar-hero .chip { border-color: rgba(255,255,255,0.55); color: #fff; }
.pillar-hero .chip.is-current { background: #fff; color: var(--pt); border-color: #fff; }
.archive-main { padding-top: 44px; display: flex; flex-direction: column; gap: 52px; }
.archive-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.card-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.white-panel { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--surface); }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Videos page ---------- */
body.page-template-template-videos { background: #0E1113; color: #fff; }
.videos-page { color: #fff; }
.videos-page a { color: #fff; }
.videos-page a:hover { color: #F08A84; }
.videos-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding: 48px 0 32px; flex-wrap: wrap; }
.videos-hero h1 { margin: 8px 0 12px; font-family: var(--serif); font-size: 60px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.videos-hero p { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; color: #C9CED4; max-width: 700px; }
.channel-card { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 10px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.channel-card img { width: 64px; height: 64px; }
.channel-card div { display: flex; flex-direction: column; gap: 4px; }
.channel-card span { font-size: 14px; color: var(--night-muted); }
.video-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: center; margin: 12px 0 48px; }
.video-feature .card-media { aspect-ratio: 16/9; }
.video-feature .t { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.15; }
.video-section { margin-bottom: 48px; }
.video-section .section-head { border-top-color: var(--p, #3A424B); }
.video-section .section-head a { color: #F4B894; }
.empty-note { padding: 24px; border: 1.5px dashed #3A424B; border-radius: 8px; color: #C9CED4; }

/* ---------- Page / misc ---------- */
.page-wrap { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 0; }
.page-wrap h1 { font-family: var(--serif); font-size: 48px; line-height: 1.1; margin: 0 0 24px; }
.notfound { text-align: center; padding: 80px var(--gutter); }
.notfound h1 { font-family: var(--serif); font-size: 56px; margin: 0 0 12px; }

/* ---------- App bar (mobile) ---------- */
.app-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
	.ad-slot.ad-leaderboard { width: 100%; }
}
@media (max-width: 1024px) {
	.pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pillar-nav ul { gap: 22px; overflow-x: auto; scrollbar-width: none; }
	.pillar-nav a { white-space: nowrap; }
	.article-layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.ad-slot.ad-sidebar { position: static; min-height: 250px; width: 300px; }
}
@media (max-width: 768px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; padding-bottom: 68px; }
	.utility-bar { display: none; }
	.masthead { min-height: 60px; gap: 8px; }
	.brand { gap: 10px; }
	.brand img { width: 34px; height: 34px; }
	.brand-name { font-size: 19px; }
	.brand-tag { display: none; }
	.header-actions .btn-outline, .header-actions .btn-sub { display: none; }
	.pillar-nav { border-top: 0; border-bottom: 1px solid var(--line); position: relative; }
	.pillar-nav ul { gap: 8px; padding: 0 56px 12px var(--gutter); overflow-x: auto; scroll-snap-type: x proximity; }
	.pillar-nav li { scroll-snap-align: start; flex-shrink: 0; }
	.pillar-nav a { padding: 9px 14px; border: 1.5px solid var(--p, var(--line-2)); border-radius: 20px; font-size: 14px; }
	.pillar-nav .nav-breaking a { background: var(--red); color: #fff; border-color: var(--red); }
	.pillar-nav .nav-latest, .pillar-nav .nav-videos { display: none; }
	.nav-more { position: absolute; right: 0; top: 0; width: 56px; height: 44px; background: var(--surface); box-shadow: -12px 0 12px var(--surface); display: flex; align-items: center; justify-content: center; border: 0; }
	.sub-nav .wrap { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
	.breaking-bar .wrap { flex-direction: column; align-items: flex-start; gap: 4px; }
	.breaking-bar .badge { display: none; }
	.breaking-bar .more { display: none; }
	.home-main { padding-top: 20px; gap: 32px; }
	.lead-grid, .archive-top, .realai-grid, .explained-row, .more-grid, .card-grid-3, .know-grid, .video-feature { grid-template-columns: minmax(0, 1fr); }
	.lead-story .hl { font-size: 28px; }
	.lead-story .dek { font-size: 17px; }
	.pillar-grid, .card-grid-4 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.video-grid { grid-template-columns: minmax(0, 1fr); }
	.video-grid .feature { grid-column: auto; grid-row: auto; }
	.video-grid .feature .card-media { min-height: 0; aspect-ratio: 16/9; }
	.video-band { margin-top: 32px; padding: 28px 0 32px; }
	.video-band h2 { font-size: 24px; }
	.realai-strip { padding: 18px; }
	.newsletter { padding: 20px; }
	.newsletter h2 { font-size: 24px; }
	.nl-form .row { flex-direction: column; }
	.article-title { font-size: 32px; }
	.standfirst { font-size: 19px; }
	.share { display: none; }
	.hero-figure { margin: 18px calc(-1 * var(--gutter)) 0; }
	.hero-figure img { border-radius: 0; }
	.hero-figure figcaption { padding: 0 var(--gutter); font-size: 12px; }
	.entry-content { font-size: 19px; gap: 18px; }
	.entry-content h2 { font-size: 26px; }
	.sidebar { grid-template-columns: minmax(0, 1fr); }
	.ad-slot.ad-sidebar, .ad-slot.ad-leaderboard { width: 300px; min-height: 250px; }
	.live-hero h1 { font-size: 32px; }
	.live-hero p { font-size: 18px; }
	.key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.key-facts .fact:nth-child(2n) { border-right: 0; }
	.key-facts .fact strong { font-size: 26px; }
	.live-update { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.pillar-hero h1 { font-size: 40px; }
	.pillar-hero p { font-size: 18px; }
	.pillar-hero .chip-row { flex-wrap: nowrap; overflow-x: auto; }
	.videos-hero h1 { font-size: 40px; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.app-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface); border-top: 1px solid var(--line); z-index: 50; }
	.app-bar a, .app-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: #5B636B; background: none; border: 0; }
	.app-bar .is-current { color: var(--ink); font-weight: 700; }
	.app-bar .ab-breaking { color: var(--red); }
}
@media (min-width: 769px) { .nav-more { display: none; } }

/* ---------- Additions: embeds, groups, dark pages ---------- */
.entry-content .wp-block-group p, .entry-content .wp-block-group h3 { margin: 0; }
.entry-content .wp-block-embed figcaption, .entry-content .wp-block-embed .wp-element-caption { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--sans); font-size: 13px; line-height: 1.45; color: #4A525A; margin-top: 8px; }
.entry-content .wp-block-embed .badge { font-size: 11px; padding: 3px 7px; }
.entry-content .embed-facade.is-youtube { border-radius: 8px; overflow: hidden; }
.entry-content .embed-facade.is-instagram, .entry-content .embed-facade.is-facebook { aspect-ratio: 4 / 5; max-width: 480px; border-radius: 12px; }
.entry-content .embed-facade.is-tiktok { border-radius: 12px; }
.live-updates { gap: 0; }
.live-update .time { margin: 0; }
.checks { margin: 0; }
.check .num { margin: 0; }
.check .check-text { display: flex; flex-direction: column; gap: 4px; }
.check p { font-family: var(--sans); }
.videos-page .section-head { border-top-color: #3A424B; }
.videos-page .video-section[class*="pillar-"] .section-head { border-top-color: var(--p); }
.videos-page .section-head h2 { color: #fff; }
.videos-page .kicker, .channel-cta .kicker { color: #F08A84; }
.videos-page .card-grid-4 .vt { color: #fff; }
.night .btn-outline { border-color: #fff; color: #fff; }
.side-form .nl-form label { color: #C9CED4; }
.side-form .nl-form small { color: #A9B1BA; }
.side-form .nl-form .row { flex-direction: column; }
.side-form .nl-form input[type="email"] { border: 0; }
.quick-answer .kicker { color: var(--pt); }
.pillar-col .card-media { aspect-ratio: 16 / 10; }
.list-item .kicker { font-size: 11px; }
.video-band .header-actions a:not(.btn) { color: #D5DAE0; font-size: 14px; font-weight: 600; }
.lead-story:hover .hl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pagination { margin-top: 12px; }
.nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; background: var(--surface); }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 768px) {
	.check { grid-template-columns: 36px minmax(0, 1fr); }
	.check > p:last-child { grid-column: 2; }
	.entry-content .embed-facade.is-tiktok { max-width: 100%; }
}

/* Classic themes: WordPress wraps group content in an inner container; let our grids see the children. */
.entry-content .wp-block-group__inner-container { display: contents; }
/* Click-to-load facade inside an aspect-ratio embed wrapper fills the ratio box. */
.wp-has-aspect-ratio .wp-block-embed__wrapper .embed-facade { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.site-header, .utility-bar + .site-header { color: var(--ink); }
.card .badge, .card-body .badge { align-self: flex-start; }
