/* V8 section pattern (pilot): P18 white cards on a tinted ground,
   P20 position indicator at the head, P19 closing block at the tail.
   Scope: only articles whose .article-content carries .v8. */
.article-content.v8{
  background:#f7efe0;
  border:1px solid var(--fd-line);
  border-radius:20px;
  padding:26px clamp(12px,3vw,34px) 34px;
}
.article-content.v8>section{margin-top:22px}
.article-content.v8>section:first-of-type{margin-top:18px}

/* P20: position indicator */
.v8-progress{
  background:#fff;
  border:1px solid var(--fd-line);
  border-radius:12px;
  padding:12px 14px;
}
.v8-progress .v8-progress-label{
  margin:0 0 8px;font-size:.8rem;font-weight:700;letter-spacing:.06em;color:var(--fd-muted);
}
.v8-progress ol{
  list-style:none;margin:0;padding:0;display:flex;gap:8px;flex-wrap:wrap;
}
@media (max-width:640px){
  .v8-progress ol{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
}
.v8-progress li{flex:0 0 auto}
.v8-progress a{
  display:inline-flex;align-items:center;gap:7px;
  border:1px solid var(--fd-line);border-radius:999px;
  padding:5px 12px 5px 6px;font-size:.85rem;line-height:1.4;color:var(--fd-ink);
  text-decoration:none;background:#fff;white-space:nowrap;
}
.v8-progress a:hover{border-color:var(--fd-accent)}
.v8-progress .v8-num{
  display:inline-flex;align-items:center;justify-content:center;
  width:20px;height:20px;border-radius:50%;
  background:var(--fd-accent);color:#fff;font-size:.72rem;font-weight:700;
}

/* P18: white cards wrapping each section */
.article-content.v8>.reference-section{
  background:#fff;
  border:1px solid var(--fd-line);
  border-radius:14px;
  padding:28px clamp(16px,3vw,32px) 32px;
  box-shadow:0 1px 3px rgba(51,38,28,.06),0 10px 26px rgba(51,38,28,.05);
}

.article-content.v8>.reference-section--compare{border-top:4px solid var(--color-compare)}
.article-content.v8>.reference-section--decision{border-top:4px solid var(--color-compare)}
.article-content.v8>.reference-section--trust{border-top:4px solid var(--color-trust)}
.article-content.v8>.reference-section--caution{border-top:4px solid var(--color-caution)}

/* P19: closing block (final check + related + sources as one unit) */
.v8-closing{
  margin-top:22px;
  background:var(--fd-soft);
  border:1px solid var(--fd-line);
  border-radius:14px;
  padding:24px clamp(16px,3vw,32px) 28px;
}
.v8-closing .v8-closing-label{
  margin:0 0 4px;font-size:.8rem;font-weight:700;letter-spacing:.06em;color:var(--fd-muted);
}
.v8-closing>section{margin-top:20px;padding-top:0;border-top:0}
.v8-closing>section:first-of-type{margin-top:8px}
.v8-closing>section+section{border-top:1px solid var(--fd-line);padding-top:20px}

@media (max-width:640px){
  .article-content.v8{padding:16px 10px 22px;border-radius:16px}
  .article-content.v8>.reference-section{padding:20px 14px 24px}
  .v8-closing{padding:18px 14px 22px}
}

/* V8 variant: cards for sections inside a marked wrapper (.v8-cards).
   For articles whose body sections sit inside a genre wrapper
   (e.g. .heater-guide) that carries its own scoped styles.
   The wrapper keeps its own classes; adding .v8-cards opts its
   direct child sections into the same card treatment. */
.article-content.v8>.v8-cards{margin-top:18px}
.article-content.v8 .v8-cards>section{margin-top:22px}
.article-content.v8 .v8-cards>section:first-of-type{margin-top:0}
.article-content.v8 .v8-cards>.reference-section{
  background:#fff;
  border:1px solid var(--fd-line);
  border-radius:14px;
  padding:28px clamp(16px,3vw,32px) 32px;
  box-shadow:0 1px 3px rgba(51,38,28,.06),0 10px 26px rgba(51,38,28,.05);
}
.article-content.v8 .v8-cards>.reference-section--compare{border-top:4px solid var(--color-compare)}
.article-content.v8 .v8-cards>.reference-section--decision{border-top:4px solid var(--color-compare)}
.article-content.v8 .v8-cards>.reference-section--trust{border-top:4px solid var(--color-trust)}
.article-content.v8 .v8-cards>.reference-section--caution{border-top:4px solid var(--color-caution)}
@media (max-width:640px){
  .article-content.v8 .v8-cards>.reference-section{padding:20px 14px 24px}
}
