/*
Theme Name: Clarified
Theme URI: https://clarified.co.za
Author: Clarified.co.za
Author URI: https://clarified.co.za
Description: Native WordPress theme for Clarified.co.za — a South African news publication. Converted 1:1 from the original static HTML/CSS/JS build; visual design, layout and responsive behaviour are unchanged.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clarified
*/

/* ==========================================================================
   Everything below this line is the site's original design CSS,
   preserved exactly as authored — no classes renamed, no rules altered.
   ========================================================================== */

:root {
  --cyan: #19c6d8;
  --cyan-dark: #079db0;
  --cyan-soft: #e9fbfd;
  --ink: #101719;
  --muted: #6d777a;
  --line: #e7ecee;
  --soft: #f6f8f8;
  --white: #fff;
  --container: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.2px;
  white-space: nowrap; flex-shrink: 0;
}

.brand span { color: var(--ink); }
.brand b { color: var(--cyan-dark); font-weight: 700; }

.main-nav {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a {
  color: #5f696c;
  position: relative;
  transition: color .15s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active { color: var(--cyan-dark); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.subscribe-btn {
  border: 0;
  border-radius: 7px;
  background: var(--cyan);
  color: #062a2f;
  padding: 10px 17px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.menu { display: none; }

.mobile-nav { display: none; }

/* INTRO */

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: block;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 7px;
}

.intro h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: .95;
  letter-spacing: -3px;
}

.intro > p {
  max-width: 360px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
  margin: 0 0 4px;
}

/* HERO */

.hero-grid {
  display: grid;
  grid-template-columns: 1.75fr .85fr;
  gap: 22px;
  padding-top: 28px;
}

.hero-story {
  position: relative;
  min-height: 520px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}

.hero-story > img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-story::after,
.large-story::after,
.editor-pick::after {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(7,15,17,.92));
}

.hero-story::before,
.large-story::before,
.editor-pick::before {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 75%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 75%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  left: 34px;
  right: 34px;
  bottom: 30px;
  color: #fff;
  max-width: 700px;
}

.meta {
  color: #c62828;
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0;
}

.hero-content .meta,
.story-overlay .meta,
.editor-content .meta { color: #ff6f61; }

.tag {
  display: inline-block;
  padding: 5px 8px;
  margin-right: 6px;
  border-radius: 4px;
  background: var(--cyan);
  color: #073238;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
}

.hero-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -2.5px;
  margin: 12px 0;
}

.hero-content p {
  max-width: 600px;
  color: #d6ddde;
  font-size: 16px;
  line-height: 1.55;
}

.read-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
}

.read-link span { font-size: 18px; }

.hero-side {
  display: grid;
  gap: 12px;
}

.side-feature {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.side-feature img {
  height: 135px;
  border-radius: 9px;
}

.side-feature h3 {
  margin: 5px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.side-feature p {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
}

/* SECTIONS */

.section { margin-top: 62px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 17px;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  letter-spacing: -1.2px;
}

.section-head a {
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 700;
}

.section-head a span { font-size: 17px; }

/* CARDS */

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card img {
  height: 190px;
  border-radius: 9px;
}

.card h3 {
  margin: 7px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: -.45px;
}

.card p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.read-meta {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
}

/* FEATURED */

.featured-grid {
  display: grid;
  grid-template-columns: 1.65fr .85fr;
  gap: 18px;
}

.large-story {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ink);
}

.large-story img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.story-overlay {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 25px;
  color: #fff;
}

.story-overlay h3 {
  max-width: 650px;
  margin: 8px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -1.4px;
}

.story-overlay p {
  max-width: 600px;
  color: #d6ddde;
  font-size: 15px;
  line-height: 1.5;
}

.two-stories {
  display: grid;
  gap: 18px;
}

.compact-story {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 14px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.compact-story img {
  height: 145px;
  border-radius: 9px;
}

.compact-story h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  line-height: 1.12;
  margin: 6px 0 10px;
}

/* EDITOR */

.editor-pick {
  position: relative;
  height: 400px;
  border-radius: 13px;
  overflow: hidden;
  background: var(--ink);
}

.editor-pick img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.editor-content {
  position: absolute;
  z-index: 2;
  left: 32px;
  bottom: 30px;
  max-width: 660px;
  color: #fff;
}

.editor-content h3 {
  margin: 8px 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -1.7px;
}

.editor-content p {
  color: #d6ddde;
  font-size: 15px;
  line-height: 1.55;
}

/* SPLIT */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

/* CATEGORIES */

.categories {
  margin-top: 64px;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.categories > span {
  margin-right: 7px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.categories a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: #566164;
  transition: .2s;
}

.categories a:hover {
  background: var(--cyan-soft);
  border-color: var(--cyan);
  color: #075e69;
}

/* NEWSLETTER */

.newsletter { scroll-margin-top: 100px; 
  margin-top: 55px;
  padding: 34px;
  border-radius: 13px;
  background: var(--cyan-soft);
  border: 1px solid #c9f0f4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.newsletter h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
  letter-spacing: -1px;
}

.newsletter p {
  color: #637073;
  font-size: 15px;
  margin-bottom: 0;
}

.newsletter form {
  display: flex;
  width: min(440px, 100%);
  gap: 8px;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 1px solid #b8e3e7;
  border-radius: 7px;
  background: #fff;
  padding: 13px;
  font-size: 15px;
  outline: none;
}

.newsletter input:focus { border-color: var(--cyan); }

.newsletter button {
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* FOOTER */

.footer {
  margin-top: 70px;
  background: #f5f7f7;
  border-top: 1px solid var(--line);
}

.footer-top {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 2.3fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-brand p {
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 12px;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #d7e1e3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--muted);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-icon:hover {
  color: var(--cyan-dark);
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.footer h4 {
  margin: 0 0 13px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}

.footer-top > div:not(.footer-brand) a {
  display: block;
  color: #687477;
  font-size: 14px;
  margin: 9px 0;
}

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: #8a9496;
  font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .main-nav { gap: 15px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: repeat(3, 1fr); }
  .side-feature { display: block; }
  .side-feature img { height: 150px; margin-bottom: 7px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  .two-stories { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
.container { width: min(100% - 30px, var(--container)); }

  .nav { min-height: 66px; }
  .main-nav { display: none; }
  .menu { display: block; border: 0; background: transparent; font-size: 22px; cursor: pointer; }
  .search-btn { display: none; }

  .mobile-nav {
    display: flex;
    gap: 19px;
    padding: 0 15px 12px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
  }

  .intro {
    display: block;
    padding: 38px 0 22px;
  }

  .intro h1 { letter-spacing: -2px; }
  .intro > p { margin-top: 17px; }

  .hero-story { min-height: 470px; }
  .hero-content { left: 22px; right: 22px; bottom: 22px; }
  .hero-content h2 { font-size: 35px; }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .side-feature {
    display: grid;
    grid-template-columns: 125px 1fr;
  }

  .side-feature img {
    height: 115px;
    margin: 0;
  }

  .section { margin-top: 46px; }
  .section-head h2 { font-size: 24px; }

  .news-grid,
  .small-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }

  .card img { height: 135px; }
  .card h3 { font-size: 17px; }

  .large-story { min-height: 390px; }
  .story-overlay h3 { font-size: 25px; }

  .two-stories {
    grid-template-columns: 1fr;
  }

  .editor-pick { height: 380px; }
  .editor-content { left: 22px; right: 22px; bottom: 22px; }
  .editor-content h3 { font-size: 28px; }

  .split {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .newsletter {
    display: block;
    padding: 25px;
  }

  .newsletter form {
    margin-top: 22px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-content h2 { font-size: 30px; }

  .news-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .card img { height: 190px; }

  .compact-story {
    grid-template-columns: 120px 1fr;
  }

  .compact-story img { height: 120px; }

  .newsletter form { flex-direction: column; }
  .newsletter button { min-height: 42px; }

  .footer-bottom {
    display: block;
    line-height: 1.8;
  }
}

/* =========================================================
   CLARIFIED MOBILE NAV — FINAL
   Full topic strip wraps to two rows; header actions are
   trimmed to just Search + hamburger on small screens.
   ========================================================= */

@media (max-width: 760px) {
.site-header {
    position: sticky;
  }

  .main-nav {
    display: none !important;
  }

  .subscribe-btn {
    display: none !important;
  }

  .icon-btn {
    display: grid !important;
    width: 34px;
    height: 34px;
    margin-right: 4px;
  }

  .menu {
    display: grid !important;
    position: relative;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }

  .menu span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform .18s ease, opacity .18s ease;
  }

  .menu span:nth-child(1) { transform: translateY(-6px); }
  .menu span:nth-child(2) { transform: translateY(0); }
  .menu span:nth-child(3) { transform: translateY(6px); }

  .menu.is-open span:nth-child(1) { transform: rotate(45deg); }
  .menu.is-open span:nth-child(2) { opacity: 0; }
  .menu.is-open span:nth-child(3) { transform: rotate(-45deg); }

  /* The full set of section links now lives here, wrapping to a
     second row on narrow screens. Only non-section pages (About,
     Contact, Advertise, Privacy) live in the hamburger drawer. */
  .mobile-nav {
    position: static !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap !important;
    row-gap: 10px;
    column-gap: clamp(10px, 3.6vw, 18px);
    width: 100%;
    padding: 0 12px 14px !important;
    margin: 0;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  .mobile-nav a {
    display: block !important;
    flex: 0 0 auto;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #5f696c !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
  }

  .mobile-nav a.active {
    color: var(--cyan-dark) !important;
  }

  .mobile-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--cyan);
  }

  /* The remaining pages live here, not in .mobile-nav. */
  .mobile-menu-panel {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 100%;
    z-index: 200;
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 35px rgba(16,23,25,.10);
  }

  .mobile-menu-panel.open {
    display: flex !important;
  }

  .mobile-menu-panel a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #566164;
    font-size: 14px;
    font-weight: 700;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
  }

  .mobile-menu-panel a:hover {
    color: var(--cyan-dark);
    border-color: var(--cyan);
  }

  .mobile-menu-panel a.active {
    color: var(--cyan-dark);
    border-color: var(--cyan);
    background: var(--cyan-soft);
  }
}

@media (min-width: 761px) {
  .mobile-nav,
  .mobile-menu-panel,
  .menu {
    display: none !important;
  }

  .main-nav {
    display: flex !important;
  }
}

/* FINAL ARTICLE + IMAGE + EXISTING BRIEF FIXES
   No homepage layout changes. */

.article-page {
  padding-top: 52px;
  padding-bottom: 70px;
}

.article-page .article-meta {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.article-page h1 {
  max-width: 900px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -2.8px;
}

.article-dek {
  max-width: 760px;
  margin: 18px 0 25px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.article-image {
  display: block;
  width: min(100%, 960px);
  height: min(54vw, 540px);
  min-height: 280px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
}

.article-body {
  width: min(100%, 740px);
  margin: 38px auto 45px;
  color: #303a3d;
  font-size: 19px;
  line-height: 1.85;
}

.article-body p {
  margin: 0 0 24px;
}

.article-share {
  width: min(100%, 740px);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}

.article-share button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 9px 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Article hero: consistent editorial image treatment */
.article-page .article-image {
  width: min(100%, 900px);
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 506px;
  object-fit: cover;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 760px) {
.article-page .article-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: none;
    border-radius: 7px;
  }
}


/* FINAL PATCH — category story photos + Clarified Brief only.
   Everything else remains unchanged. */

/* Category pages: use the same compact rounded editorial cards as the rest of Clarified. */
.category-grid {
  width: 100%;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.category-grid .card {
  display: block;
  min-width: 0;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.category-grid .card > a:first-child {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #eef4f5;
}

.category-grid .card img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .2s ease;
}

.category-grid .card > a:first-child:hover img {
  transform: scale(1.02);
}

.category-grid .card .eyebrow {
  margin-top: 12px;
  margin-bottom: 5px;
}

.category-grid .card h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.16;
}

.category-grid .card p {
  max-width: 680px;
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.5;
}

.category-grid .card .read-meta {
  display: inline-block;
}

/* The mobile category view stays compact: no full-height photo cards. */
@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .category-grid .card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 14px;
    align-items: flex-start;
    padding: 0 0 16px;
  }

  .category-grid .card > a:first-child {
    grid-row: 1 / span 4;
    width: 132px;
    height: 92px;
    border-radius: 9px;
  }

  .category-grid .card img {
    width: 132px;
    height: 92px;
    border-radius: 9px;
  }

  .category-grid .card .eyebrow {
    margin-top: 0;
  }

  .category-grid .card h3 {
    font-size: 17px;
    line-height: 1.17;
  }

  .category-grid .card p {
    display: none;
  }
}

/* Clarified Brief ticker: larger type, visible immediately, seamless loop. */
.brief-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #08273d 0%, #0b3b4b 50%, #07535b 100%);
  border-top: 1px solid rgba(54,201,198,.35);
  border-bottom: 1px solid rgba(54,201,198,.35);
}

.brief-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cyan);
}

.brief-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brief-message {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #f2ffff;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05px;
}

.brief-track {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 70px;
  transform: translateX(0);
  animation: clarifiedBriefLoop 60s linear infinite;
  will-change: transform;
}

.brief-track span::before {
  content: "◆";
  color: var(--cyan);
  font-size: 12px;
  margin-right: 16px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

@keyframes clarifiedBriefLoop {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 35px)); }
}

@media (max-width: 700px) {
  .brief-inner { min-height: 42px; }
  .brief-message { font-size: 15px; }
  .brief-track { gap: 48px; animation-duration: 100s; }
  .brief-track span::before { margin-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .brief-track { animation: none; }
}

/* =========================================================
   SEARCH ICON — was referenced in HTML (.icon-btn) but had
   no CSS at all, so it rendered as an invisible empty link.
   ========================================================= */

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: border-color .2s ease, background .2s ease;
}

.icon-btn::before {
  content: "";
  width: 15px;
  height: 15px;
  background-color: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.2' y2='16.2'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.2' y2='16.2'/></svg>") center / contain no-repeat;
}

.icon-btn:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.icon-btn:hover::before {
  background-color: var(--cyan-dark);
}

/* =========================================================
   SECTION INTROS — shared by category pages (.page-head)
   and the search page (.page-intro). Reuses the same rhythm
   as the homepage .intro block so every page feels consistent.
   ========================================================= */

.page-head,
.page-intro {
  padding: 40px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-head h1,
.page-intro h1 {
  margin: 6px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -1.6px;
  line-height: 1;
}

.page-head p {
  max-width: 480px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 760px) {
.page-head,
  .page-intro { padding: 30px 0 20px; }
}

/* =========================================================
   INFO PAGES — About / Contact / Privacy / Advertise.
   Previously unstyled: rendered as plain, unformatted text.
   ========================================================= */

.info-page {
  max-width: 700px;
  padding: 48px 0 90px;
}

.info-page h1 {
  margin: 6px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -1.8px;
  line-height: 1.02;
}

.info-page > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.info-page .lead {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.info-page form {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin-top: 24px;
}

.info-page input,
.info-page textarea {
  border: 1px solid var(--line);
  padding: 13px 14px;
  font-size: 16px;
  outline: none;
  background: #fff;
  font-family: inherit;
}

.info-page input:focus,
.info-page textarea:focus {
  border-color: var(--cyan);
}

.info-page textarea {
  min-height: 120px;
  resize: vertical;
}

.info-page button {
  justify-self: start;
  border: 0;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.info-page button:disabled {
  opacity: .6;
  cursor: default;
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */

.search-page {
  padding-bottom: 80px;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 26px 0 40px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 17px;
  outline: none;
  background: #fff;
}

.search-form input:focus {
  border-color: var(--cyan);
}

.search-form button {
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

/* =========================================================
   EMPTY STATE — used by search with no results, and by any
   category page that has no articles yet.
   ========================================================= */

.empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.ui-arrow {
  display: inline-block;
  transition: transform .15s ease;
}

a:hover .ui-arrow {
  transform: translateX(2px);
}

/* =========================================================
   TOPIC TILES — quick access to sections otherwise tucked
   away in the mobile burger menu (Entertainment, Lifestyle).
   Sits between the top story and the Latest News section.
   ========================================================= */

.topic-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.topic-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 24px 64px 24px 26px;
  border-radius: 26px;
  transition: transform .18s ease, background .18s ease;
}

.topic-tile:hover {
  transform: translateY(-2px);
}

.topic-tile::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  transition: transform .18s ease;
}

.topic-tile:hover::after {
  transform: translateX(3px);
}

.topic-tile-dark {
  background: var(--ink);
}

.topic-tile-dark::after {
  background: rgba(255, 255, 255, .14);
  color: var(--cyan);
}

.topic-tile-dark:hover {
  background: #0a1315;
}

.topic-tile-light {
  background: var(--cyan-soft);
  border: 1px solid #c9f0f4;
}

.topic-tile-light::after {
  background: #fff;
  color: var(--cyan-dark);
}

.topic-tile-light:hover {
  background: #ddf6f8;
}

.topic-tile-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.7px;
}

.topic-tile-dark .topic-tile-label { color: #fff; }
.topic-tile-light .topic-tile-label { color: var(--ink); }

.topic-tile-cta {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.topic-tile-dark .topic-tile-cta { color: var(--cyan); }
.topic-tile-light .topic-tile-cta { color: var(--cyan-dark); }

@media (max-width: 760px) {
.topic-tiles { gap: 12px; }
  .topic-tile { min-height: 96px; padding: 18px 20px; border-radius: 22px; }
  .topic-tile::after { display: none; }
  .topic-tile-label { font-size: 20px; }
  .topic-tile-cta { font-size: 15px; }
}

@media (max-width: 420px) {
  .topic-tile-cta { display: none; }
  .topic-tile { min-height: 78px; justify-content: center; padding-right: 20px; }
}

:root{--brand:#D50205;}

.meta,.meta-tag,.article-meta{background:#D50205!important;color:#fff!important}
.faq-section{margin:6rem auto;max-width:900px;padding:0 1.5rem}
.faq-section h2{color:#D50205;margin-bottom:1.5rem}
.faq-item{border:1px solid #ddd;border-radius:10px;margin-bottom:1rem}

/* CLARIFIED ARTICLE SYSTEM */
.article-page {
  max-width: 900px;
  padding-top: 62px;
}
.article-kicker {
  color: var(--cyan, #36c9c6);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.article-page h1 {
  max-width: 860px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
}
.article-dek {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.55;
  color: #5d676a;
  margin: 22px 0 32px;
}
.article-figure { margin: 0 0 34px; }
.article-figure figcaption {
  color: #737d80;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 9px;
}
.clarified-short-version,
.clarified-bottom-line {
  border: 1px solid var(--line, #e5e8e8);
  border-radius: 14px;
  padding: 24px 26px;
  margin: 30px 0;
  background: #f7fbfb;
}
.clarified-bottom-line { background: #11191b; color: #fff; border-color: #11191b; }
.clarified-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cyan, #36c9c6);
  margin-bottom: 9px;
}
.clarified-short-version p,
.clarified-bottom-line p { margin: 0; font-size: 18px; line-height: 1.6; }
.clarified-bottom-line p:not(:last-child) { margin-bottom: 18px; }
.clarified-bottom-line p { color: #f3f6f6; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body h2[id] { scroll-margin-top: 120px; }
.what-to-expect-box { background: var(--soft, #f6f8f8); border-left: 4px solid var(--brand); padding: 20px 24px; margin: 30px 0; border-radius: 0 8px 8px 0; }
.what-to-expect-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-top: 0; margin-bottom: 12px; font-weight: 800; }
.what-to-expect-box ul { list-style: none; padding: 0; margin: 0; }
.what-to-expect-box ul li { margin-bottom: 8px; font-size: 16px; }
.what-to-expect-box ul li::before { content: "→"; color: var(--brand); margin-right: 8px; font-weight: bold; }
.what-to-expect-box ul a { color: var(--brand) !important; text-decoration: none !important; font-weight: 600; transition: opacity 0.2s; }
.what-to-expect-box ul a:hover { opacity: 0.8; text-decoration: underline !important; }
.article-body p a, .article-body ul a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.clarified-section { margin: 42px 0; }
.clarified-section h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 15px;
  letter-spacing: -.025em;
}
.clarified-section p { font-size: 18px; line-height: 1.75; margin: 0 0 18px; color: #283033; }
.article-author {
  max-width: 760px;
  margin: 46px auto 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line, #e5e8e8);
  border-bottom: 1px solid var(--line, #e5e8e8);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #697275;
}
.author-mark { width: 38px; height: 38px; display:grid; place-items:center; border-radius:50%; background:#11191b; color:#fff; font-weight:800; }
.article-author strong { color:#11191b; display:block; margin-bottom:3px; }
.article-tags { max-width:760px; margin: 18px auto; display:flex; flex-wrap:wrap; gap:7px; }
.article-tags span { border:1px solid var(--line, #e5e8e8); border-radius:999px; padding:6px 10px; font-size:12px; color:#596467; }
.article-share { max-width:760px; margin: 28px auto 58px; display:flex; align-items:center; gap:12px; }
.article-share strong { margin-right:auto; }
.article-share button { border:1px solid #cfd6d7; background:#fff; border-radius:8px; padding:10px 14px; cursor:pointer; font-weight:700; }
.more-from-clarified { margin-top: 20px; }
.more-from-clarified .section-heading { margin-bottom: 20px; }
.more-from-clarified .section-heading h2 { margin: 3px 0 0; font-size: 30px; }
.related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.article-newsletter { margin-top: 58px; }
.muted { color:#737d80; }
@media (max-width: 760px) {
.article-page { padding-top: 38px; }
  .article-page h1 { font-size: 42px; }
  .article-dek { font-size:18px; }
  .clarified-short-version, .clarified-bottom-line { padding:20px; }
  .clarified-section { margin:34px 0; }
  .clarified-section p { font-size:17px; }
  .related-grid { grid-template-columns:1fr; }
  
  /* Fix WHAT TO EXPECT size on mobile */
  .what-to-expect-box { padding: 14px 16px; margin: 20px 0; border-left-width: 3px; }
  .what-to-expect-box h3 { font-size: 12px; margin-bottom: 8px; }
  .what-to-expect-box ul li { font-size: 14.5px; margin-bottom: 6px; }

  /* Prevent tables from breaking viewport and causing horizontal shift */
  html, body { overflow-x: hidden !important; width: 100%; max-width: 100vw; }
  .article-page, .article-body { max-width: 100vw; }
  .wp-block-table, figure.wp-block-table { overflow-x: auto !important; -webkit-overflow-scrolling: touch; display: block !important; max-width: 100vw !important; width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
  .wp-block-table table { min-width: 500px !important; margin: 0 !important; }
  
  /* Reduce gaps in intro section */
  .intro { padding: 12px 0 16px !important; }
  .intro > p { margin-top: 8px !important; }
}


/* Override default WebKit search cancel button emoji with clean SVG */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23637073'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat 50% 50%;
  background-size: contain;
  cursor: pointer;
  margin-left: 8px;
}
input[type="search"]::-webkit-search-cancel-button:hover {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230e1516'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat 50% 50%;
}

.clarified-middle-image {
    text-align: center;
    margin: 40px 0;
}
.clarified-middle-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.list-card {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}
.list-card a.list-card-img {
    flex: 0 0 140px;
    margin-top: 16px; /* Pushes image down to align with h3 heading instead of the eyebrow */
}
.list-card a.list-card-img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 4/3;
}
.list-card-content {
    flex: 1;
}
.list-card .eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #17b3b3;
    margin-bottom: 4px;
}
.list-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0 0 8px 0;
}
.list-card h3 a {
    color: #1a1a1a;
    text-decoration: none;
}
.list-card h3 a:hover {
    color: #17b3b3;
}
.list-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card .list-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    margin-top: -4px; /* Pull it up slightly to optically align with the image's top edge */
}
.list-card .eyebrow {
    margin-top: 0 !important;
    line-height: 1;
}

.brief-track:hover { animation-play-state: paused; }
.brief-track a:hover { color: var(--cyan) !important; }

/* Colored Social Icons */
.socials a[aria-label="Facebook"] { color: #1877F2; border-color: rgba(24,119,242,0.3); background: rgba(24,119,242,0.05); }
.socials a[aria-label="X"] { color: #0f1419; border-color: rgba(15,20,25,0.3); background: rgba(15,20,25,0.05); }
.socials a[aria-label="LinkedIn"] { color: #0A66C2; border-color: rgba(10,102,194,0.3); background: rgba(10,102,194,0.05); }
.socials a[aria-label="Instagram"] { color: #E4405F; border-color: rgba(228,64,95,0.3); background: rgba(228,64,95,0.05); }
.socials a[aria-label="TikTok"] { color: #000000; border-color: rgba(0,0,0,0.3); background: rgba(0,0,0,0.05); }

/* Solid Color on Hover */
.socials a[aria-label="Facebook"]:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.socials a[aria-label="X"]:hover { background: #0f1419; color: #fff; border-color: #0f1419; }
.socials a[aria-label="LinkedIn"]:hover { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.socials a[aria-label="Instagram"]:hover { background: #E4405F; color: #fff; border-color: #E4405F; }
.socials a[aria-label="TikTok"]:hover { background: #000000; color: #fff; border-color: #000000; }