/* =========================================================
   receipt.css — the colophon receipt (§4.11.1), owned by receipt.js
   A 42-column mono slip. Every horizontal measure is a whole number
   of character cells (--c = 1ch + tracking), so dot leaders, dashes
   and the value column line up exactly like the brief's sample:
   values start at column 36, leaders fill the gap.
   ========================================================= */
.receipt,[data-receipt-slot]{
  container-type:inline-size;       /* the slip scales its type down on very narrow phones */
  width:100%;max-width:360px;
}
.case__receipt[data-receipt-slot]{margin-block:40px 28px}
/* Reserve the printed slip's height before receipt.js renders it (no layout shift). */
.js .receipt:empty{aspect-ratio:360/294}

.rc{
  --ls:.04em;                        /* tracking; one character cell = 1ch + tracking */
  --c:calc(1ch + var(--ls));
  --cols:42;
  --px:clamp(12px,5.5cqi,20px);
  --zz:12px;                         /* zigzag tooth width; tooth depth is half */
  box-sizing:content-box;
  width:calc(var(--cols) * var(--c));
  max-width:calc(100% - 2 * var(--px));
  padding:20px var(--px) calc(20px + var(--zz) / 2);
  font-family:var(--f-mono);font-weight:400;
  /* 42 cells ≈ 26.88em (JetBrains Mono advance .6em + .04em tracking) */
  font-size:min(.6875rem, (100cqi - 2 * var(--px)) / 26.88);
  line-height:1.5;letter-spacing:var(--ls);
  font-variant-numeric:tabular-nums;text-transform:none;
  color:var(--ink);background:var(--paper-hi);
  -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50% / var(--zz) 100%;
          mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) 50% / var(--zz) 100%;
}
.rc.is-feed{clip-path:inset(0 0 100% 0)}  /* waiting to print (motion on only) */
.rc p{margin:0}
.rc-h{font-weight:500}
.rc-p{margin-right:-4px}                  /* a hair of slack so a full 42-character line never wraps early */

/* --- separator: exactly 42 dashes --- */
.rc-cut{overflow:hidden;white-space:nowrap}
.rc-cut::before{content:"------------------------------------------------------------"}

/* --- rows: LABEL ......... VALUE (leader dots have empty alt text, so screen readers skip them) --- */
.rc-rows{margin:0}
.rc-row{display:flex;flex-wrap:wrap;column-gap:var(--c)}
.rc-row dt{flex:1 1 auto;display:flex;column-gap:var(--c);white-space:nowrap}
.rc-row dt::after{content:"................................................";content:"................................................" / "";flex:1 1 0;width:0;min-width:calc(3 * var(--c));overflow:hidden;white-space:nowrap}
.rc-row dd{margin:0 0 0 auto;min-width:calc(7 * var(--c));white-space:nowrap}  /* too long? it drops to its own line, right-aligned */
.rc-row dd.is-na{color:var(--ink-2)}
.rc-row .rc-note{flex-basis:100%;min-width:0;text-align:right;white-space:normal;color:var(--ink-2)}
.rc-note--serif{font-family:var(--f-serif);font-style:italic;font-size:1.3em;line-height:1.2;letter-spacing:0;padding-block:1px 3px}

/* --- Blueprint (G) margin note, ≥ 1024 --- */
@media (min-width:1024px){
  html.bp .receipt::before{content:"MEASURED BY YOUR BROWSER";position:absolute;left:calc(100% + 12px);top:22px;padding-left:44px;white-space:nowrap;
    font:400 .625rem/1.3 var(--f-mono);letter-spacing:.08em;color:var(--fog);
    background:linear-gradient(currentColor,currentColor) 0 50% / 36px 1px no-repeat}
}
@media (forced-colors:active){.rc{border:1px solid CanvasText}}
