:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #273449;
  --border: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: #0ea5e9;
  --accent-link: #7dd3fc;  /* sky-300: 7.5:1 on dark surfaces */
  --green: #4ade80;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 8px;
  --font: system-ui, -apple-system, sans-serif;
}

body.light-mode,
html.light-mode {
  --bg: #dde3ed;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #0369a1;
  --accent-dim: #0284c7;
  --accent-link: #0369a1;  /* sky-700: 5.4:1 on light surfaces */
  --green: #15803d;        /* green-700: 5.0:1 on white */
  --red: #dc2626;          /* red-600: 4.9:1 on white */
  --amber: #b45309;        /* amber-700: 5.0:1 on white */
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent-link); }

/* --- Nav --- */
nav {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 300;
}

nav .brand {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .brand::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  border-bottom: none;
  transition: color 0.12s, background 0.12s;
}

nav a:hover {
  color: var(--text);
  background: var(--surface2);
}

nav a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 0.75rem;
}

.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--border); color: var(--text); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.75rem;
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background 0.15s;
}
.hamburger:hover span { background: var(--text); }

/* --- Dropdown nav --- */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* CSS chevron (triangle) instead of text character */
.nav-links .nav-item > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.4;
  margin-left: 0.3rem;
  vertical-align: middle;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  transform: rotate(180deg);
  opacity: 0.7;
}

@keyframes navDropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.3rem;
  padding-top: 0.65rem;
  min-width: 180px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.2);
  z-index: 200;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
  animation: navDropIn 0.13s ease forwards;
}

.nav-links .nav-dropdown a {
  display: block;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: none;
  border-radius: 7px;
  background: transparent;
  white-space: nowrap;
}

.nav-links .nav-dropdown a:hover {
  color: var(--text);
  background: var(--surface2);
}

.nav-links .nav-dropdown a.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* --- Mobile nav --- */
@media (max-width: 780px) {
  nav { padding: 0 1rem; }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 400;
    margin-left: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    padding: 12px 11px;
  }

  /* Three bars → X morphing animation */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Slide-down panel with opacity/transform animation (no display flash) */
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 0.75rem 0.65rem;
    gap: 0;
    margin-right: 0;
    z-index: 190;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    /* Hidden state  -  animate with visibility + opacity instead of display */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .nav-links.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.7rem 0.5rem;
    width: 100%;
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    display: block;
    touch-action: manipulation;
  }

  /* Last direct <a> child has no bottom border */
  .nav-links > a:last-child { border-bottom: none; }

  .nav-item {
    display: block;
    width: 100%;
  }

  /* Hide the CSS chevron on mobile (sub-items always visible) */
  .nav-links .nav-item > a::after { display: none; }

  /* Providers link itself gets a bottom border on mobile */
  .nav-item > a { border-bottom: 1px solid var(--border); }

  /* Sub-nav always expanded and indented on mobile */
  .nav-dropdown {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: unset;
    animation: none !important;
  }

  .nav-links .nav-dropdown a {
    padding: 0.65rem 0.5rem 0.65rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 8px;
    border-bottom: 1px solid var(--border);
    width: 100%;
    white-space: normal;
    background: transparent;
  }

  .nav-links .nav-dropdown a:last-child { border-bottom: none; }
}

/* --- Layout --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.footer-version { opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 1rem;
  opacity: 0.7;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: none;
}

.footer-links a:hover { opacity: 1.4; color: var(--text); }

@media (max-width: 780px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .footer-links { gap: 0.75rem; flex-wrap: wrap; }
}

/* --- Shared info/legal section layout (used by info, terms, privacy) --- */
.info-section { margin-bottom: 2.5rem; }

.info-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.info-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.info-section p:last-child { margin-bottom: 0; }

.limit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.limit-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.6rem;
}
.limit-list li:last-child { border-bottom: none; }
.limit-list li::before { content: " - "; color: var(--text-muted); flex-shrink: 0; }

/* "Last updated" line inside disclaimer */
.disclaimer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.7;
  font-style: italic;
  margin-top: 1rem;
  margin-bottom: 0;
}

h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 1.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }

/* --- Stat cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.card .value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.card .sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.card.green .value { color: var(--green); }
.card.red .value   { color: var(--red); }
.card.blue .value  { color: var(--accent); }

/* --- Grid panels --- */
.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) { .panels { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

/* --- Tables --- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

th:hover { color: var(--text); }
th .sort-icon { margin-left: 4px; opacity: 0.5; }
th.sorted .sort-icon { opacity: 1; color: var(--accent); }

td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface2); }

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge.yes    { background: #14532d; color: var(--green); }
.badge.no     { background: #450a0a; color: var(--red); }
.badge.govt   { background: #1e3a5f; color: #7dd3fc; }
.badge.catholic { background: #3b1f63; color: #c4b5fd; }
.badge.independent { background: #1c3a2e; color: #6ee7b7; }
.badge.exceeding { background: #14532d; color: var(--green); }
.badge.meeting   { background: #1c3a5f; color: #7dd3fc; }
.badge.working   { background: #451a03; color: var(--amber); }
.badge.unknown   { background: var(--surface2); color: var(--text-muted); }

/* --- Filters bar --- */
.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  align-items: center;
}

.filters input, .filters select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  outline: none;
}

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

.filters input { min-width: 220px; }

.filters .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Loading / empty states --- */
.loading, .empty {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 0.9rem;
}

/* --- Scrollable table wrapper --- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

/* --- Provider type badges --- */
.badge.commercial  { background: #1e3a5f; color: #7dd3fc; }
.badge.council     { background: #14532d; color: var(--green); }
.badge.nfp         { background: #134e4a; color: #5eead4; }
.badge.diocesan    { background: #3b1f63; color: #c4b5fd; }
.badge.faith       { background: #451a03; color: var(--amber); }
.badge.indie       { background: #1c3a2e; color: #6ee7b7; }
.badge.govt-prov   { background: #1e293b; color: #94a3b8; }
.badge.small-com   { background: #292524; color: #a8a29e; }
.badge.pe-owned    { background: #4c1d1d; color: #fca5a5; }
.badge.founder-led { background: #14532d; color: #86efac; }

/* --- Light mode badge overrides --- */
body.light-mode .badge.yes         { background: #dcfce7; color: #15803d; }
body.light-mode .badge.no          { background: #fee2e2; color: #b91c1c; }
body.light-mode .badge.govt        { background: #dbeafe; color: #1e40af; }
body.light-mode .badge.catholic    { background: #ede9fe; color: #6d28d9; }
body.light-mode .badge.independent { background: #d1fae5; color: #065f46; }
body.light-mode .badge.exceeding   { background: #dcfce7; color: #15803d; }
body.light-mode .badge.meeting     { background: #dbeafe; color: #1e40af; }
body.light-mode .badge.working     { background: #fef3c7; color: #b45309; }
body.light-mode .badge.commercial  { background: #dbeafe; color: #1e40af; }
body.light-mode .badge.council     { background: #dcfce7; color: #15803d; }
body.light-mode .badge.nfp         { background: #ccfbf1; color: #0f766e; }
body.light-mode .badge.diocesan    { background: #ede9fe; color: #6d28d9; }
body.light-mode .badge.faith       { background: #fef3c7; color: #b45309; }
body.light-mode .badge.indie       { background: #d1fae5; color: #065f46; }
body.light-mode .badge.govt-prov   { background: var(--surface2); color: var(--text-muted); }
body.light-mode .badge.small-com   { background: #fafaf9; color: #57534e; }
body.light-mode .badge.pe-owned    { background: #fee2e2; color: #991b1b; }
body.light-mode .badge.founder-led { background: #dcfce7; color: #166534; }

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  align-items: flex-start;
  justify-content: center;
  padding: 68px 1rem 1rem;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.1rem; color: var(--text); margin: 0; }
.modal-header .meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 1rem;
  flex-shrink: 0;
}
.modal-close:hover { color: var(--text); }

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

.modal-section h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.modal-kv {
  display: grid;
  grid-template-columns: minmax(100px, 28%) 1fr;
  gap: 0.4rem 1.5rem;
  font-size: 0.85rem;
}
.modal-kv .k { color: var(--text-muted); }
.modal-kv .v { color: var(--text); }

/* --- QA ratings grid --- */
.qa-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.qa-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.qa-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.qa-label { flex: 1; color: var(--text-muted); }
.qa-label strong { display: block; color: var(--text); font-weight: 500; }

.qa-overall {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface2);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* --- Bar chart (CSS only) --- */
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.85rem;
}

.bar-row .bar-label { width: 140px; flex-shrink: 0; color: var(--text-muted); }
.bar-row .bar-track { flex: 1; min-width: 40px; height: 10px; background: var(--surface2); border-radius: 5px; overflow: hidden; }
.bar-row .bar-fill  { height: 100%; border-radius: 5px; background: var(--accent); transition: width 0.4s ease; }
.bar-row .bar-val   { width: 50px; text-align: right; font-size: 0.8rem; color: var(--text-muted); }

/* Subtitle line that sits under a bar row, indented to match bar-label width */
.bar-subtitle { font-size: 0.75rem; color: var(--text-muted); padding: 0 0 0.5rem 148px; }

@media (max-width: 480px) {
  .bar-row .bar-label { width: 100px; font-size: 0.75rem; }
  .bar-row .bar-val   { width: 36px; font-size: 0.75rem; }
  .bar-subtitle       { padding-left: 108px; }
}

/* --- NQS column tooltip --- */
th.has-tip { cursor: help; }
th.has-tip .col-tip { display: none; } /* text source only  -  shown via JS fixed tooltip */
#col-tooltip {
  display: none;
  position: fixed;
  top: 0; left: 0;
  transform: translateX(-50%);
  width: 280px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  z-index: 400;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  pointer-events: none;
}
#col-tooltip.visible { display: block; }

/* --- Anchor scroll offset (clears sticky nav) --- */
#type-section { scroll-margin-top: 72px; }

/* --- Mobile table scroll hint --- */
.mobile-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.35rem 0 0;
  opacity: 0.7;
  letter-spacing: 0.03em;
}
@media (max-width: 780px) {
  .mobile-scroll-hint { display: block; }
}

/* --- Inline fee chips in table --- */
.fee-chip {
  display: inline-block;
  font-size: 0.72rem;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 2px;
  white-space: nowrap;
}

/* === v1.7.0  -  Hero + Landing Components === */

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

/* --- Hero section --- */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}

html.light-mode .hero,
body.light-mode .hero {
  background: linear-gradient(135deg, #dde3ed 0%, #bfdbfe 100%);
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- CTA buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--accent-dim);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  transition: filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.1); color: #fff; }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--text-muted);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* --- Credibility strip --- */
.credibility-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cred-item strong { color: var(--text); }
.cred-icon { font-size: 1rem; }

/* --- Explore action cards --- */
.explore-cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}

.explore-cards > h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.action-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-dim);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.12);
  color: inherit;
}

.action-card .card-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.action-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin: 0; }
.action-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; margin: 0; flex: 1; }
.action-card .card-cta { font-size: 0.82rem; color: var(--accent-link); font-weight: 500; margin-top: 0.25rem; }

/* --- Methodology section --- */
.methodology {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.methodology-inner {
  max-width: 700px;
  margin: 0 auto;
}

.methodology h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.methodology p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Anchor scroll offsets --- */
#dashboard { scroll-margin-top: 72px; }
#methodology { scroll-margin-top: 72px; }

/* --- Info page disclaimer --- */
section.disclaimer-section {
  background: color-mix(in srgb, var(--amber) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 25%, var(--border));
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.info-section.disclaimer-section h2 {
  color: var(--amber);
  border-bottom-color: color-mix(in srgb, var(--amber) 30%, var(--border));
}
.disclaimer-section p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.disclaimer-section p:last-child { margin-bottom: 0; }

/* --- Mobile responsive (v1.7.0 additions) --- */
@media (max-width: 780px) {
  .hero { padding: 3rem 1.5rem; }
  .hero h1 { font-size: 1.5rem; }
  .card-row { grid-template-columns: 1fr; }
  .credibility-strip { gap: 1rem; }
}
