/* ============================================================
   COMPARISON PAGES — the /compare/ hub and /compare/nervestax-vs-<slug>/
   Markup is generated by gen-compare.mjs from compare/*.json; colour comes
   only from the tokens in /styles.css, so both themes work unchanged.
   Graphics are themed diagrams (light surfaces, token strokes), not dark
   "artifact" panels — same direction as the home page.
   ============================================================ */

.cx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
         clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- breadcrumb ---------- */
.cx-crumbs { margin-bottom: 20px; }
.cx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 6px;
                font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); }
.cx-crumbs li + li::before { content: '›'; margin: 0 10px; color: var(--ink-2); }
.cx-crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.cx-crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cx-crumbs [aria-current] { color: var(--ink); }

/* ---------- hero ---------- */
.cx-hero h1 { max-width: 20ch; }
.cx-verified { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
               font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
               color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-strong);
               border-radius: 999px; padding: 6px 13px 6px 10px; }
.cx-verified svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.cx-verified time { color: var(--ink); }
.cx-hero .hero-cta { margin-top: 22px; }
.cx-cover { padding: clamp(14px, 2.2vw, 30px) clamp(8px, 1.6vw, 26px); }

/* The caption under a figure. The picture carries no legend of its own: this says,
   once and in words, which mark is whose and what the three shapes mean. */
.cx-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px;
          margin-top: clamp(8px, 1.2vw, 16px); padding: 15px clamp(4px, 1vw, 12px) 2px; border-top: 1px solid var(--rule);
          font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cx-cap b { font-weight: 600; color: var(--ink); }
.cx-cap b.us { color: var(--accent-hover); }
.cx-cap-who { max-width: 58ch; }
.cx-cap-key { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
              font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cx-cap-key .cx-lv { margin-left: 12px; }
.cx-cap-key .cx-lv:first-child { margin-left: 0; }
.cx-cap-note { flex-basis: 100%; max-width: 86ch; font-size: 13px; color: var(--ink-2); }
.cx-lv, .hero-graphic .cx-lv { width: 14px; height: 14px; flex: none; display: inline-block; color: var(--ink-2); }

/* ---------- sections ---------- */
.cx-sec { padding: clamp(56px, 7vw, 96px) 0; }
.cx-sub { margin: 44px 0 0; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
          letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.cx-sub + .cx-table-wrap { margin-top: 14px; }
.cx-foot { margin-top: 14px; font-size: 13px; color: var(--ink-2); }

/* ---------- tables (scroll sideways inside their frame on phones, never the page) ---------- */
.cx-table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px;
                 background: var(--surface); -webkit-overflow-scrolling: touch; }
.cx-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.cx-table th, .cx-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.cx-table tbody tr:last-child > * { border-bottom: 0; }
.cx-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em;
                     text-transform: uppercase; color: var(--ink-2); background: var(--bg-2); border-bottom-color: var(--rule-strong); }
.cx-table thead th.us { color: var(--accent-hover); }
.cx-table tbody th { font-weight: 500; color: var(--ink); width: 30%; }
.cx-table td { color: var(--ink); width: 35%; }
.cx-table .us { background: var(--accent-soft); }
.cx-glance { min-width: 560px; }
.cx-cov, .cx-matrix { min-width: 660px; }
.cx-cell { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; }
.cx-cell > svg { align-self: flex-start; margin-top: 3px; }
.cx-table td.us .cx-lv { color: var(--accent); }
.cx-table td.lv-none .cx-lv { color: var(--ink-3); }
.cx-table td.lv-none { color: var(--ink-2); }
.cx-mk { width: 16px; height: 16px; flex: none; }
.cx-mk-word { font-weight: 500; }
.cx-note { flex-basis: 100%; padding-left: 25px; margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.mk-yes .cx-mk { color: var(--ok); }
.mk-partial .cx-mk { color: var(--ink-2); }
.mk-no .cx-mk, .mk-na .cx-mk { color: var(--ink-3); }
.mk-no .cx-mk-word, .mk-na .cx-mk-word { color: var(--ink-2); font-weight: 400; }

/* ---------- TL;DR: two cards of equal weight ---------- */
.cx-tldr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.cx-choose { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink-2);
             border-radius: 12px; padding: 24px 28px 20px; min-width: 0; }
.cx-choose.us { border-top-color: var(--accent); }
.cx-choose-h { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
               text-transform: uppercase; color: var(--ink); }
.cx-choose.us .cx-choose-h { color: var(--accent-hover); }
.cx-choose ul { list-style: none; margin: 14px 0 0; padding: 0; }
.cx-choose li { position: relative; padding: 13px 0 13px 30px; border-top: 1px solid var(--rule-soft);
                font-size: 16px; line-height: 1.5; color: var(--ink); }
.cx-choose li::before { content: ''; position: absolute; left: 3px; top: 19px; width: 11px; height: 6px;
                        border-left: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(-45deg); }
.cx-choose.us li::before { border-color: var(--accent); }
@media (max-width: 820px) { .cx-tldr { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; } .cx-choose { padding: 20px 20px 16px; } }

/* ---------- about ---------- */
.cx-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px);
            margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--ink); align-items: start; }
.cx-about-sum { font-size: 17px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.cx-quote { margin: 0; border-left: 2px solid var(--accent); padding: 2px 0 2px 22px; }
.cx-quote blockquote { margin: 0; }
.cx-quote blockquote p { font-family: var(--font-mono); font-size: clamp(17px, 1.7vw, 21px); font-weight: 500;
                         line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.cx-quote blockquote p::before { content: '“'; }
.cx-quote blockquote p::after { content: '”'; }
.cx-quote figcaption { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); }
.cx-quote figcaption a, .cx-sources a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong);
                                        text-underline-offset: 3px; overflow-wrap: anywhere; }
.cx-quote figcaption a:hover, .cx-sources a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@media (max-width: 820px) { .cx-about { grid-template-columns: 1fr; margin-top: 32px; } }

/* ---------- key differences: a picture, then both sides ---------- */
.cx-diffs { display: grid; gap: 24px; margin-top: 44px; }
.cx-diff { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 48px); align-items: center;
           background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(14px, 2vw, 24px); }
.cx-diff-art { background: var(--bg-2); border-radius: 8px; padding: 12px 10px; }
.cx-art { display: block; width: 100%; height: auto; }
.cx-diff-n { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--accent-hover); }
.cx-diff h3 { margin: 6px 0 0; font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -.01em; line-height: 1.25; }
.cx-diff-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.cx-side { border-top: 2px solid var(--rule-strong); padding-top: 12px; min-width: 0; }
.cx-side.us { border-top-color: var(--accent); }
.cx-side-h { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cx-side.us .cx-side-h { color: var(--accent-hover); }
.cx-side-h + p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 980px) { .cx-diff { grid-template-columns: 1fr; align-items: start; } .cx-diff-art { max-width: 440px; } }
@media (max-width: 600px) { .cx-diff-cols { grid-template-columns: 1fr; gap: 16px; } .cx-diffs { gap: 18px; margin-top: 32px; } }

/* ---------- where they win / using both ---------- */
.cx-win { list-style: none; counter-reset: w; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.cx-win li { counter-increment: w; display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 22px 0;
             border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.55; color: var(--ink); }
.cx-win li::before { content: counter(w, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px;
                     letter-spacing: .08em; color: var(--ink-2); padding-top: 4px; }
.cx-together { margin-top: 32px; max-width: 80ch; background: var(--surface); border: 1px solid var(--rule);
               border-left: 3px solid var(--accent); border-radius: 10px; padding: 20px 24px; }
.cx-together .cx-choose-h + p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
@media (max-width: 700px) { .cx-win li { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; font-size: 16px; padding: 18px 0; } }

/* ---------- sources + notice ---------- */
.cx-sources-sec { padding: clamp(40px, 5vw, 64px) 0; }
.cx-sources ol { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.cx-sources li::marker { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.cx-3p { margin-left: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
         color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.cx-notice { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-2); }
.cx-notice a { color: var(--accent); }

/* ---------- closing band (always the dark brand surface, like the home closer) ---------- */
.cx-closer-h { margin-top: 18px; }
.cx-closer-cta { margin-top: 26px; }
.closer .cx-dark-link { color: var(--violet-300); }
.cx-related { align-self: center; min-width: 0; }
.closer .cx-related .tag { color: var(--panel-ink-2); }
.cx-related ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.cx-related a { display: grid; gap: 4px; padding: 16px 20px; background: var(--panel-2); border: 1px solid var(--panel-rule);
                border-radius: 10px; text-decoration: none; transition: border-color .15s ease; }
.cx-related a:hover { border-color: var(--violet-400); }
.cx-rel-name { font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--panel-ink); }
.cx-rel-name::after { content: ' →'; color: var(--violet-300); }
.cx-rel-group { font-size: 14px; color: var(--panel-ink-2); }

/* ============================================================
   HUB
   ============================================================ */
/* The coverage strip: one row per product, six stages across. It is a grid, not a
   drawing, so the labels can never collide and the phone layout is the same object
   with the names stacked above the marks. */
.cx-strip-figure { margin: 44px 0 0; }
.cx-strip { border: 1px solid var(--rule); background: var(--surface); border-radius: 12px; overflow: hidden; }
.cx-strip-head, .cx-strip-rows li { display: grid; grid-template-columns: minmax(96px, 168px) repeat(6, minmax(0, 1fr));
                                align-items: center; gap: 0 8px; padding: 0 clamp(14px, 2vw, 24px); }
.cx-strip-head { padding-top: 16px; padding-bottom: 14px; background: var(--bg-2); border-bottom: 1px solid var(--rule-strong); }
.cx-strip-st { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center;
             font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em;
             text-transform: uppercase; color: var(--ink); }
.cx-strip-st b { font-weight: 600; color: var(--ink-3); }
.cx-strip-rows { list-style: none; margin: 0; padding: 0; }
.cx-strip-rows li { min-height: 46px; border-top: 1px solid var(--rule-soft); }
.cx-strip-rows li:first-child { border-top: 0; }
.cx-strip-rows li.us { background: var(--accent-soft); }
.cx-strip-name { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
               text-transform: uppercase; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.cx-strip-rows li.us .cx-strip-name { color: var(--accent-hover); }
.cx-strip-name a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.cx-strip-name a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.cx-strip-pips { display: contents; }
.cx-strip-pip { display: grid; place-items: center; color: var(--ink-2); }
.cx-strip-pip .cx-lv { width: 15px; height: 15px; }
.cx-strip-rows li.us .cx-strip-pip { color: var(--accent); }
.cx-strip-pip.lv-none { color: var(--ink-3); }
.cx-strip-numkey { display: none; }
@media (max-width: 720px) {
  .cx-strip-head, .cx-strip-rows li { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .cx-strip-head { display: none; }
  .cx-strip-rows li { padding-top: 12px; padding-bottom: 12px; }
  .cx-strip-name { grid-column: 1 / -1; font-size: 12px; }
  .cx-strip-numkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 12px clamp(14px, 2vw, 24px) 14px;
                   background: var(--bg-2); border-top: 1px solid var(--rule);
                   font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
  .cx-strip-numkey b { font-weight: 600; color: var(--ink-3); margin-right: 5px; }
}

/* one flat grid; the group is a chip on each card, and compare.js filters by it */
.cx-filters { margin-top: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cx-filters[hidden] { display: none; }
.cx-filters-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chip { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
           color: var(--ink-2); background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 7px 13px; }
.cx-chip span { color: var(--ink-3); margin-left: 4px; }
.cx-chip:hover { color: var(--ink); border-color: var(--ink-2); }
.cx-chip[aria-pressed="true"] { color: #fff; background: var(--violet-500); border-color: var(--violet-500); }
.cx-chip[aria-pressed="true"] span { color: oklch(1 0 0 / 0.75); }
.cx-cards { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cx-filters:not([hidden]) + .cx-cards { margin-top: 22px; }
.cx-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
           background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 26px 20px;
           transition: border-color .15s ease, box-shadow .15s ease; }
.cx-card[hidden] { display: none; }
.cx-card:hover, .cx-card:focus-within { border-color: var(--accent); box-shadow: 0 12px 32px oklch(0.15 0.02 274 / 0.08); }
.cx-card-group { align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
                 color: var(--ink-2); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 2px 7px; }
.cx-card-name { font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.cx-card-name a { color: var(--ink); text-decoration: none; }
.cx-card-name a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.cx-card-name a:focus-visible { outline: none; }
.cx-card-name a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.cx-card-product { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.cx-card-blurb { margin-bottom: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
/* pinned to the bottom so the graphic and link line up across a row */
.cx-mini { margin-top: auto; display: grid; grid-template-columns: 112px minmax(0, 300px); justify-content: start; align-items: center; gap: 6px 16px;
           padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.cx-mini-who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-mini-who.us { color: var(--accent-hover); }
.cx-mini-row { display: block; width: 100%; max-width: 300px; height: auto; }
.cx-card-go { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.cx-empty { color: var(--ink-2); font-size: 16px; }
@media (max-width: 760px) { .cx-cards { grid-template-columns: 1fr; gap: 14px; } .cx-card { padding: 20px 18px 18px; }
  .cx-mini { grid-template-columns: 78px minmax(0, 1fr); gap: 6px 8px; } .cx-filters { margin-top: 32px; } }
.cx-closer .closer-aside p.tag { font-size: 11px; margin-top: 0; }
