/* The Retail Record — house style.
   Palette and idiom taken from next-meeting-docs/rhv-fidelity-validation-run.html
   so the archive and the client-facing documents stay visually one family.

   Screen sizes are set for reading. The @media print block at the foot restores
   the dense A4 measurements the source document used, because the PDF is how
   these findings actually travel inside a retailer. The two are deliberately
   different: type that fits a readout onto one sheet reads timid on a display. */

@page { size: A4; margin: 14mm; }

:root {
  --ink:#211f1a; --ink-soft:#5c554c; --ink-faint:#8b8377;
  --gold:#b8a456; --gold-deep:#8a7638;
  --wash:#f7f2e2; --line:#e2ddce; --panel:#f5f3ec;
  --hi:#a6462f; --mid:#8a7638; --lo:#5f7052;
  --serif:ui-serif,"Charter","Iowan Old Style",Georgia,"Times New Roman",serif;
  --sans:ui-sans-serif,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
}

* { box-sizing:border-box; -webkit-print-color-adjust:exact; print-color-adjust:exact; }
body { margin:0; background:#fff; }

/* Wide container, narrow measure. Prose is capped in ch so it stays readable
   while tables and evidence figures use the full width. */
.doc { max-width:1040px; margin:0 auto; padding:56px 32px 96px;
       color:var(--ink); font-family:var(--sans); font-size:17px; line-height:1.62; }

.top { display:flex; justify-content:space-between; align-items:baseline; gap:24px;
       padding-bottom:14px; border-bottom:2px solid var(--gold); margin-bottom:46px; }
.top span:first-child { font-family:var(--serif); font-size:21px; font-weight:600;
                        letter-spacing:.005em; color:var(--ink); }
.top span:last-child { font-size:11px; letter-spacing:.16em; text-transform:uppercase;
                       color:var(--ink-faint); font-weight:600; text-align:right; }
.top a { color:inherit; text-decoration:none; }
.top a:hover { color:var(--gold-deep); }

h1 { font-family:var(--serif); font-weight:600; font-size:clamp(34px,4.4vw,50px);
     line-height:1.06; letter-spacing:-.015em; margin:0 0 20px; max-width:20ch; }
.sub { color:var(--ink-soft); font-size:20px; line-height:1.5; margin:0; max-width:56ch; }
.sub b { color:var(--ink); font-weight:600; }

h2 { font-family:var(--sans); font-size:11px; letter-spacing:.17em; text-transform:uppercase;
     color:var(--gold-deep); font-weight:700; margin:0 0 14px; }
section { margin-top:52px; }
p { margin:0 0 15px; max-width:66ch; }

/* Prose links. Scoped to <section> so .top and .foot keep their own rules
   without a specificity fight — both sit inside .doc but outside any section. */
.doc section a { color:var(--ink); text-decoration:none; border-bottom:1px solid var(--gold); }
.doc section a:hover { color:var(--gold-deep); background:var(--wash); }

.metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; }
.metric { border:1px solid var(--line); border-radius:10px; background:var(--panel); padding:16px 18px; }
.metric .k { font-size:10px; letter-spacing:.12em; text-transform:uppercase;
             color:var(--ink-faint); font-weight:600; }
.metric .v { font-family:var(--serif); font-size:34px; line-height:1.1;
             color:var(--gold-deep); margin-top:8px; }

table { width:100%; border-collapse:collapse; margin-top:6px; }
th { text-align:left; font-size:10px; letter-spacing:.12em; text-transform:uppercase;
     color:var(--ink-faint); font-weight:600; padding:0 10px 10px; border-bottom:1px solid var(--line); }
td { padding:14px 10px; border-bottom:1px solid var(--line); vertical-align:top; font-size:15px; }
tr:last-child td { border-bottom:none; }
.mono { font-variant-numeric:tabular-nums; white-space:nowrap; }

.pill { display:inline-block; border-radius:999px; padding:3px 10px; font-size:10px;
        font-weight:700; letter-spacing:.06em; text-transform:uppercase; white-space:nowrap; }
.confirmed { background:#e8eee1; color:var(--lo); border:1px solid #cfdcc2; }
.parked    { background:#f3ecd8; color:var(--mid); border:1px solid #e4d6ac; }
.superseded{ background:#f3e2dc; color:var(--hi); border:1px solid #e3c4b9; }

/* The findings list is the point of the index, so it is set as content
   rather than as a data table. */
.findings-list td { padding:24px 10px; }
.findings-list td.no { font-family:var(--serif); font-size:26px; color:var(--ink-faint);
                       width:1%; padding-right:24px; }
.findings-list td.claim { font-family:var(--serif); font-size:23px; line-height:1.3; }
.findings-list td.when { color:var(--ink-faint); font-size:13px; white-space:nowrap; }
/* Beats .doc section a on specificity. A border-bottom under a 23px serif
   claim reads as an underlined heading; an offset rule keeps the affordance
   without the weight. */
.doc section .findings-list a {
  color:var(--ink); border-bottom:0; text-decoration:underline;
  text-decoration-color:var(--line); text-decoration-thickness:1px; text-underline-offset:5px; }
.doc section .findings-list a:hover {
  color:var(--gold-deep); text-decoration-color:var(--gold); background:none; }

.figrow { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
          gap:18px; margin-top:18px; }
.fig { border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.fig img { display:block; width:100%; height:auto; }
.fig .cap { font-size:13px; line-height:1.45; padding:12px 14px;
            color:var(--ink-soft); border-top:1px solid var(--line); }
.fig .cap b { color:var(--ink); }

.callout { margin-top:30px; border:1px solid var(--gold); background:var(--wash);
           border-radius:12px; padding:24px 28px; }
.callout h2 { color:var(--gold-deep); }
.callout p { max-width:62ch; }
.callout p:last-child { margin:0; }

.note { margin-top:22px; border-left:3px solid var(--gold); background:var(--panel);
        border-radius:0 8px 8px 0; padding:18px 22px; font-size:15px;
        color:var(--ink-soft); line-height:1.55; }
.note b { color:var(--ink); }

.gap { margin-top:20px; }

.foot { margin-top:76px; padding-top:18px; border-top:1px solid var(--line);
        display:flex; justify-content:space-between; gap:16px;
        font-size:12px; color:var(--ink-faint); }
.foot a { color:var(--ink-soft); text-decoration:none; border-bottom:1px solid var(--line); }
.foot a:hover { color:var(--gold-deep); border-bottom-color:var(--gold); }

@media print {
  .doc { max-width:none; padding:0; font-size:10.5px; line-height:1.45; }
  .top { margin-bottom:14px; padding-bottom:8px; border-bottom-width:1px; }
  .top span:first-child { font-size:12px; }
  h1 { font-size:24px; margin-bottom:10px; max-width:none; }
  .sub { font-size:12px; }
  section { margin-top:16px; page-break-inside:avoid; }
  p { margin-bottom:8px; }
  .metric { padding:9px 11px; }
  .metric .v { font-size:21px; margin-top:3px; }
  td { padding:6px; font-size:10.6px; }
  .findings-list td { padding:8px 6px; }
  .findings-list td.claim { font-size:13px; }
  .findings-list td.no { font-size:14px; }
  .figrow { grid-template-columns:repeat(3,1fr); page-break-inside:avoid; }
  .fig .cap { font-size:9.5px; padding:5px 8px; }
  .callout, .note { padding:11px 14px; margin-top:14px; }
  .note { font-size:10.2px; }
  .foot { margin-top:16px; }
  .doc a[href^="http"]:after { content:" (" attr(href) ")"; font-size:9px; color:var(--ink-faint); }
  .foot:after { content:"theretailrecord.com"; color:var(--ink-faint); }
  .no-print { display:none; }
}

@media (max-width:720px) {
  .doc { padding:34px 20px 64px; font-size:16px; }
  .top { margin-bottom:34px; }
  .metrics { grid-template-columns:repeat(2,1fr); }
  .figrow { grid-template-columns:1fr; }
  .findings-list td { padding:18px 8px; }
  .findings-list td.claim { font-size:19px; }
  .findings-list td.no { font-size:20px; padding-right:14px; }
  .findings-list td.when { display:none; }
  .callout { padding:18px 20px; }
}
