/* ======================================================
   Chandrashekhar Chawan Dossier — Full Mobile-Compat CSS
   ====================================================== */

:root {
  --bg: #070b14;
  --bg2: #0b1120;
  --card: #101a2c;
  --card2: #0d1524;
  --ink: #e8eef7;
  --muted: #93a9c4;
  --line: rgba(147, 169, 196, 0.18);
  --accent: #35c6f4;
  --gold: #f0b429;
  --gA: #34d399;
  --gB: #fbbf24;
  --gC: #f87171;
  --radius: 16px;
  --wrap: 1180px;
  --nav-h: 56px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

h1, h2, h3, h4, .brand, .num {
  font-family: "Space Grotesk", Inter, sans-serif;
}

/* Container */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ PROGRESS BAR ============ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 999;
}

/* ============ TOPBAR ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: var(--nav-h);
  background: rgba(7, 11, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-left: auto;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--card);
}

.nav a.active {
  color: #04121c;
  background: var(--accent);
  font-weight: 600;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 30% 40%, rgba(7, 11, 20, 0.2), var(--bg) 78%);
}

.hero-inner {
  position: relative;
  width: 100%;
  padding: 100px 0 60px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(36px, 8vw, 84px);
  line-height: 1.04;
  font-weight: 700;
  margin: 0 0 4px;
}

h1 span {
  color: var(--accent);
}

.postnom {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.25em;
  font-size: 13px;
  margin-bottom: 14px;
}

.lede {
  max-width: 780px;
  font-size: clamp(15px, 2vw, 19px);
  color: #cfdcec;
  line-height: 1.7;
  margin: 16px 0 8px;
}

.loc {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 28px;
}

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0 0 28px;
}

.stat {
  background: rgba(16, 26, 44, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 6px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stat b {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(18px, 3vw, 34px);
  color: var(--accent);
  line-height: 1.15;
}

.stat span {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 4px;
  line-height: 1.3;
}

/* Key (grade legend) */
.key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.key span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 460px;
}

.key .grade {
  margin-top: 1px;
  flex-shrink: 0;
}

/* Filter bar */
.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.filterbar > span {
  font-weight: 500;
  margin-right: 2px;
}

.fbtn {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 12.5px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.fbtn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.fbtn.active {
  background: var(--accent);
  color: #04121c;
  border-color: var(--accent);
  font-weight: 600;
}

#filterNote {
  font-style: italic;
  opacity: 0.8;
  font-size: 12.5px;
}

/* ============ GRADE BADGES ============ */
.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font: 700 11px/1 "Space Grotesk";
  font-style: normal;
  color: #06111c;
  flex-shrink: 0;
  vertical-align: middle;
  position: relative;
}

.gA { background: var(--gA); }
.gB { background: var(--gB); }
.gC { background: var(--gC); }

.grade[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: #04101c;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 8px;
  font: 400 12px Inter;
  white-space: nowrap;
  z-index: 20;
  pointer-events: none;
}

/* ============ SECTIONS ============ */
.sec {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.sec.alt {
  background: var(--bg2);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.num {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.18em;
  font-weight: 700;
  flex-shrink: 0;
}

.sec-head h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.1;
}

.sec-head p {
  color: var(--muted);
  width: 100%;
  margin-top: 2px;
  font-size: 14.5px;
}

.intro {
  color: var(--muted);
  max-width: 860px;
  margin-bottom: 24px;
  font-size: 14.5px;
  line-height: 1.7;
}

.sub {
  margin: 32px 0 14px;
  font-size: 20px;
  color: var(--gold);
  line-height: 1.3;
}

/* ============ GRID ============ */
.grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

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

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

/* ============ CARDS ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  margin-top: 0;
  color: var(--ink);
  line-height: 1.35;
}

.card .mini + h3,
.card ul.mini + h3 {
  margin-top: 18px;
}

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

.card .fine {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 8px;
}

.card code {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--gold);
  background: rgba(240, 180, 41, 0.08);
  border: 1px solid rgba(240, 180, 41, 0.25);
  padding: 6px 10px;
  border-radius: 8px;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* Image cards */
.imgcard {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.imgcard img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.imgcard h3,
.imgcard p {
  padding: 0 18px;
}

.imgcard h3 {
  margin: 16px 0 8px;
}

.imgcard p {
  padding-bottom: 18px;
  flex: 1 1 auto;
}

/* Tag label on cards */
.tag {
  display: inline-block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.card.good {
  border-color: rgba(52, 211, 153, 0.35);
}

.card.bad {
  border-color: rgba(248, 113, 113, 0.35);
}

/* ============ LISTS ============ */
.list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.list li strong {
  color: var(--ink);
}

.list li .grade {
  margin-top: 2px;
  flex-shrink: 0;
}

.mini {
  margin: 6px 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mini strong {
  color: var(--ink);
}

/* Chips (tags) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.chips + h3 {
  margin-top: 18px;
}

.chips span {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* ============ TABLES ============ */
.tablewrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.tablewrap::-webkit-scrollbar {
  height: 6px;
}

.tablewrap::-webkit-scrollbar-track {
  background: transparent;
}

.tablewrap::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 600px;
}

th {
  background: var(--card);
  text-align: left;
  padding: 11px 14px;
  color: var(--gold);
  font: 600 12px Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
  line-height: 1.5;
}

td:first-child {
  color: var(--ink);
  font-weight: 500;
}

tbody tr:hover {
  background: rgba(53, 198, 244, 0.04);
}

/* ============ TIMELINE ============ */
.timeline {
  position: relative;
  margin-top: 30px;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), var(--gold));
}

.tl {
  position: relative;
  margin-bottom: 18px;
}

.tl::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-sizing: content-box;
}

.tl-date {
  font: 600 11.5px "Space Grotesk", Inter, sans-serif;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 5px;
}

.tl-body h4 {
  font-size: 15px;
  margin-bottom: 5px;
  line-height: 1.35;
  color: var(--ink);
}

.tl-body p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ============ CALLOUTS, QUOTE, BANNER ============ */
.callout {
  margin-top: 16px;
  background: rgba(53, 198, 244, 0.06);
  border: 1px solid rgba(53, 198, 244, 0.25);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.callout strong {
  color: var(--ink);
}

.callout.warn {
  background: rgba(240, 180, 41, 0.06);
  border-color: rgba(240, 180, 41, 0.3);
  border-left-color: var(--gold);
}

.quote {
  margin: 24px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--gold);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.5;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 10px;
  font: 400 13px Inter, sans-serif;
  color: var(--muted);
}

.banner {
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.banner figcaption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
  line-height: 1.4;
}

/* ============ TABS ============ */
.tabbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.tbtn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font: 500 13px Inter, sans-serif;
  transition: all 0.2s ease;
}

.tbtn:hover {
  border-color: var(--accent);
}

.tbtn.active {
  background: var(--accent);
  color: #04121c;
  border-color: var(--accent);
  font-weight: 600;
}

.tabpanel {
  display: none;
}

.tabpanel.active {
  display: block;
  animation: fade 0.35s ease;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============ ACCORDIONS ============ */
.acc {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.acc summary {
  cursor: pointer;
  padding: 14px 20px;
  font: 600 14.5px "Space Grotesk", Inter, sans-serif;
  color: var(--ink);
  list-style: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.acc[open] summary::after {
  content: "–";
}

.acc .mini {
  padding: 0 20px 18px 38px;
}

/* ============ VERIFICATION DONUT ============ */
.verify {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin: 28px 0;
}

.donut {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--gA) 0% 34%, var(--gB) 34% 78%, var(--gC) 78% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donut-hole {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-hole b {
  font: 700 28px "Space Grotesk", Inter, sans-serif;
  color: var(--gA);
}

.donut-hole span {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vlegend {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.vlegend li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vlegend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.vlegend b {
  color: var(--ink);
}

.vlegend .fine {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
}

/* ============ SOURCES ============ */
.sources {
  margin: 18px 0 0 0;
  color: var(--muted);
  font-size: 13.5px;
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources li {
  padding-left: 4px;
  line-height: 1.55;
}

.sources a {
  word-break: break-all;
  overflow-wrap: break-word;
}

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--line);
  background: #05080f;
  padding: 36px 0 50px;
  color: var(--muted);
  font-size: 13px;
}

.foot p {
  margin-bottom: 10px;
  max-width: 900px;
  line-height: 1.65;
}

.foot .fine {
  font-size: 11.5px;
  opacity: 0.7;
}

.totop {
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.totop:hover {
  background: var(--accent);
  color: #04121c;
}

/* ============ REVEAL + DIM ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.dimmed {
  opacity: 0.18;
  filter: grayscale(0.7);
}

tr.dimmed {
  opacity: 0.25;
}

/* ============ RESPONSIVE ============ */
/* Tablet landscape */
@media (max-width: 1100px) {
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* Tablet portrait */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 90px 0 50px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .stat {
    padding: 12px 4px;
  }

  .stat b {
    font-size: clamp(16px, 4vw, 28px);
  }

  .sec {
    padding: 52px 0;
  }

  .banner img {
    height: 220px;
  }
}

/* Phone landscape + small tablet */
@media (max-width: 760px) {
  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }

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

  .key span {
    width: 100%;
    max-width: 100%;
  }

  .filterbar {
    gap: 6px;
  }

  .fbtn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .verify {
    justify-content: center;
  }

  .donut {
    width: 170px;
    height: 170px;
  }

  .donut-hole {
    width: 105px;
    height: 105px;
  }

  .donut-hole b {
    font-size: 24px;
  }

  .quote {
    padding: 18px 20px;
    font-size: 17px;
  }
}

/* Phone portrait */
@media (max-width: 680px) {
  .topbar {
    padding: 0 14px;
    gap: 8px;
  }

  .wrap {
    padding: 0 14px;
  }

  .menu-btn {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    display: none;
    gap: 4px;
    z-index: 200;
    justify-content: flex-start;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    width: 100%;
  }

  .hero-inner {
    padding: 70px 0 40px;
  }

  h1 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .postnom {
    letter-spacing: 0.15em;
    font-size: 12px;
  }

  .lede {
    font-size: 15px;
  }

  .stat b {
    font-size: clamp(16px, 7vw, 26px);
  }

  .stat span {
    font-size: 10px;
  }

  .sec {
    padding: 44px 0;
  }

  .sec-head h2 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .sec-head p {
    font-size: 13.5px;
  }

  .intro {
    font-size: 14px;
  }

  .card {
    padding: 16px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 13.5px;
  }

  .imgcard img {
    height: 170px;
  }

  .imgcard h3,
  .imgcard p {
    padding: 0 14px;
  }

  .imgcard h3 {
    margin: 14px 0 6px;
  }

  .imgcard p {
    padding-bottom: 14px;
  }

  .callout {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .banner img {
    height: 180px;
  }

  .timeline {
    padding-left: 18px;
  }

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

  .tl::before {
    left: -19px;
    width: 10px;
    height: 10px;
    border-width: 2.5px;
  }

  .tl-body {
    padding: 12px 14px;
  }

  .tl-body h4 {
    font-size: 14px;
  }

  .tl-body p {
    font-size: 13px;
  }

  .sub {
    font-size: 18px;
    margin: 26px 0 12px;
  }

  .tabbar {
    gap: 4px;
  }

  .tbtn {
    padding: 8px 12px;
    font-size: 12.5px;
  }

  table {
    font-size: 12.5px;
    min-width: 500px;
  }

  th,
  td {
    padding: 9px 10px;
  }

  .list li {
    padding: 10px 12px;
    font-size: 13.5px;
  }

  .mini {
    font-size: 13px;
    margin-left: 14px;
  }

  .chips span {
    font-size: 11.5px;
    padding: 4px 10px;
  }

  .foot {
    padding: 28px 0 40px;
    font-size: 12.5px;
  }

  .sources {
    font-size: 13px;
    padding-left: 18px;
  }

  .acc summary {
    padding: 12px 16px;
    font-size: 14px;
  }

  .acc .mini {
    padding: 0 16px 16px 30px;
  }

  .grade[data-tip]:hover::after {
    display: none;
  }
}

/* Very small phones */
@media (max-width: 420px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .stat {
    padding: 10px 4px;
  }

  .stat b {
    font-size: clamp(15px, 8vw, 22px);
  }

  .stat span {
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .fbtn {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .key {
    gap: 8px 14px;
    font-size: 12px;
  }

  .key span {
    max-width: 100%;
  }

  .eyebrow {
    font-size: 11px;
  }

  table {
    font-size: 12px;
    min-width: 400px;
  }

  th,
  td {
    padding: 7px 8px;
  }

  .card {
    padding: 14px;
  }

  h1 {
    font-size: clamp(26px, 9vw, 40px);
  }

  .donut {
    width: 150px;
    height: 150px;
  }

  .donut-hole {
    width: 92px;
    height: 92px;
  }

  .donut-hole b {
    font-size: 22px;
  }
}

/* ============ PREFERS REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}