/* ============================================================
   Asaptic Labs — /standard 公益 section
   Scoped styles for comparison tables, badges, and landing grid.

   TOKEN POLICY:
   All colors, fonts, and spacing reuse custom properties from
   the root style.css (--bg, --bg-card, --bg-darker, --white,
   --accent, --cyan, --green, --gray, --gray-dim, --border,
   --border-bright, --steel, --amber).
   NO global vars are redefined here.

   If this sheet is ever loaded standalone (outside the main
   site shell), wrap the page body in class="standard-scope"
   and uncomment the fallback :root block below.

   FALLBACK (uncomment only for standalone use):
   .standard-scope {
     --bg: #0A1428; --bg-card: #0F1E38; --bg-darker: #080F1E;
     --white: #FFFFFF; --accent: #29B6F6; --cyan: #00E5FF;
     --green: #51CF66; --gray: #B0BEC5; --gray-dim: #4A5568;
     --border: #1A385C; --border-bright: #29B6F6;
     --steel: #D8E7EF; --amber: #FFC857;
   }
   ============================================================ */


/* ── Section shell ─────────────────────────────────────────── */

.standard-section {
  padding: 108px 0;
  border-top: 1px solid rgba(26, 56, 92, 0.8);
}

.standard-section + .standard-section {
  padding-top: 72px;
}


/* ── Answer-first callout ──────────────────────────────────── */
/*
   Prominent first-screen verdict box.
   Uses --accent as the left-border accent and a subtle glow.
   Keep it short — one or two sentences max.
*/

.answer-first {
  position: relative;
  margin: 0 0 52px;
  padding: 22px 26px 22px 30px;
  background: linear-gradient(
    135deg,
    rgba(41, 182, 246, 0.11),
    rgba(15, 30, 56, 0.82)
  );
  border: 1px solid rgba(41, 182, 246, 0.34);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 4px 32px rgba(41, 182, 246, 0.08);
}

.answer-first__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.answer-first__verdict {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.46;
}

.answer-first__verdict a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.answer-first__verdict a:hover {
  color: var(--white);
}


/* ── Gap matrix — comparison table ────────────────────────── */
/*
   Responsive strategy: horizontal-scroll wrapper on narrow
   screens (<720 px). Each <th> gets a data-label attr so
   screen-readers still work. No card flip — horizontal scroll
   keeps the table semantics intact and works with wide tables.
   A subtle gradient mask on the right edge cues users to scroll.
*/

.gap-matrix-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 8px;
  /* right-fade scroll hint */
  background: var(--bg-card);
}

/* scroll hint gradient — fades away once scrolled right */
.gap-matrix-wrap::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15, 30, 56, 0.86)
  );
  border-radius: 0 8px 8px 0;
}

.gap-matrix {
  width: 100%;
  min-width: 600px;       /* keeps columns readable before scroll kicks in */
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
  color: var(--steel);
}

/* Header row */
.gap-matrix thead tr {
  background: rgba(8, 15, 30, 0.94);
  border-bottom: 2px solid var(--border-bright);
}

.gap-matrix thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* Zebra rows */
.gap-matrix tbody tr:nth-child(odd) {
  background: rgba(15, 30, 56, 0.62);
}

.gap-matrix tbody tr:nth-child(even) {
  background: rgba(8, 15, 30, 0.48);
}

.gap-matrix tbody tr:hover {
  background: rgba(41, 182, 246, 0.07);
  transition: background 0.15s ease;
}

.gap-matrix tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(26, 56, 92, 0.6);
  vertical-align: top;
  /* wrap long text naturally */
  word-break: break-word;
  overflow-wrap: break-word;
}

/* First column — category / standard name */
.gap-matrix tbody td:first-child {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

/* Last row — no bottom border */
.gap-matrix tbody tr:last-child td {
  border-bottom: none;
}

/* Foot row (optional totals/notes) */
.gap-matrix tfoot tr {
  background: rgba(8, 15, 30, 0.9);
  border-top: 1px solid var(--border);
}

.gap-matrix tfoot td {
  padding: 12px 18px;
  font-size: 12px;
  color: var(--gray-dim);
  font-style: italic;
}

/* Narrow-screen scroll */
@media (max-width: 720px) {
  .gap-matrix-wrap::after {
    display: block; /* keep scroll hint visible on mobile */
  }
  .gap-matrix {
    font-size: 13px;
  }
  .gap-matrix thead th,
  .gap-matrix tbody td {
    padding: 11px 14px;
  }
}


/* ── Verification badges ───────────────────────────────────── */
/*
   .badge-unverified — amber pill shown inline on unverified claims.
   Status dots — CSS-only circles, no emoji dependency.
     .status-red    → critical gap / must-fix
     .status-amber  → partial / review needed
     .status-green  → compliant / verified OK
*/

.badge-unverified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.14);
  border: 1px solid rgba(255, 200, 87, 0.44);
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
  /* accessible contrast: amber on dark bg is WCAG AA at this size */
}

.badge-unverified::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* Status dots — used inside table cells and cards */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  vertical-align: middle;
  flex-shrink: 0;
  /* default invisible — requires a modifier */
}

.status-red   { background: #F44336; box-shadow: 0 0 6px rgba(244, 67, 54, 0.6); }
.status-amber { background: var(--amber); box-shadow: 0 0 6px rgba(255, 200, 87, 0.5); }
.status-green { background: var(--green); box-shadow: 0 0 6px rgba(81, 207, 102, 0.5); }

/* Inline status label helper: wraps dot + text */
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--steel);
}


/* ── Source list & links ───────────────────────────────────── */

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-list li {
  font-size: 13px;
  line-height: 1.5;
}

/* Within a table cell */
.source-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-cell a,
.source-list a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.38);
  text-underline-offset: 3px;
  word-break: break-all;   /* long URLs don't overflow narrow cells */
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.source-cell a:hover,
.source-list a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* "Accessed: DD Mon YYYY" helper text */
.source-accessed {
  display: block;
  font-size: 11px;
  color: var(--gray-dim);
  margin-top: 1px;
}


/* ── Disclaimer block ──────────────────────────────────────── */

.disclaimer-block {
  margin: 40px 0 0;
  padding: 20px 24px;
  background: rgba(8, 15, 30, 0.72);
  border: 1px solid rgba(26, 56, 92, 0.8);
  border-left: 3px solid var(--gray-dim);
  border-radius: 6px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.72;
}

.disclaimer-block strong {
  display: block;
  color: var(--steel);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.disclaimer-block p {
  margin: 0;
}

.disclaimer-block p + p {
  margin-top: 8px;
}

.disclaimer-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ── Last-verified & reviewed-by ──────────────────────────── */

.last-verified {
  display: block;
  font-size: 12px;
  color: var(--gray-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.last-verified time {
  color: var(--gray);
}

/* E-E-A-T named reviewer line */
.reviewed-by {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
}

.reviewed-by__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dim);
  flex-shrink: 0;
}

.reviewed-by__name {
  color: var(--steel);
  font-weight: 600;
}

.reviewed-by__creds {
  color: var(--gray-dim);
  font-size: 12px;
}

/* Group both meta lines */
.meta-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 56, 92, 0.5);
}


/* ── Category grid (landing page) ─────────────────────────── */
/*
   Landing page category picker.  3 columns → 2 → 1 as viewport narrows.
   Cards use the same border + bg-card language as .domain-card.
*/

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(41, 182, 246, 0.22);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  outline: none;
}

.category-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.category-card__tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.category-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.category-card__desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.category-card__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray-dim);
  letter-spacing: 0.06em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 56, 92, 0.5);
}

@media (max-width: 860px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category-card {
    padding: 20px 18px;
  }
}


/* ── Standard page hero (lighter than main hero) ──────────── */

.standard-hero {
  padding: 120px 0 64px;
  border-bottom: 1px solid rgba(26, 56, 92, 0.8);
}

.standard-hero .section-label {
  margin-bottom: 20px;
}

.standard-hero__title {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  max-width: 820px;
}

.standard-hero__sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--gray);
  line-height: 1.72;
  max-width: 680px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-dim);
  margin-bottom: 28px;
  font-family: 'JetBrains Mono', monospace;
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb__sep {
  color: var(--border-bright);
  opacity: 0.5;
}


/* ── Inline highlights used in table cells ─────────────────── */

/* Highlight a compliant / "yes" cell value */
.cell-yes {
  color: var(--green);
  font-weight: 600;
}

/* Highlight a gap / "no" cell value */
.cell-no {
  color: #F44336;
  font-weight: 600;
}

/* Partial / conditional */
.cell-partial {
  color: var(--amber);
  font-weight: 600;
}

/* N/A — not applicable */
.cell-na {
  color: var(--gray-dim);
  font-style: italic;
}


/* ── Print styles ──────────────────────────────────────────── */

/* ── Landing page: hero override ──────────────────────────── */

.std-hero {
  min-height: auto;
  padding: 140px 0 64px;
}

/* ── Landing page: scope section ──────────────────────────── */

.std-scope {
  padding: 72px 0 64px;
  border-top: 1px solid var(--border);
}

.std-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 720px) {
  .std-scope-grid { grid-template-columns: 1fr; }
}

.std-scope-col {
  border-radius: 8px;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.std-scope-yes { border-color: rgba(81, 207, 102, 0.32); }
.std-scope-no  { border-color: rgba(255, 100, 100, 0.22); }

.std-scope-col-head {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.std-scope-yes .std-scope-col-head { color: var(--green); }
.std-scope-no  .std-scope-col-head { color: #FF6B6B; }

.std-scope-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.std-scope-list li {
  color: var(--steel);
  font-size: 15px;
  line-height: 1.58;
  padding-left: 18px;
  position: relative;
}

.std-scope-yes .std-scope-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 13px;
}

.std-scope-no .std-scope-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: #FF6B6B;
  font-size: 13px;
}

/* ── Landing page: comparisons section ────────────────────── */

.std-comparisons {
  padding: 72px 0 64px;
  border-top: 1px solid var(--border);
}

.std-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.std-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 26px 22px;
  background: var(--bg-card);
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

a.std-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px rgba(41, 182, 246, 0.14);
}

.std-card-sample {
  opacity: 0.72;
  cursor: default;
}

.std-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.std-card-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}

.std-card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 3px;
  padding: 3px 8px;
}

.std-badge-verify {
  background: rgba(255, 200, 87, 0.14);
  color: var(--amber);
  border: 1px solid rgba(255, 200, 87, 0.3);
}

.std-card-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.24;
  margin-top: 4px;
}

.std-card-route {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.std-card-desc {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.6;
  flex: 1;
}

.std-card-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.std-card-cta-dim { color: var(--gray-dim); }

.std-more-note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray);
}

.std-inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.std-inline-link:hover { color: var(--cyan); }

/* ── Landing page: methodology section ────────────────────── */

.std-methodology {
  padding: 72px 0 80px;
  border-top: 1px solid var(--border);
}

.std-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 720px) {
  .std-method-grid { grid-template-columns: 1fr; }
}

.std-method-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 36px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.std-method-title {
  font-size: 22px;
  font-weight: 700;
}

.std-method-body {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.66;
  flex: 1;
}

.std-method-btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* ── Footer: second paragraph spacing ─────────────────────── */

.footer-bottom p + p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gray-dim);
}


@media print {
  /* Reveal all content regardless of fade-in state */
  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }

  /* White background, dark text for readability */
  body,
  .gap-matrix-wrap,
  .answer-first,
  .category-card,
  .disclaimer-block {
    background: #fff !important;
    color: #111 !important;
    box-shadow: none !important;
  }

  /* Keep table borders visible */
  .gap-matrix,
  .gap-matrix thead th,
  .gap-matrix tbody td {
    color: #111 !important;
    border-color: #ccc !important;
  }

  .gap-matrix thead tr {
    background: #f0f0f0 !important;
  }

  .gap-matrix tbody tr:nth-child(odd) {
    background: #fafafa !important;
  }

  /* Prevent table rows from splitting across pages */
  .gap-matrix tbody tr {
    break-inside: avoid;
  }

  /* Re-color links for print legibility */
  a,
  .source-cell a,
  .source-list a {
    color: #0056b3 !important;
    text-decoration: underline !important;
  }

  /* Show full URL after link text */
  .source-cell a[href]::after,
  .source-list a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10px;
    color: #555;
    word-break: break-all;
  }

  /* Badges — enough contrast on white */
  .badge-unverified {
    background: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffc107 !important;
  }

  .status-red   { background: #dc3545 !important; }
  .status-amber { background: #fd7e14 !important; }
  .status-green { background: #198754 !important; }

  .answer-first {
    border-left-color: #0056b3 !important;
  }

  /* Remove scroll-hint overlay */
  .gap-matrix-wrap::after {
    display: none !important;
  }

  /* Page margins */
  @page {
    margin: 20mm 16mm;
  }
}

/* E-E-A-T provenance panel (renamed from legacy sourcing-panel; neutral 公益 surface) */
.provenance-panel{
  background:var(--bg-card,#11161d);
  border:1px solid var(--border,#222a33);
  border-radius:12px;
  padding:20px 22px;
}
.provenance-panel strong{display:block;margin-top:10px;color:var(--white,#fff);font-size:14px;}
.provenance-panel strong:first-child{margin-top:0;}
.provenance-panel p{margin:4px 0 0;color:var(--gray-dim,#9aa7b4);font-size:14px;line-height:1.6;}


/* ── Cross-Standard finder (search.js) ────────────────────────────────── */
/*
   .cs-finder-wrap  — outer section wrapper
   .cs-finder       — flex row: product select · market select · submit btn
   .cs-search-row   — full-width free-text search row above the finder
   .cs-field        — individual field wrapper (label + control)
   .cs-result       — hidden by default; revealed as live nav or verify card
   .cs-verifying    — amber "under verification" card
*/

.cs-finder-wrap {
  padding: 56px 0 64px;
  border-top: 1px solid var(--border);
}

.cs-finder-wrap .section-label {
  margin-bottom: 14px;
}

.cs-finder-wrap .section-title {
  margin-bottom: 28px;
}

/* Search row (free-text) */
.cs-search-row {
  margin-bottom: 20px;
}

.cs-search-row label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dim);
  margin-bottom: 8px;
}

.cs-search-row input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs-search-row input::placeholder {
  color: var(--gray-dim);
}

.cs-search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.14);
}

/* Finder row: product + market + button */
.cs-finder {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.cs-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 180px;
}

.cs-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

.cs-field select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  cursor: pointer;
  /* native arrow: remove default, add custom SVG caret */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A5568' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2329B6F6' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cs-field select option {
  background: var(--bg-darker);
  color: var(--white);
}

.cs-field select option:disabled {
  color: var(--gray-dim);
}

/* Submit button — reuses .btn-primary shape, self-contained here */
.cs-finder__submit {
  flex-shrink: 0;
  align-self: flex-end;
  padding: 12px 26px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  white-space: nowrap;
}

.cs-finder__submit:hover {
  background: var(--cyan);
  box-shadow: 0 4px 20px rgba(41, 182, 246, 0.32);
  transform: translateY(-1px);
}

.cs-finder__submit:active {
  transform: translateY(0);
}

/* Stack on narrow viewports */
@media (max-width: 639px) {
  .cs-finder {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cs-field {
    flex: 1 1 auto;
    min-width: 0;
  }

  .cs-finder__submit {
    width: 100%;
    text-align: center;
  }
}

/* Result container */
.cs-result {
  margin-top: 28px;
}

.cs-result[hidden] {
  display: none;
}

/* "Under verification" card — amber accent */
.cs-verifying {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 26px;
  background: rgba(255, 200, 87, 0.07);
  border: 1px solid rgba(255, 200, 87, 0.32);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
}

.cs-verifying__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.cs-verifying__body {
  font-size: 15px;
  color: var(--steel);
  line-height: 1.6;
  margin: 0;
}

.cs-verifying__link {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 200, 87, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.cs-verifying__link:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

/* Generic message (fetch error / no-match) */
.cs-message {
  padding: 18px 22px;
  background: rgba(8, 15, 30, 0.72);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Comparison page refinements (2026-06-11) ─────────────── */

.lang-btn {
  min-width: 44px;
  min-height: 44px;
  height: auto;
  padding: 6px 9px;
}

.standard-section--compact {
  padding: 52px 0 0;
  border-top: 0;
}

.standard-content-heading {
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.12;
  max-width: 840px;
}

.standard-compact-disclaimer {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 87, 0.32);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: rgba(255, 200, 87, 0.08);
  color: var(--steel);
}

.standard-compact-disclaimer strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.standard-compact-disclaimer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.gap-matrix-wrap {
  max-height: min(72vh, 760px);
  overflow: auto;
}

.gap-matrix {
  table-layout: fixed;
  min-width: 980px;
}

.gap-matrix caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.gap-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #080f1e;
  box-shadow: inset 0 -2px 0 var(--border-bright);
}

.gap-matrix tbody th,
.gap-matrix tbody td {
  padding: 15px 18px;
  border-right: 1px solid rgba(26, 56, 92, 0.42);
  border-bottom: 1px solid rgba(26, 56, 92, 0.72);
  vertical-align: top;
  word-break: normal;
  overflow-wrap: anywhere;
}

.gap-matrix tbody th {
  color: var(--white);
  font-weight: 700;
  text-align: left;
}

.gap-matrix tbody th:last-child,
.gap-matrix tbody td:last-child {
  border-right: 0;
}

.gap-matrix tbody tr:nth-child(odd) {
  background: rgba(15, 30, 56, 0.68);
}

.gap-matrix tbody tr:nth-child(even) {
  background: rgba(8, 15, 30, 0.58);
}

.gap-matrix tbody tr:hover {
  background: rgba(41, 182, 246, 0.12);
}

.gap-matrix small {
  display: block;
  margin-top: 8px;
  color: var(--gray-dim);
  font-size: 11px;
  line-height: 1.55;
}

.gap-matrix a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gap-matrix .source-cell {
  gap: 6px;
}

summary:focus-visible,
.standard-faq summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .standard-eeat {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .standard-section {
    padding: 72px 0;
  }

  .standard-section--compact {
    padding-top: 36px;
  }

  .gap-matrix-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .gap-matrix-wrap::after {
    display: none;
  }

  .gap-matrix,
  .gap-matrix thead,
  .gap-matrix tbody,
  .gap-matrix tr,
  .gap-matrix th,
  .gap-matrix td {
    display: block;
    width: 100%;
  }

  .gap-matrix {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 14px;
    font-size: 14px;
  }

  .gap-matrix colgroup,
  .gap-matrix thead {
    display: none;
  }

  .gap-matrix tbody tr {
    border: 1px solid rgba(41, 182, 246, 0.22);
    border-radius: 8px;
    background: var(--bg-card);
    overflow: hidden;
  }

  .gap-matrix tbody tr:nth-child(odd),
  .gap-matrix tbody tr:nth-child(even),
  .gap-matrix tbody tr:hover {
    background: var(--bg-card);
  }

  .gap-matrix tbody th {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 56, 92, 0.72);
    background: rgba(8, 15, 30, 0.6);
  }

  .gap-matrix tbody th::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .gap-matrix tbody td {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(26, 56, 92, 0.52);
  }

  .gap-matrix tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
  }

  .gap-matrix tbody td:last-child {
    border-bottom: 0;
  }
}

/* Live-example pointer inside the "under verification" card — guides testers
   to a comparison that IS published so they always find a working result. */
.cs-verifying__example {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border: 1px solid var(--accent, #29b6f6);
  border-radius: 8px;
  color: var(--accent, #29b6f6);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  min-height: 44px;
  line-height: 24px;
}
.cs-verifying__example:hover { background: rgba(41,182,246,0.10); }
