/*
Theme Name: Naija247
Theme URI: https://naija247.ng
Description: Politics and social commentary for citizens who believe in Nigeria. Fast, mobile-first, built for sharing.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: naija247
*/

@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("assets/fonts/inter-800.woff2") format("woff2"); }

:root {
  --green: #008751;        /* the flag's green */
  --green-dark: #006b40;
  --green-deep: #053d27;   /* dark panels */
  --green-soft: #e6f3ec;
  --ink: #0f1419;
  --ink-2: #39424b;
  --muted: #6a737c;
  --line: #e4e8e5;
  --paper: #ffffff;
  --soft: #f4f7f5;
  --red: #d7263d;
  --gold: #f2b705;
  --radius: 14px;
  --wrap: 1180px;
  --read: 700px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 8px; top: 8px; z-index: 999; background: #fff; padding: 10px 14px; border-radius: 8px; clip: auto; width: auto; height: auto; }
.muted { color: var(--muted); }

/* ---------- top bar + header ---------- */
.topbar { background: var(--ink); color: #cfd6dc; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 36px; overflow: hidden; }
.topbar__date { flex: 0 0 auto; color: #fff; font-weight: 600; }
.topbar__trend { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.topbar__trend::-webkit-scrollbar { display: none; }
.topbar__trend b { color: var(--gold); font-weight: 700; }
.topbar a:hover { color: #fff; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; }
.logo__mark span { color: var(--green); }
.logo__tag { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.02em; margin-top: 3px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; white-space: nowrap; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }
.btn--ghost { background: #fff; border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--green); }
.btn--wa { background: #25d366; color: #073b1e; }
.btn--wa:hover { background: #1fbe5a; color: #073b1e; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.hide-sm { display: none; }
@media (min-width: 760px) { .hide-sm { display: inline-flex; } }

.nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; height: 46px; align-items: center; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav a:hover, .nav .current-menu-item > a, .nav .current-cat > a { background: var(--green-soft); color: var(--green-dark); }

.search-panel { display: none; border-bottom: 1px solid var(--line); background: var(--soft); padding: 12px 0; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: #fff; }

/* ---------- cards ---------- */
.kicker { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.kicker--red { color: var(--red); }
.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.card { display: flex; flex-direction: column; gap: 8px; }
.card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__title { font-size: 19px; line-height: 1.25; }
.card__dek { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--row { flex-direction: row; gap: 14px; align-items: flex-start; }
.card--row .card__img { flex: 0 0 112px; aspect-ratio: 4 / 3; border-radius: 10px; }
.card--row .card__title { font-size: 16px; }
.grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- home ---------- */
.section { padding: 36px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section__title { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.section__title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--green); }
.section__more { font-weight: 700; font-size: 14px; color: var(--green); }
.lead { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 24px; }
@media (min-width: 980px) { .lead { grid-template-columns: 1.6fr 1fr; } }
.lead__main .card__title { font-size: 30px; line-height: 1.12; }
@media (min-width: 760px) { .lead__main .card__title { font-size: 40px; } }
.lead__main .card__dek { font-size: 17px; -webkit-line-clamp: 4; }
.lead__side { display: flex; flex-direction: column; gap: 18px; }
.lead__side .card + .card { padding-top: 18px; border-top: 1px solid var(--line); }
.layout { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .layout { grid-template-columns: 1fr 320px; } }
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.box { background: var(--soft); border-radius: var(--radius); padding: 20px; }
.box__title { font-size: 18px; margin-bottom: 12px; }
.mostread { list-style: none; counter-reset: mr; display: flex; flex-direction: column; gap: 14px; }
.mostread li { counter-increment: mr; display: flex; gap: 12px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.mostread li::before { content: counter(mr); font-size: 28px; font-weight: 800; color: var(--green); line-height: 1; min-width: 26px; }
.citizen { background: var(--green); color: #fff; border-radius: var(--radius); padding: 24px; }
.citizen h2, .citizen h3 { color: #fff; }
.citizen p { color: #d9efe3; }
.citizen ol { margin: 14px 0 0 20px; display: grid; gap: 8px; }
.citizen a { text-decoration: underline; }
.citizen .btn--ghost { color: var(--ink); }

/* ---------- article ---------- */
.article { padding-top: 28px; padding-bottom: 40px; }
.article__head { max-width: var(--read); margin: 0 auto 22px; }
.article__title { font-size: 32px; line-height: 1.1; margin: 10px 0 12px; }
@media (min-width: 760px) { .article__title { font-size: 46px; } }
.article__dek { font-size: 20px; line-height: 1.45; color: var(--ink-2); font-weight: 400; margin-bottom: 16px; }
.article__fig { max-width: 980px; margin: 0 auto 26px; }
.article__fig img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article__fig figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.article__body { max-width: var(--read); margin: 0 auto; font-size: 18px; line-height: 1.75; color: #1c232b; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { font-size: 26px; margin-top: 1.6em; }
.article__body h3 { font-size: 21px; margin-top: 1.4em; }
.article__body a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: 0.4em; }
.article__body blockquote { border-left: 4px solid var(--green); padding: 4px 0 4px 18px; font-size: 21px; font-weight: 600; color: var(--ink); }
.article__body img { border-radius: 10px; }
.article__body figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.byline__who { font-size: 14px; }
.byline__who strong { display: block; font-size: 15px; }

.keypoints { background: var(--soft); border-radius: var(--radius); padding: 20px 22px; }
.keypoints h2 { font-size: 16px !important; margin: 0 0 10px !important; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-dark); }
.keypoints ul { margin: 0; padding-left: 1.2em; font-size: 17px; }
.pullquote { position: relative; margin: 1.8em 0 !important; padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.pullquote p { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.pullquote .btn { margin-top: 14px; }
.actionbox { border: 2px solid var(--green); border-radius: var(--radius); padding: 20px 22px; background: var(--green-soft); }
.actionbox h2 { font-size: 22px !important; margin: 0 0 8px !important; color: var(--green-dark); }
.actionbox ol { margin: 10px 0 0; }
.sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.sources a { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--ink-2); text-decoration: none !important; }
.tags a:hover { background: var(--green-soft); color: var(--green-dark); }

/* ---------- poll ---------- */
.poll { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.poll__q { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.poll__opts { display: grid; gap: 10px; }
.poll__opt { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 50px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; text-align: left; overflow: hidden; }
.poll__opt:hover { border-color: var(--green); }
.poll__opt span { position: relative; z-index: 1; }
.poll__bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--green-soft); transition: width 0.6s; }
.poll.is-done .poll__opt { cursor: default; }
.poll__opt.is-mine { border-color: var(--green); }
.poll__note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- share ---------- */
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 700; border: 1px solid var(--line); background: #fff; cursor: pointer; text-decoration: none !important; color: var(--ink) !important; }
.share .share--wa { background: #25d366; border-color: #25d366; color: #073b1e !important; }
.share a:hover, .share button:hover { border-color: var(--green); }
.sharebar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 0.25s; }
.sharebar.is-on { transform: none; }
.sharebar a, .sharebar button { flex: 1; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.sharebar .share--wa { flex: 2; background: #25d366; border-color: #25d366; color: #073b1e; }
@media (min-width: 980px) { .sharebar { display: none; } }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 80; }
.toast.is-on { opacity: 1; }

/* ---------- archive, pagination, footer ---------- */
.archive-head { padding: 28px 0 8px; }
.archive-head h1 { font-size: 34px; }
.archive-head p { color: var(--ink-2); max-width: 46rem; margin-top: 8px; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 30px 0; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; }
.pagination .current { background: var(--green); color: #fff; border-color: var(--green); }
.site-footer { background: var(--ink); color: #b9c2ca; padding: 44px 0 30px; margin-top: 40px; font-size: 15px; }
.site-footer .logo__mark { color: #fff; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #2a333c; padding-top: 18px; font-size: 13px; }
.comments { max-width: var(--read); margin: 40px auto 0; }
.comments h2 { font-size: 22px; margin-bottom: 14px; }
.comment-list { list-style: none; display: grid; gap: 18px; }
.comment-body { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 4px; }
.comment-respond .submit { background: var(--green); color: #fff; border: 0; border-radius: 999px; height: 44px; padding: 0 20px; font-weight: 700; cursor: pointer; margin-top: 10px; }
.empty { padding: 60px 0; text-align: center; }


/* =====================================================================================================
   Naija247 identity (2026-11-21): the house style of the owner's other sites (Gospel Genius, Digital River,
   Forteta, KILPIS, Little Light) in Nigerian green and white: huge tight Inter headlines ending in a green
   full stop, a pill navigation capsule, pill buttons and badges, a deep-green hero panel, chips on photos,
   a Lagos-time status line, and the green-white-green flag bar as the mark.
   ===================================================================================================== */
.flagbar { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); flex: 0 0 30px; }
.flagbar i { flex: 1; background: var(--green); }
.flagbar i:nth-child(2) { background: #fff; }
.logo { flex-direction: row; align-items: center; gap: 10px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { font-size: 25px; letter-spacing: -0.045em; }
.logo__mark em { font-style: normal; color: var(--green); }
.dot { color: var(--green); }

/* status line (like Forteta's "Nigeria · 11:55 WAT") */
.topbar { background: var(--green-deep); color: #bfe0cf; }
.topbar__date { color: #fff; }
.topbar__live { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.25); }
.topbar__trend b { color: #fff; background: rgba(255, 255, 255, 0.12); padding: 2px 8px; border-radius: 999px; font-size: 12px; }

/* header with the pill capsule nav (Digital River) */
.site-header .wrap { height: 70px; }
.capsule { display: none; }
@media (min-width: 1080px) {
  .capsule { display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); }
  .capsule a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .capsule a:hover, .capsule a.is-on { background: #fff; color: var(--green-dark); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
  .nav { display: none; }
}
.btn { border-radius: 999px; }
.btn--green { box-shadow: 0 8px 20px -10px rgba(0, 135, 81, 0.7); }
.btn--white { background: #fff; color: var(--green-deep); }
.btn--white:hover { background: var(--green-soft); color: var(--green-deep); }
.btn--line { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn--line:hover { border-color: #fff; color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); color: var(--green-dark); background: #fff; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge--dark { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.badge--dark::before { background: #3ddc84; }

/* the deep-green hero with the lead story (Gospel Genius / Digital River dark heroes, in green) */
.hero { position: relative; background: var(--green-deep); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 10%, rgba(0, 135, 81, 0.55), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(0, 135, 81, 0.35), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; gap: 28px; padding-top: 34px; padding-bottom: 40px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 48px; padding-top: 56px; padding-bottom: 60px; } }
.hero__title { font-size: 36px; line-height: 1.04; letter-spacing: -0.04em; margin: 14px 0 14px; color: #fff; }
@media (min-width: 760px) { .hero__title { font-size: 54px; } }
.hero__title a:hover { color: #d6f5e4; }
.hero__dek { color: #cfe8db; font-size: 18px; max-width: 34rem; }
.hero__meta { color: #9fcbb4; font-size: 14px; margin-top: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__img { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); background: #0a5a39; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.92); color: var(--green-deep); backdrop-filter: blur(6px); }
.strip { display: grid; gap: 22px; grid-template-columns: 1fr; padding: 26px 0 8px; }
@media (min-width: 640px) { .strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .strip { grid-template-columns: repeat(4, 1fr); } }

/* section titles end with a green full stop (Forteta) */
.section__title { font-size: 28px; letter-spacing: -0.035em; }
.section__title::before { display: none; }
.section__title::after { content: "."; color: var(--green); }
.archive-head h1 { font-size: 40px; letter-spacing: -0.04em; }
.archive-head h1::after { content: "."; color: var(--green); }

/* cards: rounder photos with the section as a chip on the photo (KILPIS) */
.card__img { position: relative; border-radius: 18px; }
.card__title { letter-spacing: -0.02em; }
.card .kicker { font-size: 11px; }
.card--row .card__img { border-radius: 12px; }

/* article: bigger, tighter headline */
.article__title { letter-spacing: -0.04em; }
@media (min-width: 760px) { .article__title { font-size: 52px; } }
.kicker { display: inline-flex; align-items: center; gap: 6px; }
.article__head .kicker { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); }
.pullquote { background: var(--green-deep); }
.keypoints { border-left: 4px solid var(--green); }

/* citizen box: green with the flag stripe */
.citizen { position: relative; background: var(--green-deep); overflow: hidden; }
.citizen::after { content: ""; position: absolute; top: 0; right: 0; width: 54px; height: 100%; background: linear-gradient(90deg, var(--green) 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); opacity: 0.18; }

/* footer: deep green, flag stripe on top */
.site-footer { background: var(--green-deep); color: #bfe0cf; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--green) 33.3%, #fff 33.3% 66.6%, var(--green) 66.6%); }
.site-footer .legal { border-top-color: rgba(255, 255, 255, 0.14); }
.site-footer .logo__mark em, .site-footer .dot { color: #3ddc84; }

.topbar__live { white-space: nowrap; }
@media (max-width: 759px) { .topbar__live { display: none; } }
.topbar__date { white-space: nowrap; }
.section__title { gap: 0; }

/* Ad units (only rendered once AdSense is set up); labelled, set apart, space reserved to limit layout shift */
.ad { margin: 32px 0; padding: 10px 0 14px; border-top: 1px solid var(--line, #e5e7eb); border-bottom: 1px solid var(--line, #e5e7eb); text-align: center; min-height: 120px; }
.ad__label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.sidebar .ad { margin: 0 0 24px; min-height: 250px; }
.ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

/* Bylines and author profiles */
.avatar { border-radius: 50%; object-fit: cover; display: block; flex: none; }
.avatar--initials { display: grid; place-items: center; background: var(--green); color: #fff; font-weight: 800; font-size: 15px; }
.byline__who { display: flex; align-items: center; gap: 12px; }
.byline__who a { color: inherit; }
.byline__who strong a:hover { color: var(--green); }
.authorbox { display: flex; gap: 16px; align-items: flex-start; margin: 28px 0 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f6faf7; }
.authorbox__name { font-weight: 800; margin: 0 0 4px; }
.authorbox__name a { color: inherit; }
.authorbox__bio { margin: 0 0 6px; font-size: 15px; }
.authorbox__links { margin: 0; font-size: 14px; }
.authorbox__links a, .small a { color: var(--green); }
.small { font-size: 14px; }
.profile { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.profile h1 { margin: 0; }
.profile .kicker { margin: 4px 0 8px; }
.profile__bio { max-width: 640px; margin: 0 0 8px; }
@media (max-width: 560px) { .authorbox { flex-direction: column; } }

/* Contact / corrections form */
.contactform { max-width: 560px; }
.contactform label { font-weight: 600; font-size: 15px; }
.contactform input[type=text], .contactform input[type=email], .contactform input[type=url], .contactform textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; background: #fff; }
.contactform input:focus, .contactform textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.contactform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; margin: 0 0 18px; font-weight: 600; }
.notice--ok { background: #e7f5ee; color: var(--green-dark); }
.notice--err { background: #fdecec; color: #9b1c1c; }
.correction { background: #fff8e6; border-left: 4px solid #e0a800; padding: 12px 16px; border-radius: 8px; font-size: 15px; }

/* Newsletter */
.nlbox { background: var(--green-deep); color: #fff; border-radius: 18px; padding: 22px; margin: 28px 0; }
.sidebar .nlbox { margin: 0 0 24px; }
.nlbox__kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #3ddc84; }
.nlbox__title { color: #fff; font-size: 22px; line-height: 1.2; margin: 0 0 8px; }
.nlbox__title .dot { color: #3ddc84; }
.nlbox__text { color: #c9d3cc; font-size: 15px; margin: 0 0 14px; }
.nlform__row { display: flex; gap: 8px; flex-wrap: wrap; }
.nlform__row input { flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 999px; border: 0; font: inherit; color: var(--ink); }
.nlform__row .btn { height: 46px; background: #3ddc84; color: var(--green-deep); border: 0; }
.nlform__freq { border: 0; padding: 0; margin: 10px 0 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #e3ebe6; }
.nlform__freq input { accent-color: #3ddc84; }
.nlform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nlbox .notice--ok { background: rgba(61,220,132,.15); color: #fff; }
.nlpage .nlform__row input { border: 1px solid var(--line); }
.nlpage .nlform__freq { color: var(--ink); }
.nlchoice { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin: 0 0 8px; max-width: 520px; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nlbox__alerts { margin: 14px 0 0; }
.nlbox__alerts .btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* In-story links (guide, related story), topics, guides */
.inlink { display: flex; flex-direction: column; gap: 4px; margin: 26px 0; padding: 14px 18px; border-left: 4px solid var(--green); background: #f6faf7; border-radius: 0 12px 12px 0; }
.inlink span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.inlink a { font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--ink); text-decoration: none; }
.inlink a:hover { color: var(--green); }
.inlink--guide { background: #e7f5ee; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.topics a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: #fff; }
.topics a:hover { border-color: var(--green); color: var(--green); }
.guidelist { margin: 0 0 8px; padding-left: 18px; }
.guidelist li { margin: 0 0 8px; }
.guidelist a { color: var(--ink); font-weight: 700; }

/* Trending ticker: scrolls left, pauses on hover/focus/touch; still a plain scrollable row with reduced motion */
.topbar__trend { flex: 1 1 auto; min-width: 0; align-items: center; overflow: hidden; }
.topbar__trend b { flex: 0 0 auto; }
.ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; width: max-content; animation: n247-ticker calc(var(--n, 4) * 7s) linear infinite; }
.ticker__set { display: flex; gap: 28px; padding-right: 28px; }
.ticker__set a { white-space: nowrap; }
.ticker__set a::before { content: "•"; color: #3ddc84; margin-right: 10px; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker:active .ticker__track { animation-play-state: paused; }
@keyframes n247-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; }
  .ticker__set[aria-hidden] { display: none; }
}
