
:root {
  --black: #000000;
  --red:   #DC143C;
  --white: #FFFFFF;
  --text:  #111111;
  --muted: #666666;
  --bg:    #ffffff;
  --surface:#f7f7f8;
  --focus: #1a73e8;
  --maxw:  1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem; background: #fffa; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #eee;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--black); text-decoration: none; font-weight: 700; }
.brand img { border-radius: 8px; }

.site-nav ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { text-decoration: none; color: var(--text); padding: .5rem .25rem; }
.site-nav a[aria-current="page"] { color: var(--red); font-weight: 700; }
.btn { display: inline-block; border-radius: 12px; padding: .6rem 1rem; text-decoration: none; font-weight: 700; }
.btn-primary { background: var(--red); color: var(--white); }
.btn-secondary { background: var(--black); color: var(--white); }

.nav-toggle { display: none; font-size: 1.5rem; background: transparent; border: 2px solid transparent; }
.nav-toggle:focus { outline: 3px solid var(--focus); border-radius: 8px; }

.hero {
  background: linear-gradient(135deg, var(--black) 0%, #2b2b2b 50%, var(--black) 100%);
  color: var(--white);
  padding: 4rem 0;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
.hero p { font-size: 1.125rem; color: #f0f0f0; }
.hero .cta { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }

.badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.badge { background: #111; color: #fff; border: 1px solid #333; padding: .25rem .5rem; border-radius: 999px; font-size: .85rem; }

.section { padding: 3rem 0; }
.section h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.card h3 { margin-top: 0; }

.card h3,
.card p {
    color: var(--red);
    font-weight: bold;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { background: var(--surface); padding: 1rem; border-radius: 12px; text-align: center; }
.kpi strong { display: block; font-size: 1.5rem; }

.site-footer { background: var(--black); color: var(--white); padding: 2rem 0; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr; gap: 1rem; }
.footer-title { color: var(--white); margin-top: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.footer-links a { color: #f0f0f0; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }
.newsletter-form .newsletter-controls { display: flex; gap: .5rem; margin-top: .5rem; }
.newsletter-form input[type="email"] { flex: 1; padding: .5rem .75rem; border: 1px solid #ccc; border-radius: 8px; }
.help-text { font-size: .875rem; color: #ddd; }
.form-message { margin-top: .5rem; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem; border-bottom: 1px solid #eee; text-align: left; }

/* Blog */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.filter-chip { border: 1px solid #ccc; background: #fff; padding: .25rem .6rem; border-radius: 999px; cursor: pointer; }
.filter-chip.active, .filter-chip:focus { outline: 3px solid var(--focus); border-color: var(--black); }

.searchbar { display: flex; gap: .5rem; margin: 1rem 0; }
.searchbar input { flex: 1; padding: .6rem .75rem; border: 1px solid #ccc; border-radius: 8px; }

.post-card { border: 1px solid #eee; border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: #fff; }
.post-card h3 { margin-top: 0; }
.meta { color: var(--muted); font-size: .9rem; }

.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.pagination button { padding: .4rem .7rem; border: 1px solid #ccc; background: #fff; border-radius: 8px; cursor: pointer; }
.pagination button[disabled] { opacity: .5; cursor: not-allowed; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.video-grid iframe { width: 100%; aspect-ratio: 16/9; border: 0; }

/* Utilities */
.lead { font-size: 1.125rem; color: #333; }
.muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.center { text-align: center; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .site-nav ul { gap: .25rem; }
}
@media (max-width: 640px) {
  .cards, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; top: 64px; right: 0; background: var(--white); border-left: 1px solid #eee; border-bottom: 1px solid #eee; width: min(300px, 90vw); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem; }
}
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;}
/* ---- Blog article polish ---- */
.article-header .eyebrow { text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; color: var(--muted,#666);}
.article-section { margin: 2rem 0; }
.article-section .rich ul { margin: .75rem 0 .5rem 1.25rem; }
.article-section .rich ol { margin: .75rem 0 .5rem 1.25rem; }
.article-section .rich li { margin: .25rem 0; }
.article-section .rich table { width: 100%; border-collapse: collapse; margin: .75rem 0; }
.article-section .rich th, .article-section .rich td { border: 1px solid #e5e7eb; padding: .5rem .6rem; text-align: left; }
.references { margin-left: 1.25rem; }
.filter-chip.active { outline: 2px solid currentColor; }

/* Blog listing cleanup: no thumbnails */
.post-card .media { display: none; }

/* --- CTA card for blog posts --- */
.cta-card { padding: 1.25rem; border: 1px solid #e5e7eb; border-radius: 1rem; background: #fafafa; }
.cta-card h3 { margin: 0 0 .5rem 0; }
.cta-card p { margin: 0 0 .75rem 0; }
.cta-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
/* SUPPORTER BANNER */
.supporter-banner {
  background: #f7f7f7;
  border-top: 4px solid #DC143C;
  border-bottom: 4px solid #DC143C;
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.supporter-banner__inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.supporter-banner p {
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}
.supporter-banner a {
  color: #DC143C;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.supporter-banner a:hover,
.supporter-banner a:focus {
  color: #a0102c;
  border-color: #a0102c;
  outline: none;
}
.supporter-tagline {
  display: block;
  font-size: 0.95rem;
  color: #333;
  margin-/* top: 0.5rem; removed */
}

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

.video-grid h3 { min-height: 3em; }

.video-grid h3 { min-height: 3em; }
