/* ==========================================================================
   TABLES & LONG-FORM READING POLISH
   Treat deep content like an editorial document, not a stack of cards.
   ========================================================================== */

.prose,
.methodology-prose,
.policy-shell .prose {
  max-width: var(--measure-copy);
}

.prose > h2 {
  max-width: 24ch;
  margin-top: var(--space-9);
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose > p {
  max-width: var(--measure-copy);
  margin: 0;
  color: #655b4e;
  line-height: var(--leading-reading);
}

.prose > p + p {
  margin-top: var(--space-4);
}

.prose a:not(.button) {
  color: var(--market-red);
  text-decoration-color: rgba(143,56,38,.42);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.prose a:not(.button):hover {
  text-decoration-color: var(--market-red);
}

.content-jump-nav,
.review-jump-nav {
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
}

.content-jump-nav a,
.review-jump-nav a {
  scroll-snap-align: start;
}

/* Methodology and policy pages are concise reference documents, so their section
   rhythm is intentionally tighter than long product-review reading. */
.methodology-prose > h2,
.policy-shell .prose > h2 {
  max-width: 28ch;
  margin-top: var(--space-8);
}

.methodology-prose > h2:first-child,
.policy-shell .prose > h2:first-child {
  margin-top: 0;
}

/* Product review reading rhythm */

.review-content > section + section,
.review-content > section + .tradeoff-grid,
.review-content > .tradeoff-grid + section {
  margin-top: 40px;
  padding-top: 40px;
}

.review-content > .verdict-section {
  padding: clamp(26px, 3.2vw, 34px) !important;
}

.review-content > .verdict-section::before {
  top: 24px;
  bottom: 24px;
}

.review-content > .verdict-section h2 {
  max-width: 40ch;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.review-content > .verdict-section .verdict-body {
  max-width: 68ch;
  margin-top: 14px;
  font-size: .96rem;
  line-height: 1.68;
}

.review-content > .decision-section > .kicker,
.review-content > .verified-specs > .kicker,
.review-content > .faq-section > .kicker,
.review-content > .source-section > .kicker {
  margin-bottom: 14px;
}

.review-content > .faq-section,
.review-content > .source-section {
  margin-top: 40px;
  padding-top: 40px;
}

.review-content > .source-section .source-intro {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .review-content > section + section,
  .review-content > section + .tradeoff-grid,
  .review-content > .tradeoff-grid + section,
  .review-content > .faq-section,
  .review-content > .source-section {
    margin-top: 32px;
    padding-top: 32px;
  }

  .review-content > .verdict-section {
    padding: 22px 18px !important;
  }

  .review-content > .verdict-section h2 {
    font-size: clamp(1.25rem, 5vw, 1.35rem);
    line-height: 1.18;
  }
}

/* Verified specs read as one data ledger, not many independent cards. */
.verified-specs .spec-grid {
  overflow: hidden;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(246,243,234,.68);
  box-shadow: var(--shadow-sm);
}

.verified-specs .spec-item {
  min-width: 0;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.verified-specs .spec-item:nth-child(2n) {
  border-right: 0;
}

.verified-specs .spec-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.verified-specs .spec-item dt {
  margin: 0 0 6px;
  color: #7a6e5d;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.verified-specs .spec-value {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.verified-specs .spec-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.5;
}

/* FAQ uses editorial separators and a clear open state. */
.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 18px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.faq-list summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid rgba(143,56,38,.22);
  border-radius: 50%;
  color: var(--market-red);
  background: rgba(239,225,189,.36);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
}

.faq-list details[open] summary {
  color: var(--market-red);
}

.faq-list details[open] summary::after {
  border-color: rgba(143,56,38,.42);
  background: rgba(210,163,60,.14);
}

.faq-list details p {
  max-width: var(--measure-copy);
  margin: -2px 44px 20px 0;
  color: #655b4e;
  line-height: var(--leading-reading);
}

/* Sources become an explicit editorial bibliography. */
.source-section {
  padding-top: var(--space-7);
  border-top: 1px solid var(--line-strong);
}

.source-intro {
  max-width: var(--measure-copy);
  margin-bottom: 0;
  color: #706454;
}

.source-list {
  counter-reset: source;
  display: grid;
  gap: 0;
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.source-list li {
  counter-increment: source;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.source-list li + li {
  margin-top: 0;
}

.source-list li::before {
  color: var(--market-red);
  content: counter(source, decimal-leading-zero);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.source-list a {
  min-width: 0;
  color: #55493c;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.5;
  text-decoration-color: rgba(143,56,38,.30);
}

.source-list a:hover {
  color: var(--market-red);
  text-decoration-color: var(--market-red);
}

/* Comparison table: caption, readable rows and sticky context column. */
.table-scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: #7c705f;
  font-size: .7rem;
  font-weight: 650;
}

.comparison-table-wrap {
  position: relative;
  border-color: var(--line-strong);
  background: var(--market-cream);
  box-shadow: var(--shadow-sm);
}

.comparison-table caption {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-strong);
  color: #665b4d;
  background: rgba(239,225,189,.52);
  font-size: .72rem;
  font-weight: 740;
  letter-spacing: .015em;
}

.comparison-table thead th {
  padding-block: 14px;
  color: var(--market-cream);
  background: var(--market-green);
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  border-bottom-color: var(--line);
  line-height: 1.5;
}

.comparison-table tbody th {
  color: #55493c;
  background: rgba(239,225,189,.52);
  font-size: .8rem;
  font-weight: 760;
}

.comparison-table tbody td {
  color: #5f5548;
  background: rgba(246,243,234,.62);
}

.comparison-table tbody tr:nth-child(even) td {
  background: rgba(239,225,189,.18);
}

.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th {
  background: rgba(210,163,60,.10);
}

.comparison-table tbody tr.comparison-table-row--key th {
  color: var(--market-red);
  background: rgba(239,225,189,.68);
  box-shadow: inset 4px 0 0 var(--market-gold);
}

.comparison-table tbody tr.comparison-table-row--key td {
  color: var(--ink);
  background: rgba(210,163,60,.09);
  font-weight: 700;
}

.comparison-table tbody tr.comparison-table-row--key:hover th,
.comparison-table tbody tr.comparison-table-row--key:hover td {
  background: rgba(210,163,60,.15);
}

/* Callouts share one restrained editorial language. */
.methodology-note,
.editorial-note,
.comparison-callout {
  border: 0 !important;
  border-left: 5px solid var(--market-gold) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  background: rgba(210,163,60,.08) !important;
  box-shadow: none !important;
}

.editorial-note {
  border-left-color: var(--market-red) !important;
}

.methodology-note h3,
.comparison-callout h2,
.editorial-note > p:last-child {
  max-width: var(--measure-copy);
}

.related-comparison {
  border: 0 !important;
  border-top: 1px solid var(--line-strong) !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Quick metadata should resemble a reference panel, not another card. */
.review-aside {
  border-color: var(--line-strong);
  background: rgba(246,243,234,.72);
  box-shadow: var(--shadow-sm);
}

.review-aside dt {
  letter-spacing: .035em;
  text-transform: uppercase;
}

.review-aside dd + dt {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .verified-specs .spec-grid {
    grid-template-columns: 1fr;
  }

  .verified-specs .spec-item,
  .verified-specs .spec-item:nth-child(2n),
  .verified-specs .spec-item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .verified-specs .spec-item:last-child {
    border-bottom: 0;
  }

  .table-scroll-hint {
    display: block;
  }

  .comparison-table thead th:first-child,
  .comparison-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
  }

  .comparison-table thead th:first-child {
    z-index: 3;
    background: var(--market-green);
  }

  .comparison-table tbody th {
    box-shadow: 8px 0 12px rgba(71,55,38,.05);
  }
}

@media (max-width: 640px) {
  .prose > h2 {
    margin-top: var(--space-8);
  }

  .faq-list details p {
    margin-right: 0;
  }

  .source-list li {
    grid-template-columns: 28px minmax(0,1fr);
  }

  .comparison-table caption {
    min-width: 720px;
  }
}
