/* Shared list-first journey. Deliberately loaded after each legacy page sheet. */
:root { --list-panel: #fff; --list-accent: #15553a; --list-soft: #e6f0e7; }
html[data-theme="dark"] { --list-panel: #12261e; --list-accent: #a8e5c4; --list-soft: #193429; }
[hidden] { display: none !important; }
footer > span { min-width: 0; max-width: 100%; }
footer > span:last-child { flex-wrap: wrap; }
.list-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; max-width: 1320px; margin: auto; padding: 64px 40px; }
.list-intro h1 { font: 800 clamp(2.6rem, 4.5vw, 4.7rem)/1.03 "Aptos", "Segoe UI", sans-serif; letter-spacing: -.045em; margin: 20px 0 28px; color: var(--list-accent); }
.list-intro > p:not(.eyebrow) { max-width: 44ch; font-size: 1.1rem; }
.list-intro .list-trust { font-size: .85rem !important; color: var(--muted); margin-top: 28px; }
.list-composer { min-width: 0; border: 1px solid var(--line); border-top: 5px solid var(--list-accent); border-radius: 20px; padding: 28px; background: var(--list-panel); box-shadow: 0 12px 32px #123b2410; }
.list-composer-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.list-composer label { font-weight: 800; font-size: 1.15rem; }
.list-composer-head span { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.list-composer textarea { display: block; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1.05rem; line-height: 1.7; }
.list-composer textarea::placeholder { color: var(--muted); opacity: 1; }
.list-composer p, .list-composer small { font-size: .82rem; line-height: 1.55; color: var(--muted); }
.list-composer #homeListStatus { color: var(--ink); }
.list-composer #homeListStatus:empty { display: none; }
.list-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.list-buttons .button { font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; min-height: 46px; padding: 12px 18px; border-radius: 999px; }
.list-buttons .primary { background: #15553a; color: #fff; border: 1px solid #15553a; }
.list-buttons .secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.list-buttons .primary:hover { background: #20734e; }
.list-buttons .secondary:hover { background: var(--list-soft); }
:is(textarea, button, a, summary):focus-visible { outline: 3px solid #3b9a68; outline-offset: 4px; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1240px; padding: 40px; margin: 0 auto 30px; border-top: 1px solid var(--line); }
.workflow article > span { color: var(--list-accent); font-size: .8rem; font-weight: 800; }
.workflow h2 { font-size: 1.2rem; letter-spacing: -.02em; margin: 8px 0; }
.workflow p { color: var(--muted); font-size: .95rem; margin: 0; }
.app-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 64px; }
.list-page-heading { margin: 0 0 28px; }
.list-page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.04em; margin: 12px 0; }
.list-page-heading > p:last-child { color: var(--muted); }
.journey-disclosure { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin: 18px 0; background: var(--list-panel); }
.journey-disclosure > summary { padding: 20px 0; cursor: pointer; font-weight: 750; line-height: 1.5; }
.journey-disclosure[open] { padding-bottom: 22px; }
.journey-disclosure .workspace { margin-top: 18px; }
#browseTools .category-rail { position: static; width: auto; max-height: none; overflow: visible; margin-bottom: 20px; background: var(--list-soft); border: 0; box-shadow: none; }
#browseTools .category-rail > p { position: static; clip: auto; width: auto; height: auto; }
#browseTools .category-rail-list { display: flex; flex-wrap: wrap; width: auto; }
.results-pane { scroll-margin-top: 96px; }
.results-actions { flex-wrap: wrap; }
.results-actions .primary { background: var(--list-panel); color: var(--list-accent); border: 1px solid var(--line); }
/* Quiet comparison hierarchy: retailer, total, coverage, optional detail. */
.basket-options { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.basket-option-card, .basket-option-card.is-primary { background: var(--list-panel); color: var(--ink); box-shadow: none; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.basket-option-card.is-primary { border-inline-start: 3px solid var(--list-accent); }
.basket-option-head { padding: 0; gap: 20px; }
.basket-option-head > div:first-child { flex: 1 1 180px; }
.basket-option-head p { margin: 8px 0 0; font-size: .8rem; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); }
.basket-option-total span { font-size: .75rem; font-weight: 500; }
.basket-option-coverage { color: var(--muted); font-size: .85rem; margin: 18px 0 8px; }
.basket-option-saving { font-size: .82rem; font-weight: 500; }
.basket-option-warning { font-size: .85rem; line-height: 1.5; }
.option-breakdown { margin-top: 16px; border-top: 1px solid var(--line); }
.option-breakdown > summary, .match-detail > summary { cursor: pointer; padding: 14px 0; font-size: .85rem; font-weight: 600; }
.basket-option-card .option-breakdown ul { max-height: none; overflow: visible; border-top: 0; margin-top: 0; }
.basket-option-total strong, .basket-option-line > strong, .comparison-price, .comparison-footer strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
#comparisonDetails { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
#comparisonDetails .basket-totals { display: none; } /* The matrix already includes retailer totals. */
.comparison-matrix-wrap { border-radius: 8px; }
.comparison-matrix-wrap:focus-visible { outline: 3px solid var(--list-accent); outline-offset: 3px; }
.comparison-matrix-wrap::before { content: "Scroll across to compare all stores →"; display: block; padding: 12px 16px; color: var(--muted); font-size: .8rem; }
@media (max-width: 680px) {
  .comparison-matrix { grid-template-columns: 140px repeat(var(--retailer-count), 220px); min-width: max-content; }
  .comparison-requirement, .comparison-requirement-head, .comparison-footer-label { position: static; }
}
.comparison-cell, .comparison-cell-best { background: var(--list-panel); box-shadow: none; gap: 16px; }
.comparison-head { background: var(--list-soft); color: var(--ink); font-weight: 650; }
.comparison-price strong { font-size: 1.25rem; color: var(--ink); }
.match-detail { border-top: 1px solid var(--line); }
.match-detail .match-confidence { border: 0; border-radius: 0; padding: 0; background: none; font-weight: 500; }
.match-detail .match-reasons { margin-top: 8px; }
.results-pane *, .results-pane { animation: none !important; transition: none !important; }
@media (max-width: 520px) { .basket-option-head { flex-direction: column; gap: 16px; } .basket-option-head > div:first-child { flex: auto; } .basket-option-total { text-align: left; } }
.basket-option-card.is-primary { grid-column: 1 / -1; }
.basket-option-head { flex-wrap: wrap; }
.basket-option-head h3 { font-size: 1.2rem; }
.basket-option-total strong { font-size: 1.6rem; }
.basket-option-line strong { font-size: .9rem; }
.basket-option-line small { font-size: .8rem; }
.basket-option-line > strong { white-space: nowrap; }
.basket-option-card.is-primary ul { max-height: none; }
#appTryExample { margin-top: 12px; }
#draftStatus { font-size: .82rem; line-height: 1.5; color: var(--muted); }
#draftStatus:empty { display: none; }
html[data-theme="dark"] .basket-option-badges span, html[data-theme="dark"] .basket-option-rank { background: #244b38; color: #cef0dc; }
html[data-theme="dark"] .basket-option-card.is-primary .basket-option-rank { background: #dfff78; color: #0b3d2e; }
html[data-theme="dark"] .basket-option-warning { background: #352c16; color: #f3d18c; }
html[data-theme="dark"] .basket-option-line .basket-option-estimate, html[data-theme="dark"] .basket-option-line.is-missing > strong { color: #f3d18c; }
html[data-theme="dark"] .basket-option-line { border-color: var(--line); }
@media (max-width: 850px) {
  .list-hero { grid-template-columns: 1fr; gap: 24px; max-width: 660px; padding: 36px 24px; }
  .list-intro h1 { font-size: clamp(2.5rem, 7vw, 3.6rem); }
  .list-intro .list-trust { margin: 16px 0 0; }
  .app-shell { width: calc(100% - 32px); }
  .quick-basket-pane { grid-template-columns: 1fr; }
  .basket-options { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .list-hero { padding: 28px 18px; }
  .list-composer { padding: 20px; }
  .list-composer-head { align-items: start; flex-direction: column; gap: 4px; }
  .list-buttons .button { width: 100%; }
  .workflow { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .app-shell { width: calc(100% - 24px); padding-top: 22px; }
  .journey-disclosure { padding-inline: 14px; }
  .quick-basket-pane { padding: 22px 14px; }
  .quick-basket-copy > p:not(.eyebrow) { font-size: .9rem; }
  .basket-option-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }