/* Autorestage — the dealer guides (car-photography-angles.html,
 * listing-photo-requirements.html).
 *
 * The page is the legal pages' long-document layout (legal.css) with the
 * site's own nav, footer and closing call (style.css, sections.css,
 * landing.css). This file is only what a guide adds and no page had: a
 * smaller head for a long headline, the shot-position diagram drawn in the
 * page's own tokens so both themes work, a source line, a shot list you can
 * tick, and a print layout that puts that shot list on a sheet of its own.
 *
 * A separate file and not a <style> block because the vhost's CSP is
 * `style-src 'self'`; the build hashes it like every other top-level .css. */

/* A guide's headline is a sentence, not a two-word title. */
.guide-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.045em; }

/* "Source: ... Last checked ..." under a platform's heading. */
.doc .src { margin-top: 10px; color: var(--ink-3); font-size: .9rem; line-height: 1.6; }

/* The landing pages' before/after pair sits in a section of its own there;
   in a document it follows a paragraph and needs the gap a figure gets. */
.doc .lp-pair { margin-top: 26px; }

/* ── the shot-position diagram ─────────────────────────────────────────── */
.shot-fig { margin-top: 26px; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-s), 0 0 0 1px var(--line); }
.shot-fig svg { width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.shot-fig figcaption { max-width: 60ch; margin: 18px auto 0; color: var(--ink-3); font-size: .88rem; line-height: 1.55; text-align: center; }
.sm-floor { fill: var(--bg-alt); }
.sm-walk, .sm-walk-head { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sm-walk { stroke-dasharray: 2 7; }
.sm-sight { stroke: var(--ink-3); stroke-width: 1.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.sm-tire { fill: var(--ink-2); }
.sm-body { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2; }
.sm-glass { fill: var(--line-2); }
.sm-roof { fill: var(--bg-alt); stroke: var(--line-2); stroke-width: 1.2; }
.sm-label { fill: var(--ink-3); font: 600 12px var(--font); letter-spacing: .12em; text-anchor: middle; }
/* The side labels sit on the walk circle: a halo in the floor color hides the dashes under the letters. */
.sm-side { paint-order: stroke; stroke: var(--bg-alt); stroke-width: 5px; stroke-linejoin: round; }
.sm-spot circle { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.sm-spot text { fill: var(--on-accent); font: 600 15px var(--font); text-anchor: middle; }

/* ── the shot list you can tick ────────────────────────────────────────── */
.sheet-fields { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.doc .sheet-fields span { flex: 1 1 170px; padding: 18px 0 6px; border-bottom: 1px solid var(--line-2); color: var(--ink-3); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sheet-cols { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 48px); }
.doc .sheet-group h3 { margin-top: 26px; }
.check-list { margin-top: 10px; display: grid; gap: 4px; }
.doc .check-list li { line-height: 1.45; }
.check-list label { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.check-list input { flex: none; width: 19px; height: 19px; margin: 1px 0 0; accent-color: var(--accent-ink); cursor: pointer; }
.check-list label:has(input:checked) { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }

/* ── a caption under a before/after pair inside the article ─────────────── */
/* .doc p would otherwise set it at body size and color, with a 68ch column. */
.doc .lp-gallery-note { max-width: none; margin: 12px 0 0; color: var(--ink-3); font-size: .86rem; line-height: 1.55; }

@media (max-width: 680px) {
  .sheet-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ── print ─────────────────────────────────────────────────────────────── */
@media print {
  /* Paper is white whatever the screen's theme: the dark tokens would print
     pale grey ink on it. Same specificity as the dark scopes, later file. */
  :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
    color-scheme: light;
    --bg: #fff; --bg-alt: #fff; --surface: #fff;
    --ink: #000; --ink-2: #1a1a1a; --ink-3: #4a4a4a;
    --line: #bbb; --line-2: #8a8a8a;
    --accent-ink: #000; --accent-soft: transparent;
  }
  /* A page with the shot list prints the shot list alone, on one sheet: the
     guide itself is for reading on screen, the list is for a clipboard. */
  main:has(.shot-sheet) > :not(.legal-body),
  main:has(.shot-sheet) .doc > :not(.shot-sheet),
  body:has(.shot-sheet) .foot,
  .sheet-note { display: none !important; }
  /* legal.css prints every link's address after it; a jump within the page
     has no address worth printing. */
  .doc a[href^="#"]::after { content: none; }
  .doc > .shot-sheet { margin-top: 0; padding-top: 0; border-top: 0; }
  .shot-sheet h2 { font-size: 18pt; }
  .shot-sheet h2 .n { display: none; }
  .doc .sheet-group h3 { margin-top: 14px; font-size: 11pt; }
  .doc .check-list li { font-size: 10pt; }
  .check-list { gap: 0; margin-top: 4px; }
  .check-list label { padding: 2px 0; text-decoration: none; color: #000; }
  .check-list input { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; margin-top: 2px; border: 1px solid #000; border-radius: 2px; }
  .sheet-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet-group { break-inside: avoid; }
  .shot-fig { box-shadow: 0 0 0 1px #999; }
}
