/* ==========================================================================
   Watch Nigeria — Main Stylesheet
   News palette: green + amber + signal red, light and dark mode
   ========================================================================== */

/* ---------- Local variable fonts (no external CDN) ----------
   Drop the .woff2 files into assets/fonts/ (see assets/fonts/README.txt).
   Until they exist the system stacks below are used, so nothing breaks. */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('../fonts/SourceSerif4Variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --color-primary: #eb0c1c;        /* logo red */
  --color-primary-dark: #b20812;
  --color-primary-light: #ff3b47;
  --color-highlight: #eb0c1c;      /* logo red accent bars */
  --color-highlight-dark: #8f060f;
  --color-signal: #eb0c1c;         /* breaking / kicker red */
  --color-ink-heading: #0a0a0a;    /* section headings + on-image labels (logo black) */
  --color-paper: #f6f6f6;
  --color-paper-2: #ececec;
  --color-text: #141414;
  --color-text-muted: #595959;
  --color-border: #dddddd;
  --color-card: #ffffff;

  --bg: var(--color-paper);
  --bg-alt: var(--color-paper-2);
  --text: var(--color-text);
  --text-muted: var(--color-text-muted);
  --border: var(--color-border);
  --card: var(--color-card);
  --accent: var(--color-primary);
  --accent-2: var(--color-primary-dark);
  --accent-3: var(--color-highlight);
  --signal: var(--color-signal);
  --heading-color: var(--color-ink-heading);

  /* Typography */
  --font-heading: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-site-title: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale (fluid) */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2vw, 3rem);
  --measure: 68ch;                 /* 65-75 characters per line */

  /* Layout */
  --gutter: 24px;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --transition: 0.2s ease;

  /* Reserved ad heights (kill CLS) */
  --ad-h-sidebar: 250px;
  --ad-h-sticky: 600px;
  --ad-h-inline: 280px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #141414;
  --text: #ededed;
  --text-muted: #a3a3a3;
  --border: #2a2a2a;
  --card: #121212;
  --accent: var(--color-highlight);
  --accent-2: var(--color-primary-light);
  --accent-3: #ff3b47;
  --heading-color: #f5f5f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Responsive media safety net ----------
   Forces ANY image/figure/embed inside post content to respect the
   viewport, even if WordPress (or a pasted image) sets an inline
   pixel width — this is what was causing images to render at
   desktop size on mobile. */
.entry-content img,
.entry-content figure,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object,
.card-excerpt img,
.hero img,
.card-thumb img {
  max-width: 100% !important;
  width: auto;
  height: auto;
}
.entry-content figure { margin: 0 0 1.5em; }
.entry-content figure img { width: 100%; }
.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.entry-content iframe { aspect-ratio: 16 / 9; height: auto; }
.entry-content { overflow-wrap: break-word; word-wrap: break-word; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 20px;
  gap: 12px 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 2px;
}
.site-logo-link,
.custom-logo-link { display: flex; align-items: center; }
.site-branding img.custom-logo { max-height: 44px; width: auto; }
.site-title-link { text-decoration: none; display: inline-flex; align-items: center; }
.site-title {
  /* Bolder, more geometric than the body/heading serif — echoes the
     blocky lettering in the logo mark. Color is set inline in <head>
     from Appearance → Customize → Site Identity → Site Title Color. */
  font-family: var(--font-site-title);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent); /* fallback if the customizer color is ever unset */
  margin: 0;
  white-space: nowrap;
}
.site-description {
  flex-basis: 100%;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  line-height: 1.4;
  margin: 0;
  padding-left: 2px;
  max-width: 420px;
}

/* The site title's color is normally set by the Customizer (Appearance →
   Customize → Site Identity → Site Title Color) via an inline <style> tag
   in <head>. In dark mode that chosen color often can't register well
   against the dark background, so it's automatically swapped to white
   the instant the visitor flips the dark/light toggle — no reload
   needed, since it's just following the data-theme attribute the toggle
   already sets. Switching back to light mode restores the Customizer
   color automatically. !important is required here only to win over
   the inline style's equal specificity. */
[data-theme="dark"] .site-title {
  color: #fff !important;
}

.primary-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.primary-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--accent);
  color: #fff;
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.theme-toggle,
.menu-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}
.theme-toggle:hover, .menu-toggle:hover {
  background: var(--accent);
  color: #fff;
}

/* Search button is a labeled pill (icon + text), not a compressed
   icon-only circle, so it reads clearly at any screen size. */
.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.search-toggle:hover {
  background: var(--accent);
  color: #fff;
}
.search-toggle svg.icon-search { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.search-toggle-label { line-height: 1; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }

.menu-toggle { display: none; }
.menu-toggle-label { display: none; }

/* ---------- Header search panel (mobile + desktop) ---------- */
.site-search-panel {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.site-search-panel[hidden] { display: none; }
.site-search-panel .search-form { margin: 0; }
.site-search-panel .form-row { margin-bottom: 0; }
.site-search-panel input[type="search"] { flex: 1; }

/* ---------- Buttons / forms ---------- */
.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-row { margin-bottom: 14px; }

/* ---------- Hero / Featured ---------- */
.hero {
  position: relative;
  margin: 24px auto;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1200px;
}
.hero-link { display: block; position: relative; }
.hero img { width: 100%; height: 520px; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,16,12,0.85) 0%, rgba(8,16,12,0.15) 55%, rgba(8,16,12,0) 100%);
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px;
  color: #fff;
  max-width: 860px;
}
.hero-category {
  display: inline-block;
  background: var(--heading-color);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  transition: background var(--transition), color var(--transition);
}
.hero-title { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1.12; color: #fff; margin-bottom: 10px; }
.hero-title a { color: #fff; }
.hero-meta { font-size: 0.9rem; color: #ececec; letter-spacing: 0.3px; }

/* ---------- Section headers ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 10px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-header h2 {
  font-family: var(--font-site-title);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--heading-color);
  transition: color var(--transition);
  position: relative;
  padding-left: 18px;
}
.section-header h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.12em; bottom: 0.12em;
  width: 6px;
  border-radius: 3px;
  background: var(--accent-3);
}
.section-header .view-all {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- Post grid / cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.post-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-thumb { position: relative; }
.card-thumb img { width: 100%; height: 170px; object-fit: cover; }
.card-cat {
  position: absolute; top: 10px; left: 10px;
  background: var(--heading-color);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.card-body { padding: 16px; }
.card-title { font-size: 1.05rem; margin-bottom: 8px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 10px; }
.card-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.card-meta img.avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* ---------- Sidebar / widgets ---------- */
.content-layout { display: grid; grid-template-columns: 2.4fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.widget h3 {
  font-family: var(--font-site-title);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--heading-color);
  margin-bottom: 16px;
}
.widget h3::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  margin-top: 10px;
  background: var(--accent-3);
  border-radius: 2px;
}
.widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; }

/* ---------- Homepage: full-width magazine list (no sidebar, no grid) ----------
   Every section's stories are stacked in a single column: large
   featured image on top, headline underneath, then excerpt and byline.
   Scoped to .homepage-main so archive, category, search and
   single-post cards are unaffected. */
.homepage-main .post-grid.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.homepage-main .post-list .card {
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  margin: 0 0 30px;
  padding: 0 0 30px;
}
.homepage-main .post-list .card:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.homepage-main .post-list .card:hover { transform: none; box-shadow: none; }
.homepage-main .post-list .card-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.homepage-main .post-list .card-thumb img {
  width: 100%;
  height: clamp(220px, 36vw, 460px);
  object-fit: cover;
  transition: transform 0.5s ease;
}
.homepage-main .post-list .card:hover .card-thumb img { transform: scale(1.03); }
.homepage-main .post-list .card-cat { top: 16px; left: 16px; font-size: 0.75rem; padding: 5px 14px; }
.homepage-main .post-list .card-body { padding: 20px 0 0; }
.homepage-main .post-list .card-title {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
}
.homepage-main .post-list .card-excerpt { font-size: 1.02rem; margin-bottom: 12px; }
.homepage-main .post-list .card-meta { font-size: 0.85rem; }
.homepage-main .pagination {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}
@media (min-width: 1400px) {
  .homepage-main .pagination { max-width: 1280px; }
}
/* Theme Options → Homepage switches */
.wn-hide-excerpt .homepage-main .card-excerpt { display: none; }
.wn-hide-meta .homepage-main .card-meta { display: none; }

/* ---------- Single post: article + right sidebar (desktop) ----------
   Reuses .content-layout (same two-column, desktop-only sidebar
   behavior as archive/category/search). The article column drops its
   own centering/padding since .content-layout supplies the spacing,
   and the "You May Also Like" grid uses 2 columns to fit beside the
   sidebar. Scoped to .single-layout so static pages (page.php) keep
   their original centered layout. */
.single-layout .single-main { min-width: 0; }
.single-layout .single-post { max-width: none; margin: 0; padding: 0; }
.single-layout .related-posts.section { padding-left: 0; padding-right: 0; max-width: none; }
.single-layout .related-posts .post-grid { grid-template-columns: repeat(2, 1fr); }
/* Larger sidebar. Width comes from Theme Options → Posts & Sidebar
   (--wn-sidebar-w, default 400px), capped at 36% of the layout so the
   article never gets squeezed on smaller laptop screens. */
@media (min-width: 901px) {
  .single-layout { grid-template-columns: minmax(0, 1fr) min(var(--wn-sidebar-w, 400px), 36%); }
  .single-layout.sidebar-left { grid-template-columns: min(var(--wn-sidebar-w, 400px), 36%) minmax(0, 1fr); }
  .single-layout.sidebar-left .sidebar { order: -1; }
  .single-layout.no-sidebar { grid-template-columns: minmax(0, 800px); justify-content: center; }
}
.single-layout .widget { padding: 26px; }
.single-layout .widget ul li { font-size: 1rem; padding: 10px 0; }
@media (max-width: 700px) {
  .single-layout .related-posts .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .single-layout { padding: 24px 14px; }
}

/* ---------- Single post ---------- */
.single-post { max-width: 800px; margin: 0 auto; padding: 40px 20px; }
.single-post .post-thumb img { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.single-post .post-category {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  font-size: 0.8rem; letter-spacing: 1px;
}
.single-post h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -0.01em; margin: 10px 0 18px; }
.single-post .post-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-muted); font-size: 0.9rem;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.single-post .post-meta img.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.entry-content { font-size: 1.12rem; line-height: 1.8; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol {
  margin: 0 0 1.2em; padding-left: 1.4em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul ul { list-style: circle; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img { border-radius: var(--radius); margin: 1em 0; }
.entry-content a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}
.entry-content a:hover { color: var(--accent-2); }
.entry-content blockquote {
  border-left: 5px solid var(--accent-3);
  margin: 1.8em 0; padding: 0.6em 1.4em;
  background: var(--bg-alt); font-style: italic;
  font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5;
  border-radius: 0 8px 8px 0;
}
/* ---------- Social share ---------- */
.social-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-share .share-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-right: 4px;
}
.social-share a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: transform var(--transition), opacity var(--transition);
}
.social-share a:hover { transform: translateY(-1px); opacity: 0.92; color: #fff; }
.social-share a svg { width: 15px; height: 15px; fill: currentColor; }
.share-facebook { background: #1877f2; }
.share-x { background: #000; }
[data-theme="dark"] .share-x { background: #2a2a2a; }
.share-whatsapp { background: #25d366; }

.author-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 20px; margin: 40px 0;
}
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-socials { display: flex; gap: 8px; margin-top: 10px; }
.author-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.author-socials a:hover { background: var(--accent); color: #fff; }
.author-socials a svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 40px; }
.comment-list { margin-bottom: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 700; }
.comment-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0a0a; color: #dcdcdc; margin-top: 60px; }
[data-theme="dark"] .site-footer { background: #000; }
.footer-inner {
  /* Fluid, edge-to-edge: spans the full viewport width on every
     device, with side padding that scales with the screen. */
  width: 100%; max-width: none; margin: 0; padding: 56px clamp(20px, 5vw, 96px) 24px;
  padding-left: max(clamp(20px, 5vw, 96px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 96px), env(safe-area-inset-right));
  /* Three columns (About / Explore / Legal) that share the full width. */
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.footer-col { min-width: 0; overflow-wrap: anywhere; }
.footer-inner li a { display: inline-block; padding: 4px 0; }
.footer-inner h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-inner a { color: #bdbdbd; }
.footer-inner a:hover { color: var(--color-primary-light); }
.footer-about p { color: #bdbdbd; font-size: 0.9rem; }
.footer-bottom {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center; font-size: 0.82rem; color: #9a9a9a;
  padding: 18px max(20px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow-wrap: anywhere;
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 30px 0; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.9rem;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Dark mode contrast fix ----------
   In dark mode --accent is the logo red; these elements keep a white
   foreground so they stay legible on it. */
[data-theme="dark"] .primary-nav a:hover,
[data-theme="dark"] .primary-nav .current-menu-item > a,
[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .menu-toggle:hover,
[data-theme="dark"] .btn,
[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .pagination .current {
  color: #fff;
}
/* .btn:hover always swaps to a solid primary-dark background (see base rules
   above), so it needs white text back even in dark mode — otherwise this
   block's blanket ".btn" rule would make the hover text unreadable. */
[data-theme="dark"] .btn:hover {
  color: #fff;
}

/* ---------- Large desktop / wide screens ----------
   Container is already capped at 1200px so large monitors keep a
   readable line length automatically; this just gives extra-wide
   viewports a bit more breathing room in the gutters. */
@media (min-width: 1400px) {
  .container,
  .section,
  .hero,
  .content-layout {
    max-width: 1280px;
  }
}

/* ---------- Desktop: Menu drop-down ----------
   On screens wider than 700px the menu is no longer a row of links in
   the header. A "Menu" button (next to Search and the light/dark
   toggle, at the top-right) opens a drop-down list underneath it. The
   mobile slide-in panel (700px and below) is defined further down. */
@media (min-width: 701px) {
  /* One row: brand on the left, buttons on the right (top-right). The
     brand may shrink (its tagline wraps) instead of pushing the buttons
     onto a second row. */
  .header-inner { position: relative; flex-wrap: nowrap; }
  .site-branding { order: 1; min-width: 0; }
  .header-actions { order: 2; }
  .menu-toggle {
    display: inline-flex;
    width: auto; height: 40px;
    padding: 0 16px; gap: 8px;
    border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  }
  .menu-toggle-label { display: inline; line-height: 1; }
  .menu-toggle[aria-expanded="true"] { background: var(--accent); color: #fff; }
  .primary-nav {
    position: absolute;
    top: 100%; right: 20px;
    width: 280px; max-width: calc(100vw - 40px);
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border); border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 101;
  }
  .primary-nav.open { opacity: 1; visibility: visible; transform: none; }
  .primary-nav ul { flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 2px; }
  .primary-nav a { display: block; width: 100%; border-radius: 8px; }
  .primary-nav ul ul { padding-left: 14px; margin-top: 2px; }
}
[data-theme="dark"] .menu-toggle[aria-expanded="true"] { color: var(--color-primary); }

/* ---------- Tablet / mobile ----------
   The sidebar widget area is desktop-only (right column, via
   .content-layout's grid). Below this breakpoint it's hidden rather
   than stacked, since .content-layout collapses to a single column. */
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .primary-nav { position: fixed; top: var(--wn-header-h, 74px); left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 20px; transform: translateX(-100%); transition: transform var(--transition);
    overflow-y: auto; z-index: 99;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; width: 100%; }
  .primary-nav a { display: block; width: 100%; border-radius: 8px; }
  .menu-toggle { display: inline-flex; }
  .post-grid { grid-template-columns: 1fr; }
  .hero img { height: 280px; }
  .hero-title { font-size: 1.5rem; }
  .site-branding img.custom-logo { max-height: 34px; }
  .site-title { font-size: 1.1rem; white-space: normal; }
  /* Header row: brand on the left, Search / light-dark / Menu buttons
     pinned to the top-right corner. */
  .header-inner { flex-wrap: nowrap; align-items: flex-start; }
  .site-branding { flex: 1 1 0; min-width: 0; }
  .header-actions { align-self: flex-start; }
  .site-description {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .header-actions { gap: 6px; }
  .site-search-panel .form-row { flex-direction: row; }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .container, .section, .hero { padding-left: 14px; padding-right: 14px; }
  .footer-inner {
    grid-template-columns: 1fr; gap: 24px; padding-top: 40px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .footer-inner li a { padding: 6px 0; }
  .header-inner { padding: 10px 14px; gap: 10px; }
  .theme-toggle, .menu-toggle { width: 36px; height: 36px; font-size: 1rem; }
  .search-toggle { height: 36px; padding: 0 12px; gap: 5px; font-size: 0.78rem; }
  .search-toggle svg.icon-search { width: 14px; height: 14px; }
  .hero { margin: 14px auto; }
  .hero img { height: 220px; }
  .hero-content { padding: 20px; }
  .hero-title { font-size: 1.3rem; }
  .section { padding: 28px 14px 6px; }
  .section-header h2 { font-size: 1.4rem; }
  .single-post { padding: 24px 14px; }
  .single-post h1 { font-size: 1.6rem; }
  .card-body { padding: 12px; }
}

/* Very narrow phones: Search collapses to its icon (label stays available to screen readers). */
@media (max-width: 380px) {
  .search-toggle { padding: 0; width: 36px; justify-content: center; }
  .search-toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
  }
}

/* ---------- Ad slots ----------
   Neutral wrappers only — sizing/format is whatever the pasted ad
   unit code renders. The label is screen-reader/visual disclosure
   only and never affects layout. */
.wn-ad-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 24px auto;
  max-width: 1200px;
}
.wn-ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.wn-ad-header,
.wn-ad-in-feed,
.wn-ad-footer {
  padding: 0 20px;
}
.wn-ad-in-content { margin: 28px 0; }
.wn-ad-after-content { margin: 32px 0; }
.wn-ad-sidebar { margin: 0 0 24px; }
.wn-ad-slot > *,
.wn-ad-slot ins { max-width: 100%; }

/* ---------- Sponsored post badge ---------- */
.wn-sponsored-badge {
  display: inline-block;
  background: var(--accent-3);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.card-thumb .wn-sponsored-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  margin-left: 0;
}

/* ---------- Table of contents ---------- */
.wn-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
}
.wn-toc-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 10px;
}
.wn-toc ul { list-style: none; margin: 0; padding: 0; }
.wn-toc li { padding: 4px 0; }
.wn-toc-level-3 { padding-left: 18px; font-size: 0.92rem; }
.wn-toc a { color: var(--text); }
.wn-toc a:hover { color: var(--accent); }

/* ==========================================================================
   NEWS LAYER (v2.0)
   Kickers, reading column, share rail, grids with reserved space (no CLS),
   ad slots with fixed min-heights, archive pills, author hero, newsletter.
   ========================================================================== */

.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  width: auto; height: auto; clip: auto; padding: 10px 16px;
  background: var(--accent); color: #fff; border-radius: var(--radius);
}

/* ---------- Topbar + site title ---------- */
.topbar { background: #0a0a0a; color: #e8e8e8; font-size: var(--fs-xs); }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.topbar-tagline { opacity: 0.85; }
.site-title-wrap { margin: 0; font-size: inherit; font-family: var(--font-site-title); line-height: 1; }
@media (max-width: 600px) { .topbar-tagline { display: none; } }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}
.kicker a { color: inherit; }
.kicker a:hover { text-decoration: underline; }
.kicker-sm { margin-bottom: 4px; font-size: 0.68rem; }
[data-theme="dark"] .kicker { color: #ff6b5f; }

/* ---------- Cards: fixed aspect ratio, no layout shift ---------- */
.card-thumb {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 500 / 340;
  background: var(--bg-alt);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-title { font-family: var(--font-heading); font-size: var(--fs-md); line-height: 1.25; }
.card-meta { flex-wrap: wrap; }

/* ---------- Grids ---------- */
.post-grid { gap: var(--gutter); }
.post-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.post-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .post-grid.cols-4, .post-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .post-grid.cols-4, .post-grid.cols-3 { grid-template-columns: 1fr; }
}
.homepage-main .section { margin-top: 40px; margin-bottom: 8px; }
.section-header h2.is-breaking::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px;
  border-radius: 50%; background: var(--signal); vertical-align: middle;
}

/* ---------- Hero (lead story) ---------- */
.hero-media { aspect-ratio: 1200 / 640; background: var(--bg-alt); }
.hero img { height: 100%; width: 100%; object-fit: cover; }
.hero-category { background: var(--signal); color: #fff; border-radius: 3px; }
.hero-title { font-family: var(--font-heading); }
.hero-sub { margin: 0 0 10px; color: #ececec; font-size: var(--fs-md); max-width: 60ch; }
@media (max-width: 700px) {
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-content { padding: 20px; }
  .hero-sub { display: none; }
}

/* ---------- Category modules ---------- */
.module-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--gutter); align-items: start; }
.module-lead .card-thumb { aspect-ratio: 1200 / 640; }
.module-lead .card-title { font-size: var(--fs-lg); }
.module-list { display: flex; flex-direction: column; }
.module-list .list-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.module-list .list-item:first-child { padding-top: 0; }
.module-list .list-item:last-child { border-bottom: 0; }
.module-list h3 { font-family: var(--font-heading); font-size: var(--fs-md); margin: 0 0 4px; line-height: 1.25; }
.module-list h3 a { color: var(--text); }
.module-list h3 a:hover { color: var(--accent); }
@media (max-width: 800px) { .module-grid { grid-template-columns: 1fr; } }

/* ---------- Single article ---------- */
.single-post { max-width: 860px; margin: 0; padding: 32px 0 40px; }
.single-layout.no-sidebar .single-post { margin: 0 auto; }
.article-header .kicker { font-size: var(--fs-sm); }
.single-post .entry-title { font-family: var(--font-heading); font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -0.015em; margin: 6px 0 14px; }
.entry-subtitle { font-family: var(--font-heading); font-size: var(--fs-lg); line-height: 1.4; color: var(--text-muted); margin: 0 0 20px; max-width: 60ch; }
.single-post .post-meta { gap: 12px; align-items: center; }
.byline-avatars { display: flex; }
.byline-avatars .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.byline-avatars .avatar + .avatar { margin-left: -10px; }
.meta-lines { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-sm); }
.byline { color: var(--text); font-weight: 600; }
.byline a { color: var(--text); }
.byline a:hover { color: var(--accent); }
.meta-secondary { color: var(--text-muted); font-size: var(--fs-xs); display: flex; flex-wrap: wrap; gap: 6px; }
.post-thumb { margin: 0 0 28px; }
.post-thumb img { aspect-ratio: 1200 / 640; width: 100%; object-fit: cover; margin: 0; }
.post-thumb figcaption { font-size: var(--fs-xs); color: var(--text-muted); padding-top: 8px; }

.article-body { display: grid; grid-template-columns: 52px minmax(0, var(--measure)); gap: 28px; align-items: start; }
.entry-content { font-family: var(--font-heading); font-size: 1.1875rem; line-height: 1.75; max-width: var(--measure); }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; }
.entry-content blockquote { border-left-color: var(--signal); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; font-family: var(--font-body); }
.post-tags a { display: inline-block; padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--fs-xs); color: var(--text-muted); }
.post-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* Share rail: sticky column on desktop, inline row on mobile */
.social-share.is-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 0; }
.social-share.is-rail .share-label { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.social-share.is-rail a, .social-share.is-rail .share-copy {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  font-size: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer;
}
.social-share.is-rail a:hover, .social-share.is-rail .share-copy:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social-share.is-rail svg { width: 18px; height: 18px; fill: currentColor; }
.share-copy-label { display: none; }
.share-copy.is-copied { background: var(--accent); color: #fff; }
@media (max-width: 899px) {
  .article-body { display: block; }
  .social-share.is-rail { position: static; flex-direction: row; justify-content: flex-start; margin: 0 0 20px; }
}

.author-box { display: flex; gap: 16px; padding: 20px; margin: 32px 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box p { margin: 0 0 6px; }
.author-box-name { font-weight: 800; }
.author-role { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Newsletter ---------- */
.newsletter-box { margin: 36px 0; padding: 28px; border-radius: var(--radius); background: #0a0a0a; color: #fff; }
.newsletter-box h2 { color: #fff; font-size: var(--fs-xl); margin-bottom: 6px; }
.newsletter-box p { margin: 0 0 16px; color: #dedede; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1 1 240px; padding: 12px 14px; border: 0; border-radius: var(--radius); font: inherit; }
.newsletter-form .btn { background: var(--color-highlight); color: #fff; border: 0; }
.newsletter-home { margin-top: 48px; }

/* ---------- Archive / author ---------- */
.archive-header { padding-top: 32px; padding-bottom: 8px; }
.archive-title { font-family: var(--font-heading); font-size: var(--fs-2xl); margin: 0 0 8px; }
.archive-description { color: var(--text-muted); max-width: 70ch; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.pill { display: inline-block; padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: var(--fs-sm); font-weight: 600; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .pill.is-active { color: #fff; }
.archive-main { padding-top: 24px; padding-bottom: 40px; }

.author-hero { display: flex; gap: 28px; align-items: center; padding-top: 40px; padding-bottom: 12px; }
.author-hero-avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; }
.author-bio { max-width: 62ch; font-size: var(--fs-md); margin: 0 0 8px; }
.author-stats { color: var(--text-muted); font-size: var(--fs-sm); margin: 0 0 10px; }
@media (max-width: 700px) { .author-hero { flex-direction: column; align-items: flex-start; } .author-hero-avatar { width: 112px; height: 112px; } }

/* ---------- Ad slots: reserve space so nothing shifts ---------- */
.wn-ad-slot { min-height: var(--ad-h-inline); contain: layout style; }
.wn-ad-header { min-height: var(--ad-h-header); }
.wn-ad-sidebar { min-height: var(--ad-h-sidebar); }
.wn-ad-in-feed, .wn-ad-after-content, .wn-ad-footer { min-height: var(--ad-h-inline); }
.wn-ad-in-content { min-height: var(--ad-h-inline); }
.wn-ad-sticky { min-height: var(--ad-h-sticky); position: sticky; top: 96px; margin-top: 24px; }
@media (max-width: 900px) {
  .wn-ad-sticky { position: static; min-height: var(--ad-h-sidebar); }
  .wn-ad-header { min-height: 100px; } /* 320x100 / 320x50 mobile banners */
}
.widget-ad { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   CATCHY LAYER: headline slider, magazine hero grid, bold sections
   ========================================================================== */
:root {
  --color-blue: #4a4a4a;
  --grad-brand: linear-gradient(120deg, #000000 0%, #111111 55%, #1f1f1f 100%);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.16);
  --headline-h: 46px;
}
[data-theme="dark"] { --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.5); }

/* ---------- Header polish ---------- */
.topbar { background: var(--grad-brand); }
.site-header { border-bottom: 3px solid var(--color-highlight); box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }

/* ---------- Headline slider (header) ---------- */
.headline-bar { background: #0a0a0a; color: #fff; height: var(--headline-h); overflow: hidden; }
.headline-inner { display: flex; align-items: center; gap: 14px; height: 100%; }
.headline-label {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 14px; border-radius: 4px;
  background: var(--signal); color: #fff;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.headline-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: wn-pulse 1.4s ease-in-out infinite; }
@keyframes wn-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.headline-track { position: relative; flex: 1; min-width: 0; height: 100%; }
.headline-item {
  position: absolute; inset: 0; display: flex; align-items: center;
  color: #fff; font-weight: 600; font-size: var(--fs-sm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, color var(--transition);
}
.headline-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.headline-item:hover { color: var(--color-highlight); }
.headline-controls { flex: none; display: flex; gap: 6px; }
.headline-controls button {
  width: 28px; height: 28px; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%;
  background: transparent; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.headline-controls button:hover { background: var(--color-highlight); border-color: var(--color-highlight); color: #fff; }
@media (max-width: 600px) { .headline-controls { display: none; } .headline-label { padding: 0 10px; } }

/* ---------- Hero grid: lead + two side stories ---------- */
.hero-grid {
  display: grid; gap: 14px; margin-top: 24px;
  grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr;
  height: clamp(420px, 44vw, 580px);
}
.hero-card {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  background: var(--bg-alt); color: #fff; box-shadow: var(--shadow-lg);
}
.hero-card--lead { grid-row: 1 / span 2; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.hero-card:hover img { transform: scale(1.06); }
.hero-card .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0) 80%);
}
.hero-card .hero-content { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 28px; max-width: none; }
.hero-card--side .hero-content { padding: 18px; }
.hero-card .hero-category { display: inline-block; margin-bottom: 10px; padding: 4px 11px; border-radius: 3px; background: var(--signal); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-card--lead .hero-category { background: var(--color-highlight); color: #fff; }
.hero-card .hero-title { display: block; margin: 0 0 8px; color: #fff; font-family: var(--font-heading); font-size: clamp(1.7rem, 1.1rem + 2vw, 2.9rem); line-height: 1.08; letter-spacing: -0.015em; }
.hero-card .hero-title--sm { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem); line-height: 1.2; letter-spacing: 0; }
.hero-card .hero-sub { display: block; margin-bottom: 10px; max-width: 58ch; color: #e6e6e6; font-size: var(--fs-md); }
.hero-card .hero-meta { display: block; color: #d0d0d0; font-size: var(--fs-xs); }
.hero-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--color-highlight); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.hero-card:hover::after { transform: scaleX(1); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .hero-card--lead { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 11; }
  .hero-card--side { aspect-ratio: 4 / 3; }
  .hero-card .hero-sub { display: none; }
  .hero-card .hero-content { padding: 18px; }
}
@media (max-width: 520px) { .hero-grid { grid-template-columns: 1fr; } .hero-card--side { aspect-ratio: 16 / 10; } }

/* ---------- Bold section headings ---------- */
.homepage-main .section-header, .related-posts .section-header {
  border-bottom: 1px solid var(--border); position: relative; padding-bottom: 12px; align-items: center;
}
.homepage-main .section-header::after, .related-posts .section-header::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 110px; height: 4px; border-radius: 2px;
  background: var(--mod-accent, var(--accent));
}
.section-header h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); }
.section-header h2::before { background: var(--mod-accent, var(--accent-3)); }
.section-header .view-all {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.section-header .view-all:hover { background: var(--mod-accent, var(--accent)); border-color: var(--mod-accent, var(--accent)); color: #fff; }

/* Rotating accent colors for category modules */
.modules .module:nth-of-type(4n+1) { --mod-accent: var(--color-primary); }
.modules .module:nth-of-type(4n+2) { --mod-accent: var(--color-primary-dark); }
.modules .module:nth-of-type(4n+3) { --mod-accent: var(--color-blue); }
.modules .module:nth-of-type(4n+4) { --mod-accent: #111111; }
[data-theme="dark"] .modules .module:nth-of-type(4n+3) { --mod-accent: #9a9a9a; }
[data-theme="dark"] .modules .module:nth-of-type(4n+4) { --mod-accent: #d9d9d9; }
.modules .module { margin-top: 48px; }
.module-list .list-item h3 a { background: linear-gradient(var(--mod-accent), var(--mod-accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s ease, color var(--transition); }
.module-list .list-item h3 a:hover { background-size: 100% 2px; }

/* ---------- Cards: lift, zoom, pill kicker ---------- */
.card { border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 6px 18px rgba(0,0,0,0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-thumb img { transition: transform 0.6s ease; }
.card:hover .card-thumb img { transform: scale(1.07); }
.card-body .kicker { display: inline-block; padding: 3px 9px; border-radius: 3px; background: color-mix(in srgb, var(--signal) 12%, transparent); }
.card-title a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s ease, color var(--transition); }
.card-title a:hover { background-size: 100% 2px; }

/* ---------- Trending: big ranking numbers ---------- */
.trending .post-grid { counter-reset: rank; }
.trending .card { counter-increment: rank; }
.trending .card-thumb::after {
  content: counter(rank);
  position: absolute; left: 10px; bottom: 6px;
  font-family: var(--font-body); font-size: 3.4rem; font-weight: 900; line-height: 1;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.trending .card-thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0,0,0,0.6), transparent 55%); pointer-events: none; }
.trending .card-thumb::after { z-index: 2; }

/* ---------- Latest feed + newsletter flair ---------- */
.latest { margin-top: 56px; }
.newsletter-box { background: var(--grad-brand); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.newsletter-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(235,12,28,0.28); pointer-events: none; }
.newsletter-box > * { position: relative; z-index: 1; }
.pagination .current, .pagination a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
[data-theme="dark"] .pagination .current, [data-theme="dark"] .pagination a:hover { color: #fff; }

/* ---------- Footer accent ---------- */
.site-footer { border-top: 4px solid var(--color-highlight); }

@media (prefers-reduced-motion: reduce) {
  .headline-dot { animation: none; }
  .headline-item { transition: none; }
}
