/* detailreport.app — one stylesheet, no scripts. System fonts, light and dark. */
:root {
  --bg:#f7f5f2; --card:#ffffff; --text:#1b1a19; --muted:#625d58; --line:#e4dfd8;
  --accent:#d92a0f; --accent-text:#c0240b; --on-accent:#ffffff; --ink:#141414; --soft:#f0ece6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg:#111112; --card:#1b1b1d; --text:#f3f2f0; --muted:#aaa6a1; --line:#303033;
    --accent:#ec3013; --accent-text:#ff7a5f; --on-accent:#ffffff; --ink:#000000; --soft:#202023; }
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text);
  font:17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width:100%; }
a { color:var(--accent-text); }
.wrap { max-width:960px; margin:0 auto; padding:0 20px; }
.narrow { max-width:760px; }

/* header */
.site-header { background:var(--ink); color:#fff; border-bottom:3px solid var(--accent); }
.site-header .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; }
.brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; font-weight:700; font-size:19px; letter-spacing:-.01em; }
.brand img { width:38px; height:38px; border-radius:9px; display:block; }
.site-nav { display:flex; align-items:center; gap:4px; }
.site-nav a { color:#d8d6d3; text-decoration:none; font-size:15px; font-weight:600; padding:9px 12px; border-radius:8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color:#fff; background:rgba(255,255,255,.1); }

/* hero */
.hero { padding:44px 0 8px; }
.hero-top { display:flex; align-items:center; gap:22px; }
.hero-icon { width:96px; height:96px; border-radius:22px; box-shadow:0 8px 22px rgba(0,0,0,.22); flex:none; }
.eyebrow { margin:0; font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
h1 { margin:4px 0 0; font-size:clamp(34px, 6vw, 50px); line-height:1.08; letter-spacing:-.02em; }
.sub { margin:10px 0 0; font-size:clamp(19px, 3vw, 24px); color:var(--muted); line-height:1.35; }
.meta { margin:8px 0 0; font-size:14px; color:var(--muted); }
.actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 22px; border-radius:10px;
  font-weight:700; font-size:16px; text-decoration:none; border:1px solid transparent; }
.btn-primary { background:var(--accent); color:var(--on-accent); }
.btn-primary:hover { filter:brightness(.93); }
.btn-ghost { background:var(--card); color:var(--text); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--muted); }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin:28px 0 0; padding:0; list-style:none; }
.chips a { display:block; padding:6px 14px; border:1px solid var(--line); border-radius:999px; background:var(--card);
  color:var(--muted); font-size:14px; font-weight:600; text-decoration:none; }
.chips a:hover { color:var(--text); border-color:var(--muted); }

/* sections */
section { margin-top:56px; scroll-margin-top:20px; }
h2 { margin:0; font-size:clamp(24px, 4vw, 30px); line-height:1.2; letter-spacing:-.015em; }
h2::before { content:""; display:block; width:36px; height:4px; background:var(--accent); border-radius:2px; margin-bottom:12px; }
.lead { margin:12px 0 0; color:var(--muted); max-width:70ch; }
.prose { max-width:70ch; color:var(--muted); }
.prose p { margin:16px 0 0; }
.roles { list-style:none; margin:16px 0 0; padding:0; display:grid; gap:8px; max-width:70ch; }
.roles li { position:relative; padding-left:20px; color:var(--muted); }
.roles li::before { content:""; position:absolute; left:0; top:.62em; width:8px; height:8px; border-radius:2px; background:var(--accent); }
.roles strong { color:var(--text); }
.small { font-size:15px; color:var(--muted); max-width:72ch; margin:18px 0 0; }
.small strong, .prose strong { color:var(--text); }

.cards { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:14px; }
@media (min-width:680px) { .cards { grid-template-columns:1fr 1fr; } }
.cards li { display:flex; gap:16px; padding:18px 20px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.cards .num { flex:none; width:30px; font-size:24px; font-weight:800; line-height:1.15; color:var(--line); }
@media (prefers-color-scheme: dark) { .cards .num { color:#4a4a4e; } }
.cards h3 { margin:0; font-size:17px; }
.cards p { margin:4px 0 0; font-size:15px; line-height:1.5; color:var(--muted); }

.deflist { margin:24px 0 0; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.deflist > div { padding:16px 20px; display:grid; gap:4px; }
.deflist > div + div { border-top:1px solid var(--line); }
@media (min-width:680px) { .deflist > div { grid-template-columns:230px 1fr; gap:24px; } }
.deflist dt { font-weight:700; font-size:16px; }
.deflist dd { margin:0; font-size:15px; line-height:1.55; color:var(--muted); }

.steps { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:12px; }
.steps li { display:flex; gap:16px; padding:18px 20px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.steps .n { flex:none; width:32px; height:32px; border-radius:50%; background:var(--ink); color:#fff; font-weight:700; font-size:15px;
  display:flex; align-items:center; justify-content:center; }
@media (prefers-color-scheme: dark) { .steps .n { background:var(--accent); } }
.steps p { margin:0; font-size:15px; line-height:1.55; color:var(--muted); }
.steps strong { color:var(--text); }

.table-wrap { margin:24px 0 0; overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:12px; }
table { width:100%; border-collapse:collapse; font-size:15px; }
th { text-align:left; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding:12px 16px; border-bottom:1px solid var(--line); }
td { padding:12px 16px; vertical-align:top; color:var(--muted); border-top:1px solid var(--line); }
tbody tr:first-child td { border-top:0; }
td:first-child { font-weight:700; color:var(--text); white-space:nowrap; }
td:last-child { white-space:nowrap; }

.band { margin-top:56px; background:var(--ink); color:#fff; border-radius:14px; padding:22px 24px;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; }
.band p { margin:0; }
.band span { color:#b9b6b2; }
.band .btn { background:#fff; color:#141414; }

/* privacy / plain documents */
.doc { padding:44px 0 0; }
.doc h1 { font-size:clamp(30px, 5vw, 40px); }
.doc h2 { font-size:22px; margin:40px 0 10px; padding-top:22px; border-top:1px solid var(--line); }
.doc .meta { margin:6px 0 22px; }
.doc h2::before { display:none; }
.doc h3 { font-size:17px; margin:24px 0 4px; }
.doc p, .doc li { margin:0 0 12px; }
.doc ul { padding-left:22px; margin:0 0 12px; }
.summary { border-left:4px solid var(--accent); background:var(--soft); border-radius:8px; padding:14px 18px; margin:20px 0 0; }
.summary p { margin:0; }

/* footer */
.site-footer { margin-top:72px; border-top:1px solid var(--line); padding:26px 0 40px; font-size:14px; color:var(--muted); }
.site-footer .wrap { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px; }
.site-footer nav { display:flex; gap:18px; }
.site-footer a { color:var(--muted); }

.center { text-align:center; padding:96px 0 40px; }

/* Print / PDF: detailreport/make-pdf.js prints the guide to static/detail-report.pdf with these. */
@media print {
  @page { size: A4; margin: 15mm 14mm; }
  :root { --bg:#ffffff; --card:#ffffff; --text:#1b1a19; --muted:#4f4a45; --line:#dcd6ce;
    --accent:#d92a0f; --accent-text:#c0240b; --ink:#141414; --soft:#f3efe9; }
  html { scroll-behavior:auto; }
  body { background:#fff; font-size:10.5pt; line-height:1.45; }
  .site-header, .chips, .actions, .band, .site-footer nav { display:none !important; }
  .wrap { max-width:none; padding:0; }
  .hero { padding-top:0; }
  .hero-icon { box-shadow:none; width:72px; height:72px; border-radius:16px; }
  section { margin-top:8mm; }
  h2 { break-after:avoid; font-size:17pt; }
  .cards { grid-template-columns:1fr 1fr; gap:3mm; }
  .cards li, .steps li, .deflist > div, tr, .hero-top { break-inside:avoid; }
  .cards li, .steps li { padding:3mm 4mm; }
  .site-footer { margin-top:8mm; padding:4mm 0 0; }
  a { color:inherit; text-decoration:none; }
}

/* screenshot slider (home page): scroll-snap strip; slider.js adds the arrow buttons */
.shots { margin:28px 0 0; }
.shots-track { display:flex; gap:14px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; padding:2px 2px 10px; scrollbar-width:thin; }
.shots-track:focus-visible { outline:2px solid var(--accent); outline-offset:4px; border-radius:12px; }
.shot { flex:0 0 min(78%, 380px); margin:0; scroll-snap-align:start; }
.shot-zoom { display:block; position:relative; border-radius:12px; cursor:zoom-in; }
.shot-zoom:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.shot img { display:block; width:100%; height:auto; aspect-ratio:4 / 3; border-radius:12px; border:1px solid var(--line); background:#000; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.shot-zoom-icon { position:absolute; right:8px; bottom:8px; width:30px; height:30px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; display:flex; align-items:center; justify-content:center; }
.shot figcaption { margin-top:8px; font-size:14px; line-height:1.4; color:var(--muted); }
.shots-nav { display:flex; align-items:center; gap:10px; margin-top:4px; }
.shots-nav[hidden] { display:none; }
.shots-btn { width:36px; height:36px; border-radius:50%; border:1px solid var(--line); background:var(--card); color:var(--text); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.shots-btn:hover:not(:disabled) { border-color:var(--muted); }
.shots-btn:disabled { opacity:.35; cursor:default; }
.shots-count { font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; min-width:48px; }
.shots-tip { font-size:13px; color:var(--muted); margin-left:auto; }
@media (prefers-reduced-motion: no-preference) { .shots-track { scroll-behavior:smooth; } }
@media print { .shots { display:none !important; } }

/* full-screen screenshot viewer (slider.js) */
html.viewer-open { overflow:hidden; }
.viewer { position:fixed; inset:0; width:100vw; height:100vh; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:#0b0b0c; color:#fff; overflow:hidden; }
.viewer::backdrop { background:rgba(0,0,0,.85); }
.viewer-stage { position:absolute; left:0; right:0; top:56px; bottom:78px; overflow:hidden; touch-action:none; cursor:zoom-in; outline:none; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.viewer.is-zoomed .viewer-stage { cursor:grab; }
.viewer-img { position:absolute; left:0; top:0; transform-origin:0 0; max-width:none; pointer-events:none; -webkit-user-drag:none; will-change:transform; }
.viewer-top { position:absolute; left:0; right:0; top:0; height:56px; display:flex; align-items:center; justify-content:space-between; padding:0 12px 0 18px; }
.viewer-count { font-size:14px; color:#c9c6c2; font-variant-numeric:tabular-nums; }
.viewer-bottom { position:absolute; left:0; right:0; bottom:0; height:78px; padding:10px 18px; text-align:center; }
.viewer-caption { margin:0; font-size:15px; line-height:1.35; color:#f3f2f0; }
.viewer-hint { margin:4px 0 0; font-size:12px; color:#9c9893; }
.viewer-btn { width:42px; height:42px; border-radius:50%; border:1px solid rgba(255,255,255,.25); background:rgba(20,20,20,.7); color:#fff; display:inline-flex; align-items:center; justify-content:center; padding:0; cursor:pointer; }
.viewer-btn:hover { background:rgba(60,60,60,.85); }
.viewer-btn:focus-visible { outline:2px solid #ff7a5f; outline-offset:2px; }
.viewer-prev, .viewer-next { position:absolute; top:50%; transform:translateY(-50%); z-index:2; }
.viewer-prev { left:12px; } .viewer-next { right:12px; }
.viewer.is-zoomed .viewer-prev, .viewer.is-zoomed .viewer-next { opacity:.35; }
@media (pointer: coarse) { .hint-mouse { display:none; } }
@media (pointer: fine) { .hint-touch { display:none; } }
@media (max-width: 520px) { .shots-tip { display:none; } }
@media print { .viewer { display:none !important; } }
