:root {
  /* gruvbox dark */
  --bg-hard:   #1d2021;
  --bg:        #282828;
  --bg-soft:   #32302f;
  --bg1:       #3c3836;
  --bg2:       #504945;
  --fg:        #ebdbb2;
  --fg-dim:    #bdae93;
  --fg-mute:   #928374;
  --yellow:    #fabd2f;
  --orange:    #fe8019;
  --orange-soft: #d65d0e;
  --green:     #b8bb26;
  --aqua:      #8ec07c;
  --blue:      #83a598;
  --purple:    #d3869b;
  --red:       #fb4934;

  --display: "Bitter", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 6px;
  --maxw: 1180px;
}

body.landing { --maxw: 1080px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-hard);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}

::selection { background: var(--yellow); color: var(--bg-hard); }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px;
}
code { overflow-wrap: anywhere; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-hard) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg1);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: var(--maxw); }
.wordmark { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--fg); letter-spacing: 0.02em; }
.wordmark .tilde { color: var(--green); }
.wordmark:hover { text-decoration: none; color: var(--yellow); }
.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 13.5px; color: var(--fg-dim);
  padding: 7px 12px; border-radius: var(--radius);
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg1); text-decoration: none; }
.nav-links a.active { color: var(--yellow); }
.nav-toggle { display: none; }

/* site-search: header search field + results dropdown (behavior lives in site-search/site-search.js) */
.site-search { position: relative; margin-left: auto; margin-right: 14px; width: min(240px, 30vw); }
.site-search input {
  width: 100%; padding: 4px 10px; font: 400 13px var(--mono); color: var(--fg-dim);
  background: var(--bg-hard); border: 1px solid var(--bg1); border-radius: var(--radius);
  outline: none; transition: background 0.15s ease, border-color 0.15s ease;
}
.site-search input::placeholder { color: var(--fg-mute); }
.site-search input:focus { background: var(--bg-soft); border-color: var(--aqua); color: var(--fg); }
.site-search ul {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 4px;
  background: var(--bg); border: 1px solid var(--bg2); border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-height: 60vh; overflow-y: auto;
}
.site-search li a {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 7px 10px; border-radius: 4px; text-decoration: none;
  font: 400 13px var(--mono); color: var(--fg);
}
.site-search li a:hover { background: var(--bg1); text-decoration: none; }
.site-search li a .cat { color: var(--fg-mute); font-size: 12px; white-space: nowrap; }
.site-search li.empty { padding: 7px 10px; font: 400 13px var(--mono); color: var(--fg-mute); }
@media (max-width: 480px) { .site-search { width: min(200px, 45vw); margin-right: 10px; } }

/* ---------- hero (landing / threat modeling) ---------- */
header.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(250,189,47,0.05), transparent),
    var(--bg-hard);
  border-bottom: 1px solid var(--bg1);
}
header.hero.hero-sm { padding: 64px 0 52px; }
.prompt {
  font-family: var(--mono); font-size: 13.5px;
  color: var(--fg-mute);
  margin-bottom: 28px;
}
.prompt .user { color: var(--aqua); }
.prompt .path { color: var(--blue); }
.prompt .cmd { color: var(--fg-dim); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.hero.hero-sm h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero h1 .cursor {
  display: inline-block;
  width: 0.55em; height: 0.82em;
  background: var(--yellow);
  margin-left: 0.12em;
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { max-width: 620px; font-size: 18px; color: var(--fg-dim); }
.hero-sub strong { color: var(--fg); font-weight: 600; }

.hero-tags {
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 10px;
  font-family: var(--mono); font-size: 12.5px;
}
.hero-tags span {
  color: var(--fg-mute);
  border: 1px solid var(--bg2);
  border-radius: 999px;
  padding: 4px 13px;
}
.hero-tags span::before { content: "\2713  "; color: var(--green); }

/* ---------- landing sections ---------- */
section.quick { padding: 84px 0 30px; }
section.note { padding: 72px 0 84px; }
.note-inner { max-width: 640px; border-top: 1px solid var(--bg1); padding-top: 48px; }
.note-inner p { color: var(--fg-dim); margin-bottom: 18px; font-size: 16px; }
.note-inner p:last-of-type { margin-bottom: 0; }
.note-inner em { color: var(--fg); font-style: normal; font-weight: 500; }
.sig { margin-top: 26px; font-family: var(--mono); font-size: 13.5px; color: var(--fg-mute); }

/* ---------- section labels ---------- */
.section-label {
  font-family: var(--mono); font-size: 13px; color: var(--fg-mute);
  margin: 52px 0 22px;
}
.section-label::before { content: "## "; color: var(--bg2); }
main .section-label:first-of-type, section .section-label:first-of-type { margin-top: 0; }
section.quick .section-label { margin: 0 0 28px; }

/* ---------- card grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  --accent: var(--yellow);
  background: var(--bg);
  border: 1px solid var(--bg1);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: var(--fg);
  display: block;
  transition: transform .15s, border-color .15s, background .15s;
}
.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  background: var(--bg-soft);
  border-color: var(--accent);
}
.card .tag {
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent);
  display: block; margin-bottom: 10px;
}
.card h3 {
  font-family: var(--display); font-weight: 600;
  font-size: 19px; margin-bottom: 8px;
}
.card p { font-size: 14.5px; color: var(--fg-dim); }

.c-yellow { --accent: var(--yellow); }
.c-orange { --accent: var(--orange); }
.c-blue   { --accent: var(--blue); }
.c-aqua   { --accent: var(--aqua); }
.c-green  { --accent: var(--green); }
.c-purple { --accent: var(--purple); }
.c-red    { --accent: var(--red); }

/* ---------- layout with sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  padding-top: 48px; padding-bottom: 80px;
}
main.content { padding-top: 48px; padding-bottom: 80px; flex: 1 0 auto; }

/* ---------- sidebar ---------- */
aside.cats {
  position: sticky; top: 84px; align-self: start;
  max-height: calc(100vh - 84px - 32px);
  max-height: calc(100dvh - 84px - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bg2) transparent;
}
.cats-toggle { display: none; }
aside.cats::-webkit-scrollbar { width: 6px; }
aside.cats::-webkit-scrollbar-thumb { background: var(--bg2); border-radius: 3px; }
aside.cats::-webkit-scrollbar-track { background: transparent; }
/* bottom fade hints that the list scrolls; scroll-driven so it only appears
   while there is more below (falls back to scrollbar-only where unsupported) */
aside.cats::after {
  content: "";
  position: sticky; bottom: 0;
  display: block; height: 28px; margin-top: -28px;
  background: linear-gradient(to bottom, transparent, var(--bg-hard));
  pointer-events: none;
  opacity: 0;
}
@supports (animation-timeline: scroll()) {
  aside.cats::after { animation: cats-fade linear both; animation-timeline: scroll(); }
}
@keyframes cats-fade { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
.cats .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 14px; padding-left: 12px;
}
.cats ul { list-style: none; }
.cats li a {
  --dot: var(--fg-mute);
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--fg-dim);
  padding: 8px 12px; border-radius: var(--radius);
  border-left: 2px solid transparent;
  transition: background .15s, color .15s;
}
.cats li a svg {
  width: 16px; height: 16px; flex-shrink: 0;
  color: var(--dot); opacity: 0.85;
}
.cats li a.current svg { opacity: 1; }
.cats li a:hover { background: var(--bg); color: var(--fg); text-decoration: none; }
.cats li a.current {
  background: var(--bg); color: var(--fg); font-weight: 500;
  border-left-color: var(--purple);
}

.d-yellow { --dot: var(--yellow); } .d-orange { --dot: var(--orange); }
.d-blue   { --dot: var(--blue);   } .d-aqua   { --dot: var(--aqua);   }
.d-green  { --dot: var(--green);  } .d-purple { --dot: var(--purple); }
.d-red    { --dot: var(--red);    } .d-mute   { --dot: var(--bg2);    }

.cats .divider { height: 1px; background: var(--bg1); margin: 14px 12px; }

/* ---------- main content ---------- */
main { min-width: 0; }

.crumb { font-family: var(--mono); font-size: 13px; color: var(--fg-mute); margin-bottom: 18px; }
.crumb a { color: var(--fg-mute); }
.crumb a:hover { color: var(--fg-dim); }
.crumb .sep { color: var(--bg2); margin: 0 6px; }
.crumb .here { color: var(--purple); }

main h1, .page-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.updated { font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute); margin-bottom: 26px; }
.updated b { color: var(--green); font-weight: 500; }

.intro { max-width: 640px; color: var(--fg-dim); font-size: 16.5px; margin-bottom: 12px; }
.intro strong { color: var(--fg); font-weight: 600; }

/* ---------- heads-up box ---------- */
.headsup {
  max-width: 720px;
  margin: 28px 0 44px;
  background: var(--bg);
  border: 1px solid var(--bg1);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px; color: var(--fg-dim);
}
.headsup .k {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--yellow);
  display: block; margin-bottom: 6px;
}
.headsup em { color: var(--fg); font-style: normal; font-weight: 500; }

/* ---------- criteria ---------- */
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; }
.criteria.three { grid-template-columns: repeat(3, 1fr); max-width: 980px; }
.crit {
  background: var(--bg); border: 1px solid var(--bg1); border-radius: var(--radius);
  padding: 16px 18px;
}
.crit h4 {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--aqua); margin-bottom: 5px;
}
.crit p { font-size: 14px; color: var(--fg-dim); }

/* ---------- provider entries ---------- */
.provider {
  background: var(--bg);
  border: 1px solid var(--bg1);
  border-left: 3px solid var(--accent, var(--purple));
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
}
main.content .provider { max-width: 820px; padding: 22px 24px; }
.p-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.p-head h3 { font-family: var(--display); font-weight: 600; font-size: 23px; }
.verdict {
  display: inline-flex; align-items: center;
  position: relative; top: -0.5px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--bg-hard);
  background: var(--accent, var(--purple));
  border-radius: 3px; padding: 2px 9px; line-height: 1.7;
  white-space: nowrap;
}
.meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--fg-mute);
  margin: 8px 0 16px;
}
.meta span { border: 1px solid var(--bg2); border-radius: 999px; padding: 2px 11px; }

.provider > p { color: var(--fg-dim); font-size: 15.5px; max-width: 680px; margin-bottom: 18px; }
.provider > p strong { color: var(--fg); font-weight: 600; }
.provider > p:last-child { margin-bottom: 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; }
.pros-cons h5 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 8px;
}
.pros h5 { color: var(--green); }
.cons h5 { color: var(--red); }
.pros-cons ul { list-style: none; }
.pros-cons li {
  font-size: 14.5px; color: var(--fg-dim);
  padding-left: 18px; position: relative; margin-bottom: 6px;
}
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-family: var(--mono); }
.cons li::before { content: "\2212"; position: absolute; left: 0; color: var(--red); font-family: var(--mono); }

.p-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--bg1);
  font-family: var(--mono); font-size: 13px; color: var(--fg-mute);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.p-foot .price b { color: var(--fg-dim); font-weight: 500; }

.a-purple { --accent: var(--purple); }
.a-aqua   { --accent: var(--aqua); }
.a-blue   { --accent: var(--blue); }
.a-green  { --accent: var(--green); }
.a-yellow { --accent: var(--yellow); }
.a-orange { --accent: var(--orange); }
.a-orange-soft { --accent: var(--orange-soft); }
.a-red    { --accent: var(--red); }

/* ---------- provider icon ---------- */
.p-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg2);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.p-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------- comparison table ---------- */
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bg2) var(--bg);
  border: 1px solid var(--bg1); border-radius: var(--radius);
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--bg2); border-radius: 4px; }
.table-scroll::-webkit-scrollbar-track { background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
thead th {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-mute); font-weight: 500;
  text-align: left; padding: 12px 16px;
  background: var(--bg); border-bottom: 1px solid var(--bg1);
}
tbody td { padding: 11px 16px; border-bottom: 1px solid var(--bg1); color: var(--fg-dim); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg) 55%, transparent); }
td.name { font-weight: 500; color: var(--fg); }
.yes { color: var(--green); font-family: var(--mono); }
.no  { color: var(--red); font-family: var(--mono); }
.part { color: var(--yellow); font-family: var(--mono); }
.t-note { font-family: var(--mono); font-size: 12px; color: var(--fg-mute); margin-top: 10px; }

/* ---------- worth knowing / prose ---------- */
.notes { max-width: 680px; }
.notes p { color: var(--fg-dim); font-size: 15.5px; margin-bottom: 16px; }
.notes p strong { color: var(--fg); font-weight: 600; }
.notes p code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg); border: 1px solid var(--bg1);
  border-radius: 3px; padding: 1px 6px; color: var(--orange);
}
.notes ul { list-style: none; margin-bottom: 16px; }
.notes ul li {
  font-size: 15px; color: var(--fg-dim);
  padding-left: 18px; position: relative; margin-bottom: 6px;
}
.notes ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--fg-mute); font-family: var(--mono); }

/* ---------- numbered steps ---------- */
.steps { counter-reset: step; list-style: none; max-width: 680px; }
.steps li {
  position: relative; padding-left: 44px; margin-bottom: 16px;
  color: var(--fg-dim); font-size: 15px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--yellow);
  border: 1px solid var(--bg2); border-radius: 50%;
}
.steps li strong { color: var(--fg); font-weight: 600; }
.provider .steps { margin-top: 4px; }
.provider .steps li { font-size: 14.5px; margin-bottom: 12px; }

/* ---------- checklist ---------- */
.checklist { list-style: none; max-width: 680px; }
.checklist li {
  font-size: 15px; color: var(--fg-dim);
  padding: 10px 16px 10px 44px; position: relative;
  background: var(--bg); border: 1px solid var(--bg1);
  border-radius: var(--radius); margin-bottom: 8px;
}
.checklist li::before {
  content: "[ ]"; font-family: var(--mono); font-size: 13px;
  color: var(--green); position: absolute; left: 14px; top: 11px;
}
.checklist li strong { color: var(--fg); font-weight: 600; }

/* ---------- changelog ---------- */
.log { max-width: 800px; }
.log-entry {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px;
  padding: 24px 0; border-bottom: 1px solid var(--bg1);
}
.log-entry:last-of-type { border-bottom: none; }
.log-date { font-family: var(--mono); font-size: 13px; color: var(--fg-mute); padding-top: 3px; }
.log-body h3 {
  font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.log-body p { font-size: 15px; color: var(--fg-dim); margin-bottom: 10px; max-width: 620px; }
.log-body p strong { color: var(--fg); font-weight: 600; }
.log-tag {
  display: inline-flex; align-items: center;
  position: relative; top: -0.5px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em;
  text-transform: uppercase; border-radius: 3px; padding: 2px 8px;
  border: 1px solid var(--bg2); color: var(--fg-dim);
  line-height: 1.7; white-space: nowrap;
}
.lt-add    { color: var(--green);  border-color: var(--green);  }
.lt-update { color: var(--yellow); border-color: var(--yellow); }
.lt-fix    { color: var(--blue);   border-color: var(--blue);   }
.log-links { font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--bg1); background: var(--bg-hard); padding: 30px 0; flex-shrink: 0; }
.foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; color: var(--fg-mute);
}
.foot .no { color: var(--fg-dim); }
.foot .no b { color: var(--green); font-weight: 500; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  aside.cats { position: static; max-height: none; overflow-y: visible; }
  aside.cats::after { content: none; }
  /* chips collapse behind a toggle to keep content above the fold */
  .cats-toggle {
    display: block; background: none; border: 1px solid var(--bg2);
    color: var(--fg-dim); font-family: var(--mono); font-size: 13px;
    padding: 6px 12px; border-radius: var(--radius); cursor: pointer;
  }
  .cats-toggle::after { content: " \25BE"; color: var(--fg-mute); }
  aside.cats.open .cats-toggle { margin-bottom: 14px; }
  aside.cats.open .cats-toggle::after { content: " \25B4"; }
  aside.cats:not(.open) .label,
  aside.cats:not(.open) ul { display: none; }
  .cats ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .cats li a { border: 1px solid var(--bg1); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; }
  .cats li a.current { border-color: var(--purple); }
  .cats li a svg { display: none; }
  .cats .divider { display: none; }
  .cats .label { padding-left: 2px; }
  .criteria, .criteria.three, .pros-cons { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--bg2);
    color: var(--fg-dim); font-family: var(--mono); font-size: 13px;
    padding: 6px 12px; border-radius: var(--radius); cursor: pointer;
  }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--bg1);
    padding: 10px 16px 16px;
  }
}
@media (max-width: 640px) {
  header.hero { padding: 64px 0 56px; }
  .grid { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 687px) {
  /* tables (min-width 640) always overflow at this width; fade the clipped
     edge as a scroll hint, retracting near the end where scroll() is supported */
  .table-scroll {
    --tfade: 28px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--tfade)), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - var(--tfade)), transparent);
  }
  @supports (animation-timeline: scroll(self inline)) {
    .table-scroll { animation: table-fade linear both; animation-timeline: scroll(self inline); }
  }
}
@keyframes table-fade { 0%, 90% { --tfade: 28px; } 100% { --tfade: 0px; } }

/* ---------- phone-width density (portrait phones only) ---------- */
@media (max-width: 480px) {
  /* headings were pinned at desktop clamp minimums; rescale fluidly */
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); line-height: 1.12; }
  .hero.hero-sm h1 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  main h1, .page-title { font-size: clamp(1.55rem, 7vw, 2rem); }
  .p-head h3 { font-size: 20px; }
  .card h3 { font-size: 18px; }
  .hero-sub { font-size: 16.5px; }
  .intro { font-size: 16px; }

  /* box padding proportionate to the narrow measure */
  .headsup { padding: 18px 20px; }
  main .provider { padding: 22px 18px; }
  thead th { padding: 10px 12px; }
  tbody td { padding: 9px 12px; }
}
