:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef1f5;
  --text: #101828;
  --muted: #667085;
  --line: #dfe3e8;
  --accent: #155eef;
  --accent-dark: #0d47c7;
  --dark: #0b1220;
  --white: #ffffff;
  --max: 1240px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2b;
  --surface-2: #172236;
  --text: #f2f4f7;
  --muted: #98a2b3;
  --line: #263348;
  --dark: #050a12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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


/* TOP */

.topline {
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.topline-inner {
  height: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-links a:hover {
  color: var(--accent);
}

#themeToggle {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}


/* HEADER */

/* HEADER */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  outline: none;
  border: none;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-size: 25px;
  font-weight: 900;
  border-radius: 4px;
}

.brand strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 5px;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color .15s, color .15s, box-shadow .15s;
  cursor: pointer;
}

.search-button:hover {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.search-button:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.search-button span {
  font-size: 16px;
  opacity: .7;
  line-height: 1;
}

.menu-button {
  display: none;
  background: transparent;
  border: 0;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px;
}


/* NAV */

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  gap: 30px;
  height: 48px;
  align-items: center;
}

.nav-inner a {
  font-size: 13px;
  font-weight: 700;
}

.nav-inner a:hover {
  color: var(--accent);
}


/* BREAKING */

.breaking {
  background: var(--dark);
  color: white;
}

.breaking-inner {
  display: flex;
  min-height: 42px;
  align-items: center;
}

.breaking-label {
  background: var(--accent);
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.breaking-text {
  padding-left: 16px;
  font-size: 13px;
}


/* HERO */

.hero {
  padding: 45px 0 65px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
}

.hero-story {
  border-bottom: 1px solid var(--line);
}

.hero-image {
  height: 400px;
}

.image-world {
  background:
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=900&q=80') center/cover no-repeat,
    linear-gradient(135deg, #0b1220, #172b4d);
  position: relative;
  overflow: hidden;
}

.image-world::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.category-label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  background: var(--accent);
  color: white;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hero-content {
  padding: 25px 0 0;
}

.eyebrow,
.story-category {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.03;
  margin: 9px 0 15px;
  letter-spacing: -.8px;
}

.hero-content p {
  color: var(--muted);
  max-width: 650px;
  font-size: 17px;
}

.read-story,
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-weight: 800;
}

.read-story:hover,
.text-button:hover {
  color: var(--accent-dark);
}


/* HERO SIDE */

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-story {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.story-image {
  height: 100px;
  position: relative;
  overflow: hidden;
}

.image-business {
  background:
    url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=600&q=80') center/cover no-repeat,
    linear-gradient(135deg, #182848, #4b6cb7);
}

.image-tech {
  background:
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=600&q=80') center/cover no-repeat,
    linear-gradient(135deg, #071a2f, #164e63);
}

.image-science {
  background:
    url('https://images.unsplash.com/photo-1576086213369-97a306d36557?w=600&q=80') center/cover no-repeat,
    linear-gradient(135deg, #101820, #355c7d);
}

.image-money {
  background:
    url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=600&q=80') center/cover no-repeat,
    linear-gradient(135deg, #172b4d, #516395);
}

.image-market {
  background:
    linear-gradient(135deg, #1f2937, #4b5563);
}

.side-story h2 {
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
  margin: 5px 0;
}

.side-story p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}


/* SECTIONS */

.section {
  padding: 75px 0;
}

.section-alt {
  background: var(--surface);
}

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

.section-heading h2 {
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1;
  margin: 5px 0 0;
}

.section-heading > a {
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}


/* NEWS GRID */

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

.news-card {
  border-top: 3px solid var(--text);
  padding-top: 15px;
}

.news-card h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
  margin: 8px 0;
}

.news-card p {
  color: var(--muted);
  font-size: 14px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 15px;
}


/* WORLD */

.feature-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

.large-image {
  height: 330px;
}

.feature-content {
  padding-top: 20px;
}

.feature-content h3 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  margin: 8px 0;
}

.feature-content p {
  color: var(--muted);
}

.feature-list article {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 15px;
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.number {
  font-family: Georgia, serif;
  font-size: 26px;
  color: var(--muted);
}

.feature-list h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
  margin: 5px 0;
}

.feature-list p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}


/* CATEGORY */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.category-card {
  border: 1px solid var(--line);
  background: var(--bg);
}

.card-image {
  height: 210px;
}

.card-body {
  padding: 22px;
}

.card-body h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.2;
  margin: 7px 0;
}

.card-body p {
  color: var(--muted);
  font-size: 13px;
}

.read-time {
  font-size: 11px;
  color: var(--muted);
}


/* TECHNOLOGY */

.tech-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr;
  gap: 40px;
}

.tech-image {
  height: 360px;
}

.tech-content {
  padding-top: 20px;
}

.tech-content h3 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.15;
  margin: 8px 0;
}

.tech-content p {
  color: var(--muted);
}

.tech-side article {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tech-side h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.2;
  margin: 6px 0;
}


/* NEWSLETTER */

.newsletter {
  background: var(--dark);
  color: white;
  padding: 70px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 80px;
  align-items: center;
}

.newsletter h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1.1;
  margin: 8px 0;
}

.newsletter p {
  color: #98a2b3;
}

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.newsletter input {
  padding: 14px;
  border: 1px solid #344054;
  background: #111827;
  color: white;
  border-radius: 3px;
}

.newsletter button {
  border: 0;
  padding: 14px 20px;
  background: var(--accent);
  color: white;
  font-weight: 800;
  border-radius: 3px;
}

.newsletter small {
  grid-column: 1 / -1;
  color: #667085;
}


/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.about h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1.1;
  margin: 8px 0;
}

.about p {
  color: var(--muted);
  font-size: 16px;
}


/* FOOTER */

footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
}

.footer-brand p {
  color: #98a2b3;
  max-width: 300px;
  font-size: 13px;
  margin-top: 20px;
}

footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0;
}

footer a {
  display: block;
  color: #98a2b3;
  font-size: 13px;
  margin: 8px 0;
}

footer a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #263348;
  display: flex;
  justify-content: space-between;
  color: #667085;
  font-size: 11px;
}


/* SEARCH */

.search-overlay,
.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, .85);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.search-overlay.active,
.article-modal.active {
  display: block;
}

.search-box,
.article-container {
  width: min(calc(100% - 40px), 850px);
  margin: 80px auto;
  background: var(--bg);
  color: var(--text);
  padding: 45px;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.search-box h2 {
  font-family: Georgia, serif;
  font-size: 38px;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.close-search,
.close-article {
  position: absolute;
  right: 20px;
  top: 15px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 30px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}

.close-search:hover,
.close-article:hover {
  background: var(--surface);
  color: var(--accent);
}

.search-result {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.search-result h3 {
  font-family: Georgia, serif;
  margin: 5px 0;
}

.search-result p {
  color: var(--muted);
  font-size: 13px;
}

/* New search result cards */
.search-result-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--text);
  transition: background .1s;
}
.search-result-card:last-child { border-bottom: 0; }
.search-result-card:hover .src-title { color: var(--accent); }

.src-cat {
  font-size: 9px; font-weight: 900; letter-spacing: 1.2px;
  color: var(--accent); text-transform: uppercase;
}

.src-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px; font-weight: 700; line-height: 1.25;
  color: var(--text); transition: color .12s;
}

.src-lead {
  font-size: 13px; color: var(--muted); line-height: 1.5;
}

.src-loading {
  padding: 14px 0;
  font-size: 13px; color: var(--muted); font-style: italic;
}

.src-empty {
  padding: 14px 0;
  font-size: 14px; color: var(--muted);
}


/* ARTICLE */

.article-container h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
}

.article-lead {
  font-size: 19px;
  color: var(--muted);
}

.article-body {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.8;
}


/* MOBILE */

@media (max-width: 850px) {

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .top-links a {
    display: none;
  }

  .masthead {
    min-height: 80px;
  }

  .brand strong {
    font-size: 22px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    gap: 14px;
  }

  .hero {
    padding-top: 25px;
  }

  .hero-grid,
  .feature-grid,
  .tech-grid,
  .newsletter-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 280px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

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

  .large-image,
  .tech-image {
    height: 250px;
  }

  .newsletter-inner {
    gap: 35px;
  }

  .newsletter h2,
  .about h2 {
    font-size: 34px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .search-box,
  .article-container {
    margin: 20px auto;
    padding: 30px 22px;
  }

}

@media (max-width: 500px) {

  .search-button {
    font-size: 0;
    padding: 8px 10px;
    min-width: 0;
    gap: 0;
    border-radius: 6px;
  }

  .search-button span {
    font-size: 18px;
    margin: 0;
  }

  .breaking-inner {
    align-items: stretch;
  }

  .breaking-label {
    padding: 0 9px;
  }

  .side-story {
    grid-template-columns: 100px 1fr;
  }

  .story-image {
    height: 85px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter form {
    grid-template-columns: 1fr;
  }

}


/* ── ADMIN LINK ──────────────────────────────────────────── */

.admin-toplink {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
}

.admin-toplink:hover {
  background: var(--accent);
  color: white !important;
}


/* ── LIVE NEWS CARDS ─────────────────────────────────────── */

.card-news-image-wrap {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 3px;
  line-height: 0;
}

.card-news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.news-card:hover .card-news-image {
  transform: scale(1.03);
}

.card-title-link {
  color: var(--text);
  font-family: Georgia, serif;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  line-height: inherit;
  display: block;
}

.card-title-link:hover {
  color: var(--accent);
}


/* ── ADMIN-PUBLISHED CARD ────────────────────────────────── */

.news-card--admin {
  border-top-color: var(--accent);
  position: relative;
}

.admin-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  margin-bottom: 6px;
}


/* ── PLACEHOLDER CARDS ───────────────────────────────────── */

.news-card--placeholder {
  opacity: .55;
}

.placeholder-line {
  background: var(--surface-2);
  border-radius: 3px;
  height: 18px;
  margin: 8px 0;
  animation: shimmer 1.4s infinite;
}

.placeholder-line--short {
  width: 60%;
}

@keyframes shimmer {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}


/* ── LOADING MESSAGE ─────────────────────────────────────── */

.loading-msg {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0;
}

.loading-msg--error {
  color: #dc2626;
}


/* ── TICKER SCROLL ───────────────────────────────────────── */

.ticker-scroll {
  display: inline-block;
  animation: tickerMove 40s linear infinite;
  white-space: nowrap;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── CATEGORY FILTER PILLS ───────────────────────────────── */

.section-heading-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cat-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Active nav link highlight */
.nav-inner a.nav-active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

@media (max-width: 850px) {
  .section-heading-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ============================================================
   SUBMIT A STORY — submit.html
   ============================================================ */

/* ── PAGE LAYOUT ─────────────────────────────────────────── */

.submit-page {
  padding: 60px 0 100px;
  background: var(--bg);
}

.submit-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 70px;
  align-items: start;
}

/* ── INTRO SIDEBAR ───────────────────────────────────────── */

.submit-intro {
  position: sticky;
  top: 24px;
}

.submit-intro h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1.05;
  margin: 10px 0 16px;
}

.submit-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.submit-types {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.submit-type {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.submit-type-icon {
  font-size: 22px;
  line-height: 1.4;
}

.submit-type strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.submit-type p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.submit-promise {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 20px 22px;
  border-radius: 0 4px 4px 0;
}

.submit-promise h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 0 0 12px;
}

.submit-promise ol {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.submit-promise-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}

/* ── TABS ────────────────────────────────────────────────── */

.submit-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 32px;
  gap: 0;
}

.submit-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.submit-tab:hover {
  color: var(--text);
}

.submit-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── FORM SECTIONS ───────────────────────────────────────── */

.form-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin: 0 0 20px;
}

.sf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.sf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.sf-group:last-child {
  margin-bottom: 0;
}

.sf-group--full {
  grid-column: 1 / -1;
}

.sf-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.sf-group input[type="text"],
.sf-group input[type="email"],
.sf-group input[type="url"],
.sf-group select,
.sf-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}

.sf-group input:focus,
.sf-group select:focus,
.sf-group textarea:focus {
  border-color: var(--accent);
}

.sf-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.sf-group small {
  font-size: 12px;
  color: var(--muted);
}

/* ── SOURCE ROWS ─────────────────────────────────────────── */

.source-row {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.source-row input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.source-row input:focus {
  border-color: var(--accent);
}

.source-remove {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.source-remove:hover {
  border-color: #dc2626;
  color: #dc2626;
}

.add-source-btn {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 4px;
  width: 100%;
  transition: background .12s;
}

.add-source-btn:hover {
  background: var(--surface);
}

/* ── CONSENT ─────────────────────────────────────────────── */

.form-section--consent {
  background: var(--surface);
  padding: 24px;
  border-radius: 4px;
  border-bottom: 0;
  margin-bottom: 24px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  line-height: 1.5;
}

.consent-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.consent-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.6;
}

.consent-note a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── SUBMIT BUTTONS ──────────────────────────────────────── */

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  transition: background .12s, opacity .12s;
  text-decoration: none;
}

.btn-submit--primary {
  background: var(--accent);
  color: white;
}

.btn-submit--primary:hover {
  background: var(--accent-dark);
}

.btn-submit--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-submit--ghost:hover {
  background: var(--surface);
}

.btn-submit--full {
  width: 100%;
}

.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ── ERROR ───────────────────────────────────────────────── */

.sf-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
}

[data-theme="dark"] .sf-error {
  background: #1c0a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

/* ── SUCCESS STATE ───────────────────────────────────────── */

.submit-success {
  text-align: center;
  padding: 50px 30px;
}

.success-icon {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #166534;
  font-size: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-weight: 900;
}

[data-theme="dark"] .success-icon {
  background: #14532d;
  color: #86efac;
}

.submit-success h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin: 0 0 12px;
}

.submit-success > p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.success-ref {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 28px;
  margin-bottom: 20px;
}

.success-ref span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.success-ref strong {
  font-size: 17px;
  font-family: monospace;
  color: var(--text);
  letter-spacing: .5px;
}

.success-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── STATUS CHECKER ──────────────────────────────────────── */

.status-intro {
  margin-bottom: 28px;
}

.status-intro h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0 0 8px;
}

.status-intro p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.status-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-result {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.status-result-inner {
  padding: 28px 30px;
}

.status-pill {
  display: inline-block;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.status-result h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
}

.status-meta {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
  text-transform: capitalize;
}

.status-reason {
  background: var(--surface);
  border-left: 3px solid #ef4444;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  border-radius: 0 4px 4px 0;
}

/* ── SUBMIT NAV LINK ─────────────────────────────────────── */

.nav-submit-link {
  margin-left: auto;
  background: var(--accent);
  color: white !important;
  padding: 5px 13px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  transition: background .12s;
}

.nav-submit-link:hover {
  background: var(--accent-dark) !important;
  color: white !important;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 900px) {
  .submit-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .submit-intro {
    position: static;
  }

  .submit-intro h1 {
    font-size: 34px;
  }

  .submit-types {
    display: none; /* hide on mobile to keep it clean */
  }
}

@media (max-width: 600px) {
  .sf-row {
    grid-template-columns: 1fr;
  }

  .source-row {
    grid-template-columns: 1fr 32px;
    grid-template-rows: auto auto;
  }

  .source-row .source-url {
    grid-column: 1;
  }

  .source-row .source-remove {
    grid-column: 2;
    grid-row: 1;
  }

  .success-actions {
    flex-direction: column;
  }
}


/* ============================================================
   IMAGE & FILE UPLOAD COMPONENTS
   ============================================================ */

/* ── UPLOAD ZONE ─────────────────────────────────────────── */

.upload-zone {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: 5px;
  background: var(--surface);
  transition: border-color .15s, background .15s;
  cursor: pointer;
  overflow: hidden;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--surface-2);
}

.upload-zone.has-file {
  border-style: solid;
  border-color: var(--accent);
}

/* Hidden real file input — sits over the whole zone */
.upload-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 20px;
  text-align: center;
  pointer-events: none;
}

.upload-icon {
  font-size: 32px;
  line-height: 1;
}

.upload-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.upload-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ── SINGLE IMAGE PREVIEW (admin hero) ───────────────────── */

.upload-preview {
  position: relative;
  width: 100%;
}

.upload-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.upload-clear {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  color: white;
  border: 0;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 3;
  transition: background .12s;
}

.upload-clear:hover {
  background: #dc2626;
}

/* ── URL FALLBACK ROW (admin hero) ───────────────────────── */

.upload-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.upload-url-label {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.upload-url-row input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color .15s;
}

.upload-url-row input:focus {
  border-color: var(--accent);
}

/* ── MULTI-FILE EVIDENCE PREVIEWS (submit form) ──────────── */

.upload-zone--multi .upload-zone-inner {
  padding: 24px 20px;
}

.evidence-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.evidence-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}

.evidence-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}

.evidence-item .evidence-file-icon {
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 28px;
}

.evidence-item .evidence-name {
  display: block;
  font-size: 10px;
  color: var(--muted);
  padding: 5px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.evidence-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,.6);
  color: white;
  border: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
  transition: background .1s;
}

.evidence-remove:hover {
  background: #dc2626;
}

/* ── ADMIN DETAIL: IMAGE GRID ────────────────────────────── */

.detail-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.detail-image-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}

.detail-image-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity .15s;
}

.detail-image-item img:hover {
  opacity: .85;
}

.detail-image-item .detail-image-name {
  display: block;
  font-size: 11px;
  color: var(--muted);
  padding: 5px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 13px;
}

.detail-file-item a {
  color: var(--accent);
  word-break: break-all;
}

/* ── LIGHTBOX (click to enlarge) ─────────────────────────── */

.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}

.img-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}

.img-lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  z-index: 2001;
}


/* ============================================================
   ARTICLE PAGE — article.html
   ============================================================ */

/* ── LOADING SHIMMER ─────────────────────────────────────── */

.article-loading {
  padding: 60px 0 100px;
}

.loading-shimmer {
  max-width: 720px;
}

.shimmer-eyebrow,
.shimmer-title,
.shimmer-meta,
.shimmer-image,
.shimmer-body {
  background: var(--surface-2);
  border-radius: 4px;
  margin-bottom: 16px;
  animation: shimmer 1.4s infinite;
}

.shimmer-eyebrow { height: 14px; width: 120px; }
.shimmer-title   { height: 52px; }
.shimmer-title--short { width: 65%; }
.shimmer-meta    { height: 18px; width: 280px; }
.shimmer-image   { height: 380px; margin: 24px 0; border-radius: 6px; }
.shimmer-body    { height: 18px; }
.shimmer-body--short { width: 80%; }

/* ── NOT FOUND ───────────────────────────────────────────── */

.article-not-found {
  padding: 100px 0;
  text-align: center;
}

.article-not-found h1 {
  font-family: Georgia, serif;
  font-size: 42px;
  margin: 10px 0 14px;
}

.article-not-found p {
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── HERO IMAGE ──────────────────────────────────────────── */

#articleHero {
  display: none; /* shown by article.js when image is available */
}

.article-hero {
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.article-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-hero-credit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  padding: 4px 10px;
  margin: 0;
}

/* ── LAYOUT ──────────────────────────────────────────────── */

.article-page {
  padding: 50px 0 100px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* ── SPONSORED NOTICE ────────────────────────────────────── */

.sponsored-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 13px;
}

[data-theme="dark"] .sponsored-notice {
  background: #1c1500;
  border-color: #78350f;
}

.sponsored-label {
  background: #f59e0b;
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}

.sponsored-by {
  color: var(--muted);
  font-size: 12px;
}

/* ── KICKER / HEADLINE ───────────────────────────────────── */

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.article-category {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.breaking-tag {
  background: #dc2626;
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

.article-headline {
  font-family: Georgia, serif;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -.5px;
  margin: 0 0 18px;
}

.article-lead-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 24px;
  font-family: Georgia, serif;
}

/* ── BYLINE ──────────────────────────────────────────────── */

.article-byline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}

.byline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.byline-author {
  font-size: 14px;
  font-weight: 700;
}

.byline-date {
  font-size: 12px;
  color: var(--muted);
}

/* ── SHARE BAR ───────────────────────────────────────────── */

.article-share-bar {
  display: flex;
  gap: 6px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}

.share-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── CORRECTION NOTICE ───────────────────────────────────── */

.correction-notice {
  background: #fef9c3;
  border-left: 3px solid #eab308;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}

[data-theme="dark"] .correction-notice {
  background: #1c1800;
  border-color: #854d0e;
}

/* ── STRUCTURED SECTIONS ─────────────────────────────────── */

.article-section {
  margin: 36px 0;
  padding: 24px 0;
  border-top: 2px solid var(--line);
}

.article-section--what {
  border-top-color: var(--accent);
}

.article-section--facts {
  background: var(--surface);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
  border-top: 3px solid #10b981;
  margin-left: 0;
}

.article-section--unknown {
  background: var(--surface);
  padding: 24px;
  border-radius: 4px;
  border: 1px solid var(--line);
  border-top: 3px solid #f59e0b;
}

.article-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
}

.article-what-text {
  font-size: 18px;
  line-height: 1.7;
  font-family: Georgia, serif;
  margin: 0;
}

.article-why-text {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.8;
}

.article-why-text p {
  margin: 0 0 16px;
}

.article-body-text {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--text);
}

.article-body-text p   { margin: 0 0 20px; }
.article-body-text h2  { font-size: 28px; margin: 32px 0 12px; }
.article-body-text h3  { font-size: 22px; margin: 28px 0 10px; }
.article-body-text blockquote {
  border-left: 3px solid var(--accent);
  margin: 24px 0;
  padding: 8px 0 8px 20px;
  color: var(--muted);
  font-style: italic;
}

/* ── FACTS LISTS ─────────────────────────────────────────── */

.facts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facts-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.facts-list--confirmed li::before {
  content: "✓";
  color: #10b981;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.facts-list--unconfirmed li::before {
  content: "?";
  color: #f59e0b;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── TIMELINE ────────────────────────────────────────────── */

.article-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-time {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  min-width: 60px;
  padding-top: 1px;
}

.timeline-event {
  font-size: 15px;
  line-height: 1.5;
}

/* ── SOURCE TRANSPARENCY BAR ─────────────────────────────── */

.source-transparency {
  margin: 24px 0;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--line);
}

.transparency-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.transparency-item {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.transparency-item::before {
  content: "·";
  margin-right: 8px;
  color: var(--accent);
}

.transparency-item:first-child::before {
  display: none;
}

/* ── SOURCES LIST ────────────────────────────────────────── */

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.sources-list a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-word;
}

.sources-list a:hover {
  color: var(--accent-dark);
}

.source-type {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* ── ARTICLE FOOTER ACTIONS ──────────────────────────────── */

.article-footer-actions {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.correction-link {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.correction-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ── SIDEBAR ─────────────────────────────────────────────── */

.article-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 20px;
}

.sidebar-widget--cta {
  background: var(--dark);
  color: white;
  border-color: transparent;
}

.sidebar-widget--cta h3 { color: white; }
.sidebar-widget--cta p  { color: #98a2b3; font-size: 13px; }

.sidebar-widget--advertise {
  background: var(--surface);
}

.widget-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Related articles */
.related-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .1s;
}

.related-item:last-child { border-bottom: 0; }
.related-item:hover .related-title { color: var(--accent); }

.related-category {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .8px;
}

.related-title {
  font-family: Georgia, serif;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

/* ── ARTICLE BUTTONS ─────────────────────────────────────── */

.btn-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: background .12s;
}

.btn-article--primary {
  background: var(--accent);
  color: white;
}

.btn-article--primary:hover {
  background: var(--accent-dark);
  color: white;
}

.btn-article--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-article--ghost:hover { background: var(--surface); }

.btn-article--full { width: 100%; }

/* ── CORRECTION MODAL ────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,10,18,.8);
  z-index: 1000;
  display: none;  /* shown via style.display = "flex" by article.js */
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg);
  color: var(--text);
  width: min(100%, 520px);
  border-radius: 6px;
  padding: 40px 44px;
  position: relative;
}

.modal-card h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 10px 0 8px;
}

.modal-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 0;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.modal-field input,
.modal-field textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color .15s;
}

.modal-field input:focus,
.modal-field textarea:focus { border-color: var(--accent); }

.modal-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.modal-success {
  padding: 20px 0;
  text-align: center;
}

.modal-success p {
  color: #166534;
  font-size: 15px;
  margin-bottom: 20px;
}


/* ============================================================
   ADVERTISE PAGE — advertise.html
   ============================================================ */

/* ── HERO ────────────────────────────────────────────────── */

.adv-hero {
  background: var(--dark);
  color: white;
  padding: 80px 0;
}

.adv-hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  align-items: center;
}

.adv-hero span.eyebrow { color: #93b4ff; }

.adv-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.07;
  margin: 12px 0 18px;
  color: white;
}

.adv-hero > div > p {
  color: #98a2b3;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.adv-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.adv-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.adv-stat-num {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.adv-stat-label {
  font-size: 12px;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── EDITORIAL NOTICE ────────────────────────────────────── */

.adv-notice {
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
  padding: 14px 0;
}

[data-theme="dark"] .adv-notice {
  background: #0c1a2e;
  border-color: #1e3a5f;
}

.adv-notice-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
}

.adv-notice-icon {
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.adv-notice-inner p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* ── SECTION WRAPPER ─────────────────────────────────────── */

.adv-section {
  padding: 70px 0;
}

.adv-section--form {
  background: var(--surface);
}

.adv-section--faq {
  background: var(--surface);
}

.adv-section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.adv-section-heading h2 {
  font-family: Georgia, serif;
  font-size: 40px;
  margin: 8px 0 12px;
}

.adv-section-heading p {
  color: var(--muted);
  font-size: 16px;
}

/* ── PACKAGE GROUPS ──────────────────────────────────────── */

.adv-group {
  margin-bottom: 60px;
}

.adv-group-title {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
}

.adv-group-sub {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.adv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.adv-cards--single {
  grid-template-columns: min(100%, 420px);
}

/* ── PACKAGE CARD ────────────────────────────────────────── */

.adv-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}

.adv-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(21,94,239,.1);
}

.adv-card--featured {
  border-color: var(--accent);
}

.adv-card-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 20px;
}

.adv-card-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}

.adv-card-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 6px;
}

.adv-card-header h4 {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 14px;
}

.adv-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
}

.price-period {
  font-size: 13px;
  color: var(--muted);
}

.adv-card-body {
  padding: 20px 28px;
  flex: 1;
}

.adv-card-body > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.adv-card-body ul {
  padding-left: 18px;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.adv-card-examples {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 0 !important;
}

.adv-card > .adv-select-btn,
.adv-card > .btn-adv {
  margin: 0 28px 28px;
  border-radius: 4px;
}

/* ── LIMITS SECTION ──────────────────────────────────────── */

.adv-limits {
  padding: 70px 0;
  background: var(--dark);
  color: white;
}

.adv-limits-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: start;
}

.adv-limits h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  color: white;
  margin: 0 0 14px;
}

.adv-limits > div > p {
  color: #98a2b3;
  font-size: 15px;
  line-height: 1.7;
}

.adv-limits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.adv-limit-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.adv-limit-item span:first-child {
  font-size: 20px;
  font-weight: 800;
  padding-top: 2px;
}

.adv-limit-item--no span:first-child { color: #ef4444; }
.adv-limit-item--yes span:first-child { color: #10b981; }

.adv-limit-item strong {
  display: block;
  color: white;
  font-size: 15px;
  margin-bottom: 4px;
}

.adv-limit-item p {
  color: #98a2b3;
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* ── ENQUIRY FORM LAYOUT ─────────────────────────────────── */

.adv-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: start;
}

.adv-form-intro h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  margin: 8px 0 14px;
}

.adv-form-intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.adv-form-note {
  font-size: 13px !important;
  font-style: italic;
}

.adv-contact-direct {
  margin-top: 24px;
  font-size: 14px;
}

.adv-contact-direct a {
  color: var(--accent);
  display: block;
  margin-top: 4px;
  font-weight: 700;
}

.adv-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 36px 40px;
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */

.adv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.adv-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.adv-field input,
.adv-field select,
.adv-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  box-sizing: border-box;
  width: 100%;
}

.adv-field input:focus,
.adv-field select:focus,
.adv-field textarea:focus { border-color: var(--accent); }
.adv-field textarea { resize: vertical; min-height: 110px; }

.adv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.optional-label {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ── SELECTED PACKAGE BAR ────────────────────────────────── */

.adv-selected-pkg {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.adv-selected-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.adv-selected-name {
  font-weight: 700;
  font-size: 14px;
}

.adv-selected-price {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}

.adv-clear-pkg {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 12px;
  padding: 3px 9px;
  cursor: pointer;
  color: var(--muted);
}

.adv-clear-pkg:hover { color: var(--text); }

/* ── FORM BUTTONS ────────────────────────────────────────── */

.btn-adv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: background .12s, opacity .12s;
  white-space: nowrap;
}

.btn-adv--primary {
  background: var(--accent);
  color: white;
}

.btn-adv--primary:hover {
  background: var(--accent-dark);
  color: white;
}

.btn-adv--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-adv--ghost:hover { background: var(--surface); }

.btn-adv--full { width: 100%; }

.btn-adv:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* ── FORM MESSAGES ───────────────────────────────────────── */

.adv-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 14px;
}

[data-theme="dark"] .adv-error {
  background: #1c0a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

.adv-form-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.6;
}

.adv-form-success {
  text-align: center;
  padding: 40px 20px;
}

.adv-form-success h3 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin: 16px 0 10px;
}

.adv-form-success p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── FAQ ─────────────────────────────────────────────────── */

.adv-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 22px 24px;
  background: var(--bg);
}

.faq-item h4 {
  font-family: Georgia, serif;
  font-size: 17px;
  margin: 0 0 10px;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.7;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .article-layout   { grid-template-columns: 1fr; }
  .article-sidebar  { position: static; }
  .adv-hero-inner   { grid-template-columns: 1fr; gap: 36px; }
  .adv-hero-stats   { flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .adv-limits-inner { grid-template-columns: 1fr; gap: 32px; }
  .adv-form-layout  { grid-template-columns: 1fr; gap: 36px; }
  .adv-faq-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .article-headline   { font-size: 30px; }
  .article-lead-text  { font-size: 17px; }
  .article-byline     { flex-direction: column; align-items: flex-start; }
  .adv-row            { grid-template-columns: 1fr; }
  .adv-form-card      { padding: 24px 20px; }
  .modal-card         { padding: 28px 20px; }
}


/* ============================================================
   POLICY PAGES — editorial-policy, corrections, privacy
   ============================================================ */

.policy-page {
  padding: 60px 0 100px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: start;
}

/* ── SIDEBAR NAV ─────────────────────────────────────────── */

.policy-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.policy-nav-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 0 0 10px;
}

.policy-nav a {
  font-size: 13px;
  color: var(--muted);
  padding: 5px 10px;
  border-left: 2px solid var(--line);
  transition: color .12s, border-color .12s;
  text-decoration: none;
  display: block;
}

.policy-nav a:hover,
.policy-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ── CONTENT ─────────────────────────────────────────────── */

.policy-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.06;
  margin: 10px 0 6px;
}

.policy-updated {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
}

.policy-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 40px;
  font-family: Georgia, serif;
}

.policy-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.policy-content section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.policy-content section:first-of-type {
  border-top: 2px solid var(--accent);
}

.policy-content h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0 0 16px;
}

.policy-content h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 24px 0 8px;
}

.policy-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin: 0 0 14px;
}

.policy-content ul,
.policy-content ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.policy-content li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
}

.policy-content a {
  color: var(--accent);
  text-decoration: underline;
}

.policy-content a:hover {
  color: var(--accent-dark);
}

/* ── PRIVACY TABLE ───────────────────────────────────────── */

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 24px;
}

.privacy-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
}

.privacy-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}

.privacy-table tr:last-child td {
  border-bottom: 0;
}

/* ── CORRECTIONS FORM ────────────────────────────────────── */

.corr-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 640px;
}

.corr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.corr-field label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.corr-field input,
.corr-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  resize: vertical;
  transition: border-color .15s;
  box-sizing: border-box;
}

.corr-field input:focus,
.corr-field textarea:focus { border-color: var(--accent); }

.corr-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.corr-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 14px;
}

[data-theme="dark"] .corr-error {
  background: #1c0a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

.corr-success {
  text-align: center;
  padding: 40px 20px;
  max-width: 480px;
}

.corr-success h3 {
  font-family: Georgia, serif;
  font-size: 24px;
  margin: 16px 0 10px;
}

.corr-success p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ── CORRECTIONS LOG ─────────────────────────────────────── */

.corr-empty p {
  color: var(--muted);
  font-size: 15px;
  padding: 20px 0;
}

.corr-log-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.corr-log-item:last-child { border-bottom: 0; }

.corr-log-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.corr-log-article {
  display: block;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 8px;
}

a.corr-log-article:hover { color: var(--accent); }

.corr-log-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 8px;
  }

  .policy-nav-title { display: none; }

  .policy-nav a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 4px 8px;
  }

  .policy-nav a:hover,
  .policy-nav a.active {
    border-left: 0;
    border-bottom-color: var(--accent);
  }

  .corr-row {
    grid-template-columns: 1fr;
  }

  .privacy-table {
    font-size: 13px;
  }

  .privacy-table th,
  .privacy-table td {
    padding: 8px 10px;
  }
}


/* ============================================================
   INLINE ARTICLE FIGURES
   Used in both the rich editor (admin) and article.html
   ============================================================ */

/* ── Base figure ─────────────────────────────────────────── */

figure.article-figure {
  margin: 28px 0;
  padding: 0;
  display: block;
  line-height: 0; /* removes gap under img */
}

figure.article-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

figcaption.article-figure-caption {
  font-family: Inter, sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
  padding: 0 2px;
  font-style: italic;
}

/* ── Alignment variants ──────────────────────────────────── */

/* Full width — spans the full content column */
figure.article-figure--full {
  width: 100%;
}

/* Video embed — 16:9 responsive wrapper */
figure.article-figure--video { margin: 28px 0; }

.video-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.video-embed-wrap iframe,
.video-embed-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

figcaption.figure-caption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Wide — breaks slightly outside the text column */
figure.article-figure--wide {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
}

/* Float left — text wraps around right side */
figure.article-figure--left {
  float: left;
  width: 45%;
  margin: 8px 28px 16px 0;
  clear: left;
}

/* Float right — text wraps around left side */
figure.article-figure--right {
  float: right;
  width: 45%;
  margin: 8px 0 16px 28px;
  clear: right;
}

/* Clearfix after floated figures in article body */
.article-body-text::after {
  content: "";
  display: table;
  clear: both;
}

/* ── Rich editor preview ─────────────────────────────────── */

.rich-editor figure.article-figure {
  position: relative;
  cursor: default;
  user-select: none; /* treat figure as a block unit */
}

/* Hover outline so editor knows the figure is selected */
.rich-editor figure.article-figure:hover {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove button that appears on hover inside the editor */
.rich-editor figure.article-figure .figure-remove-btn {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.65);
  color: white;
  border: 0;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.rich-editor figure.article-figure:hover .figure-remove-btn {
  display: block;
}

/* ── Image picker modal ──────────────────────────────────── */

.img-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,10,18,.75);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.img-picker-card {
  background: var(--bg);
  color: var(--text);
  width: min(100%, 560px);
  border-radius: 6px;
  padding: 36px 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.img-picker-title {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 0 0 20px;
}

/* Tabs */
.img-picker-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
  gap: 0;
}

.img-picker-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color .12s, border-color .12s;
}

.img-picker-tab:hover  { color: var(--text); }
.img-picker-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Options area */
.img-picker-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.img-picker-options .form-group {
  margin-bottom: 0;
}

.img-picker-options label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}

.img-picker-options input[type="text"],
.img-picker-options input[type="url"] {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s;
}

.img-picker-options input:focus { border-color: var(--accent); }
.img-picker-options small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

/* Alignment buttons */
.img-align-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.img-align-btn {
  padding: 7px 13px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.img-align-btn:hover,
.img-align-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Preview inside picker */
.img-picker-preview {
  position: relative;
  margin-top: 4px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.img-picker-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

/* Error */
.img-picker-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-top: 14px;
}

[data-theme="dark"] .img-picker-error {
  background: #1c0a0a;
  border-color: #7f1d1d;
  color: #fca5a5;
}

/* Actions */
.img-picker-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Image button in toolbar */
.tool-btn--image {
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 12px;
  padding: 4px 10px;
  color: var(--text);
  font-weight: 700;
}

.tool-btn--image:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 700px) {
  figure.article-figure--left,
  figure.article-figure--right {
    float: none;
    width: 100%;
    margin: 20px 0;
  }

  .img-picker-card {
    padding: 24px 20px;
  }
}


/* ============================================================
   ARTICLE PAGE — default hidden states (controlled by article.js)
   Using CSS rather than HTML hidden attribute to avoid UA conflicts
   ============================================================ */

#articleLoading   { display: block; }
#articlePage      { display: none; }
#articleNotFound  { display: none; }
#articleHero      { display: none; }
#sponsoredNotice  { display: none; }
#breakingTag      { display: none; }
#correctionNotice { display: none; }
#sectionWhat      { display: none; }
#sectionWhy       { display: none; }
#sectionKnow      { display: none; }
#sectionUnknown   { display: none; }
#sectionTimeline  { display: none; }
#sourceTransparency { display: none; }
#sectionSources   { display: none; }
#correctionModal  { display: none; }
#corrSuccess      { display: none; }
#corrError        { display: none; }
#articleHeroCredit { display: none; }


/* ============================================================
   LOGO IMAGE
   ============================================================ */

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 6px 12px;
}

.masthead {
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="dark"] .brand-logo {
  background: rgba(255,255,255,0.1);
}

/* Footer + dark background version — invert to white */
/* Footer + dark background version — invert to white */
.brand-logo--footer {
  height: 30px;
  mix-blend-mode: normal !important;
  filter: brightness(0) invert(1);
  opacity: .85;
}

/* Admin sidebar logo */
.admin-sidebar .brand-logo,
.sidebar-brand .brand-logo {
  height: 28px;
  mix-blend-mode: normal !important;
  filter: brightness(0) invert(1);
  opacity: .85;
}

/* Keep the .brand link flex alignment working */
.brand {
  display: flex;
  align-items: center;
  gap: 0;
}


/* ============================================================
   JSE MARKET TICKER — masthead
   ============================================================ */

.market-ticker {
  flex: 1;
  overflow: hidden;
  margin: 0 28px;
  position: relative;
}

/* Fade edges so it blends into the masthead */
.market-ticker::before,
.market-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  z-index: 2;
  pointer-events: none;
}

.market-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.market-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.market-ticker-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  padding: 6px 0;
}

.market-ticker-inner::-webkit-scrollbar {
  display: none;
}

.market-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.market-label {
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.market-price {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.market-change {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.market-up { color: #10b981; }
.market-dn { color: #ef4444; }

.market-sep {
  color: var(--line);
  font-size: 16px;
  padding: 0 2px;
  user-select: none;
}

.market-loading {
  font-size: 12px;
  color: var(--muted);
  padding: 0 14px;
}

/* Hide ticker on mobile — not enough space */
@media (max-width: 850px) {
  .market-ticker {
    display: none;
  }
}


/* ============================================================
   AD SLOTS — public site
   ============================================================ */

/* ── WRAPPER ─────────────────────────────────────────────── */

.ad-slot-wrap {
  width: 100%;
}

/* Banner slot — between hero and latest */
.ad-slot-wrap--banner {
  margin: 20px 0 0;
}

/* Mid slot — between sections */
.ad-slot-wrap--mid {
  margin: 8px 0;
}

/* Section sponsorship — in section headings */
.ad-slot-wrap--section {
  margin-left: auto;
  flex-shrink: 0;
}

/* Sidebar slot */
.ad-slot-wrap--sidebar {
  margin-bottom: 12px;
}

/* ── AD UNIT ─────────────────────────────────────────────── */

.ad-unit {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}

.ad-unit:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(21,94,239,.08);
}

/* Label */
.ad-label {
  display: block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 6px 12px 0;
}

/* Inner content */
.ad-unit-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 14px;
}

.ad-unit-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.ad-unit-headline {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.ad-unit-name {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

/* Rotation dots */
.ad-dots,
.ad-unit-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 0 12px 10px;
}

.ad-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line);
  transition: background .3s;
  display: inline-block;
}

.ad-dot--active,
.ad-dot.active {
  background: var(--accent);
}

/* Progress bar — fills across the bottom over the rotation interval */
.ad-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.ad-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* ── BANNER VARIANT (full-width between sections) ────────── */

.ad-slot-wrap--banner .ad-unit,
.ad-slot-wrap--mid .ad-unit {
  display: flex;
  align-items: center;
  padding: 0;
}

.ad-slot-wrap--banner .ad-label,
.ad-slot-wrap--mid .ad-label {
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ad-slot-wrap--banner .ad-unit-inner,
.ad-slot-wrap--mid .ad-unit-inner {
  flex: 1;
  padding: 12px 14px;
  border-left: 1px solid var(--line);
}

.ad-slot-wrap--banner .ad-unit-dots,
.ad-slot-wrap--mid .ad-unit-dots {
  padding: 0 14px 0 0;
  flex-shrink: 0;
}

.ad-slot-wrap--banner .ad-unit-img { height: 36px; }

/* ── SECTION SPONSORSHIP VARIANT ────────────────────────── */

.ad-slot-wrap--section .ad-unit {
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ad-slot-wrap--section .ad-label {
  padding: 0;
  display: inline;
}

.ad-slot-wrap--section .ad-unit-inner {
  padding: 0;
  gap: 8px;
}

.ad-slot-wrap--section .ad-unit-img   { height: 22px; }
.ad-slot-wrap--section .ad-unit-dots  { display: none; }

/* ── SIDEBAR VARIANT ─────────────────────────────────────── */

.ad-slot-wrap--sidebar .ad-unit-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ad-slot-wrap--sidebar .ad-unit-img { max-width: 100%; height: auto; max-height: 60px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 600px) {
  .ad-slot-wrap--banner .ad-unit,
  .ad-slot-wrap--mid .ad-unit {
    flex-wrap: wrap;
  }
  .ad-slot-wrap--section {
    display: none; /* too small on mobile */
  }
}


/* ── HERO SIDE CARDS — live linked version ───────────────── */

.side-story--live {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: opacity .15s;
  cursor: pointer;
}

.side-story--live:hover {
  opacity: .82;
}

.side-story--live:hover h2 {
  color: var(--accent);
}

.side-story--live h2 {
  font-family: Georgia, serif;
  font-size: 19px;
  line-height: 1.2;
  margin: 5px 0;
  transition: color .12s;
}

.side-story--live p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.side-story--live .story-image {
  height: 100px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}


/* ── FOOTER BRAND (favicon + text) ──────────────────────── */

.footer-brand-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer-brand-name {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1;
}


/* ============================================================
   ARCHIVE PAGE
   ============================================================ */

.archive-page {
  padding: 52px 0 100px;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--accent);
  flex-wrap: wrap;
}

.archive-header h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 52px);
  margin: 8px 0 6px;
  line-height: 1;
}

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

.archive-stats {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  align-items: center;
}

.archive-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-stat span {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.archive-stat {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── FILTERS ─────────────────────────────────────────────── */

.archive-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
  padding: 24px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--line);
}

.archive-filter-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.archive-filter-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  white-space: nowrap;
  min-width: 100px;
}

.archive-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.archive-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}

.archive-pill:hover,
.archive-pill.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.archive-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
}

.archive-search-input:focus { border-color: var(--accent); }

/* ── RESULTS BAR ─────────────────────────────────────────── */

.archive-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.archive-clear-search {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.archive-clear-search:hover { color: var(--accent-dark); }

/* ── MONTH GROUP ─────────────────────────────────────────── */

.archive-month-group {
  margin-bottom: 52px;
}

.archive-month-heading {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.archive-month-count {
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.archive-article-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── ARTICLE ROW ─────────────────────────────────────────── */

.archive-article-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background .1s;
}

.archive-article-row:last-child { border-bottom: 0; }

.archive-article-row:hover { background: var(--surface); }

.archive-article-row--archived {
  opacity: .7;
}

.archive-article-row--archived:hover { opacity: 1; }

/* Thumbnail */
.archive-article-thumb {
  display: block;
  height: 80px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-2);
  flex-shrink: 0;
}

.archive-article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.archive-article-row:hover .archive-article-thumb img {
  transform: scale(1.04);
}

/* Body */
.archive-article-body {
  min-width: 0;
}

.archive-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.archive-article-cat {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
}

.archive-article-date {
  font-size: 12px;
  color: var(--muted);
}

.archive-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--muted);
}

.archive-badge--breaking {
  background: #dc2626;
  color: white;
}

.archive-article-title {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 6px;
  font-weight: 700;
}

.archive-article-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .12s;
}

.archive-article-title a:hover { color: var(--accent); }

.archive-article-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */

.archive-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── ADMIN: ARCHIVE STYLES ───────────────────────────────── */

.article-row--archived {
  opacity: .75;
  background: var(--surface);
}

.status-badge--archived {
  background: #667085;
  color: white;
}

.archive-group-header {
  margin: 24px 0 8px;
}

.archive-toggle-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background .12s, color .12s;
}

.archive-toggle-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 700px) {
  .archive-header {
    flex-direction: column;
    gap: 20px;
  }

  .archive-stats { gap: 16px; }

  .archive-filter-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .archive-filter-label { min-width: auto; }

  .archive-article-row {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }

  .archive-article-thumb { height: 60px; }
  .archive-article-title { font-size: 16px; }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
  background: var(--dark);
  color: white;
  padding: 80px 0 70px;
}

.about-hero-inner {
  max-width: 760px;
}

.about-hero .eyebrow { color: #93b4ff; }

.about-hero h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.07;
  margin: 14px 0 20px;
  color: white;
}

.about-hero-lead {
  font-size: 18px;
  color: #98a2b3;
  line-height: 1.7;
  margin: 0;
  max-width: 620px;
}

.about-section {
  padding: 70px 0;
}

.about-section--alt {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: start;
}

.about-section-label {
  padding-top: 8px;
}

.about-section-content h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.about-section-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.about-section-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Format list */
.about-format-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.about-format-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.about-format-icon {
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.about-format-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
  color: var(--text);
}

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

/* Standards */
.about-standards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.about-standard {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.about-section--alt .about-standard {
  background: var(--bg);
}

.about-standard h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
}

.about-standard p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

/* Contact grid */
.about-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.about-contact-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.about-contact-item strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.about-contact-item p {
  font-size: 13px !important;
  margin: 0 0 8px !important;
}

.about-contact-item a {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .about-grid        { grid-template-columns: 1fr; gap: 20px; }
  .about-standards   { grid-template-columns: 1fr; }
  .about-contact-grid { grid-template-columns: 1fr; }
}


/* ── HERO CONTENT DYNAMIC STATES ────────────────────────── */

.hero-loading {
  padding: 10px 0;
}

.hero-source {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* Make read-story work as both button and anchor */
a.read-story {
  display: inline-block;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

a.read-story:hover { color: var(--accent-dark); }


/* ── SECTION MORE LINK ───────────────────────────────────── */

.section-more-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s;
  margin-left: auto;
}

.section-more-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}


/* ============================================================
   MASTHEAD AUTH BUTTONS
   ============================================================ */

.masthead-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Sign up — filled accent button */
.masthead-actions .masthead-signup-btn,
a.masthead-signup-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: white !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background .12s;
  white-space: nowrap;
  line-height: 1;
}

.masthead-actions .masthead-signup-btn:hover,
a.masthead-signup-btn:hover {
  background: var(--accent-dark);
  color: white !important;
}

/* Sign in — ghost button */
.masthead-actions .masthead-signin-btn,
a.masthead-signin-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color .12s, color .12s;
  white-space: nowrap;
  line-height: 1;
}

.masthead-actions .masthead-signin-btn:hover,
a.masthead-signin-btn:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

/* Logged-in state — account button */
.masthead-actions .masthead-account-btn,
a.masthead-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color .12s;
  white-space: nowrap;
}

.masthead-actions .masthead-account-btn:hover,
a.masthead-account-btn:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.masthead-account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* Sign out — subtle text button */
.masthead-signout-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 3px;
  font-family: inherit;
  transition: color .12s;
}

.masthead-signout-btn:hover {
  color: var(--text);
}

/* Hide on mobile — too cramped */
@media (max-width: 850px) {
  .masthead-auth {
    display: none;
  }
}


/* ── NAV SEARCH BUTTON ───────────────────────────────────── */

.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  color: var(--text);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, border-color .12s;
  white-space: nowrap;
}

.nav-search-btn:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.3);
}

/* On light theme the nav is white so adjust */
.main-nav .nav-search-btn {
  border-color: var(--line);
  color: var(--muted);
}

.main-nav .nav-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.main-nav .nav-search-btn svg {
  flex-shrink: 0;
}

@media (max-width: 850px) {
  .nav-search-btn span { display: none; }
  .nav-search-btn { padding: 6px; gap: 0; }
}


/* ============================================================
   MASTHEAD — new layout: logo+ticker left, auth right
   ============================================================ */

.masthead-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 24px;
}

/* Left column: logo stacked above market ticker */
.masthead-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Logo bigger and fully visible */
.masthead-left .brand-logo {
  height: 64px;
  width: auto;
  display: block;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 6px 14px;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .masthead-left .brand-logo {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
  background: transparent;
  padding: 0;
}

/* Market ticker sits directly below logo */
.masthead-left .market-ticker {
  flex: none;
  margin: 0;
  max-width: 600px;
}

.masthead-left .market-ticker::before,
.masthead-left .market-ticker::after {
  display: none; /* no fade edges needed here */
}

/* Right column: auth buttons */
.masthead-new .masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Masthead handled in home.css */

@media (max-width: 850px) {
  .masthead-new {
    padding: 12px 0;
  }

  .masthead-left .brand-logo {
    height: 44px;
    padding: 4px 10px;
  }

  .masthead-left .market-ticker {
    display: none;
  }
}


/* ============================================================
   MASTHEAD — centred logo layout (matching design)
   ============================================================ */

.masthead-new {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 20px;
  min-height: 110px;
}

/* Centre block: logo + tagline */
.masthead-centre {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.brand-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-logo-centre {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .brand-logo-centre {
  mix-blend-mode: normal;
  filter: brightness(0) invert(1);
}

.brand-tagline {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

/* Right: auth buttons pushed to the right edge */
.masthead-new .masthead-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Market ticker strip between masthead and nav */
.market-ticker-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 4px 0;
  overflow: hidden;
}

.market-ticker-bar .market-ticker {
  flex: 1;
  margin: 0;
}

/* Nav search button — matches screenshot style */
.nav-search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .12s, color .12s;
  white-space: nowrap;
}

.nav-search-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

[data-theme="dark"] .nav-search-btn {
  background: var(--surface);
}

@media (max-width: 850px) {
  .masthead-new {
    padding: 16px 0 12px;
    min-height: auto;
  }

  .masthead-centre {
    position: static;
    transform: none;
  }

  .masthead-new {
    justify-content: space-between;
  }

  .brand-logo-centre {
    height: 44px;
  }

  .brand-tagline { display: none; }

  .masthead-new .masthead-auth { display: none; }

  .market-ticker-bar { display: none; }
}


/* ============================================================
   HERO V2 — mockup layout: image left, side list centre, ad right
   ============================================================ */

.hero-grid-v2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr 260px;
  gap: 0;
  min-height: 340px;
  align-items: stretch;
}

/* ── LEFT: hero story with full image + overlay ──────────── */

.hero-story-v2 {
  position: relative;
  overflow: hidden;
}

.hero-story-v2 .hero-image {
  height: 100%;
  min-height: 340px;
  position: relative;
}

/* Dark gradient overlay so text is readable */
.hero-story-v2 .hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  z-index: 1;
}

.hero-cat-label {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
}

/* Content overlay sits at the bottom of the image */
.hero-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 28px;
  z-index: 2;
  color: white;
}

.hero-overlay-content h1 {
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.15;
  margin: 6px 0 10px;
  color: white;
  letter-spacing: -.3px;
}

.hero-overlay-content p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin: 0 0 14px;
  line-height: 1.5;
}

.hero-overlay-content .read-story {
  color: white;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
  text-decoration: none;
}

.hero-overlay-content .read-story:hover {
  border-bottom-color: white;
}

.hero-read-time {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-top: 10px;
}

/* ── CENTRE: side story list ─────────────────────────────── */

.hero-side-v2 {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.side-story-v2 {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background .1s;
  flex: 1;
}

.side-story-v2:last-child {
  border-bottom: 0;
}

.side-story-v2:hover {
  background: var(--surface);
}

.side-story-img {
  height: 100%;
  min-height: 70px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.side-cat-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  text-align: center;
  padding: 3px 4px;
}

.side-story-text {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.side-story-text .story-category {
  font-size: 9px;
}

.side-story-text h3 {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

.side-story-v2:hover h3 {
  color: var(--accent);
}

.side-read-time {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.side-read-time::before {
  content: "⏱";
  font-size: 10px;
}

/* ── RIGHT: advertisement column ─────────────────────────── */

.hero-ad-col {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.ad-slot-wrap--hero-side {
  flex: 1;
}

/* Default placeholder — shown when no advertiser assigned */
.hero-ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  height: 100%;
  background: var(--surface);
  border: 1px dashed var(--line);
  gap: 12px;
}

.hero-ad-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  width: 100%;
  text-align: center;
}

.hero-ad-cta p {
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}

.hero-ad-cta span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-ad-btn {
  display: inline-block;
  background: var(--accent);
  color: white !important;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background .12s;
}

.hero-ad-btn:hover {
  background: var(--accent-dark);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .hero-grid-v2 {
    grid-template-columns: 1fr 1fr;
  }
  .hero-ad-col { display: none; }
}

@media (max-width: 650px) {
  .hero-grid-v2 {
    grid-template-columns: 1fr;
  }
  .hero-side-v2 { display: none; }
  .hero-story-v2 .hero-image { min-height: 280px; }
}
