/* ============================================================
   GIVEN — /receipt  (lab lane C, 2026-09-28)
   The ownership receipt: a sample handoff, itemized like a real
   receipt. A white paper artifact on the black site — the one place
   the brand's "on white (print/docs)" rule meets the web page.

   Loaded only by receipt.html, after site.css. Everything is scoped
   under .rc-* so nothing here can touch another page.

   Paper palette (achromatic, per 01_BRAND/BRAND_GUIDE.md §2):
     ink   #000000  — primary text on paper
     ink-2 #4D4D4D  — secondary text on paper (8.4:1 on white — AA for
                      small type; brand Steel #8A8A8A is 3.4:1 there, so
                      Steel is kept to rules and large marks only)
     rule  #DCDCDC  — hairlines (same value as HANDOFF_CERTIFICATE.html)
   ============================================================ */

.rc-page{
  --rc-paper:#FFFFFF;
  --rc-ink:#000000;
  --rc-ink2:#4D4D4D;
  --rc-rule:#DCDCDC;
  --rc-steel:var(--steel);
  --rc-pad:clamp(20px,5vw,56px);
}

/* ---------- stage ---------- */
.rc-stage{ padding-top:clamp(8px,1.6vw,20px); }
.rc-stage .container{ max-width:860px; }

.rc-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px 22px; flex-wrap:wrap;
  margin-bottom:18px;
}
.rc-disclaimer{ color:var(--silver); font-size:14px; line-height:1.5; max-width:46ch; }
.rc-disclaimer .kicker{
  margin-right:10px; padding:3px 8px; font-size:10.5px;
  color:var(--white); border:1px solid var(--steel); border-radius:var(--radius-sm);
  vertical-align:1px;
}
.rc-print{ min-height:48px; }
.rc-print .arrow{ transition:transform var(--dur-base) var(--ease-tech); }
.rc-print:hover .arrow{ transform:translateX(4px); }
.rc-print:focus-visible, .rc-after a:focus-visible{ outline:1px solid var(--silver); outline-offset:4px; }

/* ---------- the paper ---------- */
.rc-paper{
  position:relative;
  background:var(--rc-paper);
  color:var(--rc-ink);
  padding:calc(var(--rc-pad) + 8px) var(--rc-pad) calc(var(--rc-pad) - 4px);
  font-family:var(--font-body);
  font-variant-numeric:tabular-nums;
  line-height:1.5;
  /* perforated top + bottom edges: a row of punched half-circles, like a
     register roll torn off the machine. Two stacked masks, each covering
     just over half the height, each with its own edge of holes. */
  -webkit-mask:
    radial-gradient(circle at 50% 0, transparent 5px, #000 5.5px) top / 16px 51% repeat-x,
    radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 16px 51% repeat-x;
          mask:
    radial-gradient(circle at 50% 0, transparent 5px, #000 5.5px) top / 16px 51% repeat-x,
    radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom / 16px 51% repeat-x;
}
.rc-paper ::selection{ background:var(--rc-ink); color:var(--rc-paper); }

/* label style, paper edition — Inter caps, the thread through every surface */
.rc-cap{
  font-family:var(--font-body);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.12em;
  font-size:10.5px;
  line-height:1.5;
  color:var(--rc-ink2);
}
.rc-cap--ink{ color:var(--rc-ink); font-weight:600; }
.rc-nw{ white-space:nowrap; }
.rc-sr{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; margin:-1px; padding:0; border:0;
}

/* header */
.rc-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.rc-wordmark{ width:clamp(112px,20vw,150px); height:auto; color:var(--rc-ink); flex:none; }
.rc-head-meta{ display:flex; flex-direction:column; align-items:flex-end; text-align:right; }
.rc-rule{ height:1px; background:var(--rc-ink); margin-top:14px; }
.rc-rule--heavy{ height:0; background:none; border-top:3px double var(--rc-ink); }

/* title */
.rc-hero{ margin-top:clamp(22px,3.4vw,34px); padding-right:clamp(0px,18vw,150px); }
.rc-title{
  font-family:var(--font-display); font-weight:800; color:var(--rc-ink);
  font-size:clamp(40px,7.4vw,64px); letter-spacing:-0.025em; line-height:1;
}
.rc-sub{ margin-top:12px; font-size:clamp(14px,1.6vw,15.5px); color:var(--rc-ink); max-width:46ch; }

/* the SAMPLE stamp — a rubber stamp in plain ink, double-ruled, knocked a
   few degrees off square. Sits in the whitespace right of the title. */
.rc-stamp{
  position:absolute;
  top:clamp(92px,13vw,118px); right:clamp(14px,5vw,52px);
  z-index:2; pointer-events:none;
  transform-origin:50% 50%;
}
.rc-stamp-in{
  display:block;
  transform:rotate(-9deg);
  font-family:var(--font-display); font-weight:800;
  font-size:clamp(20px,3.4vw,30px); letter-spacing:0.16em; text-transform:uppercase;
  color:var(--rc-ink);
  padding:6px 12px 6px 16px;
  border:4px double var(--rc-ink);
  border-radius:4px;
  opacity:0.82;
  /* a little ink starvation so it reads as stamped, not typeset */
  -webkit-mask:repeating-linear-gradient(115deg,#000 0 7px,rgba(0,0,0,.72) 7px 9px);
          mask:repeating-linear-gradient(115deg,#000 0 7px,rgba(0,0,0,.72) 7px 9px);
}

/* meta: owner / project / date / builder */
.rc-meta{
  display:grid; grid-template-columns:repeat(4,auto); justify-content:space-between;
  gap:14px 24px;
  margin:clamp(22px,3vw,30px) 0 0;
  padding:14px 0;
  border-top:1px solid var(--rc-ink); border-bottom:1px solid var(--rc-ink);
}
.rc-meta div{ min-width:0; }
.rc-meta dt{ display:block; margin-bottom:2px; }
.rc-meta dd{
  margin:0; font-family:var(--font-display); font-weight:700;
  font-size:clamp(13.5px,1.5vw,15px); color:var(--rc-ink); line-height:1.3;
}
@media (max-width:640px){ .rc-meta{ grid-template-columns:1fr 1fr; justify-content:stretch; } }

.rc-colhead{
  display:flex; justify-content:space-between; gap:12px;
  margin-top:clamp(20px,2.6vw,26px); padding-bottom:6px;
}

/* ---------- line items ---------- */
/* groups are <section>s for the outline; cancel site.css's global section padding */
.rc-paper section{ padding:0; }
.rc-group{ margin-top:clamp(18px,2.4vw,24px); }
.rc-group-head{
  display:flex; align-items:baseline; gap:10px;
  font-family:var(--font-body); font-weight:600; font-size:11px;
  letter-spacing:0.14em; text-transform:uppercase; color:var(--rc-ink);
  padding-bottom:7px; border-bottom:1px solid var(--rc-ink);
  line-height:1.4;
}
.rc-n{ font-family:var(--font-display); font-weight:800; font-size:11px; letter-spacing:0.06em; color:var(--rc-ink2); }
.rc-head-aside{ font-weight:500; color:var(--rc-ink2); letter-spacing:0.12em; }

.rc-items{ margin:0; padding:0; list-style:none; }
.rc-item{
  display:grid;
  grid-template-columns:auto minmax(18px,1fr) auto;
  align-items:baseline;
  column-gap:8px;
  padding:9px 0 8px;
  border-bottom:1px solid var(--rc-rule);
}
.rc-what{ font-size:15px; font-weight:500; color:var(--rc-ink); line-height:1.35; min-width:0; }
/* dot leaders — the one unmistakable receipt detail */
.rc-dots{
  align-self:end; margin-bottom:0.42em; height:2px; min-width:18px;
  background-image:radial-gradient(circle, var(--rc-ink) 0.9px, transparent 1.2px);
  background-size:6px 2px; background-repeat:repeat-x; background-position:left center;
  opacity:0.55;
}
.rc-val{
  font-family:var(--font-display); font-weight:700; font-size:14.5px;
  color:var(--rc-ink); text-align:right; white-space:nowrap; line-height:1.35;
}
.rc-note{
  grid-column:1 / -1;
  margin-top:3px; padding-right:clamp(0px,12vw,140px);
  font-size:13.5px; line-height:1.5; color:var(--rc-ink2);
}
@media (max-width:520px){
  .rc-what{ font-size:14.5px; }
  .rc-val{ font-size:13.5px; }
  .rc-note{ font-size:13px; padding-right:0; }
}

/* ---------- totals ---------- */
.rc-totals{ margin-top:clamp(18px,2.4vw,24px); padding-top:4px; border-top:3px double var(--rc-ink); }
.rc-owed{
  display:flex; align-items:flex-end; justify-content:space-between; gap:16px;
  margin-top:14px; padding:16px 0 12px;
  border-top:1px solid var(--rc-ink); border-bottom:1px solid var(--rc-ink);
}
.rc-owed-k{
  font-family:var(--font-body); font-weight:600; font-size:11.5px; letter-spacing:0.14em;
  text-transform:uppercase; color:var(--rc-ink); line-height:1.45; padding-bottom:6px;
}
.rc-owed-v{
  font-family:var(--font-display); font-weight:800; color:var(--rc-ink);
  font-size:clamp(48px,10vw,84px); letter-spacing:-0.04em; line-height:0.9;
  font-variant-numeric:tabular-nums;
}
.rc-owed-note{ margin-top:8px; font-size:14px; color:var(--rc-ink); text-align:right; }

/* the election row — Care always rides as a tick box, default "neither" */
.rc-elect{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px;
  margin-top:16px; padding:12px 14px;
  border:1px dashed var(--rc-steel);
}
.rc-elect > .rc-cap{ flex-basis:100%; }
.rc-box{ display:inline-flex; align-items:center; gap:8px; font-size:13.5px; color:var(--rc-ink2); }
.rc-box.is-on{ color:var(--rc-ink); font-weight:600; }
.rc-tick{
  position:relative; flex:none; width:14px; height:14px;
  border:1.5px solid var(--rc-ink);
}
.rc-box.is-on .rc-tick::after{
  content:""; position:absolute; left:3.5px; top:0px; width:4px; height:8px;
  border:solid var(--rc-ink); border-width:0 2px 2px 0; transform:rotate(45deg);
}

.rc-group--after{ margin-top:clamp(22px,3vw,30px); }

/* ---------- sign + seal ---------- */
.rc-sign{
  position:relative;
  display:grid; grid-template-columns:1fr 1fr auto; align-items:end;
  gap:18px clamp(18px,3vw,34px);
  margin-top:clamp(30px,4vw,44px);
}
.rc-sig-line{ display:block; height:1px; background:var(--rc-ink); margin-bottom:6px; }
.rc-seal{
  width:clamp(76px,11vw,96px); height:auto; color:var(--rc-ink);
  opacity:0.7; transform:rotate(-12deg);
}
.rc-seal-text{
  font-family:var(--font-body); font-weight:600; font-size:15px;
  letter-spacing:0.1em; fill:currentColor;
}
@media (max-width:520px){
  .rc-sign{ grid-template-columns:1fr auto; }
  .rc-sign .rc-sig:nth-child(2){ grid-row:2; }
  .rc-seal{ grid-column:2; grid-row:1 / span 2; align-self:center; }
}

.rc-foot{
  display:flex; justify-content:space-between; gap:8px 16px; flex-wrap:wrap;
  margin-top:clamp(20px,3vw,28px); padding-top:10px;
  border-top:1px solid var(--rc-rule);
}

/* ---------- tear line + stub ---------- */
.rc-perf{
  position:relative; text-align:center;
  margin:clamp(22px,3vw,30px) calc(var(--rc-pad) * -1) 0;
  height:14px;
}
.rc-perf::before{
  content:""; position:absolute; left:0; right:0; top:50%;
  border-top:2px dashed var(--rc-steel);
}
.rc-perf .rc-cap{
  position:relative; background:var(--rc-paper); padding:0 12px;
  font-size:9.5px; line-height:14px; display:inline-block; vertical-align:top;
}
.rc-stub{
  display:grid; grid-template-columns:repeat(4,auto); justify-content:space-between;
  gap:10px 18px;
  padding-top:16px;
}
.rc-stub div{ display:flex; flex-direction:column; min-width:0; }
.rc-stub b{ font-family:var(--font-display); font-weight:800; font-size:15px; color:var(--rc-ink); line-height:1.3; }
@media (max-width:560px){ .rc-stub{ grid-template-columns:1fr 1fr; justify-content:stretch; } }

/* ---------- under the paper ---------- */
.rc-after{ margin-top:clamp(26px,3.4vw,40px); }
.rc-after .process-note{ margin-top:0; }
.rc-after .cta-row{ margin-top:20px; }

/* small screens: stamp tucks into the title's corner without covering words */
@media (max-width:520px){
  .rc-hero{ padding-right:0; }
  .rc-stamp{ top:136px; right:10px; }
  .rc-stamp-in{ font-size:18px; }
  .rc-title{ padding-right:112px; }
}

/* ============================================================
   PRINT — one US-Letter page, the paper and nothing else.
   Reveal/stagger inline styles (opacity/transform from GSAP) are
   overridden so a print taken before scrolling still shows every line.
   ============================================================ */
@media print{
  @page{ size:8.5in 11in; margin:0.34in 0.5in; }
  html, body{ background:#FFFFFF !important; color:#000000 !important; }
  html{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  #dot-grid, .skip-link, .site-header, .site-footer, .mnav, .page-hero,
  .rc-toolbar, .rc-after, .contact{ display:none !important; }
  main section{ padding:0 !important; }
  .rc-stage .container{ max-width:none; padding:0; }
  .rc-paper, .rc-paper [data-stagger], [data-reveal]{
    opacity:1 !important; transform:none !important; visibility:visible !important;
  }
  .rc-stamp{ opacity:1 !important; transform:none !important; }
  /* one page: the paper becomes a two-column ledger. Head, meta, totals'
     neighbours and the stub span both columns; the line-item groups pair
     up in reading order — 01|02, 03|04, 05|06, totals|07. */
  .rc-paper{
    -webkit-mask:none; mask:none;
    padding:0; font-size:9pt;
    display:grid; grid-template-columns:1fr 1fr; column-gap:0.32in; align-items:start;
  }
  .rc-paper > *{ grid-column:1 / -1; }
  .rc-paper > .rc-group, .rc-paper > .rc-totals{ grid-column:auto; }
  .rc-colhead{ display:none; }
  .rc-wordmark{ width:1.35in; }
  .rc-cap{ font-size:6.8pt; }
  .rc-rule{ margin-top:8px; }
  .rc-hero{ margin-top:9px; padding-right:2in; }
  .rc-title{ font-size:27pt; }
  .rc-sub{ font-size:9pt; margin-top:5px; max-width:none; }
  .rc-stamp{ top:0.62in; right:0.15in; }
  .rc-stamp-in{ font-size:18pt; padding:3px 9px 3px 12px; border-width:3.5px; }
  .rc-meta{ margin-top:8px; padding:5px 0; gap:6px 18px; grid-template-columns:repeat(4,auto); }
  .rc-meta dd{ font-size:9.5pt; }
  .rc-group{ margin-top:9px; break-inside:avoid; }
  .rc-stub{ break-inside:avoid; }
  .rc-totals{ break-inside:avoid; }
  .rc-group-head{ font-size:7pt; padding-bottom:3px; }
  .rc-n{ font-size:7pt; }
  .rc-item{ padding:2px 0 1.5px; }
  .rc-head-aside{ letter-spacing:0.05em; }
  .rc-what{ font-size:8.6pt; }
  .rc-val{ font-size:8.4pt; }
  .rc-note{ font-size:7.4pt; margin-top:0; line-height:1.3; padding-right:0; }
  .rc-totals{ margin-top:12px; padding-top:1px; }
  .rc-owed{ margin-top:6px; padding:6px 0 5px; }
  .rc-owed-k{ font-size:7pt; padding-bottom:2px; }
  .rc-owed-v{ font-size:30pt; }
  .rc-owed-note{ font-size:8pt; margin-top:3px; }
  .rc-elect{ margin-top:6px; padding:5px 9px; gap:3px 14px; }
  .rc-box{ font-size:8pt; }
  .rc-tick{ width:10px; height:10px; }
  .rc-box.is-on .rc-tick::after{ left:2.2px; top:-0.5px; width:3px; height:6px; border-width:0 1.6px 1.6px 0; }
  .rc-group--after{ margin-top:12px; }
  .rc-owed-v{ font-size:26pt; }
  /* the seal sits beside the signature lines, not under them */
  .rc-sign{ margin-top:16px; gap:10px 26px; grid-template-columns:1fr 1fr; padding-right:0.9in; }
  .rc-seal{ position:absolute; right:0.05in; bottom:-0.12in; width:0.62in; }
  .rc-group-head{ display:block; }
  .rc-n{ margin-right:8px; }
  .rc-foot{ margin-top:8px; padding-top:5px; }
  .rc-perf{ margin:10px 0 0; height:10px; }
  .rc-perf .rc-cap{ font-size:6pt; line-height:10px; }
  .rc-stub{ padding-top:7px; grid-template-columns:repeat(4,auto); }
  .rc-stub b{ font-size:9.5pt; }
}
