/* =====================================================
   Islamophobia Watch France — Shared Stylesheet
   ===================================================== */

/* ── 1. Custom Properties ─────────────────────────── */
:root {
  --bg:            #ffffff;
  --bg-raised:     #f5f5f5;
  --card-bg:       #ffffff;
  --text:          #111111;
  --text-secondary:#444444;
  --text-muted:    #666666;
  --text-faint:    #999999;
  --red:           #ED2939;
  --blue:          #002395;
  --border:        #e0e0e0;
  --border-subtle: #ebebeb;
  --footer-bg:     #0a0a0a;
}

/* ── 2. Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── 3. Typography ────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; color: var(--text); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem);  font-weight: 700; line-height: 1.3; color: var(--text); }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.4; color: var(--text); }
p  { color: var(--text-secondary); }

/* ── 4. Layout ────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-heading { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; margin-bottom: 6px; }
.section-sub     { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 36px; max-width: 600px; }

.section-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 6px;
}

.divider { height: 1px; background: var(--border-subtle); }

.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* ── Tricolore stripe ─────────────────────────────── */
.tricolore-stripe { height: 3px; display: flex; width: 100%; }
.tri-blue  { background: #002395; flex: 1; }
.tri-white { background: #FFFFFF; flex: 1; }
.tri-red   { background: #ED2939; flex: 1; }

/* ── 5. Navigation ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: #0a0a0a;
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-iwf  { display: none; }
.logo-full { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: #666;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-links a:hover,
.nav-links a.active { color: #ED2939; }

.coming-soon-tag {
  font-size: 9px;
  font-weight: 700;
  background: var(--border);
  color: var(--text-faint);
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── 6. Hamburger ─────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #aaa;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7. Buttons ───────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { opacity: 0.85; }

.btn-primary { background: var(--red); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid #ccc;
}
.btn-outline:hover { border-color: var(--text); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 9px 18px;
}
.btn-ghost:hover { color: var(--text); border-color: #aaa; opacity: 1; }

.btn-center { display: flex; justify-content: center; margin-top: 40px; }

/* ── 8. Badges ────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 500;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.heat-hot      { background: #3a0a0a; color: #ED2939; border: 1px solid #5a1010; }
.heat-trending { background: #2a1e00; color: #c8860a; border: 1px solid #4a3200; }
.heat-normal   { background: #1a1a1a; color: #444;    border: 1px solid #252525; }
.badge-category { background: #e8eeff; color: #2244bb; border: 1px solid #b8c8ff; }

/* ── 9. News Cards ────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s;
}
.news-card:hover { border-color: #aaa; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-date   { font-size: 11px; color: var(--text-faint); }
.card-source { font-size: 11px; color: var(--text-muted); font-weight: 600; }

.card-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.card-headline {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}
.card-headline a { color: inherit; }
.card-headline a:hover { color: var(--red); }

.card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}
.card-sources-label { font-size: 11px; color: var(--text-faint); }
.card-read-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}
.card-read-more:hover { text-decoration: underline; }

/* ── 10. Hero Split ───────────────────────────────── */
.hero-split {
  display: flex;
  height: calc(100vh - 62px);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

/* Left column */
.hero-left {
  width: 45%;
  display: flex;
  align-items: flex-start;
  padding: 48px;
  overflow-y: auto;
  flex-shrink: 0;
}

.hero-left-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.hero-brand { display: flex; flex-direction: column; gap: 6px; }

.hero-brand-iwf {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  display: inline-block;
  border-bottom: 3px solid var(--red);
  padding-bottom: 3px;
  line-height: 1;
  width: fit-content;
  letter-spacing: -0.5px;
}

.hero-brand-full {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.hero-split-headline {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.hero-split-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-quote-inline {
  border-left: 3px solid var(--red);
  padding-left: 14px;
}
.hero-quote-inline p {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 5px;
}
.hero-quote-inline cite {
  font-size: 0.75rem;
  color: var(--text-faint);
  font-style: normal;
  display: block;
}

.hero-split-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Right column */
.hero-right {
  flex: 1;
  border-left: 2px solid var(--red);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  padding-top: 48px;
}

.hero-feed-label {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 0 20px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-feed {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg-raised);
}
.hero-feed::-webkit-scrollbar { width: 4px; }
.hero-feed::-webkit-scrollbar-track { background: var(--bg-raised); }
.hero-feed::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

.hero-feed-footer {
  flex-shrink: 0;
  padding: 11px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg);
}

.hero-feed-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.hero-feed-more:hover { color: var(--red); }

/* Feed items within the hero right column */
.hero-feed .news-feed-item {
  grid-template-columns: 48px 1fr 20px;
  padding: 14px 20px;
  gap: 14px;
}
.hero-feed .feed-headline { font-size: 0.9rem; }
.hero-feed .feed-excerpt  { -webkit-line-clamp: 2; }

/* ── 11. Newsletter ───────────────────────────────── */
.newsletter {
  background: var(--bg-raised);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}
.newsletter-inner { max-width: 520px; margin: 0 auto; }
.newsletter h2   { margin-bottom: 10px; }
.newsletter > .newsletter-inner > p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.newsletter-input {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}
.newsletter-input::placeholder { color: var(--text-faint); }
.newsletter-input:focus { outline: none; border-color: var(--red); }
.newsletter-note { font-size: 11px; color: var(--text-faint); }

/* ── 12. Filter Bar ───────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

.filter-btn {
  padding: 7px 16px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.filter-btn:hover    { border-color: #aaa; color: var(--text); }
.filter-btn.active   { background: var(--red); border-color: var(--red); color: #fff; }

/* ── 13. Pagination ───────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.page-btn.active     { background: var(--red); border-color: var(--red); color: #fff; }
.page-btn:hover:not(.active) { border-color: #aaa; color: var(--text); }
.page-ellipsis { color: var(--text-faint); font-size: 13px; padding: 0 4px; }

/* ── 14. Page Headers ─────────────────────────────── */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border-subtle);
}
.page-header h1             { margin-bottom: 12px; }
.page-header p              { color: var(--text-muted); max-width: 640px; font-size: 1rem; }

/* ── 15. About Page ───────────────────────────────── */
.about-content { padding-bottom: 64px; }

.about-section {
  max-width: 760px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.about-section:last-child { border-bottom: none; }
.about-section h2 { margin-bottom: 18px; font-size: 1.35rem; }
.about-section p  { color: var(--text-secondary); line-height: 1.85; font-size: 1rem; }

/* ── 16. Contact Page ─────────────────────────────── */
.contact-content { padding: 48px 0 80px; max-width: 600px; }

.contact-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.contact-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-value          { font-size: 1rem; color: var(--text); }
.contact-value a        { color: var(--red); }
.contact-value a:hover  { text-decoration: underline; }

.contact-note {
  padding-top: 32px;
  font-size: 14px;
  color: var(--text-faint);
  line-height: 1.7;
  font-style: italic;
}

/* ── 17. Editorial / Coming Soon ──────────────────── */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 0 80px;
}
.coming-soon-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  opacity: 0.4;
}
.coming-soon-section h1  { margin-bottom: 16px; }
.coming-soon-section .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.coming-soon-section .message {
  font-size: 0.9rem;
  color: var(--text-faint);
  max-width: 480px;
  margin-bottom: 48px;
}

/* ── 18. Article Template ─────────────────────────── */
.breadcrumb {
  padding: 14px 0;
  font-size: 12px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb a       { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span    { margin: 0 8px; color: var(--border); }

.article-header {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-badges     { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article-date       { font-size: 12px; color: var(--text-faint); margin-bottom: 12px; display: block; }
.article-headline   { max-width: 820px; margin-bottom: 16px; }
.article-byline     { font-size: 13px; color: var(--text-faint); }
.article-byline a   { color: var(--text-muted); }
.article-byline a:hover { color: var(--text); }

.article-body {
  padding: 40px 0;
  max-width: 720px;
  border-bottom: 1px solid var(--border-subtle);
}
.article-body p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
  font-size: 1rem;
}
.article-body p:last-child { margin-bottom: 0; }

.sources-section { padding: 32px 0; border-bottom: 1px solid var(--border-subtle); }
.sources-section h3 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 16px;
}
.source-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  color: var(--text-muted);
}
.source-item:last-child { border-bottom: none; }
.source-item a          { color: var(--red); }
.source-item a:hover    { text-decoration: underline; }
.source-arrow           { color: var(--text-faint); }

.article-nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.related-section { padding: 56px 0 72px; }
.related-section h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 24px;
}

/* ── 19. Footer ───────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  border-top: 2px solid var(--red);
}
.footer-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 32px;
  border-bottom: 1px solid #222;
}

.footer-left p      { font-size: 13px; color: #555; line-height: 1.7; max-width: 300px; }

.footer-centre ul   { display: flex; flex-direction: column; gap: 10px; }
.footer-centre a    { font-size: 13px; color: #444; transition: color 0.15s; }
.footer-centre a:hover { color: #f0f0f0; }

.footer-right       { display: flex; flex-direction: column; gap: 0; }
.footer-social-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #2a2a2a;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-right a     { font-size: 13px; color: #444; transition: color 0.15s; padding: 4px 0; }
.footer-right a:hover { color: #f0f0f0; }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #161616;
}
.footer-bottom p { font-size: 10px; color: #2a2a2a; line-height: 1.6; }

/* ── 20. News Feed List (standalone) ─────────────── */
.news-feed-list {
  border-top: 3px solid var(--red);
  height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg-raised);
}
.news-feed-list::-webkit-scrollbar { width: 4px; }
.news-feed-list::-webkit-scrollbar-track { background: var(--bg-raised); }
.news-feed-list::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

.news-feed-item {
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
  transition: background 0.15s;
  cursor: pointer;
}
.news-feed-item:hover { background: var(--bg-raised); }
.news-feed-item:last-child { border-bottom: none; }

.feed-date {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  white-space: nowrap;
  padding-top: 3px;
  line-height: 1.4;
  text-align: center;
}

.feed-content { min-width: 0; }

.feed-headline {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 5px;
}
.feed-headline a { color: inherit; }
.feed-headline a:hover { color: var(--red); }

.feed-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-source {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-arrow {
  font-size: 15px;
  color: var(--red);
  padding-top: 3px;
  opacity: 0.5;
  transition: opacity 0.15s;
  flex-shrink: 0;
  text-decoration: none;
}
.news-feed-item:hover .feed-arrow { opacity: 1; }

/* ── 21. Responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-left { grid-column: 1 / -1; }
}

/* Hero split stacks at 768px — tablet and phone */
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }
  .hero-left {
    width: 100%;
    padding: 40px 24px;
    align-items: flex-start;
    overflow-y: visible;
  }
  .hero-right {
    width: 100%;
    border-left: none;
    border-top: 2px solid var(--red);
    height: 400px;
    flex-shrink: 0;
    padding-top: 0;
  }
  /* Article split: force single column, sidebar below content */
  .article-split {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .article-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    border-right: none !important;
    overflow-x: hidden;
  }
  .article-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    position: static !important;
    height: auto !important;
    border-left: none !important;
    border-top: 1px solid #e5e5e5 !important;
    padding: 1rem !important;
  }

  /* SVG header: full width, no bleed margins on mobile */
  .art-header-img {
    width: 100% !important;
    margin: 0 0 1.5rem !important;
  }
  .art-header-img svg {
    width: 100% !important;
    height: auto !important;
  }

  /* Headline and standfirst scale down at tablet/mobile */
  .art-headline   { font-size: 1.4rem; }
  .art-standfirst {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 640px) {
  /* ── Hamburger & nav ── */
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px;
    border-top: 1px solid var(--border-subtle);
  }
  .nav-links.open { display: flex; }
  .nav-links li   { width: 100%; }
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 4px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 15px;
    width: 100%;
  }
  .nav-links li:last-child a { border-bottom: none; }

  /* Hide the long site name — "IWF" logo remains */
  .logo-full { display: none; }

  /* ── Layout ── */
  .news-grid   { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
  .footer-left { grid-column: auto; }

  /* ── Hero ── */
  .hero-left         { padding: 32px 20px; }
  .hero-left-inner   { gap: 20px; }
  .hero-right        { height: 360px; }
  .hero-split-ctas   { flex-direction: column; }
  .hero-split-ctas .btn { text-align: center; }

  /* ── Page headers ── */
  .page-header { padding: 36px 0 24px; }

  /* ── Sections ── */
  .coming-soon-section { padding: 64px 0 56px; }
  .article-body { padding: 28px 0; }

  /* ── Cards ── */
  .card-footer { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* ── Newsletter ── */
  .newsletter-form   { flex-direction: column; align-items: stretch; }
  .newsletter-input  { max-width: 100%; }
  .newsletter-form .btn { text-align: center; }

  /* ── News feed ── */
  .news-feed-list { height: 420px; }
  .news-feed-item { grid-template-columns: 44px 1fr 20px; gap: 10px; padding: 14px 16px; }

  /* ── Wire: 2-row layout (time+source / headline) ── */
  .wire-feed { max-height: 360px; }
  .wire-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    padding: 10px 16px;
  }
  .wire-time     { grid-column: 1; grid-row: 1; white-space: nowrap; }
  .wire-source   { grid-column: 2; grid-row: 1; }
  .wire-headline {
    grid-column: 1 / -1;
    grid-row: 2;
    -webkit-line-clamp: 2;
    white-space: normal;
  }

  /* ── Article split (640px inherits 768px block rules) ── */
  .article-sidebar { padding: 0.75rem !important; }

  /* ── Share buttons: full-width stacked on mobile ── */
  .sidebar-share       { flex-direction: column; gap: 10px; }
  .share-btn           { width: 100%; padding: 12px 10px; font-size: 13px; }

  /* ── Filter bar ── */
  .filter-bar  { gap: 6px; }
  .filter-btn  { padding: 8px 12px; font-size: 12px; }

  /* ── Static pages ── */
  .static-page { margin: 32px auto; }

  /* ── Cookie consent banner: full-width buttons when stacked ── */
  #cookie-banner > div        { width: 100%; }
  #cookie-banner > div button { flex: 1; }
}

/* ── 25. Wire Section ─────────────────────────────── */
.wire-section { padding: 48px 0; border-top: 1px solid var(--border-subtle); }

.wire-header { margin-bottom: 20px; }
.wire-header h2 { margin-bottom: 4px; }
.wire-subheading { font-size: 0.9rem; color: var(--text-muted); }

.wire-feed {
  border-top: 2px solid var(--red);
  background: var(--bg-raised);
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--bg-raised);
}

.wire-item {
  display: grid;
  grid-template-columns: 60px 90px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}
.wire-item:last-child { border-bottom: none; }

.wire-time {
  color: var(--text-faint);
  font-size: 0.75rem;
  white-space: nowrap;
}

.wire-source {
  color: var(--red);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wire-headline {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  transition: color 0.15s;
}
.wire-headline:hover { color: var(--red); }

.wire-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-faint);
}

.wire-empty {
  padding: 20px 16px;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-style: italic;
}

.wire-date-sep {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border-subtle);
}
.wire-date-sep::before,
.wire-date-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.wire-date-sep span {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  white-space: nowrap;
}

.feed-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 2rem;
  text-align: center;
}

/* ── 26. Article Split Layout ─────────────────────── */

.article-split {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - 62px);
}

.article-main {
  width: 65%;
  background: var(--bg);
  padding: 40px 56px 64px;
  border-right: 0.5px solid var(--border);
  flex-shrink: 0;
}

.art-header-img {
  margin: -40px -56px 32px;
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}
.art-header-img svg {
  width: 100%;
  height: auto;
  display: block;
}

.article-sidebar {
  width: 35%;
  background: #f9f9f7;
  position: sticky;
  top: 0;
  height: calc(100vh - 62px);
  overflow-y: auto;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) #f9f9f7;
}

/* ── Article left column ──────────────────────────── */

.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.art-breadcrumb a       { color: var(--text-faint); }
.art-breadcrumb a:hover { color: var(--text-muted); }
.art-breadcrumb span    { color: var(--border); }

.art-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 12px;
}

.art-headline {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 640px;
  margin-bottom: 12px;
  color: var(--text);
}

.art-dateline {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 24px;
}

.art-standfirst {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.art-body { max-width: 640px; }

.art-body p {
  font-size: 14px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 18px;
}
.art-body p:last-child { margin-bottom: 0; }

.art-body p.pull-quote {
  border-left: 3px solid var(--blue);
  padding-left: 16px;
  font-style: italic;
  font-size: 15px;
  color: var(--text-secondary);
}

.art-h2 {
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 28px 0 10px;
  line-height: 1.35;
  max-width: 640px;
  display: inline-block;
  border-bottom: 2px solid #ED2939;
  padding-bottom: 4px;
}

.art-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
  max-width: 640px;
}

.art-faq {
  margin-top: 36px;
  padding: 24px 28px;
  background: var(--bg-raised);
  border-radius: 8px;
  border: 0.5px solid var(--border);
  max-width: 640px;
}

.art-faq-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-question {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 4px;
}
.faq-question:first-child { margin-top: 0; }

.faq-answer {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-left: 0;
  margin-bottom: 0;
}

.art-figure {
  margin: 1.5rem 0;
  max-width: 640px;
}

.art-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 0.25rem;
  display: block;
}

.art-caption {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  padding: 0.25rem 0 0;
  display: block;
}

.art-caption:empty { display: none; }

.art-sources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 640px;
}

.art-sources-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 12px;
}

/* ── Sidebar ──────────────────────────────────────── */

.sidebar-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 0.5px solid var(--border);
}
.sidebar-section:last-child { border-bottom: none; }

.sidebar-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin-bottom: 10px;
}

.sidebar-heat-score {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.sidebar-heat-note {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
}

.sidebar-source-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 6px;
}
.sidebar-source-card:last-child { margin-bottom: 0; }

.sidebar-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.sidebar-source-link {
  font-size: 11px;
  color: var(--red);
}
.sidebar-source-link:hover { text-decoration: underline; }

.sidebar-share {
  display: flex;
  gap: 8px;
}

.share-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; }

.share-li { background: #0077B5; color: #ffffff; }
.share-tw { background: #0a0a0a; color: #ffffff; border: 1px solid #333; }

.sidebar-related-card {
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-subtle);
}
.sidebar-related-card:last-child { border-bottom: none; }

.sidebar-related-date {
  font-size: 11px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.sidebar-related-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: block;
  transition: color 0.15s;
}
.sidebar-related-title:hover { color: var(--red); }


/* ── Static pages (Privacy, etc.) ────────────────── */
.static-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}
.static-page h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}
.static-page .static-meta {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 40px;
}
.static-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--text);
}
.static-page p, .static-page li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.static-page ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.static-page a { color: var(--red); }
.static-page a:hover { text-decoration: underline; }
.static-page code {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 13px;
  font-family: monospace;
}

/* ── IWF Stats bar ───────────────────────────────── */
.iwf-stats-bar {
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
  padding: 10px 24px;
  border-top: 0.5px solid var(--border-subtle);
  border-bottom: 0.5px solid var(--border-subtle);
  background: var(--surface);
}
