/* A token's sheet, top half: the grid with its rail, the header, the score
   card with the four band gauge and its reasons, the tiles and the price
   chart. report.css styles the cards and sources below the chart. */

body.page-sheet { background: var(--sheet-glow) top / 100% 900px no-repeat; }
.sheet-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start;
  width: min(var(--page-max), 100% - var(--gutter)); margin: 0 auto; padding-top: 28px;
}
.sheet { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Header */
.sheet-head { display: flex; flex-direction: column; gap: 14px; padding: 0 4px 6px; }
.head-top { display: flex; align-items: center; gap: 16px; }
.head-title { flex: 1; min-width: 0; }
.head-h {
  font-size: 40px; line-height: 44px; letter-spacing: -0.88px; font-weight: var(--w-heading);
  overflow-wrap: anywhere; text-wrap: balance;
}
.head-h .cites { vertical-align: 14px; }
.head-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.head-kind { margin-left: 4px; color: var(--ink-muted); font-size: 14px; }
.again { flex: none; align-self: flex-start; margin-top: 6px; }
.head-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; line-height: 20px; }
.head-meta > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.head-meta dt { color: var(--ink-muted); }
.head-meta dd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.head-meta .addr { overflow-wrap: anywhere; }
/* A date in running text keeps its time beside it (cards.js richText) */
.nw { white-space: nowrap; }
.head-live, .dog-line { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.head-live .ll-mc { color: var(--ink); font-weight: var(--w-heading); }
.head-live .delta { margin-left: 2px; }

/* The score card */
.score-card { padding: 20px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--ring-card); }
.score-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.score-label { flex-basis: 100%; font-size: 14px; line-height: 20px; font-weight: var(--w-body); color: var(--ink-muted); }
.score-big { display: flex; align-items: baseline; gap: 3px; }
.score-num { font-size: 46px; line-height: 50px; font-weight: var(--w-heading); letter-spacing: -1px; color: var(--t, var(--ink)); }
.score-of { font-size: 20px; line-height: 24px; font-weight: var(--w-heading); color: var(--ink-muted); }
.score-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; }
.score-cov { color: var(--ink-muted); }
.gauge { display: block; margin: 16px 0 2px; overflow: visible; }
.band-low { color: var(--tier-low); }
.band-medium { color: var(--tier-medium); }
.band-high { color: var(--tier-high); }
.band-critical { color: var(--tier-critical); }
.gauge-dot { color: var(--t, var(--ink-muted)); }
.score-headline { margin-top: 14px; font-size: 15px; line-height: 22.5px; color: var(--ink-2); }
.score-h {
  margin: 20px 0 8px; font-size: 12px; line-height: 16px; font-weight: var(--w-heading);
  letter-spacing: 0.4px; text-transform: uppercase; color: var(--ink-muted);
}
.why-list { display: flex; flex-direction: column; gap: 8px; }
.why {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px;
  background: var(--tile); border-radius: var(--r-row); box-shadow: var(--ring-tile); font-size: 14px; line-height: 20px;
}
.why-pts { flex: none; color: var(--down); font-size: 15px; font-weight: var(--w-title); }
.clear-list, .unchecked-list { display: flex; flex-direction: column; }
.clear, .unchecked { display: flex; align-items: center; gap: 10px; padding: 5px 2px; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.clear .tick { flex: none; color: var(--up); }
.unchecked .dashed { flex: none; color: var(--ink-dim); }
.unchecked:has(.unchecked-why) { align-items: flex-start; }
.unchecked:has(.unchecked-why) .dashed { margin-top: 4px; }
.unchecked-why { display: block; font-size: 13px; line-height: 18px; }
.score-note, .score-caveat { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.score-how { margin-top: 16px; font-size: 14px; line-height: 20px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 16px;
  background: var(--tile); border-radius: var(--r-tile); box-shadow: var(--ring-tile);
}
.tile-k { padding-right: 24px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tile-v { font-size: 16px; line-height: 22px; font-weight: var(--w-title); overflow-wrap: anywhere; }
.tile.is-gap .tile-v { color: var(--ink-muted); font-weight: var(--w-body); }
.tile .label { align-self: flex-start; margin-top: 4px; }
.tile .cites { position: absolute; top: 11px; right: 10px; margin: 0; }

/* The price chart: a dotted plot, then the price axis with the last price
   tag laid over it */
.chart-card { padding: 20px; background: var(--card); border-radius: var(--r-card); box-shadow: var(--ring-card); }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.chart-title { font-size: 17px; line-height: 22px; font-weight: var(--w-title); letter-spacing: -0.25px; }
.chart-price { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 22px; font-weight: var(--w-title); }
.chart-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; }
.chart {
  display: block; width: 100%; height: 220px; color: var(--chart-line);
  background-image: var(--chart-dots); background-size: 12px 12px; background-position: 6px 4px;
}
.chart-side { display: grid; }
.chart-axis, .chart-mark { grid-area: 1 / 1; }
.chart-axis {
  display: flex; flex-direction: column; justify-content: space-between; height: 220px; padding: 6px 8px 6px 16px;
  color: var(--ink-muted); font-size: 14px; line-height: 20px; text-align: right; white-space: nowrap;
}
.chart-axis .is-under { visibility: hidden; }
.chart-mark { z-index: 1; justify-self: start; pointer-events: none; }
.chart-mark .tag-t { font-family: var(--font); font-size: 14px; font-weight: var(--w-heading); font-variant-numeric: tabular-nums; }
.chart-note, .chart-none { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
