/* ForgeRepo, on top of the shared stylesheet.
   Only what this site adds, so site.css stays a plain copy of the family file
   and can be swapped without losing anything here. */

/* ------------------------------------------------------------- diagrams
   drawn from the portal's own docs, same classes, our colors */
.dgm { width: 100%; height: auto; display: block; }
.dgm-node { fill: var(--bg-raised); stroke: var(--line-strong); stroke-width: 1.2; }
.dgm-node.client { fill: var(--brand-soft); stroke: var(--brand); }
.dgm-node.registry { fill: var(--brand); stroke: var(--brand); }
.dgm-node.outside { fill: var(--bg-sunken); stroke: var(--line-strong); }
.dgm-node.decision { fill: var(--warn-soft); stroke: var(--warn); }
.dgm-node.good { fill: var(--ok-soft); stroke: var(--ok); }
.dgm-node.bad { fill: var(--bad-soft); stroke: var(--bad); }
.dgm-text { font-size: 13px; fill: var(--fg-strong); font-family: var(--font-sans); }
.dgm-text.on-dark { fill: #ffffff; font-weight: 600; }
.dgm-edge { stroke: var(--fg-faint); stroke-width: 1.4; }
.dgm-edge.bad { stroke: var(--bad); stroke-dasharray: 5 4; }
.dgm-edge.good { stroke: var(--ok); }
.dgm-arrowhead { fill: var(--fg-faint); }
.dgm-edge-label { font-size: 11px; fill: var(--fg-muted); font-family: var(--font-sans); }

figure.diagram { margin: var(--sp-5) 0 var(--sp-6); }
figure.diagram figcaption { font-size: var(--step--1); color: var(--fg-muted); margin-top: var(--sp-2); }
.diagram-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-1);
  margin: 0;
}
/* small screens get a sideways scroll rather than 9px text */
@media (max-width: 640px) {
  figure.diagram { overflow-x: auto; }
  figure.diagram .dgm { min-width: 620px; }
}

/* -------------------------------------------------- docs screenshots
   numbered marks, positioned in percent so they follow the image */
.doc-shot { margin: var(--sp-5) 0 var(--sp-6); }
.doc-shot-img { position: relative; display: inline-block; max-width: 100%; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: visible; box-shadow: var(--shadow-1); background: #fff; }
.doc-shot-img .frame-zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.doc-shot-img img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.shot-mark { position: absolute; border: 2px solid var(--bad); border-radius: 4px;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--bad) 18%, transparent); pointer-events: none; }
.shot-mark b { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bad); color: #fff; font-size: 12px; line-height: 22px; text-align: center; font-weight: 700; }
.shot-legend { font-size: var(--step--1); margin: var(--sp-3) 0 0; color: var(--fg-muted); }
.doc-shot figcaption { font-size: var(--step--1); color: var(--fg-muted); margin-top: var(--sp-2); }

/* --------------------------------------------------- static terminals */
.term-static .term-body { white-space: pre-wrap; word-break: break-word; margin: 0; max-height: 460px;
  font-size: .8rem; line-height: 1.55; }
.term-static .t-out { color: #b8c0d4; }
.term-static .t-cmd { color: #ffffff; font-weight: 600; }
.code-file { font-family: var(--font-mono); font-size: var(--step--2); color: var(--fg-faint); margin: var(--sp-4) 0 -.4rem; }
.see-also { font-size: var(--step--1); border-top: 1px solid var(--line); padding-top: var(--sp-4); margin-top: var(--sp-6); }

/* ------------------------------------------------------- docs index list */
.howto-link { display: flex; align-items: flex-start; gap: .75rem; padding: .95rem 1.15rem;
  text-decoration: none; color: inherit; }
.howto-link .howto-title { font-weight: 580; color: var(--fg-strong); }
.howto-link .howto-sum { display: block; font-size: var(--step--1); color: var(--fg-muted); font-weight: 400; margin-top: .15rem; }
.howto-link:hover .howto-title { color: var(--brand); }
.howto .howto-arrow { margin-left: auto; color: var(--fg-faint); flex: none; }
.howto .howto-arrow svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------ compare */
.stars i { font-style: normal; }
.vendor-price td:first-child { white-space: nowrap; font-weight: 600; color: var(--fg-strong); }
.pick-grid .card h3 { display: flex; align-items: center; gap: .5rem; }
.src { font-size: var(--step--2); color: var(--fg-faint); }
.src a { color: inherit; }
.verdict-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-4) 0; }

/* ------------------------------------------------------------ misc */
.logo-strip .chip { cursor: default; }
.feature-points li { margin-bottom: .35rem; }
.feature-points li::marker { color: var(--brand); }
.hero .lead code, .card code { font-size: .88em; }
.kbd-cmd { font-family: var(--font-mono); font-size: var(--step--1); }

/* grid children default to min-width:auto, so one wide diagram or table
   pushed the whole column past the screen on phones */
.split > *, .doc-layout > *, .hero-inner > *, .grid > * { min-width: 0; }
.player-controls { flex-wrap: wrap; }

/* the shared grids auto-fit, so a grid-3 became four across on a wide wrap and
   left one lonely card on the last row. pin them to what they say */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* inline icons in headings, the bare svg has no size of its own */
h2 > svg, h3 > svg, h4 > svg { width: 1.05em; height: 1.05em; vertical-align: -0.14em; margin-right: .35rem;
  color: var(--brand); flex: none; }

/* the file a code block belongs in, as a little tab on top of it */
.code-file { display: inline-block; margin: var(--sp-4) 0 0; padding: .3rem .7rem; background: var(--code-bg);
  color: #aab3c8; border-radius: 8px 8px 0 0; font-size: var(--step--2); }
.code-file + pre { margin-top: 0; border-top-left-radius: 0; }

/* our row in a table */
tr.col-us > td, tr.col-us > th { background: color-mix(in oklab, var(--brand) 7%, var(--bg-raised)); }

/* background-clip text trims the last glyph of an italic-ish heavy font */
.gradient-text { padding-right: .08em; margin-right: -.08em; }

/* ------------------------------------------------------------- mega menu
   buttons in the header, a full width panel under it, one open at a time */
.mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 530;
  color: var(--fg-muted);
  background: none;
  border: 0;
  padding: 0.45rem 0.6rem 0.45rem 0.75rem;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.mega-btn:hover, .mega-btn[aria-expanded="true"] { color: var(--fg-strong); background: var(--bg-inset); }
.mega-btn.active { color: var(--fg-strong); background: var(--brand-soft); }
.mega-btn .chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.mega-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  animation: mega-in 0.14s ease-out;
}
.mega[hidden] { display: none; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.site-header.mega-open { border-bottom-color: var(--line); }
.mega-inner {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  padding: var(--sp-5) 0 var(--sp-6);
  display: grid;
  gap: var(--sp-5) var(--sp-6);
  grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr));
}
.mega-cols-1 { --mega-cols: 2; max-width: 760px; }
.mega-cols-1 ul { columns: 2; column-gap: var(--sp-6); }
.mega-cols-1 .mega-col { grid-column: 1 / -1; }
.mega-cols-2 { --mega-cols: 2; max-width: 860px; }
.mega-cols-3 { --mega-cols: 3; }
.mega-head {
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--fg-faint);
  font-weight: 650;
  margin: 0 0 var(--sp-2) 0.6rem;
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega li { break-inside: avoid; }
.nav-links .mega a,
.mega a {
  display: block;
  white-space: normal;
  font-size: inherit;
  font-weight: inherit;
  transition: background 0.12s ease;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--fg);
}
.mega a strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--fg-strong); }
.mega a span { display: block; font-size: var(--step--2); color: var(--fg-muted); line-height: 1.4; margin-top: 1px; }
.nav-links .mega a:hover, .nav-links .mega a:focus-visible { background: var(--bg-inset); color: var(--fg); }
.mega a:hover strong { color: var(--brand-ink); }

/* the mobile menu: the same entries as accordions */
.mobile-nav .m-group { border-bottom: 1px solid var(--line); }
.mobile-nav .m-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--fg-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav .m-group summary::-webkit-details-marker { display: none; }
.mobile-nav .m-group summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 0.15s ease;
}
.mobile-nav .m-group[open] summary::after { transform: rotate(-135deg); }
.mobile-nav .m-group h4 { margin: var(--sp-3) 0 var(--sp-1); }
.mobile-nav .m-group a { padding-left: 0.75rem; border-bottom: 0; }
.mobile-nav .m-group[open] { padding-bottom: var(--sp-3); }
.mobile-nav .m-cta { margin-top: var(--sp-5); width: 100%; justify-content: center; }
.mobile-nav a.btn { color: #fff; border-bottom: 0; }

/* the header is about 20px too wide on a 320px phone */
@media (max-width: 359px) {
  .nav { gap: var(--sp-2); }
  .nav-tools .btn-sm { padding: 0.5rem 0.6rem; }
  .nav-tools .btn-sm svg { display: none; }
}

/* --------------------------------------------------------- on this page */
.page-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  padding: var(--sp-3) var(--sp-4);
  margin-top: var(--sp-5);
}
.page-toc summary {
  cursor: pointer;
  font-size: var(--step--2);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--fg-faint);
  font-weight: 650;
}
.page-toc ol {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  counter-reset: toc;
}
.page-toc li { counter-increment: toc; }
.page-toc a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
}
.page-toc a::before { content: counter(toc) ". "; color: var(--fg-faint); }
.page-toc a:hover { border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 699px) {
  .page-toc ol { display: block; }
  .page-toc li + li { margin-top: 0.35rem; }
  .page-toc a { display: block; border-radius: var(--radius-sm); }
}

/* --------------------------------------------------------- back to top */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-raised);
  color: var(--fg-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-2);
}
.to-top[hidden] { display: none; }
.to-top:hover { color: var(--brand-ink); border-color: var(--brand); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------------------------------- homepage additions */
.path-card h3 { display: flex; align-items: center; gap: 0.5rem; }
.path-card ul { margin: var(--sp-2) 0 0; padding-left: 1.1rem; }
.path-card li { margin-bottom: 0.25rem; }
.incident-card .meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: var(--sp-2); }
.incident-card .when { font-size: var(--step--2); color: var(--fg-faint); font-weight: 600; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  .mega { animation: none; }
  .mega-btn .chev, .mobile-nav .m-group summary::after { transition: none; }
}

/* the shared grids use minmax(320px) and minmax(275px), wider than a 320px phone's column */
@media (max-width: 699px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------ tool logos on the home page */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tool {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.tool svg { width: 26px; height: 26px; fill: var(--c); }
:root[data-theme="dark"] .tool-dark svg { fill: var(--fg-strong); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool-dark svg { fill: var(--fg-strong); }
}


/* name label on hover, keyboard focus or tap */
.tool { position: relative; cursor: default; }
.tool[data-name]::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  background: var(--fg-strong);
  color: var(--bg);
  font-size: var(--step--2);
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
  z-index: 5;
}
.tool[data-name]:hover::after, .tool[data-name]:focus-visible::after, .tool[data-name]:focus::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.tool[data-name]:hover, .tool[data-name]:focus-visible { border-color: var(--c); }
.tool:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tool:focus:not(:focus-visible) { outline: none; }

/* ----------------------------------------------------- the flow map
   clients on the left, ForgeRepo in the middle, the public registries on the right */
.flow-map {
  margin: 0;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 1000px) {
  .flow-map { grid-template-columns: minmax(0, 1.25fr) 96px minmax(250px, 0.9fr) 96px minmax(0, 1fr); gap: 0; }
  .fm-cap { grid-column: 1 / -1; }
}
.fm-cap { text-align: center; color: var(--fg-muted); font-size: var(--step--1); max-width: 70ch; margin: 0 auto var(--sp-5); }
.fm-cap strong { display: block; color: var(--fg-strong); font-size: var(--step-0); margin-bottom: 0.25rem; }
.fm-col { display: grid; gap: var(--sp-3); }
.fm-group {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-1);
}
.fm-head { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 650; color: var(--fg-strong); font-size: var(--step--1); }
.fm-head svg { width: 17px; height: 17px; color: var(--brand); flex: none; }
.fm-sub { margin: 0.15rem 0 0; font-size: var(--step--2); color: var(--fg-muted); }
.fm-logos { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.fm-logos .tool { width: 42px; height: 42px; border-radius: 10px; box-shadow: none; }
.fm-logos .tool svg { width: 22px; height: 22px; }
.fm-list { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 0.35rem; font-size: var(--step--1); color: var(--fg); }
.fm-list li { display: flex; align-items: center; gap: 0.55rem; }
.tool-sm { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; flex: none; }
.tool-sm svg { width: 16px; height: 16px; }

/* connectors: a moving dashed line with an arrow, sideways on wide screens, downward when stacked */
.fm-link { position: relative; display: grid; place-items: center; min-height: 64px; }
.fm-link::before {
  content: "";
  position: absolute;
  left: 50%; top: 4px; bottom: 12px;
  width: 2px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--brand) 0 6px, transparent 6px 12px);
  background-size: 2px 12px;
  animation: fm-flow-y 0.8s linear infinite;
}
.fm-link::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateX(-50%) rotate(45deg);
}
.fm-link span {
  position: relative;
  z-index: 1;
  background: var(--bg);
  color: var(--brand-ink);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
  white-space: nowrap;
}
@media (min-width: 1000px) {
  .fm-link { min-height: 0; height: 100%; }
  .fm-link::before {
    left: 6px; right: 14px; top: 50%; bottom: auto;
    width: auto; height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to right, var(--brand) 0 6px, transparent 6px 12px);
    background-size: 12px 2px;
    animation-name: fm-flow-x;
  }
  .fm-link::after { left: auto; right: 6px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
  .fm-link span { transform: translateY(-1.35rem); }
}
@keyframes fm-flow-x { to { background-position: 12px 0; } }
@keyframes fm-flow-y { to { background-position: 0 12px; } }

.fm-hub {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-raised);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-raised), var(--bg-raised)),
                    linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-glow);
}
.fm-hub-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--sp-3); }
.fm-hub-top .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
.fm-hub-top .brand-mark svg { width: 23px; height: 23px; }
.fm-hub-top strong { display: block; font-size: var(--step-1); color: var(--fg-strong); line-height: 1.2; }
.fm-hub-top span:not(.brand-mark) { display: block; font-size: var(--step--2); color: var(--fg-muted); }
.fm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; font-size: var(--step--1); }
.fm-checks li { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.55rem; border-radius: var(--radius-sm); }
.fm-checks svg { width: 15px; height: 15px; flex: none; stroke-width: 2.4; }
.fm-checks .ok { background: var(--ok-soft); color: var(--fg-strong); }
.fm-checks .ok svg { color: var(--ok); }
.fm-checks .bad { background: var(--bad-soft); color: var(--fg); }
.fm-checks .bad svg { color: var(--bad); }
.fm-hub-foot { display: flex; align-items: center; gap: 0.45rem; margin: var(--sp-3) 0 0; font-size: var(--step--2); color: var(--fg-muted); font-weight: 600; }
.fm-hub-foot svg { width: 15px; height: 15px; color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  .fm-link::before { animation: none; }
  .tool[data-name]::after { transition: none; }
}
@media (max-width: 999px) {
  .fm-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--sp-3); }
  .fm-list li { font-size: var(--step--2); }
}

/* plain header link beside the menu buttons */
.nav-links a.nav-plain { font-size: 0.9rem; font-weight: 530; color: var(--fg-muted); padding: 0.45rem 0.75rem; }
.nav-links a.nav-plain:hover { color: var(--fg-strong); background: var(--bg-inset); }
.nav-links a.nav-plain.active { color: var(--fg-strong); background: var(--brand-soft); }
.mobile-nav a.m-plain { font-weight: 650; font-size: 1.05rem; color: var(--fg-strong); padding: 0.85rem 0; border-bottom: 1px solid var(--line); }

/* -------------------------------------------------------------- pricing */
.price-grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .price-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.price-card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5) var(--sp-6); box-shadow: var(--shadow-1); }
.price-us {
  border: 2px solid transparent;
  background-image: linear-gradient(var(--bg-raised), var(--bg-raised)), linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--brand-3));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: var(--shadow-glow);
}
.price-name { margin: 0; font-weight: 650; color: var(--fg-strong); font-size: var(--step-0); }
.price-num { margin: var(--sp-2) 0 var(--sp-4); font-size: var(--step-5); font-weight: 700; line-height: 1; color: var(--fg-strong); letter-spacing: -0.03em; }
.price-num span { font-size: var(--step-0); font-weight: 500; color: var(--fg-muted); margin-left: 0.5rem; letter-spacing: 0; }
.price-list { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: 0.55rem; }
.price-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.price-list svg { width: 18px; height: 18px; flex: none; margin-top: 0.2rem; color: var(--ok); stroke-width: 2.3; }
.price-list-plain { margin: var(--sp-4) 0 0; gap: var(--sp-4); }
.price-list-plain svg { color: var(--brand); stroke-width: 1.8; }
.price-list-plain span { color: var(--fg-muted); }
.price-list-plain strong { color: var(--fg-strong); }
.price-src { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: 0.5rem; font-size: var(--step--1); color: var(--fg-muted); }
.price-src strong { color: var(--fg-strong); font-weight: 600; }
.price-src a { font-size: var(--step--2); }

/* ------------------------------------------------------------ site search */
.site-search {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(680px, calc(100vw - 2rem));
  max-height: none;
  margin: 10vh auto auto;
  color: var(--fg);
}
.site-search::backdrop { background: rgba(5, 7, 12, 0.55); backdrop-filter: blur(3px); }
.ss-box { background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-3); overflow: hidden; }
.ss-field { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
.ss-field > svg { width: 20px; height: 20px; color: var(--fg-muted); flex: none; }
.ss-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--step-0); color: var(--fg-strong); outline: none; }
.ss-field input::-webkit-search-cancel-button { display: none; }
.ss-close { border: 1px solid var(--line); background: var(--bg-inset); color: var(--fg-muted); border-radius: 6px; font-size: var(--step--2); padding: 0.2rem 0.45rem; cursor: pointer; }
.ss-results { list-style: none; margin: 0; padding: 0.4rem; max-height: min(60vh, 520px); overflow-y: auto; }
.ss-results a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.75rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--fg); }
.ss-results [aria-selected="true"] a, .ss-results a:hover { background: var(--brand-soft); }
.ss-t { font-weight: 600; color: var(--fg-strong); }
.ss-s { font-size: var(--step--2); color: var(--fg-faint); white-space: nowrap; align-self: center; }
.ss-d { grid-column: 1 / -1; font-size: var(--step--1); color: var(--fg-muted); line-height: 1.45; }
.ss-results mark { background: color-mix(in oklab, var(--brand) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ss-foot { margin: 0; padding: 0.55rem 1rem; border-top: 1px solid var(--line); font-size: var(--step--2); color: var(--fg-faint); }
@media (max-width: 560px) {
  .site-search { margin-top: 0.75rem; }
  .ss-s { display: none; }
}
/* four buttons in the header on the smallest phones: the menu holds Install it there too */
@media (max-width: 400px) {
  .nav-tools { gap: 0.3rem; }
  .nav-tools .btn-sm { display: none; }
}

/* ------------------------------------------------------------ analytics consent
   a small card in the corner, not a wall: the page stays readable and usable behind it */
.consent {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 120;
  width: min(420px, calc(100vw - 2rem));
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
  padding: var(--sp-4);
  font-size: var(--step--1);
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 var(--sp-3); color: var(--fg); }
.consent-btns { display: flex; gap: 0.5rem; justify-content: flex-end; }
.consent-btns .btn { min-width: 6.5rem; justify-content: center; }
.footer-legal { margin-left: 0.4rem; white-space: nowrap; }
.footer-legal a { color: var(--fg-muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--fg-muted); text-decoration: underline; cursor: pointer; }
.linklike:hover, .footer-legal a:hover { color: var(--brand-ink); }
@media print { .consent { display: none !important; } }

/* compare: totals by section */
.by-section td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.by-section td.best { font-weight: 700; color: var(--fg-strong); }
