/**
 * Saferwager Design System
 * Version 1.0
 *
 * Editorial Data Intelligence aesthetic
 * Bloomberg Terminal meets Guardian data journalism meets Stripe docs
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
  /* Brand Colors */
  --sw-navy: #0B1930;
  --sw-navy-light: #132744;
  --sw-slate: #364156;
  --sw-grey: #6B7B8D;
  --sw-grey-light: #E8ECF0;
  --sw-grey-pale: #F4F6F8;
  --sw-white: #FFFFFF;

  /* Accent */
  --sw-teal: #0A8F7F;
  --sw-teal-dark: #067A6B;
  --sw-teal-light: #E6F5F3;

  /* Status Colors (semantic, never decorative) */
  --sw-green: #16803C;
  --sw-green-bg: #ECFDF3;
  --sw-amber: #B45309;
  --sw-amber-bg: #FFFBEB;
  --sw-red: #C42B2B;
  --sw-red-bg: #FEF2F2;
  --sw-blue: #1D6FBF;
  --sw-blue-bg: #EFF6FF;

  /* Score Grade Colors */
  --sw-grade-aplus: #16803C;
  --sw-grade-a: #22964D;
  --sw-grade-b: #3B8F3B;
  --sw-grade-c: #B45309;
  --sw-grade-d: #C4602B;
  --sw-grade-f: #C42B2B;

  /* Chart Palette */
  --sw-chart-1: #0A8F7F;
  --sw-chart-2: #1D6FBF;
  --sw-chart-3: #6B46C1;
  --sw-chart-4: #B45309;
  --sw-chart-5: #C42B2B;
  --sw-chart-6: #364156;

  /* Typography Scale */
  --sw-text-xs: 0.75rem;     /* 12px */
  --sw-text-sm: 0.875rem;    /* 14px */
  --sw-text-base: 1rem;      /* 16px */
  --sw-text-lg: 1.125rem;    /* 18px */
  --sw-text-xl: 1.25rem;     /* 20px */
  --sw-text-2xl: 1.5rem;     /* 24px */
  --sw-text-3xl: 1.875rem;   /* 30px */
  --sw-text-4xl: 2.25rem;    /* 36px */
  --sw-text-5xl: 3rem;       /* 48px */

  /* Spacing Scale */
  --sw-space-1: 0.25rem;     /* 4px */
  --sw-space-2: 0.5rem;      /* 8px */
  --sw-space-3: 0.75rem;     /* 12px */
  --sw-space-4: 1rem;        /* 16px */
  --sw-space-5: 1.25rem;     /* 20px */
  --sw-space-6: 1.5rem;      /* 24px */
  --sw-space-8: 2rem;        /* 32px */
  --sw-space-10: 2.5rem;     /* 40px */
  --sw-space-12: 3rem;       /* 48px */
  --sw-space-16: 4rem;       /* 64px */
  --sw-space-20: 5rem;       /* 80px */

  /* Content Max Widths */
  --sw-content-narrow: 680px;
  --sw-content-default: 960px;
  --sw-content-wide: 1200px;
  --sw-content-max: 1400px;

  /* Border & Radius */
  --sw-border: 1px solid var(--sw-grey-light);
  --sw-border-strong: 1px solid var(--sw-slate);
  --sw-radius-sm: 4px;
  --sw-radius-md: 8px;
  --sw-radius-lg: 12px;
  --sw-radius-xl: 16px;
  --sw-radius-full: 9999px;

  /* Shadows */
  --sw-shadow-sm: 0 1px 2px rgba(11, 25, 48, 0.05);
  --sw-shadow-md: 0 2px 8px rgba(11, 25, 48, 0.08);
  --sw-shadow-lg: 0 4px 16px rgba(11, 25, 48, 0.10);
  --sw-shadow-xl: 0 8px 32px rgba(11, 25, 48, 0.12);

  /* Transitions */
  --sw-transition-fast: 150ms ease;
  --sw-transition-normal: 200ms ease;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--sw-slate);
  background: var(--sw-white);
  line-height: 1.6;
}

/* Headings - DM Sans */
h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  color: var(--sw-navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--sw-text-4xl);
  font-weight: 700;
  margin-bottom: var(--sw-space-6);
}

h2 {
  font-size: var(--sw-text-3xl);
  font-weight: 600;
  margin-bottom: var(--sw-space-5);
}

h3 {
  font-size: var(--sw-text-2xl);
  font-weight: 600;
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-4);
}

h4 {
  font-size: var(--sw-text-xl);
  font-weight: 500;
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-3);
}

/* Body Text */
p {
  margin-bottom: var(--sw-space-4);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

/* Links */
a {
  color: var(--sw-teal);
  text-decoration: none;
  transition: color var(--sw-transition-fast);
}

a:hover {
  color: var(--sw-teal-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--sw-teal);
  outline-offset: 2px;
  border-radius: var(--sw-radius-sm);
}

/* Monospace for identifiers */
.mono, code, .license-number, .company-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sw-space-4);
  background: var(--sw-navy);
  color: var(--sw-white);
  padding: var(--sw-space-3) var(--sw-space-4);
  border-radius: var(--sw-radius-sm);
  z-index: 1000;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
}

.skip-link:focus {
  top: var(--sw-space-4);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-header {
  background: var(--sw-navy);
  padding: 0 var(--sw-space-8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-header-inner {
  max-width: var(--sw-content-wide);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-brand img {
  height: 36px;
  width: auto;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  gap: var(--sw-space-8);
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--sw-transition-fast);
  padding: var(--sw-space-2) 0;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--sw-white);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  border-bottom: 2px solid var(--sw-teal);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sw-white);
  cursor: pointer;
  padding: var(--sw-space-2);
}

/* Mobile nav open state */
@media (max-width: 639px) {
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--sw-navy);
    padding: var(--sw-space-4);
    gap: var(--sw-space-2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--sw-shadow-lg);
  }

  .nav-links.nav-open a {
    padding: var(--sw-space-3);
  }
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumb {
  padding: var(--sw-space-3) var(--sw-space-8);
  background: var(--sw-grey-pale);
  border-bottom: var(--sw-border);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
  max-width: var(--sw-content-wide);
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
}

.breadcrumb-item a {
  color: var(--sw-teal);
}

.breadcrumb-item[aria-current="page"] {
  color: var(--sw-slate);
  font-weight: 500;
}

.breadcrumb-separator {
  color: var(--sw-grey);
  font-size: 0.75rem;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */

.page-content {
  max-width: var(--sw-content-default);
  margin: 0 auto;
  padding: var(--sw-space-10) var(--sw-space-8);
}

.page-content-narrow {
  max-width: var(--sw-content-narrow);
}

.page-content-wide {
  max-width: var(--sw-content-wide);
  margin: 0 auto;
}

/* Two Column Layout (Entity Pages) */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sw-space-10);
}

.page-main {
  min-width: 0;
}

.page-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* Section Alternation */
.section {
  padding: var(--sw-space-12) var(--sw-space-8);
}

.section-alt {
  background: var(--sw-grey-pale);
}

.section-inner {
  max-width: var(--sw-content-wide);
  margin: 0 auto;
}

/* ============================================
   PAGE HEADER (Entity Pages)
   ============================================ */

.page-header {
  margin-bottom: var(--sw-space-6);
}

.page-header h1 {
  margin-bottom: var(--sw-space-4);
}

.page-intro {
  font-size: var(--sw-text-lg);
  color: var(--sw-slate);
  line-height: 1.7;
  max-width: 720px;
  margin-top: var(--sw-space-4);
}

.page-content-wide .page-intro {
  max-width: none;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: var(--sw-space-4);
  margin-top: var(--sw-space-4);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

/* ============================================
   STATUS BADGES
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sw-space-1);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  padding: var(--sw-space-1) var(--sw-space-3);
  border-radius: var(--sw-radius-sm);
  white-space: nowrap;
}

.badge-sm {
  font-size: var(--sw-text-xs);
  padding: 2px var(--sw-space-2);
}

.badge-lg {
  font-size: var(--sw-text-base);
  padding: var(--sw-space-2) var(--sw-space-4);
}

/* Status Variants */
.badge-active {
  background: var(--sw-green-bg);
  color: var(--sw-green);
  border: 1px solid rgba(22, 128, 60, 0.2);
}

.badge-suspended {
  background: var(--sw-amber-bg);
  color: var(--sw-amber);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

.badge-revoked {
  background: var(--sw-red-bg);
  color: var(--sw-red);
  border: 1px solid rgba(196, 43, 43, 0.2);
}

.badge-surrendered {
  background: var(--sw-grey-pale);
  color: var(--sw-grey);
  border: 1px solid rgba(107, 123, 141, 0.2);
}

.badge-pending {
  background: var(--sw-blue-bg);
  color: var(--sw-blue);
  border: 1px solid rgba(29, 111, 191, 0.2);
}

.badge-info {
  background: var(--sw-teal-light);
  color: var(--sw-teal);
  border: 1px solid rgba(10, 143, 127, 0.2);
}

.badge-success {
  background: var(--sw-green-light);
  color: var(--sw-green);
  border: 1px solid rgba(39, 139, 72, 0.2);
}

.badge-warning {
  background: #fef3cd;
  color: #856404;
  border: 1px solid rgba(133, 100, 4, 0.2);
}

.badge-danger {
  background: var(--sw-red-light);
  color: var(--sw-red);
  border: 1px solid rgba(196, 43, 43, 0.2);
}

/* ============================================
   INCENTIVES SECTION
   ============================================ */

.incentives-group {
  margin-bottom: var(--sw-space-8);
}

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

.incentives-group h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-2xl);
  font-weight: 600;
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-3);
}

.incentives-summary {
  font-family: 'Source Serif 4', serif;
  font-size: var(--sw-text-base);
  line-height: 1.6;
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-5);
}

/* Offer cards */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-4);
}

/* ---- Compact offer card (site page) ---- */
.offer-card {
  background: var(--sw-white);
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-5);
  border-left: 3px solid var(--sw-teal);
}

.offer-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sw-space-3);
  margin-bottom: var(--sw-space-4);
}

.offer-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-navy);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

/* Inline offer detail pills */
.offer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sw-space-2);
}

.offer-detail {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 500;
  color: var(--sw-slate);
  background: var(--sw-grey-pale);
  padding: 4px 10px;
  border-radius: var(--sw-radius-full);
}

.offer-detail code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--sw-teal);
  margin-left: 3px;
}

.offer-restrictions {
  font-family: 'Source Serif 4', serif;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  margin-top: var(--sw-space-2);
  font-style: italic;
}

/* Key terms - always visible */
.offer-terms-visible {
  margin-top: var(--sw-space-5);
  padding: var(--sw-space-4) var(--sw-space-5);
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  border-left: 3px solid var(--sw-amber);
}

.offer-terms-visible h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-2);
}

.offer-terms-visible p {
  font-family: 'Source Serif 4', serif;
  font-size: var(--sw-text-sm);
  line-height: 1.6;
  color: var(--sw-slate);
  margin: 0;
}

/* ============================================
   OFFERS HUB
   ============================================ */

/* Category tabs */
.offers-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--sw-grey-light);
  margin-bottom: var(--sw-space-4);
}

.offers-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--sw-space-3) var(--sw-space-5);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: var(--sw-grey);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--sw-transition-fast), border-color var(--sw-transition-fast);
}

.offers-tab:hover {
  color: var(--sw-navy);
  text-decoration: none;
}

.offers-tab-active {
  color: var(--sw-teal);
  border-bottom-color: var(--sw-teal);
  font-weight: 600;
}

.offers-tab-count {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  background: var(--sw-grey-pale);
  padding: 1px 7px;
  border-radius: 10px;
}

.offers-tab-active .offers-tab-count {
  background: var(--sw-teal-light);
  color: var(--sw-teal-dark);
}

/* Quick-filter pills (popular searches) */
.offers-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-2);
  margin-bottom: var(--sw-space-3);
}

.offers-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: var(--sw-navy);
  background: var(--sw-grey-pale);
  border: 1px solid var(--sw-grey-light);
  border-radius: 20px;
  text-decoration: none;
  transition: all var(--sw-transition-fast);
  cursor: pointer;
}

.offers-quick-pill:hover {
  background: var(--sw-teal-light);
  border-color: var(--sw-teal);
  color: var(--sw-teal-dark);
  text-decoration: none;
}

.offers-quick-pill-active {
  background: var(--sw-teal);
  border-color: var(--sw-teal);
  color: var(--sw-white);
}

.offers-quick-pill-active:hover {
  background: var(--sw-teal-dark);
  border-color: var(--sw-teal-dark);
  color: var(--sw-white);
}

.offers-quick-count {
  font-size: var(--sw-text-xs);
  opacity: 0.7;
}

.offers-quick-pill-active .offers-quick-count {
  opacity: 0.9;
}

/* Filter bar (dropdowns) */
.offers-filter-bar {
  margin-bottom: var(--sw-space-3);
}

.offers-filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-2);
}

.offers-filter-select {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  padding: 7px 28px 7px 10px;
  border: var(--sw-border);
  border-radius: var(--sw-radius-sm);
  background: var(--sw-white);
  color: var(--sw-navy);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B7B8D' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 0;
}

.offers-filter-select:focus {
  outline: none;
  border-color: var(--sw-teal);
  box-shadow: 0 0 0 2px rgba(10, 143, 127, 0.15);
}

.offers-filter-sort {
  margin-left: auto;
}

/* Active filters strip */
.offers-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sw-space-2);
  margin-bottom: var(--sw-space-3);
  padding: var(--sw-space-2) var(--sw-space-3);
  background: var(--sw-teal-light);
  border-radius: var(--sw-radius-sm);
}

.offers-active-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 600;
  color: var(--sw-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offers-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal-dark);
  background: var(--sw-white);
  border: 1px solid rgba(10, 143, 127, 0.3);
  border-radius: 20px;
  text-decoration: none;
  transition: background var(--sw-transition-fast);
}

.offers-active-chip:hover {
  background: var(--sw-white);
  border-color: var(--sw-red);
  color: var(--sw-red);
  text-decoration: none;
}

.offers-active-x {
  font-size: 14px;
  line-height: 1;
}

.offers-clear-all {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  color: var(--sw-teal-dark);
  text-decoration: underline;
  margin-left: auto;
}

.offers-clear-all:hover {
  color: var(--sw-red);
}

/* Sites score range slider */
.sites-score-slider {
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
  margin-top: var(--sw-space-2);
  padding: 8px 12px;
  border: var(--sw-border);
  border-radius: var(--sw-radius-sm);
  background: var(--sw-white);
}

.sites-score-slider-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-navy);
  white-space: nowrap;
}

.sites-score-slider-controls {
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
  flex: 1;
  min-width: 0;
}

.sites-score-slider-value {
  font-family: 'DM Mono', monospace;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal-dark);
  white-space: nowrap;
  min-width: 56px;
  text-align: center;
}

.sites-score-slider-track {
  position: relative;
  flex: 1;
  height: 24px;
  min-width: 120px;
}

/* Gray base line drawn by the track container */
.sites-score-slider-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sw-border-color, #dde1e6);
  border-radius: 2px;
}

/* Green highlight bar showing selected range */
.sites-score-slider-fill {
  position: absolute;
  top: 10px;
  height: 4px;
  background: var(--sw-teal);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.sites-score-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  outline: none;
}

/* Min slider on top so its thumb is always grabbable */
.sites-score-input-min {
  z-index: 3;
}

.sites-score-input-max {
  z-index: 2;
}

/* Make input tracks transparent — the gray base line comes from .sites-score-slider-track::before */
.sites-score-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

.sites-score-input::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
  border: none;
}

.sites-score-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw-teal);
  border: 2px solid var(--sw-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  margin-top: -9px;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 4;
}

.sites-score-input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw-teal);
  border: 2px solid var(--sw-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 4;
}

.sites-score-apply {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 600;
  padding: 4px 12px;
  background: var(--sw-teal);
  color: var(--sw-white);
  border: none;
  border-radius: var(--sw-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--sw-transition-fast);
}

.sites-score-apply:hover {
  background: var(--sw-teal-dark);
}

/* Offer hub card (scoped to .card to avoid overriding compact cards) */
.card.offer-card {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.card.offer-card .card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card.offer-card .card-body {
  padding: var(--sw-space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Brand identity row — prominent */
.offer-card-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sw-space-2);
}

/* Hero banner — the value proposition */
.offer-card-hero {
  padding: var(--sw-space-5) var(--sw-space-4);
  text-align: center;
  background: var(--sw-navy);
  color: var(--sw-white);
  position: relative;
}

.offer-card-welcome .offer-card-hero {
  background: linear-gradient(135deg, #0B1930 0%, #0E3A5E 100%);
}

.offer-card-ongoing .offer-card-hero {
  background: linear-gradient(135deg, #1A2744 0%, #2C3E5A 100%);
}

.offer-hero-value {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--sw-white);
  letter-spacing: -0.02em;
}

.offer-hero-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-hero-type {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xl);
  font-weight: 600;
  color: var(--sw-white);
}

/* Offer hub card title (scoped to .card) */
.card.offer-card .offer-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-navy);
  margin: 0 0 var(--sw-space-2) 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card.offer-card:hover .offer-card-title {
  color: var(--sw-teal);
}

/* Offer description */
.offer-card-desc {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  line-height: 1.5;
  margin: 0 0 var(--sw-space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Details line */
.offer-card-details {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  line-height: 1.6;
  margin: 0 0 auto 0;
}

.offer-card-details strong {
  color: var(--sw-green);
}

/* Card footer */
.offer-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--sw-space-3);
  padding-top: var(--sw-space-3);
  border-top: var(--sw-border);
}

/* ---- Offer Value Score Badge (overlaid on hero) ---- */
.offer-value-badge {
  position: absolute;
  top: var(--sw-space-2);
  right: var(--sw-space-2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 700;
  color: var(--sw-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

/* Position context for the badge */
.card.offer-card {
  position: relative;
}

/* Small value badge for compact cards */
.offer-value-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--sw-white);
  flex-shrink: 0;
}

/* Badge grade colors — color: white must be on the two-class selector
   to beat the bare .sub-grade-X rules (site assessment pills) at line ~1307 */
.offer-value-badge.sub-grade-a-plus,
.offer-value-sm.sub-grade-a-plus { background: var(--sw-grade-aplus); color: var(--sw-white); }
.offer-value-badge.sub-grade-a,
.offer-value-sm.sub-grade-a { background: var(--sw-grade-a); color: var(--sw-white); }
.offer-value-badge.sub-grade-b,
.offer-value-sm.sub-grade-b { background: var(--sw-grade-b); color: var(--sw-white); }
.offer-value-badge.sub-grade-c,
.offer-value-sm.sub-grade-c { background: var(--sw-grade-c); color: var(--sw-white); }
.offer-value-badge.sub-grade-d,
.offer-value-sm.sub-grade-d { background: var(--sw-grade-d); color: var(--sw-white); }
.offer-value-badge.sub-grade-f,
.offer-value-sm.sub-grade-f { background: var(--sw-grade-f); color: var(--sw-white); }

/* Effective value estimate text */
.offer-card-ev {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 600;
  color: var(--sw-teal);
  margin: var(--sw-space-2) 0 0 0;
}

/* Bonus code callout */
.offer-card-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--sw-space-2);
  padding: 4px 10px;
  background: var(--sw-amber-bg);
  border: 1px dashed var(--sw-amber);
  border-radius: 6px;
  font-size: var(--sw-text-xs);
  line-height: 1;
}

.offer-code-label {
  color: var(--sw-grey);
  font-weight: 400;
}

.offer-code-value {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-weight: 600;
  color: var(--sw-amber);
  letter-spacing: 0.04em;
}

/* Meta row: time limit, expiry, T&C status */
.offer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: var(--sw-space-2);
  font-size: 11px;
  line-height: 1;
}

.offer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--sw-grey);
  white-space: nowrap;
}

.offer-meta-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.6;
}

.offer-meta-expiring {
  color: var(--sw-amber);
  font-weight: 600;
}

.offer-meta-expiring .offer-meta-icon {
  opacity: 0.85;
}

/* Inline EV for compact cards */
.offer-card-ev-inline {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-teal);
}

/* Compact card header badges container */
.offer-card-header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Offer meta row (EV + risk in compact cards) */
.offer-meta {
  display: flex;
  align-items: center;
  gap: var(--sw-space-3);
  margin-top: var(--sw-space-3);
  padding-top: var(--sw-space-3);
  border-top: 1px dashed var(--sw-grey-light);
}

/* ---- Incentives Grade Panel (site page) ---- */
.incentives-grade {
  display: flex;
  align-items: center;
  gap: var(--sw-space-4);
  padding: var(--sw-space-4) var(--sw-space-5);
  background: var(--sw-grey-pale);
  border: 1px solid var(--sw-grey-light);
  border-radius: var(--sw-radius-md);
  margin-bottom: var(--sw-space-6);
}

.incentives-grade-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xl);
  font-weight: 700;
  color: var(--sw-white);
  flex-shrink: 0;
}

.incentives-grade-badge.sub-grade-a-plus { background: var(--sw-grade-aplus); color: var(--sw-white); }
.incentives-grade-badge.sub-grade-a { background: var(--sw-grade-a); color: var(--sw-white); }
.incentives-grade-badge.sub-grade-b { background: var(--sw-grade-b); color: var(--sw-white); }
.incentives-grade-badge.sub-grade-c { background: var(--sw-grade-c); color: var(--sw-white); }
.incentives-grade-badge.sub-grade-d { background: var(--sw-grade-d); color: var(--sw-white); }
.incentives-grade-badge.sub-grade-f { background: var(--sw-grade-f); color: var(--sw-white); }

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

.incentives-grade-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-base);
  font-weight: 600;
  color: var(--sw-navy);
}

.incentives-grade-meta {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
}

.incentives-grade-link {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  color: var(--sw-teal);
  text-decoration: none;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.incentives-grade-link:hover {
  text-decoration: underline;
}

.offer-card-brand {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-base);
  font-weight: 700;
  color: var(--sw-teal);
}

.badge-neutral {
  background: var(--sw-grey-pale);
  color: var(--sw-slate);
}

/* Mobile */
@media (max-width: 768px) {
  .offers-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .offers-quick-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .offers-quick-pill {
    white-space: nowrap;
  }

  .offers-filter-selects {
    flex-direction: column;
  }

  .offers-filter-select {
    width: 100%;
  }

  .offers-filter-sort {
    margin-left: 0;
  }

  .sites-score-slider {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 8px;
    padding: 10px 12px;
  }

  .sites-score-slider-label {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    font-size: var(--sw-text-xs);
  }

  .sites-score-apply {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 6px 16px;
    font-size: var(--sw-text-sm);
  }

  .sites-score-slider-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    width: auto;
  }

  .sites-score-slider-value {
    font-size: var(--sw-text-xs);
    min-width: auto;
  }

  .sites-score-slider-track {
    height: 36px;
    min-width: 0;
    flex: 1;
  }

  .sites-score-slider-track::before {
    top: 16px;
  }

  .sites-score-slider-fill {
    top: 16px;
  }

  .sites-score-input::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -12px;
  }

  .sites-score-input::-moz-range-thumb {
    width: 28px;
    height: 28px;
  }
}

/* ============================================
   TRUST SCORE DISPLAY
   ============================================ */

.trust-score {
  display: flex;
  align-items: center;
  gap: var(--sw-space-4);
}

.trust-score-grade {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-2xl);
  font-weight: 700;
  border-radius: var(--sw-radius-md);
  color: var(--sw-white);
}

.trust-score-grade.grade-a { background: var(--sw-grade-a); }
.trust-score-grade.grade-b { background: var(--sw-grade-b); }
.trust-score-grade.grade-c { background: var(--sw-grade-c); }
.trust-score-grade.grade-d { background: var(--sw-grade-d); }
.trust-score-grade.grade-f { background: var(--sw-grade-f); }

.trust-score-details {
  flex: 1;
}

.trust-score-value {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-lg);
  font-weight: 600;
  color: var(--sw-navy);
}

.trust-score-bar {
  height: 8px;
  background: var(--sw-grey-light);
  border-radius: var(--sw-radius-full);
  margin-top: var(--sw-space-2);
  overflow: hidden;
}

.trust-score-fill {
  height: 100%;
  border-radius: var(--sw-radius-full);
  transition: width 0.5s ease;
}

.trust-score-fill.grade-aplus { background: var(--sw-grade-aplus); }
.trust-score-fill.grade-a { background: var(--sw-grade-a); }
.trust-score-fill.grade-b { background: var(--sw-grade-b); }
.trust-score-fill.grade-c { background: var(--sw-grade-c); }
.trust-score-fill.grade-d { background: var(--sw-grade-d); }
.trust-score-fill.grade-f { background: var(--sw-grade-f); }

/* Compact Score (for cards) */
.trust-score-compact {
  display: inline-flex;
  align-items: center;
  gap: var(--sw-space-2);
  font-family: 'DM Sans', sans-serif;
}

.trust-score-compact .grade {
  font-weight: 700;
  font-size: var(--sw-text-base);
}

.trust-score-compact .score {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
}

/* Score Breakdown (sub-component scores) */
.score-breakdown-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-grey);
  margin-top: var(--sw-space-4);
  margin-bottom: 0;
}

.score-breakdown {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--sw-space-2);
  margin-top: var(--sw-space-2);
}

.score-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sw-space-3) var(--sw-space-2);
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  gap: var(--sw-space-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.score-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.score-row span:first-child {
  color: var(--sw-slate);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.score-row.text-danger { background: #FFF5F5; }
.score-row.text-warning { background: #FFFBEB; }
.score-row.text-success { background: #F0FDF4; }

/* Sub-grade badges (component grades without revealing weights) */
.sub-grade {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--sw-radius-sm);
  font-size: 0.9rem;
  text-align: center;
  min-width: 32px;
  border: 2px solid transparent;
}

.sub-grade-a-plus,
.sub-grade-a {
  background: var(--sw-teal-light);
  color: var(--sw-teal-dark);
  border-color: var(--sw-teal);
}

.sub-grade-b {
  background: #DCFCE7;
  color: #166534;
  border-color: #22C55E;
}

.sub-grade-c {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

.sub-grade-d {
  background: #FFEDD5;
  color: #9A3412;
  border-color: #F97316;
}

.sub-grade-f {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #EF4444;
}

/* Count-based breakdown (for stability events) */
.score-breakdown-counts {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.count-badge {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sw-navy);
}

.count-badge.count-danger {
  color: #EF4444;
}

.count-badge.count-warning {
  color: #F59E0B;
}

/* Score note (contextual explanation for N/A scores) */
.score-note {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  font-style: italic;
  margin-top: var(--sw-space-2);
  padding-top: var(--sw-space-2);
  border-top: 1px dashed var(--sw-grey-light);
}

/* Severity Bar (enforcement severity indicator) */
.severity-bar {
  display: flex;
  gap: var(--sw-space-1);
  height: 8px;
}

.severity-segment {
  flex: 1;
  background: var(--sw-grey-light);
  border-radius: var(--sw-radius-sm);
  transition: background var(--sw-transition-fast);
}

.severity-segment.active.severity-1 { background: var(--sw-green); }
.severity-segment.active.severity-2 { background: var(--sw-teal); }
.severity-segment.active.severity-3 { background: var(--sw-amber); }
.severity-segment.active.severity-4 { background: var(--sw-red); }
.severity-segment.active.severity-5 { background: var(--sw-red); }

.text-success { color: var(--sw-green); }

/* ============================================
   QUICK FACTS PANEL (Sidebar)
   ============================================ */

.quick-facts {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-5);
}

.quick-facts-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-5);
  padding-bottom: var(--sw-space-3);
  border-bottom: 2px solid var(--sw-grey-light);
}

.quick-fact {
  margin-bottom: var(--sw-space-4);
}

.quick-fact:last-child {
  margin-bottom: 0;
}

.quick-fact-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-1);
}

.quick-fact-value {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-navy);
}

.quick-fact-value a {
  color: var(--sw-teal);
}

/* ============================================
   DATA CARDS
   ============================================ */

.card {
  background: var(--sw-white);
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-5);
  box-shadow: var(--sw-shadow-sm);
  transition: border-color var(--sw-transition-fast), box-shadow var(--sw-transition-fast);
}

.card:hover {
  border-color: rgba(10, 143, 127, 0.3);
  box-shadow: var(--sw-shadow-md);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

.card-image {
  margin: calc(var(--sw-space-5) * -1);
  margin-bottom: var(--sw-space-4);
  overflow: hidden;
  border-radius: var(--sw-radius-md) var(--sw-radius-md) 0 0;
}

.card-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
  transition: transform var(--sw-transition-normal);
}

.card-link:hover .card-image img {
  transform: scale(1.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sw-space-3);
}

.card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xl);
  font-weight: 600;
  color: var(--sw-navy);
  margin: 0;
}

.card-link .card-title {
  color: var(--sw-teal);
}

.card-link:hover .card-title {
  text-decoration: underline;
}

.card-meta {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-3);
}

.card-body {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
}

.card-footer {
  display: flex;
  gap: var(--sw-space-4);
  margin-top: var(--sw-space-4);
  padding-top: var(--sw-space-3);
  border-top: var(--sw-border);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
}

.card-title-link {
  text-decoration: none;
}

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

.card-cta {
  color: var(--sw-teal);
  font-weight: 500;
}

.external-link-subtle {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--sw-grey-light);
}

.external-link-subtle:hover {
  color: var(--sw-teal);
  border-bottom-color: var(--sw-teal);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sw-space-4);
}

/* ============================================
   DATA TABLES
   ============================================ */

.table-container {
  overflow-x: auto;
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--sw-text-sm);
}

thead {
  background: var(--sw-grey-pale);
}

th {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: var(--sw-slate);
  text-align: left;
  padding: var(--sw-space-3) var(--sw-space-4);
  border-bottom: 2px solid var(--sw-grey-light);
  white-space: nowrap;
}

th[scope="col"] {
  cursor: pointer;
}

th[scope="col"]:hover {
  color: var(--sw-teal);
}

td {
  padding: var(--sw-space-3) var(--sw-space-4);
  border-bottom: var(--sw-border);
  color: var(--sw-navy);
  vertical-align: middle;
}

tbody tr:nth-child(even) {
  background: var(--sw-grey-pale);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Sortable Indicator */
.sort-indicator {
  margin-left: var(--sw-space-1);
  color: var(--sw-grey);
}

.sort-indicator.active {
  color: var(--sw-teal);
}

/* ============================================
   SECTION TABS (Sticky Anchor Navigation)
   ============================================ */

.section-tabs {
  display: flex;
  gap: var(--sw-space-2);
  margin-bottom: var(--sw-space-8);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--sw-white);
  position: sticky;
  top: 64px;
  z-index: 50;
  padding: var(--sw-space-2) 0;
  align-items: center;
}
.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: var(--sw-slate);
  padding: var(--sw-space-2) var(--sw-space-4);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--sw-radius-full);
  transition: color var(--sw-transition-fast), background var(--sw-transition-fast);
}

.section-tab:hover {
  color: var(--sw-navy);
  background: var(--sw-grey-pale);
  text-decoration: none;
}

.section-tab[href="#scores"] {
  display: none;
}

.section-tab.active,
.section-tab[aria-current="true"] {
  background: var(--sw-teal);
  color: var(--sw-white);
  font-weight: 600;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */

.content-section,
.page-sidebar[id] {
  scroll-margin-top: 120px;
}

.content-section {
  margin-bottom: var(--sw-space-12);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  padding-bottom: var(--sw-space-3);
  border-bottom: 2px solid var(--sw-grey-light);
  margin-bottom: var(--sw-space-6);
}

/* Prose - for LLM-generated descriptions */
.prose {
  max-width: 720px;
  line-height: 1.7;
  color: var(--sw-slate);
}

.prose p {
  margin-bottom: var(--sw-space-4);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--sw-navy);
  font-weight: 600;
}

/* Trust Signals */
.trust-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-space-4);
  margin-top: var(--sw-space-6);
  margin-bottom: var(--sw-space-6);
}

.trust-signals-card {
  background: var(--sw-grey-50);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-4);
  border-left: 3px solid;
}

.trust-signals-positive {
  border-left-color: var(--sw-green);
}

.trust-signals-concerns {
  border-left-color: var(--sw-amber);
}

.trust-signals-header {
  font-size: var(--sw-text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 var(--sw-space-3) 0;
}

.trust-signals-positive .trust-signals-header {
  color: var(--sw-green);
}

.trust-signals-concerns .trust-signals-header {
  color: var(--sw-amber);
}

.trust-signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-signal {
  display: flex;
  align-items: flex-start;
  gap: var(--sw-space-2);
  padding: var(--sw-space-2) 0;
  font-size: var(--sw-text-sm);
  line-height: 1.5;
  border-bottom: 1px solid var(--sw-grey-200);
}

.trust-signal:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Features & Offerings Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-space-6);
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
}
.features-col h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-lg);
  font-weight: 600;
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-3);
}
.features-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-2);
}
.features-col li {
  font-family: 'Source Serif 4', serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  padding: var(--sw-space-2) var(--sw-space-3);
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  border-left: 3px solid var(--sw-teal);
}

/* Site Assessment Scorecard */
.assessment-intro {
  font-family: 'Source Serif 4', serif;
  font-size: var(--sw-text-base);
  line-height: 1.6;
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-6);
}
.assessment-scorecard {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--sw-grey-light);
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  overflow: hidden;
}
.assess-row {
  background: var(--sw-white);
  padding: var(--sw-space-4) var(--sw-space-5);
}
.assess-row-operator {
  border-top: 2px solid var(--sw-grey-light);
}
.assess-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sw-space-2);
}
.assess-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-navy);
}
.assess-bar {
  height: 6px;
  background: var(--sw-grey-pale);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--sw-space-2);
}
.assess-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}
.assess-bar-fill.sub-grade-a-plus,
.assess-bar-fill.sub-grade-a { background: var(--sw-teal); }
.assess-bar-fill.sub-grade-b { background: #22C55E; }
.assess-bar-fill.sub-grade-c { background: #F59E0B; }
.assess-bar-fill.sub-grade-d { background: #F97316; }
.assess-bar-fill.sub-grade-f { background: #EF4444; }
.assess-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.assess-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 500;
  color: var(--sw-slate);
  background: var(--sw-grey-pale);
  padding: 3px 8px;
  border-radius: var(--sw-radius-full);
}
.assess-tag-good {
  background: var(--sw-teal-light);
  color: var(--sw-teal-dark);
}
.assess-tag-missing {
  background: #FEE2E2;
  color: #991B1B;
}

/* Review Quotes */
.review-quotes {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-4);
}

.review-quote {
  margin: 0;
  padding: var(--sw-space-4);
  border-left: 3px solid var(--sw-grey-300);
  background: var(--sw-grey-50);
  border-radius: 0 var(--sw-radius-md) var(--sw-radius-md) 0;
}

.review-quote p {
  margin: 0 0 var(--sw-space-2) 0;
  font-style: italic;
  color: var(--sw-slate);
}

.review-quote footer {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

.review-quote.review-positive {
  border-left-color: var(--sw-green);
}

.review-quote.review-negative {
  border-left-color: var(--sw-red);
}

.review-rating {
  font-weight: 600;
}

/* Info boxes for notices and exemptions */
.info-box {
  background: var(--sw-grey-50);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-4);
  border-left: 3px solid var(--sw-grey-400);
  margin-bottom: var(--sw-space-4);
}

.info-box p {
  margin: 0 0 var(--sw-space-2) 0;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box-neutral {
  border-left-color: var(--sw-blue);
}

.info-box-success {
  border-left-color: var(--sw-green);
}

.info-box-warning {
  border-left-color: var(--sw-amber);
}

.trust-signal-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.75rem;
}

.trust-signal-positive .trust-signal-icon {
  background: var(--sw-green);
  color: white;
}

.trust-signal-concern .trust-signal-icon {
  background: var(--sw-amber);
  color: white;
}

.trust-signal-text {
  color: var(--sw-slate);
}

.trust-signal-text strong {
  color: var(--sw-navy);
}

/* ============================================
   TIMELINE COMPONENT
   ============================================ */

.timeline {
  position: relative;
  padding-left: 140px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sw-grey-light);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sw-space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  position: absolute;
  left: -140px;
  width: 110px;
  text-align: right;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-slate);
}

.timeline-node {
  position: absolute;
  left: -26px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sw-teal);
}

.timeline-node.negative {
  background: var(--sw-red);
}

.timeline-node.neutral {
  background: var(--sw-amber);
}

.timeline-content h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-base);
  font-weight: 600;
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-1);
}

.timeline-content p {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin: 0;
  max-width: 500px;
}

/* ============================================
   RELATED ENTITIES MODULE
   ============================================ */

.related-section {
  background: var(--sw-grey-pale);
  padding: var(--sw-space-10) var(--sw-space-8);
  margin-top: var(--sw-space-12);
}

.related-section h3 {
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-6);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sw-space-4);
}

.related-card {
  background: var(--sw-white);
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-4);
  text-decoration: none;
  transition: border-color var(--sw-transition-fast);
}

.related-card:hover {
  border-color: var(--sw-teal);
  text-decoration: none;
}

.related-card-header {
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
  margin-bottom: var(--sw-space-2);
}

.related-grade {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-lg);
  font-weight: 700;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sw-radius-sm);
}

.related-score {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-slate);
}

.related-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-2);
  line-height: 1.3;
}

.related-card-facts {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sw-space-2) 0;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
}

.related-card-facts li {
  margin-bottom: var(--sw-space-1);
}

.related-card-facts li:last-child {
  margin-bottom: 0;
}

.related-link {
  display: block;
  margin-top: var(--sw-space-4);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
}

/* ============================================
   DATA SOURCES FOOTER
   ============================================ */

/* Key Facts Box (AI-optimized structured data) */
.key-facts-box {
  margin: var(--sw-space-6) 0;
  padding: var(--sw-space-5) var(--sw-space-6);
  background: var(--sw-grey-pale);
  border-left: 4px solid var(--sw-teal);
  border-radius: var(--sw-radius-md);
}

.key-facts-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-base);
  font-weight: 600;
  color: var(--sw-navy);
  margin: 0 0 var(--sw-space-4);
}

.key-facts-list {
  margin: 0;
  padding: 0;
}

.key-facts-row {
  display: flex;
  gap: var(--sw-space-3);
  padding: var(--sw-space-2) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: var(--sw-text-sm);
}

.key-facts-row:last-child {
  border-bottom: none;
}

.key-facts-row dt {
  flex: 0 0 180px;
  font-weight: 600;
  color: var(--sw-slate);
}

.key-facts-row dd {
  margin: 0;
  color: var(--sw-navy);
}

.key-facts-row a {
  color: var(--sw-teal);
}

.key-facts-source {
  margin: var(--sw-space-3) 0 0;
  color: var(--sw-grey);
  font-size: var(--sw-text-xs);
}

.key-facts-source a {
  color: var(--sw-teal);
}

/* Table captions (visible for source attribution) */
table caption {
  caption-side: bottom;
  text-align: left;
  padding: var(--sw-space-2) 0;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
}

table caption a {
  color: var(--sw-teal);
}

@media (max-width: 640px) {
  .key-facts-row {
    flex-direction: column;
    gap: var(--sw-space-1);
  }

  .key-facts-row dt {
    flex: none;
  }
}

.data-sources {
  margin-top: var(--sw-space-10);
  padding: var(--sw-space-5);
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

.data-sources-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-2);
}

.data-sources p {
  margin: 0;
  line-height: 1.6;
}

.data-sources a {
  color: var(--sw-teal);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--sw-navy);
  padding: var(--sw-space-16) var(--sw-space-8) var(--sw-space-8);
}

.footer-inner {
  max-width: var(--sw-content-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr repeat(4, auto);
  gap: var(--sw-space-10);
}

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

.footer-brand {
  display: inline-block;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand:hover {
  opacity: 0.9;
}

.footer-tagline {
  font-size: var(--sw-text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--sw-space-3);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--sw-space-4);
}

.footer-col a {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: var(--sw-space-2);
  transition: color var(--sw-transition-fast);
}

.footer-col a:hover {
  color: var(--sw-white);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--sw-content-wide);
  margin: var(--sw-space-10) auto 0;
  padding-top: var(--sw-space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* ============================================
   UTILITIES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sw-space-4); }
.mb-4 { margin-bottom: var(--sw-space-4); }
.mt-8 { margin-top: var(--sw-space-8); }
.mb-8 { margin-bottom: var(--sw-space-8); }

.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; }
.gap-2 { gap: var(--sw-space-2); }
.gap-4 { gap: var(--sw-space-4); }

/* External Link Indicator */
a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A8F7F' stroke-width='2'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  vertical-align: middle;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1023px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    position: static;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sw-space-8);
  }

  .trust-signals {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 639px) {
  :root {
    --sw-space-8: 1.5rem;
    --sw-space-10: 2rem;
    --sw-space-12: 2.5rem;
    --sw-space-16: 3rem;
  }

  h1 {
    font-size: var(--sw-text-3xl);
  }

  h2 {
    font-size: var(--sw-text-2xl);
  }

  .nav-header {
    padding: 0 var(--sw-space-4);
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .breadcrumb {
    padding: var(--sw-space-3) var(--sw-space-4);
  }

  .page-content {
    padding: var(--sw-space-8) var(--sw-space-4);
  }

  .section {
    padding: var(--sw-space-8) var(--sw-space-4);
  }

  .section-tabs {
    gap: var(--sw-space-2);
    border-bottom: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--sw-space-2) var(--sw-space-3);
    margin-left: calc(-1 * var(--sw-space-4));
    margin-right: calc(-1 * var(--sw-space-4));
    margin-bottom: var(--sw-space-6);
    box-shadow: 0 1px 3px rgba(11, 25, 48, 0.06);
    align-items: center;
  }

  .section-tab {
    padding: var(--sw-space-2) var(--sw-space-3);
    font-size: var(--sw-text-xs);
    border-bottom: none;
    margin-bottom: 0;
    border-radius: var(--sw-radius-full);
    color: var(--sw-slate);
    flex-shrink: 0;
  }

  .section-tab[href="#scores"] {
    display: inline-flex;
  }

  .section-tab:hover {
    background: var(--sw-grey-pale);
  }

  .section-tab.active,
  .section-tab[aria-current="true"] {
    background: var(--sw-teal);
    color: var(--sw-white);
    border-bottom-color: transparent;
    font-weight: 600;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sw-space-6);
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-date {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: var(--sw-space-1);
  }

  .timeline-node {
    left: 0;
    top: 4px;
  }

  .timeline-item {
    padding-left: 28px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .nav-header,
  .breadcrumb,
  .section-tabs,
  .related-section,
  .footer,
  .skip-link {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3, h4 {
    color: #000;
    page-break-after: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .page-content {
    max-width: none;
    padding: 0;
  }

  .page-grid {
    display: block;
  }

  .quick-facts {
    background: #f5f5f5;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, #0a1628 0%, var(--sw-navy) 50%, #0d2847 100%);
  padding: var(--sw-space-20) var(--sw-space-8);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 178, 169, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(0, 178, 169, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--sw-content-default);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--sw-text-5xl);
  color: var(--sw-white);
  margin-bottom: var(--sw-space-6);
}

.hero-title .text-teal {
  color: var(--sw-teal);
}

.hero-subtitle {
  font-size: var(--sw-text-xl);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sw-space-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  margin-bottom: var(--sw-space-8);
}

.hero-search-wrapper {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-search-input {
  flex: 1;
  padding: var(--sw-space-4) var(--sw-space-6);
  font-size: var(--sw-text-lg);
  border: none;
  border-radius: var(--sw-radius-lg) 0 0 var(--sw-radius-lg);
  outline: none;
  background: transparent;
  color: var(--sw-slate);
}

.hero-search-input::placeholder {
  color: var(--sw-grey);
}

.hero-search-btn {
  padding: var(--sw-space-4) var(--sw-space-6);
  background: var(--sw-teal);
  border: none;
  border-radius: 0 var(--sw-radius-lg) var(--sw-radius-lg) 0;
  color: var(--sw-white);
  cursor: pointer;
  transition: background var(--sw-transition-fast);
}

.hero-search-btn:hover {
  background: var(--sw-teal-dark);
}

.hero-search-hint {
  margin-top: var(--sw-space-4);
  font-size: var(--sw-text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.hero-search-hint a {
  color: var(--sw-teal);
  text-decoration: none;
  transition: color var(--sw-transition-fast);
}

.hero-search-hint a:hover {
  color: var(--sw-white);
  text-decoration: underline;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--sw-white);
  border-radius: 0 0 var(--sw-radius-lg) var(--sw-radius-lg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 200;
}

.search-dropdown.active {
  display: block;
}

.search-result {
  display: flex;
  align-items: center;
  gap: var(--sw-space-3);
  padding: var(--sw-space-3) var(--sw-space-4);
  text-decoration: none;
  color: var(--sw-slate);
  border-bottom: 1px solid var(--sw-grey-pale);
  transition: background var(--sw-transition-fast);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result.selected {
  background: var(--sw-grey-pale);
}

.search-result-type {
  font-size: var(--sw-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--sw-radius-sm);
  background: var(--sw-grey-light);
  color: var(--sw-grey);
  flex-shrink: 0;
}

.search-result-type-site {
  background: rgba(0, 178, 169, 0.15);
  color: var(--sw-teal-dark);
}

.search-result-type-operator {
  background: rgba(26, 42, 58, 0.1);
  color: var(--sw-navy);
}

.search-result-type-company {
  background: rgba(107, 114, 128, 0.15);
  color: var(--sw-grey);
}

.search-result-label {
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-sublabel {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  flex-shrink: 0;
}

.search-no-results {
  padding: var(--sw-space-4);
  text-align: center;
  color: var(--sw-grey);
}

.hero-actions {
  display: flex;
  gap: var(--sw-space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sw-space-6);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sw-space-2);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--sw-radius-md);
  transition: all var(--sw-transition-fast);
  cursor: pointer;
  border: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-sm {
  font-size: var(--sw-text-sm);
  padding: var(--sw-space-2) var(--sw-space-4);
}

.btn-md {
  font-size: var(--sw-text-base);
  padding: var(--sw-space-3) var(--sw-space-5);
}

.btn-lg {
  font-size: var(--sw-text-lg);
  padding: var(--sw-space-4) var(--sw-space-8);
}

.btn-primary {
  background: var(--sw-teal);
  color: var(--sw-white);
}

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

.btn-secondary {
  background: transparent;
  color: var(--sw-teal);
  border: 2px solid var(--sw-teal);
}

.btn-secondary:hover {
  background: var(--sw-teal);
  color: var(--sw-white);
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-section {
  background: var(--sw-grey-pale);
  padding: var(--sw-space-12) var(--sw-space-8);
  border-bottom: var(--sw-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sw-space-6);
  max-width: var(--sw-content-wide);
  margin: 0 auto;
}

.stats-row {
  display: flex;
  gap: var(--sw-space-4);
  flex-wrap: wrap;
}

.stat-card {
  text-align: center;
  padding: var(--sw-space-6) var(--sw-space-4);
  background: var(--sw-white);
  border: 1px solid var(--sw-grey-light);
  border-radius: var(--sw-radius-md);
  transition: box-shadow var(--sw-transition-fast), border-color var(--sw-transition-fast), transform var(--sw-transition-fast);
}

.stat-card-link {
  text-decoration: none;
  cursor: pointer;
}

.stat-card-link:hover {
  border-color: var(--sw-teal);
  box-shadow: var(--sw-shadow-md);
  transform: translateY(-2px);
}

.stat-card-link:hover .stat-value {
  color: var(--sw-teal-dark);
}

.stat-card-link:hover .stat-label {
  color: var(--sw-slate);
}

.stat-card-static {
  opacity: 0.7;
}

.stat-value {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-4xl);
  font-weight: 700;
  color: var(--sw-navy);
  line-height: 1.1;
  transition: color var(--sw-transition-fast);
}

.stat-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-top: var(--sw-space-2);
  transition: color var(--sw-transition-fast);
}

/* ============================================
   FEATURE CARDS
   ============================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sw-space-6);
  margin-top: var(--sw-space-8);
}

.feature-card {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-6);
}

.feature-card h3 {
  font-size: var(--sw-text-lg);
  margin-bottom: var(--sw-space-3);
}

.feature-card p {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-4);
}

.feature-link {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-teal);
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-space-10);
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: var(--sw-space-6);
  margin-bottom: var(--sw-space-3);
  font-size: var(--sw-text-sm);
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sw-teal);
  font-weight: bold;
}

/* ============================================
   ARTICLE BODY (Markdown content)
   ============================================ */

/* Content section lists (used in entity pages for features, findings, etc.) */
.content-section ul,
.content-section ol,
.prose ul,
.prose ol {
  margin: var(--sw-space-4) 0;
  padding-left: var(--sw-space-6);
}

.content-section ul,
.prose ul {
  list-style-type: disc;
}

.content-section ol,
.prose ol {
  list-style-type: decimal;
}

.content-section ul li,
.content-section ol li,
.prose li {
  margin-bottom: var(--sw-space-2);
  line-height: 1.6;
}

/* Article body lists (markdown content) */
.article-body ul,
.article-body ol {
  margin: var(--sw-space-4) 0;
  padding-left: var(--sw-space-6);
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li {
  margin-bottom: var(--sw-space-2);
  line-height: 1.6;
}

.article-body p {
  margin-bottom: var(--sw-space-4);
}

.article-body h2 {
  margin-top: var(--sw-space-8);
  margin-bottom: var(--sw-space-4);
}

.article-body h3 {
  margin-top: var(--sw-space-6);
  margin-bottom: var(--sw-space-3);
}

.article-body a {
  color: var(--sw-teal);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--sw-navy);
}

/* Tables in article content (from markdown) - wrapped for mobile scroll */
.article-body {
  overflow-x: auto;
}

.article-body table {
  margin: var(--sw-space-6) 0;
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  overflow-x: auto;
  display: block;
  min-width: 100%;
}

.article-body th,
.article-body td {
  border: var(--sw-border);
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sw-space-6);
  padding-bottom: var(--sw-space-3);
  border-bottom: 2px solid var(--sw-grey-light);
}

.section-header h2 {
  border: none;
  padding: 0;
  margin: 0;
}

.section-link {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-teal);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
  background: var(--sw-teal-light);
  padding: var(--sw-space-12);
  border-radius: var(--sw-radius-lg);
}

.cta-section h2 {
  border: none;
  margin-bottom: var(--sw-space-4);
}

.cta-section p {
  margin-bottom: var(--sw-space-6);
}

/* ============================================
   A-Z INDEX
   ============================================ */

.az-index {
  display: flex;
  align-items: center;
  gap: var(--sw-space-1);
  flex-wrap: wrap;
  margin-bottom: var(--sw-space-6);
  padding-bottom: var(--sw-space-4);
  border-bottom: var(--sw-border);
}

.az-label {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-slate);
  margin-right: var(--sw-space-2);
}

.az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: var(--sw-slate);
  text-decoration: none;
  border-radius: var(--sw-radius-sm);
  transition: all var(--sw-transition-fast);
}

.az-link:hover {
  background: var(--sw-teal-light);
  color: var(--sw-teal);
  text-decoration: none;
}

.az-link.active {
  background: var(--sw-teal);
  color: var(--sw-white);
}

/* ============================================
   FILTER GROUPS
   ============================================ */

.filter-group {
  margin-bottom: var(--sw-space-4);
}

.filter-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-slate);
  margin-bottom: var(--sw-space-2);
}

.filter-chips {
  display: flex;
  gap: var(--sw-space-2);
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sw-space-1);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  padding: var(--sw-space-2) var(--sw-space-3);
  background: var(--sw-white);
  border: var(--sw-border);
  border-radius: var(--sw-radius-full);
  color: var(--sw-slate);
  text-decoration: none;
  transition: all var(--sw-transition-fast);
}

.filter-chip:hover {
  border-color: var(--sw-teal);
  color: var(--sw-teal);
  text-decoration: none;
}

.filter-chip.active {
  background: var(--sw-teal);
  border-color: var(--sw-teal);
  color: var(--sw-white);
}

.filter-count {
  font-size: var(--sw-text-xs);
  opacity: 0.7;
}

.clear-filters {
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
}

/* ============================================
   RESULTS META
   ============================================ */

.results-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-6);
}

.results-filters {
  display: inline-flex;
  align-items: center;
  gap: var(--sw-space-2);
}

.results-count {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sw-space-4);
  margin-top: var(--sw-space-10);
  padding-top: var(--sw-space-6);
  border-top: var(--sw-border);
}

.pagination-link {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: var(--sw-teal);
  text-decoration: none;
  padding: var(--sw-space-2) var(--sw-space-4);
  border-radius: var(--sw-radius-sm);
  transition: background var(--sw-transition-fast);
}

.pagination-link:hover {
  background: var(--sw-teal-light);
  text-decoration: none;
}

.pagination-link.disabled {
  color: var(--sw-grey);
  pointer-events: none;
}

.pagination-prev,
.pagination-next {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 500;
}

.pagination-info {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
}

/* ============================================
   CARD GRID VARIATIONS
   ============================================ */

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.page-content-wide .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-category {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-2);
}

.card-excerpt {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  line-height: 1.6;
}

/* ============================================
   TIMELINE LIST (Hub Pages)
   ============================================ */

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-4);
}

.timeline-list .timeline-item {
  display: flex;
  gap: var(--sw-space-6);
  padding: var(--sw-space-5);
  background: var(--sw-white);
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  transition: border-color var(--sw-transition-fast);
}

.timeline-list .timeline-item:hover {
  border-color: rgba(10, 143, 127, 0.3);
}

.timeline-list .timeline-date {
  position: static;
  width: auto;
  min-width: 100px;
  text-align: left;
  flex-shrink: 0;
}

.timeline-list .timeline-content {
  flex: 1;
  min-width: 0;
}

/* Timeline items with images */
.timeline-list .timeline-item-with-image {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  gap: var(--sw-space-2) var(--sw-space-4);
}

.timeline-list .timeline-item-with-image .timeline-date {
  grid-column: 1;
  grid-row: 1;
}

.timeline-list .timeline-item-with-image .timeline-image {
  grid-column: 1;
  grid-row: 2;
}

.timeline-list .timeline-item-with-image .timeline-content {
  grid-column: 2;
  grid-row: 1 / 3;
}

.timeline-image {
  display: block;
  overflow: hidden;
  border-radius: var(--sw-radius-md);
  background: var(--sw-grey-pale);
  flex-shrink: 0;
}

.timeline-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--sw-transition-fast);
}

.timeline-item-with-image:hover .timeline-image img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .timeline-list .timeline-item-with-image {
    grid-template-columns: 1fr;
    gap: var(--sw-space-3);
  }

  .timeline-image {
    max-width: 200px;
  }
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sw-space-3);
  flex-wrap: wrap;
  margin-bottom: var(--sw-space-2);
}

.timeline-title {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-lg);
  font-weight: 600;
  color: var(--sw-navy);
  margin: 0;
}

.timeline-title a {
  color: inherit;
  text-decoration: none;
}

.timeline-title a:hover {
  text-decoration: underline;
}

.timeline-summary {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  margin: 0 0 var(--sw-space-3) 0;
}

.timeline-footer {
  display: flex;
  gap: var(--sw-space-4);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

.penalty-amount {
  font-weight: 600;
  color: var(--sw-red);
}

.operator-link a {
  color: var(--sw-teal);
}

/* ============================================
   ARTICLES LIST
   ============================================ */

.articles-list {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-6);
}

.article-card {
  padding-bottom: var(--sw-space-6);
  border-bottom: var(--sw-border);
}

.article-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-card-header {
  margin-bottom: var(--sw-space-3);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--sw-space-3);
  margin-bottom: var(--sw-space-2);
}

.article-date {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

.article-card-title {
  font-size: var(--sw-text-2xl);
  margin: 0;
}

.article-card-title a {
  color: var(--sw-navy);
  text-decoration: none;
}

.article-card-title a:hover {
  text-decoration: underline;
}

.article-excerpt {
  font-size: var(--sw-text-base);
  color: var(--sw-slate);
  line-height: 1.7;
  margin: 0;
}

.article-card-footer {
  margin-top: var(--sw-space-4);
}

.read-more {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-teal);
}

/* Article cards with images */
.article-card-with-image {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sw-space-6);
  align-items: start;
  padding: var(--sw-space-4);
  background: var(--sw-white);
  border-radius: var(--sw-radius-md);
  box-shadow: var(--sw-shadow-sm);
}

.article-card-image {
  display: block;
  overflow: hidden;
  border-radius: var(--sw-radius-md);
  aspect-ratio: 16 / 9;
  background: var(--sw-grey-pale);
}

.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sw-transition-normal);
}

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

.article-card-with-image .card-title,
.article-card-with-image .article-card-title {
  font-size: var(--sw-text-xl);
}

.article-card-with-image .card-content {
  padding: 0;
}

.article-card-with-image .card-link-inner {
  display: block;
}

@media (max-width: 767px) {
  .article-card-with-image {
    grid-template-columns: 1fr;
    gap: var(--sw-space-4);
  }

  .article-card-image {
    max-height: 200px;
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: var(--sw-space-12) var(--sw-space-8);
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
}

.empty-state p {
  font-size: var(--sw-text-lg);
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-6);
}

/* ============================================
   BACK LINK
   ============================================ */

.back-link {
  margin-bottom: var(--sw-space-6);
}

.back-link a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
}

/* ============================================
   SEO CONTENT
   ============================================ */

.seo-content {
  background: var(--sw-grey-pale);
  padding: var(--sw-space-8);
  border-radius: var(--sw-radius-md);
}

.seo-content p {
  font-size: var(--sw-text-sm);
  line-height: 1.7;
  margin-bottom: var(--sw-space-4);
  color: var(--sw-grey);
}

.seo-content p:last-child {
  margin-bottom: 0;
}

.seo-content h2 {
  font-size: var(--sw-text-2xl);
  border: none;
  padding: 0;
  margin-top: var(--sw-space-10);
  margin-bottom: var(--sw-space-4);
  padding-bottom: var(--sw-space-3);
  border-bottom: 2px solid var(--sw-grey-light);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content h3 {
  font-size: var(--sw-text-lg);
  margin-top: var(--sw-space-6);
  margin-bottom: var(--sw-space-3);
}

.seo-content ul,
.seo-content ol {
  margin-bottom: var(--sw-space-4);
  padding-left: var(--sw-space-6);
}

.seo-content ul {
  list-style-type: disc;
}

.seo-content ol {
  list-style-type: decimal;
}

.seo-content li {
  margin-bottom: var(--sw-space-2);
  font-size: var(--sw-text-sm);
  line-height: 1.6;
}

.seo-content strong {
  font-weight: 600;
  color: var(--sw-slate);
}

/* Data tables in editorial content */
.seo-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.seo-content .data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sw-space-6) 0;
  font-size: var(--sw-text-sm);
}

.seo-content .data-table th,
.seo-content .data-table td {
  padding: var(--sw-space-3) var(--sw-space-4);
  text-align: left;
  border-bottom: 1px solid var(--sw-grey-light);
}

.seo-content .data-table thead th {
  background: var(--sw-white);
  font-weight: 600;
  color: var(--sw-slate);
  border-bottom: 2px solid var(--sw-grey-light);
}

.seo-content .data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Definition lists in editorial content */
.seo-content .term-definitions {
  margin: var(--sw-space-6) 0;
}

.seo-content .term-definitions dt {
  font-weight: 600;
  color: var(--sw-slate);
  font-size: var(--sw-text-sm);
  margin-top: var(--sw-space-4);
}

.seo-content .term-definitions dt:first-child {
  margin-top: 0;
}

.seo-content .term-definitions dd {
  font-size: var(--sw-text-sm);
  line-height: 1.7;
  color: var(--sw-grey);
  margin: var(--sw-space-2) 0 0 var(--sw-space-6);
}

/* Callout boxes in editorial content */
.seo-content .callout-box {
  margin: var(--sw-space-6) 0;
  padding: var(--sw-space-5);
  border-radius: var(--sw-radius-sm);
  border-left: 4px solid var(--sw-teal);
  background: var(--sw-white);
}

.seo-content .callout-box p {
  margin-bottom: 0;
}

.seo-content .callout-warning {
  border-left-color: var(--sw-amber);
}

/* Data Snapshot Card */
.data-snapshot-card {
  background: var(--sw-white);
  border: 1px solid var(--sw-grey-light);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-6);
  margin: var(--sw-space-6) 0;
}

.data-snapshot-card h3 {
  font-size: var(--sw-text-lg);
  margin: 0 0 var(--sw-space-4) 0;
  color: var(--sw-slate);
}

.data-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sw-space-4);
}

.data-snapshot-item {
  text-align: center;
}

.data-snapshot-value {
  display: block;
  font-size: var(--sw-text-2xl);
  font-weight: 700;
  color: var(--sw-teal);
  line-height: 1.2;
}

.data-snapshot-label {
  display: block;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  margin-top: var(--sw-space-1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-snapshot-date {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  margin: var(--sw-space-4) 0 0 0;
  text-align: right;
}

/* FAQ Section */
.faq-section {
  margin-top: var(--sw-space-6);
}

.faq-section h2 {
  font-size: var(--sw-text-xl);
  margin-bottom: var(--sw-space-4);
}

.faq-item {
  border: 1px solid var(--sw-grey-light);
  border-radius: var(--sw-radius-sm);
  margin-bottom: var(--sw-space-3);
  background: var(--sw-white);
}

.faq-question {
  padding: var(--sw-space-4) var(--sw-space-5);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-slate);
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  font-weight: 700;
  color: var(--sw-teal);
}

.faq-item[open] .faq-question::before {
  content: '\2212';
}

.faq-answer {
  padding: 0 var(--sw-space-5) var(--sw-space-4);
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  line-height: 1.6;
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-lg {
  font-size: var(--sw-text-lg);
}

.text-teal {
  color: var(--sw-teal);
}

/* ============================================
   ADJACENT NAV
   ============================================ */

.adjacent-nav {
  justify-content: space-between;
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */

@media (max-width: 1023px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .hero {
    padding: var(--sw-space-12) var(--sw-space-4);
  }

  .hero-title {
    font-size: var(--sw-text-4xl);
  }

  .hero-subtitle {
    font-size: var(--sw-text-lg);
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sw-space-4);
  }

  .stat-value {
    font-size: var(--sw-text-3xl);
  }

  .az-link {
    width: 28px;
    height: 28px;
    font-size: var(--sw-text-xs);
  }

  .timeline-list .timeline-item {
    flex-direction: column;
    gap: var(--sw-space-2);
  }

  .timeline-list .timeline-date {
    min-width: auto;
  }

  .pagination {
    flex-wrap: wrap;
    gap: var(--sw-space-2);
  }
}

/* ============================================
   STATIC CONTENT PAGES
   (About, Contact, Privacy, Terms, Methodology, Glossary)
   ============================================ */

/* Content sections for static pages */
.methodology-content h2,
.legal-content h2,
.glossary-content h2 {
  font-size: var(--sw-text-xl);
  margin-top: var(--sw-space-10);
  margin-bottom: var(--sw-space-4);
  padding-top: var(--sw-space-6);
  border-top: 1px solid var(--sw-grey-light);
}

.methodology-content h2:first-of-type,
.legal-content h2:first-of-type,
.glossary-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.methodology-content h3,
.legal-content h3 {
  font-size: var(--sw-text-lg);
  margin-top: var(--sw-space-6);
  margin-bottom: var(--sw-space-3);
}

/* Methodology page — table of contents */
.methodology-toc {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-5) var(--sw-space-6);
  margin-bottom: var(--sw-space-8);
}

.methodology-toc-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-3);
}

.methodology-toc-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-space-1) var(--sw-space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.methodology-toc-list li {
  margin: 0;
}

.methodology-toc-list a {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: var(--sw-space-2);
  padding: var(--sw-space-1) 0;
}

.methodology-toc-list a:hover {
  text-decoration: underline;
}

.methodology-toc-list .toc-num {
  font-weight: 600;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  min-width: 1.2em;
}

/* Methodology page — section panels */
.methodology-section {
  scroll-margin-top: 100px;
}

.methodology-section + .methodology-section {
  margin-top: var(--sw-space-10);
  padding-top: var(--sw-space-8);
  border-top: 1px solid var(--sw-grey-light);
}

.methodology-section-header {
  display: flex;
  align-items: center;
  gap: var(--sw-space-3);
  margin-bottom: var(--sw-space-5);
}

.methodology-section-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: var(--sw-text-xs);
  color: var(--sw-white);
  background: var(--sw-teal);
  width: 28px;
  height: 28px;
  border-radius: var(--sw-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.methodology-section-header h2 {
  font-size: var(--sw-text-xl);
  margin: 0;
  padding: 0;
  border: none;
}

/* Score explanation panels */
.score-panel {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-6);
  margin: var(--sw-space-5) 0;
}

.score-panel h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
  margin: 0 0 var(--sw-space-3) 0;
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
}

.score-panel-tag {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-xs);
  padding: 2px 8px;
  border-radius: var(--sw-radius-sm);
  white-space: nowrap;
}

.score-panel-tag--value { background: var(--sw-teal-light); color: var(--sw-teal-dark); }
.score-panel-tag--transparency { background: #EFF6FF; color: #1E40AF; }
.score-panel-tag--risk { background: #FEF3C7; color: #92400E; }
.score-panel-tag--grade { background: #F3E8FF; color: #6B21A8; }

.score-panel p,
.score-panel ul {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  line-height: 1.7;
}

.score-panel p {
  margin-bottom: var(--sw-space-3);
}

.score-panel p:last-child {
  margin-bottom: 0;
}

.score-panel ul {
  margin: var(--sw-space-3) 0 var(--sw-space-3) var(--sw-space-5);
}

.score-panel li {
  margin-bottom: var(--sw-space-2);
}

.score-panel li:last-child {
  margin-bottom: 0;
}

/* Wagering erosion example table */
.wagering-example {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sw-space-4) 0;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
}

.wagering-example th {
  text-align: left;
  font-weight: 600;
  color: var(--sw-navy);
  padding: var(--sw-space-2) var(--sw-space-3);
  border-bottom: 2px solid var(--sw-grey-light);
}

.wagering-example td {
  padding: var(--sw-space-2) var(--sw-space-3);
  border-bottom: 1px solid var(--sw-grey-light);
  color: var(--sw-slate);
}

.wagering-example .erosion-low { color: var(--sw-teal-dark); font-weight: 600; }
.wagering-example .erosion-mid { color: #92400E; font-weight: 600; }
.wagering-example .erosion-high { color: #B91C1C; font-weight: 600; }

/* Risk level indicators in methodology */
.risk-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sw-space-3);
  margin: var(--sw-space-4) 0;
}

.risk-level-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sw-space-3);
  padding: var(--sw-space-3) var(--sw-space-4);
  background: var(--sw-white);
  border-radius: var(--sw-radius-sm);
  border: 1px solid var(--sw-grey-light);
}

.risk-level-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--sw-radius-full);
  flex-shrink: 0;
  margin-top: 4px;
}

.risk-level-dot--low { background: #16A34A; }
.risk-level-dot--medium { background: #F59E0B; }
.risk-level-dot--high { background: #EA580C; }
.risk-level-dot--very-high { background: #DC2626; }

.risk-level-item strong {
  display: block;
  font-size: var(--sw-text-sm);
  color: var(--sw-navy);
}

.risk-level-item span {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .methodology-toc-list {
    grid-template-columns: 1fr;
  }
  .risk-levels {
    grid-template-columns: 1fr;
  }
}

/* Source blocks (methodology page) */
.source-block {
  background: var(--sw-grey-pale);
  border-left: 3px solid var(--sw-teal);
  border-radius: 0 var(--sw-radius-md) var(--sw-radius-md) 0;
  padding: var(--sw-space-5) var(--sw-space-6);
  margin: var(--sw-space-5) 0;
}

.source-block h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-2);
}

.source-block p {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  line-height: 1.6;
  margin-bottom: var(--sw-space-2);
}

.source-block p:last-child {
  margin-bottom: 0;
}

.source-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
}

/* Principles grid (about page) */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sw-space-5);
  margin: var(--sw-space-6) 0;
}

.principle-card {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-6);
}

.principle-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-2);
}

.principle-card p {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sw-space-5);
  margin: var(--sw-space-6) 0;
}

.contact-card {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-6);
}

.contact-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-2);
}

.contact-card p {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  line-height: 1.6;
  margin-bottom: var(--sw-space-2);
}

.contact-card a {
  font-size: var(--sw-text-sm);
  font-weight: 500;
}

/* Address block */
.address-block {
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  padding: var(--sw-space-6);
  margin: var(--sw-space-5) 0;
}

.address-block .address-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-sm);
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-2);
}

.address-block p {
  font-size: var(--sw-text-base);
  color: var(--sw-slate);
  line-height: 1.7;
  margin-bottom: var(--sw-space-1);
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--sw-grey-light);
  margin: var(--sw-space-10) 0;
}

/* Effective date (legal pages) */
.effective-date {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-8);
}

/* Last updated date */
.last-updated {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-top: var(--sw-space-10);
  padding-top: var(--sw-space-6);
  border-top: 1px solid var(--sw-grey-light);
}

/* Glossary styles */
.glossary-list {
  margin: var(--sw-space-6) 0;
}

.glossary-list dt {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
  margin-top: var(--sw-space-6);
  margin-bottom: var(--sw-space-2);
  padding-top: var(--sw-space-4);
  border-top: 1px solid var(--sw-grey-light);
}

.glossary-list dt:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.glossary-list dd {
  font-size: var(--sw-text-base);
  color: var(--sw-slate);
  line-height: 1.7;
  margin-left: 0;
  padding-left: var(--sw-space-4);
  border-left: 2px solid var(--sw-teal-light);
}

/* Enhanced glossary styles */
.glossary-page {
  max-width: 900px;
}

/* Search and filter controls */
.glossary-controls {
  display: flex;
  gap: var(--sw-space-4);
  margin-bottom: var(--sw-space-6);
  flex-wrap: wrap;
}

.glossary-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.glossary-search-input {
  width: 100%;
  padding: var(--sw-space-3) var(--sw-space-4);
  padding-left: var(--sw-space-10);
  font-size: var(--sw-text-base);
  border: 1px solid var(--sw-grey-light);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.glossary-search-input:focus {
  outline: none;
  border-color: var(--sw-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.glossary-search-icon {
  position: absolute;
  left: var(--sw-space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--sw-grey);
  pointer-events: none;
}

.glossary-filter {
  min-width: 180px;
}

.glossary-category-filter {
  width: 100%;
  padding: var(--sw-space-3) var(--sw-space-4);
  font-size: var(--sw-text-base);
  border: 1px solid var(--sw-grey-light);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-white);
  cursor: pointer;
  transition: border-color 0.2s;
}

.glossary-category-filter:focus {
  outline: none;
  border-color: var(--sw-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* A-Z Navigation */
.glossary-az-nav {
  position: sticky;
  top: 0;
  background: var(--sw-white);
  padding: var(--sw-space-3) 0;
  margin-bottom: var(--sw-space-4);
  z-index: 10;
  border-bottom: 1px solid var(--sw-grey-light);
}

.glossary-az-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sw-space-1);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.glossary-az-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-sm);
  text-decoration: none;
  color: var(--sw-navy);
  background: var(--sw-grey-lightest);
  border-radius: var(--sw-radius-md);
  transition: background 0.2s, color 0.2s;
}

.glossary-az-link:hover:not(.glossary-az-disabled) {
  background: var(--sw-teal);
  color: var(--sw-white);
}

.glossary-az-disabled {
  color: var(--sw-grey);
  background: transparent;
  cursor: default;
  opacity: 0.5;
}

/* Results info */
.glossary-results-info {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-bottom: var(--sw-space-4);
}

/* Letter sections */
.glossary-letter-section {
  margin-bottom: var(--sw-space-8);
}

.glossary-letter-heading {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-2xl);
  font-weight: 700;
  color: var(--sw-teal);
  margin: 0 0 var(--sw-space-4) 0;
  padding-bottom: var(--sw-space-2);
  border-bottom: 2px solid var(--sw-teal-light);
}

/* Glossary items */
.glossary-item {
  margin-bottom: var(--sw-space-4);
}

.glossary-item[hidden] {
  display: none;
}

.glossary-item dt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sw-space-2);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
  margin-bottom: var(--sw-space-1);
  padding-top: var(--sw-space-3);
  border-top: 1px solid var(--sw-grey-light);
  scroll-margin-top: 80px;
}

.glossary-item:first-child dt {
  border-top: none;
  padding-top: 0;
}

.glossary-category-tag {
  font-size: var(--sw-text-xs);
  font-weight: 500;
  color: var(--sw-slate);
  background: var(--sw-grey-lightest);
  padding: 2px 8px;
  border-radius: var(--sw-radius-full);
}

/* Highlight effect for linked terms */
.glossary-highlight {
  animation: glossary-flash 2s ease-out;
}

@keyframes glossary-flash {
  0% { background-color: rgba(20, 184, 166, 0.2); }
  100% { background-color: transparent; }
}

/* No results */
.glossary-no-results {
  text-align: center;
  padding: var(--sw-space-8);
  color: var(--sw-grey);
}

.glossary-no-results[hidden] {
  display: none;
}

.glossary-clear-search {
  margin-top: var(--sw-space-4);
  padding: var(--sw-space-2) var(--sw-space-4);
  font-size: var(--sw-text-sm);
  font-weight: 500;
  color: var(--sw-teal);
  background: transparent;
  border: 1px solid var(--sw-teal);
  border-radius: var(--sw-radius-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.glossary-clear-search:hover {
  background: var(--sw-teal);
  color: var(--sw-white);
}

/* Responsive glossary */
@media (max-width: 600px) {
  .glossary-controls {
    flex-direction: column;
  }

  .glossary-filter {
    width: 100%;
  }

  .glossary-az-link {
    width: 28px;
    height: 28px;
    font-size: var(--sw-text-xs);
  }

  .glossary-letter-heading {
    font-size: var(--sw-text-xl);
  }
}

/* Lists in static content */
.methodology-content ul,
.legal-content ul {
  margin: var(--sw-space-4) 0 var(--sw-space-6) var(--sw-space-6);
  line-height: 1.8;
}

.methodology-content li,
.legal-content li {
  margin-bottom: var(--sw-space-2);
}

/* Responsive for static pages */
@media (max-width: 767px) {
  .principles-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Hub Page Search (light background variant)
   ======================================== */
.hub-search {
  margin: var(--sw-space-4) 0 var(--sw-space-6);
}

.hub-search-wrapper {
  display: flex;
  background: var(--sw-white);
  border-radius: var(--sw-radius-lg);
  border: 1px solid var(--sw-grey-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

.hub-search-input {
  flex: 1;
  padding: var(--sw-space-3) var(--sw-space-4);
  font-size: var(--sw-text-base);
  border: none;
  border-radius: var(--sw-radius-lg) 0 0 var(--sw-radius-lg);
  background: transparent;
  outline: none;
}

.hub-search-input:focus {
  box-shadow: none;
}

.hub-search-wrapper:focus-within {
  border-color: var(--sw-teal);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.hub-search-input::placeholder {
  color: var(--sw-grey);
}

.hub-search-btn {
  padding: var(--sw-space-3) var(--sw-space-4);
  background: var(--sw-teal);
  border: none;
  border-radius: 0 var(--sw-radius-lg) var(--sw-radius-lg) 0;
  color: var(--sw-white);
  cursor: pointer;
  transition: background var(--sw-transition-fast);
}

.hub-search-btn:hover {
  background: var(--sw-teal-dark);
}

.hub-search-btn svg {
  display: block;
}

/* ============================================
   TRUSTPILOT RATINGS
   ============================================ */

.trustpilot-rating {
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
  margin-bottom: var(--sw-space-2);
}

.trustpilot-stars {
  display: inline-flex;
  gap: 2px;
}

.trustpilot-stars .star {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.trustpilot-stars .star-full {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2300b67a'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.trustpilot-stars .star-half {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='half'%3E%3Cstop offset='50%25' stop-color='%2300b67a'/%3E%3Cstop offset='50%25' stop-color='%23dcdce6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23half)' d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.trustpilot-stars .star-empty {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dcdce6'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.trustpilot-score {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: var(--sw-text-lg);
  color: #00b67a;
}

/* ============================================
   COMPACT TRUST SCORE (Homepage Cards)
   ============================================ */

.trust-score-compact {
  display: flex;
  align-items: center;
  gap: var(--sw-space-3);
  margin-bottom: var(--sw-space-2);
}

.trust-score-grade-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-lg);
  font-weight: 700;
  border-radius: var(--sw-radius-sm);
  color: var(--sw-white);
}

.trust-score-grade-sm.grade-a { background: var(--sw-grade-a); }
.trust-score-grade-sm.grade-aplus { background: var(--sw-grade-aplus); }
.trust-score-grade-sm.grade-b { background: var(--sw-grade-b); }
.trust-score-grade-sm.grade-c { background: var(--sw-grade-c); }
.trust-score-grade-sm.grade-d { background: var(--sw-grade-d); }
.trust-score-grade-sm.grade-f { background: var(--sw-grade-f); }

.trust-score-value-sm {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: var(--sw-text-base);
  color: var(--sw-navy);
}

.trust-score-compact-details {
  flex: 1;
  min-width: 0;
}

.trust-score-bar-sm {
  height: 6px;
  background: var(--sw-grey-light);
  border-radius: var(--sw-radius-full);
  margin-top: var(--sw-space-1);
  overflow: hidden;
}

/* ============================================
   GEOGRAPHIC TRANSPARENCY SECTION
   ============================================ */

.geography-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sw-space-6);
  margin: var(--sw-space-8) 0;
}

.geography-card {
  display: flex;
  gap: var(--sw-space-4);
  padding: var(--sw-space-6);
  background: var(--sw-white);
  border: var(--sw-border);
  border-radius: var(--sw-radius-md);
  transition: box-shadow var(--sw-transition-fast);
}

.geography-card:hover {
  box-shadow: var(--sw-shadow-md);
}

.geography-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
  color: var(--sw-slate);
}

.geography-icon svg {
  width: 24px;
  height: 24px;
}

.geography-content {
  flex: 1;
  min-width: 0;
}

.geography-label {
  font-size: var(--sw-text-sm);
  font-weight: 600;
  color: var(--sw-grey);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sw-space-1);
}

.geography-value {
  font-size: var(--sw-text-lg);
  font-weight: 600;
  color: var(--sw-navy);
  line-height: 1.3;
}

.geography-value.geography-unknown {
  color: var(--sw-grey);
  font-style: italic;
  font-weight: 400;
}

.geography-source {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  margin-top: var(--sw-space-2);
}

.geography-note {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin-top: var(--sw-space-1);
}

.country-flag {
  font-size: 1.1em;
  margin-left: var(--sw-space-1);
  vertical-align: middle;
}

/* Twemoji flag images */
.country-flag img.emoji {
  height: 1.2em;
  width: 1.2em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
}

/* Geographic Interpretation Badge */
.geography-interpretation {
  margin-top: var(--sw-space-8);
  padding: var(--sw-space-6);
  background: var(--sw-grey-pale);
  border-radius: var(--sw-radius-md);
}

.geography-interpretation p {
  margin: var(--sw-space-3) 0 0;
  color: var(--sw-slate);
  line-height: 1.6;
}

.geography-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sw-space-2);
  padding: var(--sw-space-2) var(--sw-space-4);
  border-radius: var(--sw-radius-full);
  font-weight: 600;
  font-size: var(--sw-text-sm);
}

.geography-badge .badge-icon {
  font-size: var(--sw-text-lg);
}

.geography-badge-uk {
  background: var(--sw-green-bg);
  color: var(--sw-green);
}

.geography-badge-eu {
  background: var(--sw-teal-light);
  color: var(--sw-teal-dark);
}

.geography-badge-offshore {
  background: var(--sw-red-bg);
  color: var(--sw-red);
}

.geography-badge-mixed {
  background: var(--sw-blue-bg);
  color: var(--sw-blue);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .geography-grid {
    grid-template-columns: 1fr;
  }

  .geography-card {
    padding: var(--sw-space-4);
  }

  .geography-icon {
    width: 40px;
    height: 40px;
  }

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

/* ============================================
   AUTHOR / REVIEWER COMPONENTS
   ============================================ */

/* Byline (article header attribution) */
.byline {
  display: flex;
  align-items: center;
  gap: var(--sw-space-2);
  flex-wrap: wrap;
  margin-top: var(--sw-space-3);
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  font-family: 'DM Sans', sans-serif;
}

.byline a {
  color: var(--sw-slate);
  text-decoration: none;
}

.byline a:hover {
  color: var(--sw-teal);
  text-decoration: underline;
}

.byline-separator {
  color: var(--sw-grey-light);
}

/* Reviewer Badge */
.reviewer-badge {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

.reviewer-badge a {
  color: var(--sw-slate);
  text-decoration: none;
}

.reviewer-badge a:hover {
  color: var(--sw-teal);
  text-decoration: underline;
}

/* Author Box (end-of-article component) */
.author-box {
  display: flex;
  gap: var(--sw-space-5);
  padding: var(--sw-space-6);
  margin: var(--sw-space-10) 0 var(--sw-space-8);
  border: var(--sw-border);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-grey-pale);
}

.author-box-photo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--sw-radius-full);
  overflow: hidden;
  background: var(--sw-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-box-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-box-initials {
  color: var(--sw-white);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-xl);
  font-weight: 600;
}

.author-box-info {
  min-width: 0;
}

.author-box-name {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
  margin: 0 0 var(--sw-space-1);
}

.author-box-name a {
  color: var(--sw-navy);
  font-weight: 600;
  text-decoration: none;
}

.author-box-name a:hover {
  color: var(--sw-teal);
  text-decoration: underline;
}

.author-box-role {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
  font-weight: 500;
  margin: 0 0 var(--sw-space-2);
}

.author-box-credentials {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  font-style: italic;
  margin: 0 0 var(--sw-space-2);
  line-height: 1.5;
}

.author-box-bio {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  line-height: 1.6;
  margin: 0;
}

/* Author Profile Page */
.author-profile-header {
  margin-bottom: var(--sw-space-8);
}

.author-profile-intro {
  display: flex;
  align-items: center;
  gap: var(--sw-space-6);
}

.author-profile-photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--sw-radius-full);
  overflow: hidden;
  background: var(--sw-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-initials {
  color: var(--sw-white);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-4xl);
  font-weight: 600;
}

.author-profile-role {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-lg);
  color: var(--sw-teal);
  font-weight: 500;
  margin-top: var(--sw-space-2);
}

/* Team Grid (About page) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sw-space-6);
  margin: var(--sw-space-8) 0;
}

.team-card {
  padding: var(--sw-space-6);
  border: var(--sw-border);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-white);
  text-align: center;
}

.team-card-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--sw-radius-full);
  overflow: hidden;
  background: var(--sw-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sw-space-4);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card-initials {
  color: var(--sw-white);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-2xl);
  font-weight: 600;
}

.team-card h3 {
  font-size: var(--sw-text-lg);
  margin: 0 0 var(--sw-space-1);
}

.team-card h3 a {
  color: var(--sw-navy);
  text-decoration: none;
}

.team-card h3 a:hover {
  color: var(--sw-teal);
}

.team-card-role {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
  font-weight: 500;
  margin: 0 0 var(--sw-space-3);
}

.team-card-bio {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  line-height: 1.6;
  margin: 0 0 var(--sw-space-3);
}

.team-card-profile-link {
  font-size: var(--sw-text-sm);
  color: var(--sw-teal);
  text-decoration: none;
  font-weight: 500;
}

.team-card-profile-link:hover {
  color: var(--sw-teal-dark);
  text-decoration: underline;
}

/* Article card author attribution (insights hub) */
.article-card-author {
  font-size: var(--sw-text-sm);
  color: var(--sw-grey);
}

.article-card-author a {
  color: var(--sw-slate);
  text-decoration: none;
}

.article-card-author a:hover {
  color: var(--sw-teal);
  text-decoration: underline;
}

/* Editorial team list (editorial policy page) */
.editorial-team-list {
  display: flex;
  flex-direction: column;
  gap: var(--sw-space-4);
  margin: var(--sw-space-6) 0;
}

.editorial-team-member {
  display: flex;
  gap: var(--sw-space-4);
  align-items: flex-start;
  padding: var(--sw-space-4);
  background: var(--sw-bg-card);
  border: 1px solid var(--sw-border);
  border-radius: var(--sw-radius-lg);
}

.editorial-team-member-photo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--sw-radius-full);
  overflow: hidden;
  background: var(--sw-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.editorial-team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-team-member-name {
  font-weight: 600;
  margin: 0 0 var(--sw-space-1);
}

.editorial-team-member-name a {
  color: var(--sw-navy);
  text-decoration: none;
}

.editorial-team-member-name a:hover {
  color: var(--sw-teal);
}

.editorial-team-member-credentials {
  font-size: var(--sw-text-xs);
  color: var(--sw-grey);
  font-style: italic;
  margin: 0 0 var(--sw-space-2);
  line-height: 1.5;
}

.editorial-team-member-bio {
  font-size: var(--sw-text-sm);
  color: var(--sw-slate);
  line-height: 1.6;
  margin: 0;
}

/* Responsive adjustments for author components */
@media (max-width: 640px) {
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--sw-space-5);
  }

  .author-profile-intro {
    flex-direction: column;
    text-align: center;
  }

  .author-profile-photo {
    width: 96px;
    height: 96px;
  }

  .author-profile-initials {
    font-size: var(--sw-text-3xl);
  }

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

  .byline {
    flex-direction: column;
    align-items: flex-start;
  }

  .byline-separator {
    display: none;
  }
}
