/* Styles for the build-time pages (car profiles, hubs, the methodology page and the 404). The app's own stylesheet
   supplies the tokens, header, footer and shared components, so these pages inherit the theme and dark mode for free;
   this file only adds the long-form reading layout. */
.page.doc{max-width:calc(820px + 2*var(--gutter));padding-bottom:56px}
.doc h1{margin-bottom:12px}
.doc h1,.doc h2{letter-spacing:-.02em;word-spacing:.04em}
.doc h2{margin:40px 0 12px;font-size:clamp(1.3rem,2.2vw,1.55rem);line-height:1.25}
.doc h3{font-size:var(--fs-4);margin-bottom:8px}
.doc .lede{color:var(--secondary);font-size:var(--fs-5);line-height:1.5;margin-bottom:24px;max-width:68ch}
.doc p{margin:0 0 14px}
.doc article>p:not(.lede):not(.small),.doc .detail-section>p:not(.small){font-size:1.0625rem;line-height:1.7;max-width:68ch}
.doc p.small{font-size:var(--fs-2);line-height:1.55}
.doc .detail-section{margin-top:0}
.doc .eyebrow{margin-bottom:8px}
.crumb-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--sp-4);margin:-8px 0 8px}
.crumbs ol{list-style:none;display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;font-size:var(--fs-2);color:var(--secondary)}
.crumbs li{display:flex;align-items:center;min-height:44px;min-width:0}
.crumbs li+li::before{content:'›';margin:0 8px;color:var(--secondary)}
.crumbs a,.crumb-more{display:inline-flex;align-items:center;min-height:44px;color:var(--secondary);font-size:var(--fs-2);text-underline-offset:3px}
.crumb-more{font-weight:600;color:var(--accent)}
.crumbs [aria-current]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.link-section{margin-bottom:24px}
.doc-figure{margin:0 0 24px;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;background:var(--surface)}
.doc-figure img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;background:linear-gradient(180deg,var(--plinth-top),var(--plinth-bottom))}
.doc-figure figcaption{padding:10px 16px;line-height:20px}
.doc-figure figcaption a{display:inline-block;padding:12px 0;margin:-12px 0;line-height:20px}
.doc .detail-hero{margin:0 0 12px}
.score-line{display:grid;gap:10px;margin:0 0 8px}
.score-line .match-meter{width:min(100%,280px)}
.score-line p{margin:0}
.doc .detail-facts{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:20px;margin:0}
.doc .breakdown{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:8px 20px}
.doc .breakdown>div:last-child{border-bottom:0}
.pros-cons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:var(--sp-4);margin:24px 0 0}
.pros-cons>div{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:18px 20px}
.pros-cons ul{margin:0;padding-left:20px;font-size:var(--fs-3);line-height:1.7;color:var(--secondary)}
.list-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-3) var(--sp-4);margin:0 0 20px}
.list-tools .shown{margin:0}
.list-tools .cta{margin:0}
.chip-nav{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2) var(--sp-3);margin:0 0 12px}
.chip-label{font-size:var(--fs-2);font-weight:600;color:var(--secondary);min-width:6.5em}
.chip-nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:0;padding:0}
.chip-nav .chip{display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-weight:500}
.chip-nav .chip .muted{font-variant-numeric:tabular-nums}
@media(hover:hover) and (pointer:fine){.chip-nav .chip:hover{background:var(--soft)}}
.link-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-3)}
.doc .link-list{padding-left:0;margin:12px 0 0}
.link-list a{display:flex;align-items:center;gap:14px;min-height:44px;height:100%;padding:10px 14px 10px 10px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);box-shadow:var(--elev-1);text-decoration:none;color:var(--text);transition:background-color var(--dur-1) var(--ease-standard)}
.link-list .thumb{flex:none;width:120px;aspect-ratio:16/10;border-radius:var(--r-xs);background:linear-gradient(180deg,var(--plinth-top),var(--plinth-bottom))}
.link-list .thumb img{display:block;width:100%;height:100%;object-fit:contain;border-radius:var(--r-xs);background:linear-gradient(180deg,var(--plinth-top),var(--plinth-bottom))}
.link-list .card-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.link-list strong{font-weight:600;font-size:var(--fs-3);line-height:1.4}
.link-list .small{margin:0}.link-list .card-stat{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.text-links a{padding:14px 16px}
.link-list a:active{background:var(--soft)}
@media(prefers-reduced-motion:no-preference){.link-list a{transition:background-color var(--dur-1) var(--ease-standard),scale var(--dur-1) var(--ease-standard),box-shadow var(--dur-3) var(--ease-standard),border-color var(--dur-3) var(--ease-standard)}.link-list a:active{scale:.99}}
@media(hover:hover) and (pointer:fine){.link-list a:hover{box-shadow:var(--elev-2);border-color:var(--border-strong)}}
@media(min-width:760px){.link-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.more-list{margin-top:12px}
.more-list>summary{display:inline-flex;align-items:center;gap:var(--sp-2);min-height:44px;padding:0 16px;border:1px solid var(--border);border-radius:var(--r-sm);background:var(--surface);font-size:var(--fs-3);font-weight:600;cursor:pointer;list-style:none}
.more-list>summary::-webkit-details-marker{display:none}
@media(hover:hover) and (pointer:fine){.more-list>summary:hover{background:var(--soft)}}
.cta{margin:32px 0 16px}
.print-line{display:none}
@media(max-width:760px){.crumbs{min-width:0;flex:1 1 100%}.crumbs ol{flex-wrap:nowrap}.crumbs li{flex:none}.crumbs li:last-child{flex:1 1 auto}.crumb-more{flex:none}.doc h2{margin-top:32px}.doc .lede{font-size:var(--fs-4)}.link-list a{gap:var(--sp-3)}.link-list .thumb{width:104px}}
@media(max-width:520px){.doc .detail-stat strong{font-size:var(--fs-5);line-height:var(--lh-5)}.doc .detail-facts{grid-template-columns:1fr 1fr;padding:16px}.list-tools .cta{width:100%}.chip-label{min-width:0;width:100%}}
/* Print: the figure shrink-wraps the 9cm photo (the caption takes the photo's width instead of setting it), a heading stays with its first paragraph, and the cost table with its intro. */
@media print{.doc .cta,.list-tools,.chip-nav,.link-section,.crumb-row,.more-list,.skip{display:none!important}.page.doc{max-width:none;padding:0}.doc-figure{width:fit-content;max-width:100%;margin-inline:auto;break-inside:avoid;border-color:#ccc}.doc-figure img{width:auto;max-width:100%;max-height:9cm}.doc-figure figcaption{width:0;min-width:100%}.doc h2{break-after:avoid}.doc .breakdown{break-before:avoid}.doc-figure figcaption a{text-decoration:none;color:inherit}.print-line{display:block;margin-top:24px;padding-top:8px;border-top:1px solid #ccc;font-size:9pt;color:#444}.pros-cons>div,.doc .detail-facts,.doc .breakdown,.detail-stat{break-inside:avoid}}
