/* ==========================================================================
   O3Naija News 2.1: portal design
   Tokens > base > top bar / masthead / navbar > panels > mosaic > cards >
   sections > sidebar > ads > newsletter > article > archive > comments > footer
   One typeface (Plus Jakarta Sans), one brand green, amber as the accent,
   red only for "Breaking". Rounded white panels on a soft tinted page.
   ========================================================================== */

:root {
  --green: #09803a;
  --green-dark: #066b30;
  --deep: #0a2e1c;
  --tint: #e6f5ec;
  --amber: #f6b400;
  --ink: #0f1a14;
  --ink-2: #34423a;
  --muted: #5b6a62;
  --line: #e3e9e5;
  --field: #7d8780;
  --bg: #f1f5f2;
  --card: #ffffff;
  --alert: #d62839;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --nav-h: 48px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 46, 28, .06), 0 6px 18px rgba(10, 46, 28, .05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 12px 16px; clip: auto; clip-path: none; background: var(--deep); color: #fff; z-index: 1000; border-radius: var(--radius-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(800px + var(--gutter) * 2); }
.stack > * + * { margin-top: 24px; }

/* ---------- Buttons, chips, fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 2px solid transparent; border-radius: 999px; font: 700 15px/1 var(--font); transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn--ghost:hover { background: var(--green); color: #fff; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); }
.icon-btn:hover { background: var(--tint); }

.chip-cat { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--green-dark); font: 700 12px/1.5 var(--font); }
a.chip-cat:hover { background: var(--green); color: #fff; }
.chip-cat--sponsored { background: #fff1bf; color: #5e4200; }

.chips, .topics { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 600 14px/1.2 var(--font); color: var(--ink-2); transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chips--center { justify-content: center; margin-top: 16px; }
.chips--on-dark { margin-top: 16px; }
.chips--on-dark .chip { background: rgba(255, 255, 255, .12); border-color: transparent; color: #fff; }
.chips--on-dark .chip:hover { background: var(--amber); color: #1a1300; }

.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; font: 700 14px/1 var(--font); }
.pill--wa { margin-left: auto; background: var(--tint); color: var(--green-dark); border: 1px solid #bfe3cc; }
.pill--wa:hover { background: var(--green); border-color: var(--green); color: #fff; }

.initials { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; font: 800 15px/1 var(--font); }
.initials--lg { width: 64px; height: 64px; font-size: 20px; }

.search-form { display: flex; background: #fff; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.search-form:focus-within { border-color: var(--green); }
.search-form__input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; background: transparent; font: 500 16px/1.2 var(--font); color: var(--ink); outline: none; }
.search-form__btn { display: grid; place-items: center; width: 52px; border: 0; background: var(--green); color: #fff; }
.search-form__btn:hover { background: var(--green-dark); }

/* ---------- Top bar: date, breaking, utility links ---------- */
.topbar { background: var(--deep); color: rgba(255, 255, 255, .85); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar__date { white-space: nowrap; }
.topbar__links { display: flex; gap: 20px; margin-left: auto; font-weight: 600; }
.topbar-menu { display: flex; gap: 20px; }
.topbar__links a:hover { color: var(--amber); }

.breaking { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.breaking__label { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--alert); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.6; }
.breaking__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 600; }
a.breaking__text:hover { color: var(--amber); }

/* ---------- Masthead ---------- */
.masthead { background: #fff; }
.masthead__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.site-brand { flex: none; }
.site-brand img, .site-brand .custom-logo { height: 52px; width: auto; max-width: none; }
.site-brand__link, .site-brand .custom-logo-link { display: block; line-height: 0; }
.masthead__tagline { max-width: 34ch; padding-left: 24px; border-left: 2px solid var(--line); color: var(--muted); font: 500 14px/1.35 var(--font); }

/* ---------- Navbar (sticky green bar) ---------- */
.navbar { position: sticky; top: 0; z-index: 90; background: var(--green); color: #fff; box-shadow: 0 2px 10px rgba(10, 46, 28, .22); }
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 46px; } }
.navbar__inner { display: flex; align-items: stretch; height: var(--nav-h); }

.nav-btn { display: grid; place-items: center; flex: none; width: 48px; height: var(--nav-h); padding: 0; border: 0; background: none; color: #fff; }
.nav-btn:hover { background: rgba(255, 255, 255, .14); }
.menu-toggle { display: none; }

.primary-nav { flex: 1; min-width: 0; height: 100%; }
.primary-menu { display: flex; flex-wrap: nowrap; height: 100%; }
.primary-menu > li { position: relative; flex: none; }
.primary-menu > li > a, .primary-menu > li > button {
  display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 15px; border: 0; background: none;
  color: #fff; font: 700 14.5px/1 var(--font); white-space: nowrap;
}
.primary-menu > li > a:hover, .primary-menu > li > button:hover, .primary-menu > li:focus-within > a { background: rgba(255, 255, 255, .14); }
.primary-menu > .current-menu-item > a, .primary-menu > .current-menu-ancestor > a, .primary-menu > .current-category-ancestor > a { background: rgba(0, 0, 0, .18); box-shadow: inset 0 -4px 0 var(--amber); }
.primary-menu .menu-item-has-children > a::after, .menu-item-more > button::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.primary-menu .sub-menu { position: absolute; top: 100%; left: 0; z-index: 95; display: none; min-width: 230px; padding: 8px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 34px rgba(10, 46, 28, .22); }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font: 600 15px/1.3 var(--font); }
.primary-menu .sub-menu a:hover { background: var(--tint); color: var(--green-dark); }
.primary-menu .sub-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 12px; box-shadow: none; }
.menu-item-more > .sub-menu { left: auto; right: 0; }

.search-panel { position: absolute; top: 100%; left: 0; right: 0; padding: 16px 0; background: #fff; box-shadow: 0 16px 30px rgba(10, 46, 28, .18); }

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; transition: visibility 0s linear .25s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, .55); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(88vw, 360px); padding: 0 20px 32px; overflow-y: auto; background: #fff; transform: translateX(-100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.drawer__title { font: 800 18px/1 var(--font); }
.drawer .search-form { margin: 0 0 8px; }
.drawer-menu > li > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 700 17px/1.3 var(--font); }
.drawer-menu .sub-menu a { display: block; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--line); font: 500 15px/1.3 var(--font); color: var(--ink-2); }
.drawer-menu .current-menu-item > a { color: var(--green); }
.drawer-secondary { margin-top: 24px; }
.drawer-secondary__list { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
body.has-drawer { overflow: hidden; }

/* ---------- Layout and panels ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 24px; padding-bottom: 56px; align-items: stretch; }
.layout--article { grid-template-columns: minmax(0, 1fr) 320px; }
.layout__main, .sidebar { min-width: 0; }
.sidebar > * + * { margin-top: 24px; }
.page-main { padding: 24px 0 56px; }

.panel { padding: 20px 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.panel__title { padding-left: 12px; border-left: 5px solid var(--green); font: 800 20px/1.2 var(--font); letter-spacing: -.01em; }
.panel__title a:hover { color: var(--green); }
.panel__more { display: inline-flex; align-items: center; gap: 6px; font: 700 13px/1 var(--font); color: var(--green-dark); white-space: nowrap; }
.panel__more::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s; }
.panel__more:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Mosaic (home hero) ---------- */
.mosaic-wrap { padding-top: 24px; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 232px); gap: 12px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--deep), var(--green-dark)); box-shadow: var(--shadow); }
.tile--large { grid-column: 1 / 3; grid-row: 1 / 3; }
.tile__link { position: absolute; inset: 0; display: block; color: #fff; }
.tile__link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile__link:hover img { transform: scale(1.04); }
.tile__link::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 24, 14, .94) 0%, rgba(6, 24, 14, .6) 42%, rgba(6, 24, 14, 0) 78%); }
.tile--noimg .tile__link::after { background: none; }
.tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
.tile .chip-cat { margin: 0; background: var(--amber); color: #1a1300; }
.tile .chip-cat--sponsored { background: #fff; color: #333; }
.tile__title { font: 800 17px/1.25 var(--font); letter-spacing: -.01em; }
.tile--large .tile__title { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; }
.tile--large .tile__body { padding: 24px 26px; gap: 10px; }
.tile__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.tile--large .tile__title { -webkit-line-clamp: 4; line-clamp: 4; }
.tile__link:hover .tile__title { text-decoration: underline; text-underline-offset: 3px; }
.tile__time { font: 500 12px/1 var(--font); color: rgba(255, 255, 255, .8); }

.mosaic--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 360px 200px; }
.mosaic--compact .tile--large { grid-column: 1 / -1; grid-row: 1; }
.mosaic--n0 { grid-template-rows: 360px; }
.mosaic--n1 { grid-template-columns: minmax(0, 1fr); }
.mosaic--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card__media { display: block; overflow: hidden; border-radius: 12px; background: var(--tint); aspect-ratio: 16 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__media:hover img { transform: scale(1.04); }
.card__title { font-weight: 700; letter-spacing: -.01em; }
.card__title a:hover { color: var(--green); }
.card__dek { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font: 500 12.5px/1.3 var(--font); color: var(--muted); }

.card--feature .card__media { margin-bottom: 14px; border-radius: var(--radius); }
.card--feature .card__title { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; }
.card--feature { padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.card--standard .card__media { margin-bottom: 12px; }
.card--standard .card__title { font-size: 17px; line-height: 1.32; }

.card--row { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.card--row.card--noimg { grid-template-columns: minmax(0, 1fr); }
.card--row .card__title { font-size: 18px; line-height: 1.3; }
.card--row .card__dek { font-size: 14.5px; }
.feed > .card:last-child { border-bottom: 0; padding-bottom: 4px; }
.feed > .card:first-child { padding-top: 4px; }

.card--mini { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.card--mini.card--noimg { grid-template-columns: minmax(0, 1fr); }
.card--mini .card__title { font-size: 15px; line-height: 1.35; }
.card--mini .card__media { aspect-ratio: 3 / 2; border-radius: var(--radius-sm); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sponsored-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.panel--sponsored { background: #fffbea; box-shadow: inset 0 0 0 1px #f3e2a2, var(--shadow); }
.panel--sponsored .panel__title { border-color: var(--amber); }
.panel--sponsored .card--standard .card__title { font-size: 15px; }

/* ---------- Home: section panels ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair > .panel:only-child { grid-column: 1 / -1; }
.section-panel__feature { margin-bottom: 6px; }
.section-panel__feature .card__title { font-size: 18px; line-height: 1.3; }

/* ---------- Sidebar ---------- */
.most-read__item { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.most-read__item:first-child { border-top: 0; padding-top: 4px; }
.most-read__rank { flex: none; min-width: 28px; font: 800 28px/1 var(--font); color: var(--green); font-variant-numeric: tabular-nums; }
.most-read__title { font: 700 15px/1.38 var(--font); }
.most-read__title:hover { color: var(--green); }

.follow-card { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, var(--green), var(--deep)); color: #fff; box-shadow: var(--shadow); }
.follow-card__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.follow-card__title { margin-bottom: 8px; font: 800 17px/1.25 var(--font); }
.follow-card__btn { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--amber); color: #1a1300; font: 800 13px/1.2 var(--font); }
.follow-card__btn:hover { background: #fff; }

/* ---------- Advertising (rules live in inc/ads.php) ---------- */
.ad { margin: 24px 0; padding: 10px 12px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; clear: both; }
.ad__label { margin: 0 0 8px; font: 700 10.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ad__body { min-height: 250px; background: var(--bg); border-radius: var(--radius-sm); }
.ad .adsbygoogle { width: 100%; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.stack > .ad { margin-top: 24px; margin-bottom: 0; }
.ad--article_1 .ad__body, .ad--article_2 .ad__body { min-height: 280px; }
.entry-content .ad { margin: 32px 0; box-shadow: none; background: var(--bg); }
.entry-content .ad__body { background: transparent; }
.ad--sidebar { position: sticky; top: calc(var(--nav-h) + 16px); margin: 24px 0 0; }
.admin-bar .ad--sidebar { top: calc(var(--nav-h) + 48px); }
.ad--sidebar .ad__body { min-height: 600px; }
.feed > .ad { margin: 12px 0; box-shadow: none; background: var(--bg); }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; padding: 28px 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--green), var(--deep)); color: #fff; box-shadow: var(--shadow); }
.newsletter__title { font: 800 24px/1.2 var(--font); letter-spacing: -.01em; }
.newsletter__blurb { margin-top: 6px; color: rgba(255, 255, 255, .86); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter__input { flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; border: 2px solid transparent; border-radius: 999px; background: #fff; font: 500 16px/1 var(--font); color: var(--ink); }
.newsletter__input:focus { outline: 3px solid var(--amber); outline-offset: 0; }
.newsletter .btn--primary { background: var(--amber); color: #1a1300; }
.newsletter .btn--primary:hover { background: #fff; }
.newsletter__msg { flex-basis: 100%; font-size: 14px; font-weight: 700; color: #fff; }
.newsletter__msg.is-error { color: #ffd0d5; }

/* ---------- Article ---------- */
.panel--article { padding: 30px 34px 34px; }
.article__title { margin: 4px 0 14px; font: 800 clamp(27px, 4vw, 39px)/1.18 var(--font); letter-spacing: -.02em; }
.article__dek { margin-bottom: 18px; font: 500 clamp(17px, 2vw, 19px)/1.55 var(--font); color: var(--ink-2); }

.byline { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 13.5px/1.4 var(--font); color: var(--muted); }
.byline__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.byline__author { color: var(--ink); font-weight: 700; font-size: 15px; }
.byline__author a:hover { color: var(--green); text-decoration: underline; }
.byline__updated { margin-left: 10px; }
.byline__read { margin-left: auto; padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--green-dark); font-weight: 700; font-size: 12.5px; white-space: nowrap; }

.article__figure { margin: 22px 0 0; }
.article__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.article__figure figcaption, .entry-content figcaption, .wp-caption-text { padding-top: 8px; font: 500 13px/1.4 var(--font); color: var(--muted); }

.entry-content { margin-top: 24px; font: 400 18px/1.78 var(--font); color: var(--ink); overflow-wrap: break-word; }
.article--page .entry-content { margin-top: 12px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { margin-top: 1.7em; font: 800 26px/1.25 var(--font); letter-spacing: -.015em; }
.entry-content h3 { margin-top: 1.5em; font: 800 21px/1.3 var(--font); }
.entry-content h4 { margin-top: 1.4em; font: 800 18px/1.3 var(--font); }
.entry-content a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { padding: 14px 20px; border-left: 5px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--tint); font-weight: 600; color: var(--ink); }
.entry-content blockquote cite { display: block; margin-top: .5em; font: 600 14px/1.4 var(--font); font-style: normal; color: var(--muted); }
.entry-content figure, .entry-content .wp-caption { margin: 1.6em 0; max-width: 100%; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content iframe, .entry-content video, .entry-content embed { max-width: 100%; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--tint); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 1.5em; font: 700 15px/1 var(--font); }

.article__footer { margin-top: 28px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { margin-right: 8px; font: 800 15px/1 var(--font); }
.share__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 2px solid var(--line); border-radius: 999px; background: #fff; font: 700 14px/1 var(--font); color: var(--ink); transition: filter .15s, border-color .15s; }
.share__btn:hover { border-color: var(--green); color: var(--green-dark); }
.share__btn--whatsapp { background: var(--green); border-color: var(--green); color: #fff; }
.share__btn--x { background: #111; border-color: #111; color: #fff; }
.share__btn--facebook { background: #1a63d8; border-color: #1a63d8; color: #fff; }
.share__btn--whatsapp:hover, .share__btn--x:hover, .share__btn--facebook:hover { color: #fff; filter: brightness(1.12); }

.author-box { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 16px; border-radius: var(--radius); background: var(--bg); }
.author-box__name { font: 800 17px/1.3 var(--font); }
.author-box__name:hover { color: var(--green); }
.author-box__bio { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

.read-progress { position: fixed; top: 0; left: 0; z-index: 120; width: 100%; height: 4px; background: var(--amber); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.admin-bar .read-progress { top: 32px; }

/* ---------- Archive, search, empty, pagination ---------- */
.archive-banner { padding: 28px 30px; border-radius: var(--radius); background: linear-gradient(135deg, var(--deep), var(--green-dark)); color: #fff; box-shadow: var(--shadow); }
.archive-banner__parent { margin-bottom: 6px; font: 700 13px/1.2 var(--font); }
.archive-banner__parent a { color: var(--amber); }
.archive-banner__title { font: 800 clamp(28px, 4vw, 38px)/1.15 var(--font); letter-spacing: -.02em; }
.archive-banner__desc { margin-top: 8px; max-width: 64ch; color: rgba(255, 255, 255, .86); }
.archive-banner__search { margin-top: 18px; max-width: 520px; }
.archive-banner__author { display: flex; gap: 20px; align-items: center; }
.archive-banner .initials { background: var(--amber); color: #1a1300; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; font: 700 15px/1 var(--font); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.pagination a.page-numbers:hover { background: var(--tint); color: var(--green-dark); }
.pagination .current { background: var(--green); color: #fff; }
.pagination .dots { background: none; box-shadow: none; }

.empty { max-width: 560px; margin: 40px auto; padding: 36px 28px; text-align: center; color: var(--ink-2); }
.empty__title { margin-bottom: 8px; font: 800 26px/1.2 var(--font); color: var(--ink); }
.empty .btn { margin-top: 16px; }
.more-wrap { text-align: center; }

/* ---------- Comments ---------- */
.comments__title { margin-bottom: 8px; padding-left: 12px; border-left: 5px solid var(--green); font: 800 20px/1.2 var(--font); }
.comment-list { margin-bottom: 28px; }
.comment-list .children { margin-left: 28px; padding-left: 18px; border-left: 3px solid var(--tint); }
.comment-body { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-avatar img { border-radius: 50%; }
.comment-main { min-width: 0; flex: 1; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.comment-author { font: 800 15px/1.3 var(--font); }
.comment-badge { padding: 1px 9px; border-radius: 999px; background: var(--tint); color: var(--green-dark); font: 800 11px/1.7 var(--font); }
.comment-time { font: 500 13px/1.3 var(--font); color: var(--muted); }
.comment-pending { margin-top: 6px; font: 600 14px/1.4 var(--font); color: var(--muted); }
.comment-text { margin-top: 6px; font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.comment-text > * + * { margin-top: .7em; }
.comment-actions { margin-top: 8px; font: 700 13.5px/1 var(--font); }
.comment-actions a { color: var(--green); }
.comment-actions a:hover { text-decoration: underline; }
.comments__closed { margin: 16px 0; color: var(--muted); }

.comment-reply-title { margin-bottom: 12px; font: 800 19px/1.2 var(--font); }
.comment-reply-title small { margin-left: 12px; font: 700 14px/1 var(--font); }
.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; margin-bottom: 6px; font: 700 14px/1.3 var(--font); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font: 500 16px/1.5 var(--font); color: var(--ink); }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--green); }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.comment-notes, .logged-in-as { font: 500 14px/1.5 var(--font); color: var(--muted); }
.comment-navigation, .comments-pagination { margin-bottom: 24px; font: 700 14px/1 var(--font); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; background: var(--deep); color: rgba(255, 255, 255, .8); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.footer__logo a, .footer__logo .custom-logo-link { display: inline-block; padding: 8px 14px; border-radius: 12px; background: #fff; line-height: 0; }
.footer__logo img, .footer__logo .custom-logo { height: 40px; width: auto; }
.footer__desc { max-width: 44ch; margin-top: 16px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; color: #fff; }
.social-link:hover { background: var(--amber); border-color: var(--amber); color: #1a1300; }
.footer__heading { margin-bottom: 14px; font: 800 16px/1.2 var(--font); color: #fff; }
.footer__links li + li { margin-top: 9px; }
.footer__links a { font-size: 15px; }
.footer__links a:hover { color: var(--amber); }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__base-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.footer__legal-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal-list a:hover { color: var(--amber); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .layout, .layout--article { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .sponsored-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 999px) {
  .layout, .layout--article { grid-template-columns: minmax(0, 1fr); }
  .ad--sidebar { display: none; }
  .masthead__tagline { display: none; }
}

@media (max-width: 959px) {
  .menu-toggle { display: grid; }
  /* Sections become a swipeable chip bar; the drawer holds the full menu. */
  .primary-nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .primary-nav::-webkit-scrollbar { display: none; }
  .primary-menu { width: max-content; }
  .primary-menu .sub-menu { display: none !important; }
  .primary-menu .menu-item-has-children > a::after { display: none; }
  .primary-menu > li > a { padding: 0 14px; }
  .masthead__inner { min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  .site-brand img, .site-brand .custom-logo { height: 44px; }
  .pill--wa span { display: none; }
  .pill--wa { padding: 0; width: 40px; justify-content: center; }
}

@media (max-width: 799px) {
  .mosaic, .mosaic--compact, .mosaic--n1, .mosaic--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 10px; }
  .mosaic .tile--large, .mosaic--compact .tile--large { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; }
  .mosaic .tile:not(.tile--large) { aspect-ratio: 4 / 3; }
  .tile__body { padding: 12px 14px; }
  .tile__title { font-size: 14.5px; }
  .tile--large .tile__body { padding: 18px; }
  .tile--large .tile__title { font-size: 22px; }
  .tile__time { display: none; }
  .tile--large .tile__time { display: block; }
  .sponsored-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 759px) {
  .topbar__links { display: none; }
  .topbar--has-breaking .topbar__date { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer__about { grid-column: 1 / -1; }
  .newsletter { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
}

@media (max-width: 599px) {
  :root { --gutter: 14px; }
  .panel { padding: 16px 16px; border-radius: 12px; }
  .panel--article { padding: 20px 16px 24px; }
  .card--row { grid-template-columns: minmax(0, 1fr) 108px; gap: 12px; padding: 14px 0; }
  .card--row .card__media { order: 2; }
  .card--row .card__title { font-size: 16px; }
  .card--row .card__dek { display: none; }
  .card--row.card--noimg .card__dek { display: block; }
  .entry-content { font-size: 17px; line-height: 1.72; }
  .entry-content h2 { font-size: 22px; }
  .byline__read { display: none; }
  .share__label { flex-basis: 100%; margin: 0 0 4px; }
  .newsletter__form .btn { flex: 1 1 100%; }
  .comment-list .children { margin-left: 8px; padding-left: 12px; }
  .archive-banner { padding: 22px 18px; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .masthead, .navbar, .drawer, .sidebar, .ad, .newsletter, .share, .related, .comments, .site-footer, .read-progress, .skip-link { display: none !important; }
  body { background: #fff; }
  .layout, .layout--article { display: block; padding: 0; }
  .panel { box-shadow: none; padding: 0; }
  .entry-content { font-size: 12pt; }
  .entry-content a { color: inherit; text-decoration: underline; }
}
