/* cards.css - Cards and reports: the A5 space type card and the client report.
   Page scoped. Only this page loads it, so a phone opening Capture never parses
   the landing page hero. Shared chrome is assets/base.css; colours are ONLY ever
   tokens from assets/tokens.css. */

.a5 {
  width: min(430px, 100%); aspect-ratio: 148 / 210; background: var(--card);
  border-radius: 8px; box-shadow: 0 20px 44px rgba(46,45,44,0.16);
  padding: 26px 26px 20px 26px; display: flex; flex-direction: column; margin: 16px auto;
}
.a5 .lc-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 14px; flex-wrap: wrap; font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.a5 .lc-row .k { color: var(--kz-red); font-weight: 700; }
.a5 .stamp { border: 1.5px solid var(--kz-red); color: var(--kz-red); border-radius: 5px; padding: 2px 8px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; transform: rotate(-2deg); white-space: nowrap; margin-left: auto; }
.a5 h3 { font-size: 20px; line-height: 1.22; letter-spacing: -0.015em; margin: 13px 0 4px 0; font-weight: 700; }
.a5 .ctx { font-size: 11px; color: var(--ink-2); }
.a5 .sect { font-size: 9px; letter-spacing: 0.14em; color: var(--kz-red); text-transform: uppercase; font-weight: 700; margin: 12px 0 3px 0; }
.a5 .body { font-size: 11.5px; line-height: 1.5; }
.a5 .quote { font-size: 11.5px; font-style: italic; color: var(--ink-2); border-left: 2.5px solid var(--kz-red); padding-left: 9px; margin-top: 5px; }
.a5 .rule-ta {
  width: 100%; border: 1px dashed var(--baseline); border-radius: 8px; background: var(--wash);
  color: var(--ink-1); font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1.45;
  padding: 8px; min-height: 96px; resize: vertical;
}
.a5 .clause-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.a5 .cl-lab { font-size: 9px; letter-spacing: 0.14em; color: var(--kz-red); text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.a5 .clause-in {
  flex: 1; min-width: 0; border: 1px dashed var(--baseline); border-radius: 8px;
  background: var(--wash); color: var(--ink-1); font-family: inherit; font-size: 11px; padding: 5px 8px;
}
.a5 .prov { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--grid); font-size: 9.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- space type card · A5 landscape ----------
   One card for every space of a type, then one page per problem. Charcoal for what
   went well and brand red for even better if: Kidzink reserves green for
   sustainability content and uses it nowhere else, so the two sides are not
   green and red. Red already means attention everywhere else in the product. */
.tc-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 16px; }
.tc-page {
  width: 210mm; max-width: 100%; height: 148mm; background: var(--card); overflow: hidden;
  display: flex; flex-direction: column; border-radius: 8px;
  box-shadow: 0 20px 44px rgba(46,45,44,0.16);
}
.tc-brand { display: flex; align-items: baseline; gap: 6px; }
.tc-brand .kz { color: var(--kz-red); font-weight: 700; font-size: 11px; }
.tc-brand .kal { color: var(--ink-2); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }

.tc-hero { height: 36mm; flex: none; background: var(--kz-black); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 5mm 8mm; }
.tc-ph { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, #333029 0 10px, #3a3730 10px 20px); }
.tc-hz { position: relative; color: var(--kz-linen); }
.tc-hz .kal { color: #a9a39a; }
.tc-hz h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-top: 1.6mm; }
.tc-meta2 { font-size: 8.5px; color: #a9a39a; margin-top: 0.8mm; }

.tc-sides { flex: 1; display: flex; }
.tc-side { flex: 1; padding: 6mm 8mm 4mm; }
.tc-side + .tc-side { border-left: 1px solid var(--grid); }
.tc-side h2 { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.tc-side.www h2 { color: var(--ink-1); }
.tc-side.ebi h2 { color: var(--kz-red); }
.tc-sh { font-size: 7.6px; color: var(--ink-2); margin-top: 0.6mm; }
.tc-empty { font-size: 9px; color: var(--ink-2); margin-top: 4mm; }

.tc-ln { display: flex; gap: 3.4mm; margin-top: 4.2mm; align-items: flex-start; }
.tc-pc { width: 17mm; flex: none; font-size: 26px; font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; }
.tc-pc span { font-size: 11px; font-weight: 600; }
.tc-ln.www .tc-pc { color: var(--ink-1); }
.tc-ln.ebi .tc-pc { color: var(--kz-red); }
.tc-tx { flex: 1; }
.tc-tx b { display: block; font-size: 9.4px; font-weight: 600; line-height: 1.28; }
.tc-bar { display: block; height: 3px; background: var(--grid); border-radius: 2px; margin: 1.6mm 0 1mm; }
.tc-bar i { display: block; height: 3px; border-radius: 2px; }
.tc-bar i.www { background: var(--ink-1); }
.tc-bar i.ebi { background: var(--kz-red); }
.tc-meta { font-size: 7px; color: var(--ink-2); }

.tc-foot { flex: none; border-top: 1px solid var(--grid); padding: 4mm 8mm; display: flex; gap: 8mm; align-items: flex-start; }
.tc-qt { flex: 1.2; font-size: 10.5px; line-height: 1.4; font-weight: 500; }
.tc-qt span { display: block; font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-top: 1.2mm; }
.tc-cl { flex: 1; border-left: 2.5px solid var(--kz-red); padding-left: 3mm; }
.tc-cl b { display: block; font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kz-red); }
.tc-cl p { font-size: 9px; font-weight: 600; line-height: 1.3; margin-top: 0.8mm; }

.tc-dd { padding: 7mm 8mm 5mm; }
.tc-dd h1 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin-top: 2mm; }
.tc-sub { font-size: 8.5px; color: var(--ink-2); margin-top: 0.8mm; line-height: 1.5; }
.tc-stack { margin-top: 4mm; }
.tc-srow { display: flex; align-items: center; gap: 3mm; height: 8mm; }
.tc-sname { width: 52mm; flex: none; font-size: 8px; }
.tc-sbar { flex: 1; height: 9px; background: var(--grid); border-radius: 2px; display: flex; overflow: hidden; }
.tc-sbar i { display: block; height: 9px; }
.tc-sbar i.d { background: var(--kz-red); }
.tc-sbar i.m { background: var(--baseline); }
.tc-sbar i.a { background: var(--ink-1); }
.tc-spc { width: 13mm; flex: none; text-align: right; font-size: 8.5px; font-weight: 700; color: var(--kz-red); }
.tc-spc.under { color: var(--ink-2); font-weight: 400; }
.tc-lgd { display: flex; gap: 6mm; margin-top: 2.6mm; font-size: 7.2px; color: var(--ink-2); align-items: center; }
.tc-lgd i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
.tc-lgd i.d { background: var(--kz-red); } .tc-lgd i.m { background: var(--baseline); } .tc-lgd i.a { background: var(--ink-1); }
.tc-voices { margin-top: auto; border-top: 1px solid var(--grid); padding-top: 3mm; }
.tc-voices h3 { font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.tc-voices ul { list-style: none; margin-top: 1.6mm; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6mm 6mm; }
.tc-voices li { font-size: 8px; line-height: 1.35; }
.tc-voices li span { color: var(--ink-2); }

@media print {
  .tc-wrap { gap: 0; margin: 0; display: block; }
  .tc-page { box-shadow: none; border-radius: 0; page-break-after: always; break-after: page; max-width: none; }
  .tc-page:last-child { page-break-after: auto; break-after: auto; }
}
@media (max-width: 900px) {
  .tc-page { height: auto; min-height: 0; }
  .tc-sides { flex-direction: column; }
  .tc-side + .tc-side { border-left: 0; border-top: 1px solid var(--grid); }
  .tc-foot { flex-direction: column; gap: 4mm; }
  .tc-voices ul { grid-template-columns: 1fr; }
}
.edit-note { text-align: center; font-size: 11px; color: var(--ink-3); }
.list-row { border-bottom: 1px solid var(--grid); padding: 10px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.list-row:last-child { border-bottom: none; }
.list-row .lt { font-weight: 600; font-size: 13px; flex: 1; min-width: 220px; }
.report { max-width: 800px; margin: 0 auto; }
.rpage { background: var(--card); border-radius: 14px; padding: 30px 34px; margin-top: 16px; }
.rpage h2 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.rpage h3 { font-size: 13.5px; font-weight: 600; margin: 14px 0 4px 0; }
.rpage p, .rpage li { font-size: 13px; color: var(--ink-1); }
.rpage .muted { color: var(--ink-2); }
.rcover { display: flex; flex-direction: column; min-height: 360px; }
.rcover .rt { font-size: 30px; font-weight: 700; line-height: 1.18; margin: 10px 0 4px 0; letter-spacing: -0.02em; }
.rcover .eyebrow { font-size: 10.5px; letter-spacing: 0.14em; color: var(--kz-red); text-transform: uppercase; font-weight: 700; }
.rcover .rmark { color: var(--kz-red); font-weight: 700; font-size: 19px; }
.rcover .rrule { height: 3px; width: 64px; background: var(--kz-red); margin: 16px 0 20px 0; }
.rcover .rmeta { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--ink-2); }
.rcrit { margin-top: 14px; }
.rfind { margin-top: 6px; }
.rfigs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0 4px 0; }
.rfig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--kz-linen); display: block; }
.rfig figcaption { font-size: 9.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.35; }
.rchart-card { margin-top: 18px; }
.rchart svg { width: 100%; }
.rfoot { margin-top: 22px; padding-top: 8px; border-top: 1px solid var(--grid); font-size: 10px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.actions-bar { display: flex; gap: 10px; margin-top: 16px; justify-content: center; }
.stx-card { width: min(430px, 100%); margin: 14px auto 0 auto; }
.rule-bar { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.rule-bar .btn { padding: 8px 16px; font-size: 12.5px; }
.rule-state { font-size: 11.5px; color: var(--ink-2); }
