/* Comparison pages (compare/*) and EnviroBench (envirobench/).
   Compare pages build on blog.css (reading layout, TOC, progress) and guide.css (key points, table, FAQ, sources).
   EnviroBench is a landing page on site.css only. Light surfaces use the paper tokens. */

/* ------------------------------------------------------------------ compare: hero */
.cmp-hero h1 { max-width: 15em; }
.cmp-hero .byline span + span { margin-top: 2px; }

/* ------------------------------------------------------------------ compare: how they fit together */
.cmp-fit { margin: 1.8em 0; padding: 22px; border-radius: var(--radius-lg); background: #fff;
  box-shadow: 0 0 0 1px var(--paper-line), 0 24px 50px -36px rgba(15, 23, 42, 0.35); }
.prose .cmp-fit-title { font-size: 1.02rem; font-weight: 600; line-height: 1.4; color: var(--paper-ink); }
.cmp-fit-title span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--paper-muted); }
.cmp-lanes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 16px; }
.cmp-lane { padding: 16px 16px 18px; border-radius: 14px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--paper-line); }
.cmp-lane.is-sv { background: #F1F7FD; box-shadow: inset 0 0 0 1px #D6E6F5; }
.prose .cmp-lane-name { font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); }
.prose .cmp-lane.is-sv .cmp-lane-name { color: var(--blue); }
.prose .cmp-lane-job { margin-top: 6px; font-family: var(--title); font-size: 1.3rem; line-height: 1.15; color: var(--paper-ink); }
.prose ol.cmp-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; counter-reset: none; }
.prose .cmp-steps li { position: relative; margin: 0; padding: 9px 12px; border-radius: 10px; background: #fff; font-size: 0.93rem; line-height: 1.4;
  color: var(--paper-body); box-shadow: 0 0 0 1px var(--paper-line); }
.prose .cmp-steps li + li { margin-top: 22px; }
/* the connector between steps: a short line with an arrowhead */
.cmp-steps li + li::before { content: ''; position: absolute; left: 22px; top: -18px; width: 1px; height: 14px; background: #94A3B8; }
.cmp-steps li + li::after { content: ''; position: absolute; left: 19px; top: -8px; width: 7px; height: 7px; border-right: 1px solid #94A3B8; border-bottom: 1px solid #94A3B8; transform: rotate(45deg); }
.cmp-lane.is-sv .cmp-steps li + li::before { background: var(--blue); }
.cmp-lane.is-sv .cmp-steps li + li::after { border-color: var(--blue); }
.cmp-steps b { color: var(--paper-ink); font-weight: 600; }
.cmp-bridge { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: rgba(0, 202, 203, 0.07); box-shadow: inset 0 0 0 1px rgba(0, 202, 203, 0.28); }
.cmp-bridge-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--teal); box-shadow: 0 0 0 1px rgba(0, 202, 203, 0.3); }
.prose .cmp-bridge p { font-size: 0.95rem; line-height: 1.5; color: var(--paper-body); }
.cmp-bridge b { color: var(--paper-ink); }
.prose .cmp-fit figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--paper-line); font-size: 0.9rem; line-height: 1.5; color: var(--paper-muted); }
@media (max-width: 620px) { .cmp-lanes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ compare: when to use which */
.cmp-when { display: grid; gap: 14px; margin: 1.6em 0; }
.cmp-when-card { padding: 20px 22px 22px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--paper-line); border-top: 3px solid #94A3B8; }
.cmp-when-card.is-sv { border-top-color: var(--blue); }
.cmp-when-card.is-both { border-top-color: var(--aqua); }
.prose .cmp-when-card h3 { margin: 0; font-size: 1.35rem; }
.prose .cmp-when-card ul { margin: 10px 0 0; padding-left: 1.15em; font-size: 1rem; line-height: 1.55; }
.prose .cmp-when-card li + li { margin-top: 0.35em; }

/* ------------------------------------------------------------------ compare: citation levels */
.cmp-cite { margin: 1.8em 0; display: grid; gap: 10px; }
.cmp-cite-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 18px; align-items: baseline; padding: 14px 18px; border-radius: 14px;
  background: #fff; box-shadow: 0 0 0 1px var(--paper-line); }
.cmp-cite-row.is-sv { background: #F1F7FD; box-shadow: inset 0 0 0 1px #D6E6F5; }
.prose .cmp-cite-level { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-muted); }
.prose .cmp-cite-row.is-sv .cmp-cite-level { color: var(--blue); }
.prose .cmp-cite-what { font-size: 1rem; line-height: 1.5; color: var(--paper-body); }
.cmp-cite-what q { color: var(--paper-ink); font-weight: 500; quotes: '\201C' '\201D'; }
.cmp-cite-what mark { padding: 0 3px; border-radius: 3px; background: rgba(250, 204, 21, 0.35); color: var(--paper-ink); }
@media (max-width: 560px) { .cmp-cite-row { grid-template-columns: 1fr; } }

/* the plain "statvis" column in the comparison table keeps guide.css's light tint; add a review note under it */
.prose .cmp-note { font-size: 0.9rem; color: var(--paper-muted); }

/* ------------------------------------------------------------------ envirobench: shared */
.eb-hero .lede { max-width: 34em; }
.eb-section-head { max-width: 860px; }
.eb-answer { margin-top: 18px; }

/* why it matters */
.eb-why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.eb-why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.eb-why-list li { padding: 22px 0; border-top: 1px solid var(--paper-line); }
.eb-why-list li:last-child { border-bottom: 1px solid var(--paper-line); }
.eb-why-list h3 { font-size: clamp(1.35rem, 1.9vw, 1.6rem); color: var(--paper-ink); }
.eb-why-list p { margin-top: 8px; color: var(--paper-body); }
@media (max-width: 900px) { .eb-why { grid-template-columns: 1fr; } }

/* the seven tests */
.eb-tests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.eb-tile { position: relative; display: flex; flex-direction: column; padding: 24px 22px 22px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(23, 38, 61, 0.7), rgba(15, 27, 45, 0.55)); box-shadow: inset 0 0 0 1px var(--night-line); }
.eb-tile .eb-num { font-family: var(--title); font-size: clamp(2.6rem, 3.6vw, 3.3rem); line-height: 1; letter-spacing: -0.02em; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; }
.eb-tile .eb-unit { margin-top: 6px; font-size: 0.88rem; color: var(--sky); font-weight: 500; }
.eb-tile h3 { margin-top: 18px; font-size: 1.4rem; }
.eb-tile p { margin-top: 8px; font-size: 0.95rem; line-height: 1.5; color: var(--mist); }
.eb-tile .eb-score { margin-top: auto; padding-top: 16px; font-size: 0.84rem; line-height: 1.45; color: var(--fog); }
.eb-tile .eb-score b { color: var(--mist); font-weight: 600; }
.eb-tile.is-total { background: linear-gradient(180deg, rgba(0, 149, 237, 0.16), rgba(0, 149, 237, 0.06)); box-shadow: inset 0 0 0 1px rgba(127, 214, 255, 0.3); }
.eb-tile.is-total .eb-num { color: #fff; }
@media (max-width: 1100px) { .eb-tests { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .eb-tests { grid-template-columns: 1fr; } }

/* how a case is scored */
.eb-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: eb; }
.eb-flow li { position: relative; padding: 20px 18px 22px; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--paper-line); counter-increment: eb; }
.eb-flow li::before { content: counter(eb); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-bottom: 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--paper-muted); box-shadow: inset 0 0 0 1px var(--paper-line); }
.eb-flow h3 { font-size: 1.3rem; color: var(--paper-ink); }
.eb-flow p { margin-top: 8px; font-size: 0.95rem; line-height: 1.5; color: var(--paper-body); }
.eb-flow li.is-key { background: #FFFBEB; box-shadow: inset 0 0 0 1px #FDE68A; }
.eb-flow li.is-gate { background: #ECFDF5; box-shadow: inset 0 0 0 1px #A7F3D0; }
.eb-flow li.is-gate::before { color: #047857; box-shadow: inset 0 0 0 1px #6EE7B7; }
@media (max-width: 1000px) { .eb-flow { grid-template-columns: 1fr; } .eb-flow li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 16px; } .eb-flow li::before { grid-row: span 2; margin: 0; } .eb-flow p { grid-column: 2; } }

/* per-test scoring table: site.css .table on paper, with a calmer first column */
.eb-metrics { margin-top: clamp(48px, 6vw, 72px); }
.eb-metrics h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--paper-ink); margin-bottom: 20px; }
.eb-metrics .table td:first-child { font-size: 1.2rem; width: 24%; }

/* public core and private cases */
.eb-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.eb-split .card h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.eb-status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--sky); background: rgba(142, 219, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(142, 219, 255, 0.2); }
.eb-status.is-private { color: var(--mist); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--night-line-strong); }
.eb-split .check-list { margin-top: 22px; }
.eb-split-note { margin-top: 28px; max-width: 46em; }
@media (max-width: 860px) { .eb-split { grid-template-columns: 1fr; } }

/* related links */
.eb-rel-kicker { font-size: 0.82rem; font-weight: 600; color: var(--sky); margin-bottom: 12px; }
:is(.paper, .paper-2) .eb-rel-kicker { color: var(--blue); }

/* FAQ (EnviroBench is not a prose page, so it carries its own) */
.eb-faq { max-width: 860px; border-top: 1px solid var(--paper-line); }
.eb-faq details { border-bottom: 1px solid var(--paper-line); }
.eb-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 2px;
  font-weight: 600; font-size: 1.08rem; color: var(--paper-ink); }
.eb-faq summary::-webkit-details-marker { display: none; }
.eb-faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--paper-muted); border-bottom: 2px solid var(--paper-muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out); }
.eb-faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.eb-faq details p { margin: 0 0 20px; color: var(--paper-body); max-width: 46em; }
.eb-faq a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* EnviroBench loads site.css only, so its breadcrumb carries its own style (matches product.css/pages.css) */
.eb-hero .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 0.92rem; color: var(--fog); }
.eb-hero .crumbs a { color: var(--mist); transition: color 0.2s; }
.eb-hero .crumbs a:hover { color: var(--cream); }
.eb-hero .crumbs [aria-current] { color: var(--cream); }
.eb-hero h1 { max-width: 14em; font-size: clamp(2.2rem, 4.2vw, 3.7rem); }

/* blog.css enlarges `.prose p:first-child` (a lede rule); these labels are first children of their boxes, so restate their size */
.prose .cmp-fit p.cmp-fit-title { font-size: 1.02rem; line-height: 1.4; }
.prose .cmp-lane p.cmp-lane-name { font-size: 0.78rem; line-height: 1.2; }
.prose .cmp-cite-row p.cmp-cite-level { font-size: 0.78rem; line-height: 1.3; }
.cmp-hero .byline-mark { flex: none; }
