/* ============================================================================
   The report's own skin (25 Aug 2026) - the location report restyled onto the
   cockpit design language, shared by every surface that renders a report: the
   groundwork's location desk, the stranger's teaser walk, the letter door and
   the internal lab. Tokens from /css/tokens.css only; this file lays the
   report out and defines no colour of its own. It replaces the funnel-era
   classes (verdict/statrow/rep/ans__cols) that still carried the sister
   line's light-theme hexes onto a dark page.
   ============================================================================ */

.ckr { display: flex; flex-direction: column; gap: 14px; }

.ckr__card {
  background: var(--rbl-panel);
  border: 1px solid var(--rbl-line);
  border-radius: 12px;
  padding: 18px 20px;
}
.ckr__card--verdict { border-color: var(--rbl-copper); }
.ckr__card--bare { padding: 0; overflow: hidden; }

.ckr__label {
  font-family: var(--rbl-font-data);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rbl-signal);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ckr__label--warn { color: var(--rbl-attention); }
.ckr__label--good { color: var(--rbl-success); }
.ckr__label--pad { padding: 13px 16px 0; }
.ckr__label .exp { margin-left: auto; }

.ckr__call {
  font-family: var(--rbl-font-display);
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--rbl-ink);
  margin: 8px 0 2px;
  text-wrap: balance;
}

.ckr__body { font-size: 13.5px; color: var(--rbl-ink-2); line-height: 1.65; margin: 0; max-width: 70ch; }
.ckr__meta { font-size: 12.5px; color: var(--rbl-mute); line-height: 1.65; margin: 0; max-width: 72ch; }
.ckr__meta b, .ckr__meta strong { color: var(--rbl-ink-2); }
.ckr__note { font-family: var(--rbl-font-data); font-size: 10.5px; color: var(--rbl-faint); line-height: 1.7; margin: 0; }
.ckr__warn { font-size: 12.5px; color: var(--rbl-attention); line-height: 1.6; margin: 0; max-width: 72ch; }
.ckr__stack { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }

.ckr__linkbtn {
  background: none; border: 0; padding: 0; font: inherit;
  color: var(--rbl-signal); text-decoration: underline; cursor: pointer;
}

.ckr__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin: 12px 0 2px;
}
.ckr__tile {
  background: var(--rbl-raised);
  border: 1px solid var(--rbl-line);
  border-radius: 9px;
  padding: 12px 14px;
  min-width: 0;
}
.ckr__tile-v {
  font-family: var(--rbl-font-data);
  font-size: 19px; font-weight: 600;
  color: var(--rbl-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.ckr__tile-k {
  font-family: var(--rbl-font-data);
  font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rbl-ink-2); margin-top: 5px; line-height: 1.5;
}
.ckr__tile-i { display: block; font-style: normal; font-size: 11px; color: var(--rbl-faint); margin-top: 4px; line-height: 1.5; }

.ckr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.ckr__cols ul { margin: 4px 0 0; padding: 0; list-style: none; }
.ckr__cols li {
  font-size: 13px; line-height: 1.6; color: var(--rbl-ink-2);
  padding: 7px 0; border-top: 1px solid var(--rbl-line);
}
.ckr__cols li:first-child { border-top: 0; }

.ckr__pill {
  display: inline-block;
  font-family: var(--rbl-font-data);
  font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--rbl-line-strong);
  color: var(--rbl-mute); white-space: nowrap;
  vertical-align: middle;
}
.ckr__pill--ok { color: var(--rbl-success); }
.ckr__pill--warn { color: var(--rbl-attention); }
.ckr__pill--stop { color: var(--rbl-error); }
.ckr__pill--rival { color: var(--rbl-signal); border-color: var(--rbl-copper); }

.ckr__emil { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; max-width: 68ch; }
.ckr__emil img { border-radius: 50%; flex: none; border: 1.5px solid var(--rbl-copper); }
.ckr__emil p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--rbl-ink-2); }

.ckr__conds { border-top: 1px solid var(--rbl-line); margin-top: 14px; padding-top: 11px; display: flex; flex-direction: column; gap: 5px; }

.ckr__btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ckr__btn {
  font-family: var(--rbl-font-ui); font-size: 12.5px; font-weight: 600;
  color: var(--rbl-action-ink); background: var(--rbl-action);
  border: 0; border-radius: 7px; padding: 8px 14px;
  text-decoration: none; cursor: pointer; display: inline-block;
}
.ckr__btn--ghost { background: transparent; color: var(--rbl-mute); border: 1px solid var(--rbl-line-strong); }
.ckr__btn--ghost:hover { color: var(--rbl-ink); }

/* the decision factors: finding first, reasoning one tap away */
.ckr__fact { border-top: 1px solid var(--rbl-line); }
.ckr__fact:first-of-type { border-top: 0; }
.ckr__fact summary {
  display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  padding: 11px 16px; cursor: pointer; list-style: none;
}
.ckr__fact summary::-webkit-details-marker { display: none; }
.ckr__fact summary:hover { background: var(--rbl-raised); }
.ckr__fact-find { flex: none; min-width: 86px; }
.ckr__fact b { color: var(--rbl-ink); font-size: 13px; flex: none; }
.ckr__fact-m { flex: 1 1 240px; font-size: 12.5px; color: var(--rbl-mute); line-height: 1.55; }
.ckr__fact-hint {
  font-family: var(--rbl-font-data); font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--rbl-faint); flex: none;
}
.ckr__fact-body { padding: 2px 16px 13px; display: flex; flex-direction: column; gap: 4px; }

.ckr__tblwrap { overflow-x: auto; margin-top: 10px; }
.ckr__tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ckr__tbl th {
  font-family: var(--rbl-font-data); font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--rbl-faint); text-align: left;
  font-weight: 500; padding: 4px 10px 8px; border-bottom: 1px solid var(--rbl-line-strong);
}
.ckr__tbl td {
  padding: 9px 10px; border-bottom: 1px solid var(--rbl-line);
  color: var(--rbl-mute); vertical-align: top; line-height: 1.5;
}
.ckr__tbl td b { color: var(--rbl-ink); font-weight: 600; }
.ckr__tbl tr:last-child td { border-bottom: 0; }
.ckr__tbl .num { font-family: var(--rbl-font-data); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* fold-away depth: the working shown on demand */
.ckr__chain { border-top: 1px solid var(--rbl-line); }
.ckr__chain summary {
  cursor: pointer; list-style: none; padding: 11px 2px;
  font-family: var(--rbl-font-data); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--rbl-mute);
}
.ckr__chain summary::-webkit-details-marker { display: none; }
.ckr__chain summary::before { content: "+ "; color: var(--rbl-signal); }
.ckr__chain[open] summary::before { content: "\2212  "; }
.ckr__chain summary:hover { color: var(--rbl-ink); }
.ckr__chain-body { padding: 2px 2px 14px; }
.ckr__chain-body ol { margin: 0; padding-left: 18px; }
.ckr__chain-body li { font-size: 13px; line-height: 1.7; color: var(--rbl-ink-2); margin: 5px 0; }

/* the seeded numbers, nested inside the economics card */
.ckr__inner {
  background: var(--rbl-raised);
  border: 1px solid var(--rbl-line);
  border-radius: 9px;
  padding: 14px 16px;
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.ckr__inner .ckr__tiles { margin: 0; }
.ckr__inner .ckr__tile { background: var(--rbl-panel); }

.ckr__map { border-radius: 12px; overflow: hidden; border: 1px solid var(--rbl-line); margin-top: 10px; }
.ckr__map .mapframe { border: 0; border-radius: 0; }

/* the explain popover, restyled inside the report */
.ckr .exp-btn {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--rbl-line-strong); background: transparent;
  color: var(--rbl-mute); cursor: pointer; font-size: 11px; line-height: 1;
}
.ckr .exp-btn:hover, .ckr .exp-btn[aria-expanded="true"] {
  background: var(--rbl-action); border-color: var(--rbl-action); color: var(--rbl-action-ink);
}
.ckr .exp-pop {
  position: absolute; top: 24px; right: 0; z-index: 30;
  width: min(46ch, 74vw);
  background: var(--rbl-raised);
  border: 1px solid var(--rbl-line-strong);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 12px; line-height: 1.6; color: var(--rbl-ink-2);
  text-transform: none; letter-spacing: normal; font-family: var(--rbl-font-body);
  font-weight: 400;
}

@media (max-width: 720px) {
  .ckr__cols { grid-template-columns: 1fr; }
  .ckr__call { font-size: 20px; }
}

/* ============================================================================
   The report on paper (move 6, 30 Aug 2026): "Save as PDF" is the browser's
   own print - this block turns the dark cockpit into a paper document. The
   shell chrome leaves, the report recolors to ink on white, the folded
   reasoning stands open (the button opens it; this rule holds for a plain
   Cmd+P too), and the interactive chrome goes quiet. Literal print colors on
   purpose - paper is not themed, and the tokens stay dark.
   ============================================================================ */
@media print {
  .ck__side, .ck__rail, .ck__trial, .ckr--noprint, .ckr__btnrow, .ckr__btn,
  .exp-btn, .exp-pop, .ckr__linkbtn, .ckr__fact-hint { display: none !important; }
  .ck { display: block !important; background: #FFF !important; }
  .ck__main { display: block !important; padding: 0 !important; max-width: none !important; }
  html, body { background: #FFF !important; }
  .ckr, .ckr * { color: #111 !important; }
  .ckr__card { background: #FFF !important; border-color: #BBB !important; break-inside: avoid; }
  .ckr__card--verdict { border-color: #C67C3E !important; }
  .ckr__tile { background: #FFF !important; border: 1pt solid #CCC !important; }
  .ckr__pill { border: 1pt solid #999 !important; background: #FFF !important; }
  .ckr__tbl th { background: #F2EEE8 !important; }
  .ckr__note, .ckr__meta, .ckr__tile-i, .ckr__det-sub { color: #555 !important; }
  .ckr__label, .ckr__label--good { color: #8A5B32 !important; }
  .ckr__warn, .ckr__label--warn { color: #7A4A20 !important; }
  .ckr details > *:not(summary) { display: block !important; }
  .ckr details summary { list-style: none; }
}
