/* Streams Consulting Group: shared stylesheet. Token system per .context/design/04-typography-and-theme.md. */

:root {
  --bg:          oklch(0.985 0.005 80);
  --bg-elevated: oklch(0.995 0.003 80);
  --text:        oklch(0.20 0.010 260);
  --text-muted:  oklch(0.45 0.010 260);
  --rule:        oklch(0.85 0.005 80);
  --accent:      oklch(0.34 0.05 150);
  --accent-fg:   oklch(0.99 0.005 80);

  --font-serif:  'Spectral', Georgia, serif;
  --font-sans:   'Public Sans', system-ui, sans-serif;

  --type-xs:     0.75rem;
  --type-sm:     0.875rem;
  --type-base:   1.125rem;
  --type-md:     1.40625rem;
  --type-lg:     1.7578rem;
  --type-xl:     2.197rem;
  --type-2xl:    2.74rem;

  --line-tight:  1.2;
  --line-body:   1.55;
  --measure:     72ch;

  --gutter:      clamp(1rem, 4vw, 3rem);
}

:root[data-theme="dark"] {
  --bg:          oklch(0.16 0.008 80);
  --bg-elevated: oklch(0.20 0.008 80);
  --text:        oklch(0.93 0.008 80);
  --text-muted:  oklch(0.68 0.008 80);
  --rule:        oklch(0.30 0.005 80);
  --accent:      oklch(0.72 0.06 150);
  --accent-fg:   oklch(0.16 0.008 80);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          oklch(0.16 0.008 80);
    --bg-elevated: oklch(0.20 0.008 80);
    --text:        oklch(0.93 0.008 80);
    --text-muted:  oklch(0.68 0.008 80);
    --rule:        oklch(0.30 0.005 80);
    --accent:      oklch(0.72 0.06 150);
    --accent-fg:   oklch(0.16 0.008 80);
  }
  :root:not([data-theme="light"]) body { line-height: calc(var(--line-body) + 0.05); }
}

:root[data-theme="dark"] body { line-height: calc(var(--line-body) + 0.05); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: var(--type-base);
  line-height: var(--line-body);
  font-feature-settings: "kern", "liga", "onum";
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; }

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem var(--gutter) 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  align-items: baseline;
}
.wordmark {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.25rem, 1.0rem + 0.8vw, 1.6rem);
  letter-spacing: -0.005em;
  line-height: 1;
}
.wordmark a { color: var(--text); text-decoration: none; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  justify-self: end;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  letter-spacing: 0.01em;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom: 2px solid var(--text);
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr; }
  .site-nav { justify-self: start; }
}

/* Main */

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter) 5rem;
}

main.wide { max-width: 72rem; }

h1, h2, h3, h4 { line-height: var(--line-tight); }

/* rehype-autolink-headings emits `<a class="anchor"><svg class="anchor-icon">…` */
/* after every heading text node. Hide by default; reveal on heading hover/focus  */
/* so the permalink is reachable but doesn't visually clutter the brochure.       */
h1, h2, h3, h4, h5, h6 { position: relative; }
.anchor {
  opacity: 0;
  margin-left: 0.35rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: opacity 120ms ease;
}
.anchor:focus-visible { opacity: 1; outline: 2px solid var(--accent); outline-offset: 3px; }
h1:hover .anchor,
h2:hover .anchor,
h3:hover .anchor,
h4:hover .anchor,
h5:hover .anchor,
h6:hover .anchor { opacity: 1; }
.anchor-icon { width: 0.7em; height: 0.7em; vertical-align: middle; }
@media (hover: none) {
  /* Touch devices have no hover; keep permalinks invisible to avoid the   */
  /* "always-on visual chrome" the heading hover gesture is designed to    */
  /* gate. Users on touch reach the anchor via the URL bar or share sheet. */
  .anchor { display: none; }
}

h1 {
  font-size: clamp(1.9rem, 1.3rem + 1.8vw, var(--type-2xl));
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  max-width: 26ch;
}
.page-subtitle {
  font-family: var(--font-sans);
  font-size: var(--type-md);
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin: -1rem 0 2rem;
  max-width: 36ch;
}
h2 {
  font-size: var(--type-lg);
  font-weight: 500;
  margin: 3.5rem 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
h3 {
  font-size: var(--type-md);
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
}
h4 {
  font-size: var(--type-base);
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}

p { max-width: var(--measure); margin: 0 0 1.25em; }
ul, ol { max-width: var(--measure); margin: 0 0 1.25em; padding-left: 1.5rem; }
li { margin-bottom: 0.35em; }
em { font-style: italic; }
strong { font-weight: 700; }

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Selected work, Home page */

.selected-work {
  list-style: none;
  padding: 0;
  max-width: 36rem;
  margin: 0 0 2rem;
}
.selected-work li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}
.selected-work li:last-child { border-bottom: 0; }
.selected-work a {
  text-decoration: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
}
.selected-work .client { font-weight: 500; }
.selected-work .where { color: var(--text-muted); font-family: var(--font-sans); font-size: var(--type-sm); }
.selected-work a:hover .client { text-decoration: underline; text-decoration-color: var(--accent); }

/* Principal cards */

.principals-grid {
  display: grid;
  gap: 3rem 2.5rem;
  margin: 1.5rem 0;
}
.principal {
  padding: 0;
}
.principal.senior {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.principal h2, .principal h3 { border: 0; margin-top: 0; padding-bottom: 0; }
.principal h2 a, .principal h3 a { text-decoration: none; }
.principal h2 a:hover, .principal h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.principal .role {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.principal p { margin-bottom: 1rem; }

.principals-grid .supporting {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 2.5rem;
  padding-top: 1rem;
}
.principals-grid .supporting .principal { padding-bottom: 0; border-bottom: 0; }

/* Specs strip (per-project) */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 1.5rem 0 2.5rem;
}
.specs > div { min-width: 0; }
.specs dt {
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.specs dd {
  margin: 0;
  font-size: var(--type-base);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.specs dd .address-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  letter-spacing: 0.01em;
}

.attribution {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  margin: 1rem 0;
}

.project-hero {
  margin: 0 0 2.5rem;
  max-width: var(--measure);
}
.project-hero img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  background: var(--bg-elevated);
}
.project-hero figcaption {
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.sources-list {
  list-style: none;
  padding: 0;
  max-width: var(--measure);
  margin: 1rem 0 2rem;
}
.sources-list li {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.sources-list li:last-child { border-bottom: 0; }
.sources-list li a { text-decoration: none; }
.sources-list li a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.source-note {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  border-left: 1px solid var(--rule);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 2rem 0;
  max-width: var(--measure);
}

/* Project list (Projects index) */

.project-filters {
  margin: 1.5rem 0 2.5rem;
}
.project-filters .filter-group {
  margin: 0 0 1.25rem;
  display: grid;
  grid-template-columns: minmax(8rem, 9rem) 1fr;
  gap: 0.75rem 1.5rem;
  align-items: start;
}
.project-filters .filter-label {
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0.45rem 0 0;
  line-height: 1;
}
.project-filters .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
@media (max-width: 720px) {
  .project-filters .filter-group {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .project-filters .filter-label { margin-top: 0; }
}
.project-filters button {
  font: inherit;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--rule);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.project-filters button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.project-filters button:hover { border-color: var(--text); }
.project-filters button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project-filters .reset {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  background: transparent;
  border: 0;
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.project-count {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.project-list li {
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 1.5rem;
}
.project-list li:first-child { border-top: 1px solid var(--rule); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr) auto auto auto;
  gap: 0.4rem 1.5rem;
  padding: 1rem 0;
  align-items: baseline;
  text-align: left;
  background: transparent;
  border: 0;
  width: 100%;
  font: inherit;
  font-family: var(--font-serif);
  color: var(--text);
  cursor: pointer;
}
.project-row:hover .client { text-decoration: underline; text-decoration-color: var(--accent); }
.project-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.project-row .client { font-weight: 500; font-size: var(--type-base); }
.project-row .meta {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.project-row .led {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.1rem;
}
/* Keep each principal name as a single line-break unit so wrapping happens
 * between names (after the comma) rather than mid-name. */
.name {
  white-space: nowrap;
}

.project-detail {
  display: none;
  padding: 0.5rem 0 1.5rem;
  border-top: 1px dashed var(--rule);
  margin-top: -1px;
}
.project-detail.open { display: block; }
.project-detail p { font-size: var(--type-base); margin: 0.75rem 0; }
.project-detail .visit-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .project-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
  }
  .project-row .meta { white-space: normal; }
}

/* Map page */

.map-page {
  position: relative;
  margin: 1rem 0 2rem;
}
.map-page svg {
  width: 100%;
  height: auto;
  max-width: 64rem;
  margin: 0 auto;
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
}
.map-page .state {
  fill: var(--bg);
  stroke: var(--rule);
  stroke-width: 0.6;
  stroke-linejoin: round;
}
.map-page .state-label {
  fill: var(--text-muted);
  opacity: 0.55;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  user-select: none;
}
.map-page .pin {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 1.5;
  cursor: pointer;
  transition: r 90ms ease-out;
}
.map-page .pin:hover,
.map-page .pin:focus,
.map-page .pin.active {
  fill: var(--text);
  r: 8;
  outline: none;
}
.map-page .pin:focus-visible {
  stroke: var(--accent);
  stroke-width: 2.5;
}

/* Pin popup */
.map-popup {
  position: absolute;
  max-width: 22rem;
  background: var(--bg);
  border: 1px solid var(--text);
  padding: 1rem 1.25rem 0.9rem;
  font-size: var(--type-sm);
  line-height: 1.45;
  z-index: 10;
  box-shadow: 0 1px 0 var(--rule), 0 12px 28px -16px oklch(0 0 0 / 0.25);
}
.map-popup[hidden] { display: none; }
.map-popup-close {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.map-popup-close:hover { color: var(--text); }
.map-popup-client {
  font-family: var(--font-serif);
  font-size: var(--type-md);
  font-weight: 500;
  margin: 0 0 0.1rem;
  padding-right: 1.5rem;
}
.map-popup-location {
  font-family: var(--font-sans);
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.map-popup-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0 0 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
}
.map-popup-specs > div { min-width: 0; }
.map-popup-specs dt {
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.1rem;
}
.map-popup-specs dd {
  font-family: var(--font-sans);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.map-popup-action {
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--rule);
}
.map-popup-action a {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  letter-spacing: 0.01em;
}
.map-popup.no-page .map-popup-action { display: none; }

/* Forms */

form { max-width: 36rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.5rem; }
.form-field label {
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 6rem; }
.form-field .hint {
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
}
.form-field.required label::after {
  content: ' *';
  color: var(--accent);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
}
.radio-group label { display: flex; gap: 0.4rem; align-items: center; color: var(--text); }
.radio-group input { accent-color: var(--accent); }

.submit {
  font: inherit;
  font-family: var(--font-serif);
  font-size: var(--type-base);
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  letter-spacing: 0.005em;
}
.submit:hover { border-color: var(--accent); color: var(--accent); }
.submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: end;
  max-width: 72rem;
  margin: 4rem auto 0;
}
.site-footer p { margin: 0 0 0.5em; max-width: none; }
.site-footer a { color: inherit; }
.site-footer .legal { font-size: var(--type-xs); color: var(--text-muted); }
.theme-toggle {
  font: inherit;
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  justify-self: end;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  .site-footer { grid-template-columns: 1fr; }
  .theme-toggle { justify-self: start; }
}

/* Utility */

.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }
.sans   { font-family: var(--font-sans); font-size: var(--type-sm); }
.lead   { font-size: var(--type-md); max-width: 36em; }
.tag    {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--type-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 0.1rem 0.45rem;
  margin-right: 0.4rem;
}

/* SPA — bookmark nav shared by the single-page home and the /spa-compare/ review surface */

body.spa.compare main { max-width: 80rem; }

.spa-contents {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  color: var(--text-muted);
  padding-bottom: 1rem;
  margin: 0 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.spa-contents a { text-decoration: none; padding: 0.25rem 0; }
.spa-contents a:hover { color: var(--text); }
.spa-contents-out {
  margin-left: auto;
  font-weight: 500;
  color: var(--text);
}

/* SPA homepage — bookmark-nav anchors land on each h2 (rehype-slug assigns IDs) */

body.spa h2 { scroll-margin-top: 1.5rem; }

.spa-compare {
  margin-top: 1rem;
}

.spa-compare-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  margin: 0 0 0.5rem;
  padding: 1rem 0 0.5rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 5;
}
.spa-compare-head > .spa-compare-col-label:first-child { padding-right: 1.5rem; }
.spa-compare-head > .spa-compare-col-label + .spa-compare-col-label { padding-left: 1.5rem; }
.spa-compare-col-label {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-sans);
  font-size: var(--type-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.spa-compare-col-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--type-xs);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0;
}

.spa-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 0.5rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
}
.spa-compare-row:last-child { border-bottom: 0; }
.spa-compare-row > h3 {
  grid-column: 1 / -1;
  margin: 0.5rem 0 1rem;
  padding: 0;
  font-family: var(--font-serif);
  font-size: var(--type-lg);
  font-weight: 500;
  scroll-margin-top: 4.5rem;
}

.spa-compare-cell {
  min-width: 0;
  padding-right: 1.5rem;
}
.spa-compare-cell + .spa-compare-cell {
  padding-right: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rule);
}
.spa-compare-cell > *:first-child { margin-top: 0; }
.spa-compare-cell > *:last-child  { margin-bottom: 0; }
.spa-compare-cell p,
.spa-compare-cell ul,
.spa-compare-cell ol { max-width: none; }
.spa-compare-cell h4 {
  font-family: var(--font-serif);
  font-size: var(--type-base);
  font-weight: 500;
  margin: 1.5rem 0 0.4rem;
}
.spa-compare-cell ul { padding-left: 1.25rem; }
.spa-compare-cell ul li { margin-bottom: 0.5em; }

@media (max-width: 900px) {
  body.spa main { max-width: 56rem; }
  .spa-compare-head,
  .spa-compare-row { grid-template-columns: 1fr; column-gap: 0; }
  .spa-compare-head {
    row-gap: 0.5rem;
    position: static;
    background: transparent;
  }
  .spa-compare-head > .spa-compare-col-label:first-child,
  .spa-compare-head > .spa-compare-col-label + .spa-compare-col-label { padding: 0; }
  .spa-compare-row { row-gap: 0; }
  .spa-compare-cell { padding-right: 0; }
  .spa-compare-cell + .spa-compare-cell {
    padding-left: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-left: 0;
    border-top: 1px dashed var(--rule);
  }
}

/* Print: keep the read */

@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .project-filters, .theme-toggle { display: none; }
}
