/* V28: authoritative layout for the header, hero compositions and score dials.
   Superseded selectors have been removed from site.css, not stacked here. */

:root { --header: 116px; }
html { scroll-padding-top: calc(var(--header) + 20px); }
main, section, article, figure, aside { min-width: 0; }
figure { margin: 0; }
.display { line-height: .98; }
.kicker { overflow-wrap: anywhere; }
.site-header { height: var(--header); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 32px; padding-inline: var(--pad); position: sticky; top: 0; z-index: 80; background: rgba(241,238,230,.97); border-bottom: 1px solid var(--rule); }
.site-wordmark { position: relative; display: block; width: min(100%, 180px); justify-self: start; padding-bottom: 9px; }
.site-wordmark img { width: 100%; height: auto; }
.site-wordmark::after { content: ''; position: absolute; left: 0; bottom: 0; width: 73%; height: 4px; background: var(--pink); border-radius: 50%; transform: rotate(-2deg); }
.main-nav { gap: clamp(16px, 2.3vw, 36px); }

/* Notes and model captions now share the car's natural layout, not viewport offsets. */
.hero, .market-hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: center; position: relative; padding: 54px var(--pad) 46px; min-height: 610px; overflow: clip; }
.hero-copy, .market-hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { font-size: clamp(62px, 6.8vw, 114px); line-height: .97; letter-spacing: -.045em; margin: 20px 0 0; }
.hero .hero-dek { max-width: 450px; font-size: clamp(22px, 2vw, 30px); line-height: 1.2; margin: 26px 0; }
.hero-stage, .market-hero-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 30px 0 12px; }
.hero-accent, .market-hero-stage::before { content: ''; position: absolute; width: 67%; height: 84%; top: 3%; left: 20%; z-index: -1; background: var(--market-accent, var(--mint)); transform: rotate(-7deg); opacity: .82; }
.hero-note, .market-hero-stage > .hand { position: relative; grid-row: 1; justify-self: end; margin: 0 7% 14px 0; max-width: 190px; font: 400 clamp(18px, 1.5vw, 24px)/1.15 var(--hand); white-space: pre-line; transform: rotate(-5deg); }
.hero-note::after { content: none; }
.hero-car, .market-hero-stage > img { grid-row: 2; width: 100%; max-width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 10px rgba(20,20,12,.12)); }
/* A selection that the summary cannot price stays blank until its own result is ready. */
html[data-rc-hold-prices] [data-price-sold],
html[data-rc-hold-prices] [data-price-ask] { visibility: hidden; }
.hero-caption, .market-caption { grid-row: 3; position: relative; justify-self: end; margin: 12px 3% 0 0; max-width: 90%; text-align: right; font: 400 clamp(17px, 1.3vw, 22px)/1.2 var(--hand); transform: rotate(-4deg); }
.market-hero h1 { font-size: clamp(52px, 5.8vw, 90px); line-height: .99; margin: 18px 0; overflow-wrap: anywhere; }
.market-hero .lede { font: 400 clamp(23px, 2.2vw, 30px)/1.15 var(--serif); margin: 0 0 16px; }
.market-hero .desc { font: 400 20px/1.3 var(--serif); color: var(--muted); max-width: 450px; margin-bottom: 24px; }
.variant-row { flex-wrap: wrap; gap: 8px; align-items: center; }
.variant-note { position: static; font-size: 17px; margin: 6px 0 0 8px; }
.variant-note::before { display: none; }
.variant { line-height: 1.3; min-height: 40px; }
.taxonomy { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; height: auto; min-height: 46px; }
.taxonomy > * { min-width: 0; padding: 15px 6px; }

/* Shared SVG dials. Needle and scale use the same linear coordinate system. */
.rev-dial { display: block; width: 100%; height: auto; overflow: visible; color: var(--ink); }
.rev-dial-arc { fill: none; stroke: currentColor; stroke-width: 2; }
.rev-dial-redline { fill: none; stroke: var(--pink); stroke-width: 6; }
.rev-dial-ticks { fill: none; stroke: currentColor; stroke-width: 1.2; }
.rev-dial-labels { fill: currentColor; font: 500 12px var(--sans); text-anchor: middle; }
.rev-dial-needle { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; }
.rev-dial-hub { fill: currentColor; }
.rev-dial--mini { display: inline-block; width: 46px; flex: 0 0 46px; vertical-align: middle; }
.rev-dial--mini .rev-dial-arc { stroke-width: 5; }
.rev-dial--mini .rev-dial-ticks { stroke-width: 3; }
.rev-dial--mini .rev-dial-needle { stroke-width: 7; }
.rev-dial--large { width: min(100%, 360px); margin: 24px 0 8px; }
.market-show-score > .rev-dial { grid-row: 1 / 3; align-self: center; }
.category-rev > .rev-dial { width: 42px; flex-basis: 42px; }
.tile-score .rev-dial { margin-right: 6px; }
.rev-panel { display: block; min-width: 0; padding: 24px; color: var(--ink); }
.rev-panel h4 { margin: 0 0 16px; font: 600 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rev-panel-thought { font: 600 9px/1.5 var(--sans); color: var(--pink); margin: -5px 0 14px; letter-spacing: .06em; }
.rev-panel-body { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.rev-panel-meter { flex: 1 1 135px; max-width: 220px; min-width: 0; }
.rev-value { font: 600 46px/1.05 var(--sans); letter-spacing: -.055em; margin-top: 6px; }
.rev-value small { font-size: 14px; margin-left: 7px; letter-spacing: 0; }
.rev-tags { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; flex: 0 1 auto; }
.rev-tags > * { font: 600 9px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.rev-tags button { background: transparent; padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.rev-panel-note { font-size: 18px; margin: 24px 0 0; }
.market-editorial-score .rev-panel, .market-side-score .rev-panel { padding: 0; }
.about-rev-gauge .rev-dial { align-self: flex-start; }
.method-hero .method-note { position: static; margin-top: 24px; }

/* The editorial spread is allowed to grow; no text is pinned to a fixed-height cell. */
.home-spread { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.home-story { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; padding: 36px var(--pad); border-right: 1px solid var(--rule); align-items: center; }
.home-story-copy h2, .home-field-copy h2 { font-size: clamp(36px, 3.5vw, 60px); line-height: 1; margin: 16px 0; letter-spacing: -.045em; }
.home-story-copy p, .home-field-copy p { font: 400 19px/1.3 var(--serif); color: #5b574f; margin: 0 0 18px; }
.mini-note { position: static; font-size: 16px; line-height: 1.25; margin-top: 28px; transform: rotate(-4deg); }
.hand-graph { position: relative; width: min(180px, 90%); height: 95px; margin: 18px 0 0; border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; align-items: end; gap: 15%; padding: 0 12px; }
.hand-graph span { width: 2px; background: var(--ink); transform: rotate(4deg); }
.hand-graph span:nth-child(1) { height: 15%; }.hand-graph span:nth-child(2) { height: 28%; }.hand-graph span:nth-child(3) { height: 42%; }.hand-graph span:nth-child(4) { height: 62%; }.hand-graph span:nth-child(5) { height: 76%; }.hand-graph span:nth-child(6) { height: 95%; }
.home-ferrari-composite { width: 100%; align-self: center; }
.home-ferrari-composite img { width: 100%; height: auto; }
.home-field { display: flex; flex-direction: column; }
.home-field-top { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; padding: 36px var(--pad); align-items: center; flex: 1; }
.road-postcard { width: 100%; background: transparent; padding: 0; transform: rotate(3deg); }
.road-postcard img { width: 100%; height: auto; }
.detail-polaroid, .article-stage .detail-polaroid { position: relative; background: #faf7ef; padding: 12px 12px 34px; box-shadow: 0 8px 18px #18171012; }
.detail-polaroid::before { content: ''; position: absolute; z-index: 1; width: 38%; height: 20px; background: #ff2f87b8; top: -8px; left: 32%; transform: rotate(-5deg); }
.detail-polaroid-window { display: block; position: relative; overflow: hidden; aspect-ratio: 260 / 220; }
.detail-polaroid-window img { position: absolute; width: 146.16%; max-width: none; height: auto; left: -19.23%; top: -25%; }
.home-field-bottom { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border-top: 1px solid var(--rule); }
.home-inline-listing { padding: 24px; border-right: 1px solid var(--rule); }
.home-inline-listing .kicker { color: var(--blue); font-size: 10px; }
.inline-listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 34px; align-items: center; gap: 12px; margin-top: 14px; }
.inline-listing-grid img { width: 100%; height: 90px; object-fit: contain; grid-column: 1 / -1; }
.inline-listing-grid b, .inline-listing-grid small, .inline-listing-grid strong { display: block; }
.inline-listing-grid b { font: 600 11px/1.4 var(--sans); }
.inline-listing-grid small { font: 400 10px/1.5 var(--sans); margin: 5px 0; }
.inline-listing-grid strong { font: 600 25px/1.1 var(--sans); }
.inline-listing-grid .pick-note { position: static; grid-column: 1; grid-row: 3; padding: 0; border: 0; font: 400 17px/1.1 var(--hand); }
.inline-listing-grid .circle-arrow { grid-column: 2; grid-row: 2; }
.home-field-bottom .rev-panel { padding: 24px 18px; }
.home-field-bottom .rev-panel h4 { font-size: 10px; }
.home-field-bottom .rev-panel-meter { max-width: 180px; }
.home-field-bottom .rev-tags { flex-direction: row; flex-wrap: wrap; gap: 7px 10px; }
.home-field-bottom .rev-panel-note { display: none; }
.section-head { gap: 28px; align-items: end; }
.section-head > * { min-width: 0; }
.section-head p { line-height: 1.3; }
.news-card h3 { line-height: 1.02; }
.news-card p { line-height: 1.3; }
.market-show-title .make { line-height: 1.3; margin-bottom: 9px; }
.market-show-title .model { margin-top: 0; line-height: .98; }
.market-tile .model { line-height: .98; margin-top: 9px; }
.market-tile .model { font-size: clamp(32px, 3vw, 51px); }
.market-tile .tile-note { top: 145px; font-size: 16px; line-height: 1.15; max-width: 88px; }
.market-show-card .market-show-note { top: max(182px, var(--note-top, 182px)) !important; }
.market-show-card .market-show-title .model { font-size: clamp(50px, 3.9vw, 70px); line-height: .99; }
.small-listing .pick-note.small { position: static; display: inline-block; margin: 14px 0 10px; transform: rotate(-6deg); }
.market-side-score .side-note { position: static; display: block; clear: both; margin: 48px 0 22px; text-align: left; }
.market-side-score .watch-list { margin-top: 68px; }
.rev-tags button.active, .rev-tags button:hover, .rev-tags button:focus-visible { border-color: var(--pink); }
.email p { line-height: 1.3; }

/* Article artwork keeps its annotations outside the car silhouette. */
.article-hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 24px; align-items: center; padding: 48px var(--pad); }
.article-hero h1 { font-size: clamp(48px, 5.2vw, 84px); line-height: .99; margin: 20px 0 24px; }
.article-hero .dek { font: 400 23px/1.25 var(--serif); max-width: 460px; }
.article-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; position: relative; isolation: isolate; }
.article-color-field { position: absolute; z-index: -1; inset: 12% 8% 7% 6%; background: var(--mint); transform: rotate(-7deg); }
.article-stage .detail { grid-column: 2; grid-row: 1; position: static; width: min(100%, 230px); height: auto; padding: 0; border: 0; background: transparent; transform: rotate(4deg); justify-self: center; box-shadow: none; }
.article-stage > .hand:not(.article-car-caption) { grid-column: 1; grid-row: 1; justify-self: end; position: static; max-width: 150px; font-size: 23px; line-height: 1.2; }
.article-stage .main-car { grid-column: 1 / -1; grid-row: 2; position: static; width: 100%; height: auto; transform: none; }
.article-stage .article-car-caption { grid-column: 1 / -1; grid-row: 3; position: static; justify-self: end; font-size: 17px; line-height: 1.2; max-width: 230px; transform: rotate(-4deg); margin: 0; }
.article-body p { line-height: 1.32; }
.article-body .pullquote { line-height: 1.08; }
.article-polaroid-wrap .cockpit-note { position: static; text-align: right; margin: 16px 0 0; line-height: 1.2; }
.article-nav { overflow-x: auto; }
.article-nav button { flex-shrink: 0; white-space: nowrap; min-height: 44px; }
.market-editorial-lead h2 { line-height: .99; }
.market-editorial-copy { line-height: 1.32; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .main-nav { display: none; }
  .site-wordmark { width: 162px; }
  .hero, .market-hero { min-height: 540px; gap: 20px; }
  .hero h1 { font-size: clamp(58px, 7vw, 82px); }
  .home-spread { grid-template-columns: 1fr; }
  .home-story { border-right: 0; border-bottom: 1px solid var(--rule); }
  .home-ferrari-composite { max-width: 310px; justify-self: center; }
  .home-field-top { grid-template-columns: 1.15fr .85fr; }
  .road-postcard { max-width: 300px; justify-self: center; }
  .inline-listing-grid { grid-template-columns: minmax(100px, 1fr) minmax(0, 1fr) 36px; }
  .inline-listing-grid img { grid-column: 1; grid-row: 1 / 3; }
  .inline-listing-grid > div:not(.pick-note) { grid-column: 2; grid-row: 1; }
  .inline-listing-grid .pick-note { grid-column: 2; grid-row: 2; }
  .inline-listing-grid .circle-arrow { grid-column: 3; grid-row: 1; }
  .article-hero h1 { font-size: clamp(46px, 5.5vw, 66px); }
}

@media (max-width: 760px) {
  :root { --header: 86px; }
  .site-header { padding-inline: 20px; gap: 20px; width: 100%; }
  .site-wordmark { width: min(138px, 64vw); }
  .site-wordmark::after { height: 3px; }
  .hero, .market-hero, .article-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; height: auto; min-height: 0; max-height: none; padding: 28px 20px 32px; width: 100%; }
  .hero h1 { font-size: clamp(52px, 11.7vw, 82px); margin-top: 20px; }
  .hero .hero-dek { font-size: 23px; max-width: 420px; margin: 24px 0; }
  .hero-stage, .market-hero-stage { padding: 22px 0 10px; margin: 6px 0 0; }
  .hero-note, .market-hero-stage > .hand { font-size: 18px; margin-right: 5%; margin-bottom: 12px; }
  .hero-caption, .market-caption { font-size: 17px; margin-top: 12px; }
  .market-hero h1 { font-size: clamp(44px, 10.2vw, 72px); }
  .market-hero .desc { font-size: 20px; }
  .cta-row { gap: 15px 22px; }
  .btn-dark, .text-cta { min-width: 0; gap: 24px; }
  .taxonomy > * { font-size: 9px; letter-spacing: .06em; }
  .taxonomy, .taxonomy-static, .market-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; width: 100%; }
  .taxonomy > *, .taxonomy-static span, .market-tabs button { min-width: 0; padding: 14px 2px; font-size: 9px; letter-spacing: 0; }
  .home-story { gap: 24px; padding: 32px 20px; grid-template-columns: 1fr; }
  .home-story-copy h2, .home-field-copy h2 { font-size: clamp(36px, 9.5vw, 54px); line-height: 1.03; }
  .home-story-copy .mini-note { display: inline-block; width: 45%; vertical-align: middle; }
  .home-story-copy .hand-graph { display: inline-flex; width: 45%; height: 85px; vertical-align: middle; }
  .home-ferrari-composite { max-width: 330px; }
  .home-field-top { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; }
  .road-postcard { max-width: 280px; }
  .home-field-bottom { grid-template-columns: 1fr; }
  .home-inline-listing { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 20px; }
  .home-field-bottom .rev-panel { padding: 26px 20px; }
  .home-field-bottom .rev-panel-body { flex-wrap: nowrap; gap: 26px; }
  .home-field-bottom .rev-tags { flex-direction: column; }
  .section-head, .categories-editorial .category-head { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 32px 20px; }
  .section-head h2 { font-size: clamp(38px, 10vw, 58px); line-height: 1.02; }
  .section-head p { max-width: 420px; font-size: 18px; margin: 0; }
  .article-hero h1 { font-size: clamp(40px, 10vw, 68px); }
  .article-hero .dek { font-size: 22px; }
  .article-stage { gap: 14px; margin-top: 8px; }
  .article-stage > .hand:not(.article-car-caption) { font-size: 19px; }
  .article-stage .article-car-caption { font-size: 16px; }
  .article-body .pullquote { font-size: clamp(30px, 8vw, 42px); }
  .article-body > * { min-width: 0; }
  .market-editorial-lead h2 { font-size: clamp(40px, 10vw, 58px); }
  .about-route .about-page .editor-note { grid-template-columns: 1fr !important; }
  .about-route .about-page .editor-note-copy { width: 100%; }
  .about-route .about-page .editor-note-mark { justify-content: center !important; }
  .about-route .about-page .editor-note-mark img { margin: 0 auto; max-width: 300px; }
  .menu-overlay.open { display: block; overflow-y: auto; }
  .menu-left { padding: 84px 20px 20px; }
  .menu-right { padding: 20px; overflow: visible; }
  .menu-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; line-height: 1.15; }
  .email-note { position: static; display: block; margin-top: 18px; text-align: left; max-width: 100%; font-size: 17px; line-height: 1.25; }
  .market-show-card .market-show-title .model { font-size: 56px; }
  .market-show-card .market-show-note { top: max(186px, var(--note-top, 186px)) !important; }
  .method-hero .method-note { position: static; display: block; margin: 32px 0 0; transform: rotate(-4deg); max-width: 100%; }
  .method-hero .rev-value { margin-top: 18px; }
}

@media (max-width: 420px) {
  .metric { padding: 17px 10px; }
  .metric strong { font-size: 24px; letter-spacing: -.06em; }
  .market-show-card .market-show-title .model { font-size: 51px; }
  .market-show-card .market-show-note { top: max(177px, var(--note-top, 177px)) !important; }
  .market-tile .model { font-size: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
/* Homepage captions break on the newlines in each note. Size the note to its longest line so a phrase is not wrapped again.
   On the wide row the accent ends before the stage, so the note sits further left than the old 7% margin. */
@media (min-width: 761px) {
  .hero .hero-note { max-width: none; margin-right: 18%; text-align: right; }
}
/* Phone homepage: the note sits in the tilted accent (20%–87%, rotated -7deg), above the car.
   The top of that accent is inset further than the box, so the note keeps a wide right margin.
   58% is the narrowest cap that still holds "honed to perfection" on one line at 375px.
   Market and article heroes are unchanged. */
@media (max-width: 760px) {
  .hero .hero-note,
  .hero .hero-note[data-hero="gt3-touring"] {
    max-width: min(12.5em, 58%);
    margin-left: 18%;
    margin-right: 22%;
    margin-bottom: 18px;
    justify-self: end;
    text-align: right;
  }
}
