/* The Daily Read look, one sheet for every Daily Read page (module `daily-read`).
 *
 * WHY A SHARED SHEET (owner, 16.10.2026: bring the TradFi Daily Read to the look of the
 * crypto one). Both pages carried the same 300 lines in their own override sheets, and the
 * copies had already drifted: the crypto page got equal stage cards, a subgrid and
 * one-line checks, and the TradFi page kept the old ones. One sheet, one look.
 *
 * SCOPE. Every rule sits under `.drl` (the page's <main>). A module sheet is printed
 * unscoped, also inside the v2 shell, so a bare `h2{}` here would restyle the v2 page.
 * Page-wide rules (`*`, `body`, `main` width, crumbs, `h1`) stay in the page's own
 * override sheet, which v2 scopes for itself.
 *
 * MARKUP, the order of the crypto page:
 *   .verdict.b-{on|wait|sel|off} > .tag.t-* + .line > dl.vl > div(.vl-decision) > dt + dd
 *   .stages > .stage(.s-{on|off|sel}) > .k, h3, .v(.ticks|.qbar), .sub, .body, .more|.sfoot
 *   .chk > .row.r-{ok|bad|warn|na} > .ic, b, .t, .hq, .full
 * Six rows per card, always: the subgrid lines them up across the three cards.
 *
 * The crypto page (`db/content/screens/lab/daily-read.*`) can switch to this sheet by
 * adding `daily-read` to its `modules:`, `class="drl"` to its <main>, and deleting the
 * same rules from its override sheets.
 */

.drl{--p:#33ff66;--dim:#8a948c;--red:#ff5c5c;--amber:#ffce54;--ink:#eafff0;
  --card:rgba(51,255,102,.045);--bd:rgba(51,255,102,.18)}
html.tt-light .drl{--p:#007a1f;--dim:#555d57;--red:#d60000;--amber:#8a6200;--ink:#121613;
  --card:rgba(0,122,31,.045);--bd:rgba(0,122,31,.18)}

/* ── Headings and prose ─────────────────────────────────────────────── */
.drl h2{font-family:'Space Grotesk',sans-serif;font-size:19px;color:#eafff0;margin:34px 0 6px}
.drl .how{font-size:12.5px;color:var(--dim);line-height:1.75;max-width:820px}
.drl .how b{color:#eafff0}
.drl .how a{color:var(--p)}
html.tt-light .drl h2,html.tt-light .drl .how b{color:#007a23}

/* ── Verdict: tag, then labelled lines (market, candidate, checks, decision) ── */
.drl .verdict{border:1px solid var(--bd);border-radius:0;padding:24px 24px 22px;
  background:var(--card);position:relative;overflow:hidden}
.drl .verdict .tag{display:inline-block;font-family:'Space Grotesk',sans-serif;
  font-size:clamp(26px,5vw,40px);font-weight:700;letter-spacing:-.01em;line-height:1;margin-bottom:12px}
.drl .verdict .line{font-size:15px;color:#dfe6df;line-height:1.65;max-width:760px}
.drl .verdict .line b{color:#eafff0}
.drl .t-on{color:var(--p)}
.drl .t-off{color:var(--red)}
.drl .t-sel,.drl .t-wait{color:var(--amber)}
.drl .b-off{box-shadow:0 0 40px rgba(255,92,92,.12) inset;border-color:rgba(255,92,92,.3)}
.drl .b-sel,.drl .b-wait{box-shadow:0 0 40px rgba(255,206,84,.1) inset;border-color:rgba(255,206,84,.3)}
.drl .verdict .line .vl{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:4px 0 0}
.drl .verdict .line .vl>div{display:contents}
.drl .verdict .line .vl dt{font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dim);padding-top:4px;white-space:nowrap}
.drl .verdict .line .vl dd{margin:0;min-width:0}
.drl .verdict .line .vl .vl-decision dd{font-weight:700;color:var(--ink)}
/* The decision takes the tone of the read: "no position, the filter is closed" is not
   green. */
.drl .verdict.b-on .line .vl .vl-decision dd{color:var(--p)}
.drl .verdict.b-off .line .vl .vl-decision dd{color:var(--red)}
.drl .verdict.b-wait .line .vl .vl-decision dd,.drl .verdict.b-sel .line .vl .vl-decision dd{color:var(--amber)}
html.tt-light .drl .verdict .line{color:#191f19}
html.tt-light .drl .verdict .line b{color:#007a23}
html.tt-light .drl .b-off{border-color:rgba(214,0,0,.3)}
html.tt-light .drl .b-sel,html.tt-light .drl .b-wait{border-color:rgba(138,98,0,.3)}
@media(max-width:640px){
  .drl .verdict{padding:20px 18px 18px}
  .drl .verdict .line .vl{grid-template-columns:1fr;gap:2px}
  .drl .verdict .line .vl dd{margin-bottom:8px}
}

/* ── Stage cards: equal size, six shared rows on wide windows ───────── */
.drl .stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;margin-top:22px;
  align-items:stretch}
.drl .stage{border:1px solid var(--bd);border-left:3px solid var(--bd);border-radius:0;
  background:var(--card);padding:22px 22px 20px;display:flex;flex-direction:column;min-width:0}
.drl .stage.s-on{border-left-color:var(--p)}
.drl .stage.s-off{border-left-color:var(--red)}
.drl .stage.s-sel{border-left-color:var(--amber)}
@supports (grid-template-rows:subgrid){
  .drl .stage{display:grid;grid-row:span 6;grid-template-rows:subgrid;align-content:start}
}
.drl .stage .k{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--p);margin-bottom:10px}
.drl .stage h3{font-family:'Space Grotesk',sans-serif;font-size:13px;letter-spacing:.04em;
  text-transform:uppercase;color:var(--dim);font-weight:600;margin-bottom:8px}
.drl .stage .v{font-family:'Space Grotesk',sans-serif;font-size:28px;font-weight:700;line-height:1.05;
  letter-spacing:-.01em;color:#eafff0;margin-bottom:8px}
.drl .stage .v.t-on{color:var(--p)}
.drl .stage .v.t-off{color:var(--red)}
.drl .stage .v.ticks{display:flex;flex-wrap:wrap;gap:8px;line-height:1.5;margin-bottom:10px}
.drl .stage .tick{display:inline-block;background:rgba(51,255,102,.14);border:1px solid rgba(51,255,102,.45);
  color:#33ff66;border-radius:0;padding:3px 14px;font-size:19px;font-weight:700}
.drl .stage .tick a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor}
.drl .stage .sub{font-size:14px;line-height:1.5;color:#dfe6df;margin-bottom:12px}
.drl .stage .body{display:flex;flex-direction:column;min-width:0}
.drl .stage .facts{flex:1 1 auto;display:flex;flex-direction:column;margin:0 0 10px;padding:0;
  border-top:1px solid var(--bd)}
.drl .stage .facts div{flex:1 1 0;display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:6px 0;border-bottom:1px solid var(--bd)}
.drl .stage .facts dt{flex:1 1 auto;min-width:0;font-size:12px;color:var(--dim);letter-spacing:.02em;line-height:1.35}
.drl .stage .facts dd{flex:0 0 auto;margin:0;text-align:right;font-family:'Space Grotesk',sans-serif;
  font-size:15px;font-weight:700;color:#eafff0;font-variant-numeric:tabular-nums;white-space:nowrap}
.drl .stage .why{font-size:13px;color:var(--amber);line-height:1.5;margin:2px 0 8px}
.drl .stage .more{margin-top:6px;align-self:end;justify-self:start;font-size:13px;color:var(--p);
  text-decoration:none;border-bottom:1px solid rgba(51,255,102,.35)}
.drl .stage .more:hover{border-bottom-color:var(--p)}
.drl .stage .sfoot{align-self:end;margin-top:6px;font-size:12px;color:var(--dim);letter-spacing:.02em;
  font-variant-numeric:tabular-nums}
.drl .stage .qbar{display:flex;gap:4px;margin:10px 0 0}
.drl .stage .qbar i{display:block;height:6px;flex:1;background:var(--bd)}
.drl .stage .qbar i.on{background:var(--p)}
html.tt-light .drl .stage .v{color:#007a23}
html.tt-light .drl .stage .v.t-off{color:#d60000}
html.tt-light .drl .stage .tick{background:rgba(0,122,31,.14);border-color:rgba(0,122,31,.45);color:#007a1f}
html.tt-light .drl .stage .sub{color:#2d342f}
html.tt-light .drl .stage .facts dd{color:#121613}
html.tt-light .drl .stage .more{border-bottom-color:rgba(0,122,31,.35)}
html.tt-light .drl .stage .qbar i{background:rgba(18,22,19,.12)}
html.tt-light .drl .stage .qbar i.on{background:#007a1f}
/* The cards fill after the data is read; until then they keep their room, so the table
   below does not jump down by a card's height. */
@media(min-width:900px){.drl .stages:empty{min-height:443px}}

/* ── Checks: one line each, name and result; the rule in "?" ───────── */
.drl .chk{flex:1 1 auto;margin:0;font-size:13px;line-height:1.5;border-top:1px solid var(--bd)}
.drl .chk .row{display:grid;grid-template-columns:22px auto minmax(0,1fr) auto;column-gap:10px;
  align-items:center;min-height:42px;padding:6px 0;border-bottom:1px solid var(--bd)}
.drl .chk .row:last-child{border-bottom:0}
.drl .chk .ic{width:22px;height:22px;display:grid;place-items:center;font-size:12px;font-weight:700;
  border:1px solid currentColor}
.drl .chk .ok{color:var(--p)}
.drl .chk .bad{color:var(--red)}
.drl .chk .warn{color:var(--amber)}
.drl .chk .na{color:var(--dim)}
.drl .chk .row b{color:#eafff0;font-size:14px;font-weight:700;white-space:nowrap}
.drl .chk .row .t{text-align:right;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--dim)}
.drl .chk .row.r-ok .t{color:var(--p)}
.drl .chk .row.r-bad .t{color:var(--red)}
.drl .chk .row.r-warn .t{color:var(--amber)}
.drl .chk .row .hq{margin-left:0;font-family:'Space Grotesk',system-ui,sans-serif}
.drl .chk .row .full{display:none}
html.tt-light .drl .chk .row b{color:#121613}

/* ── Phone and narrow windows: one column, the check's rule under its line ── */
@media(max-width:899px){
  .drl .stages{grid-template-columns:1fr;gap:14px}
  .drl .stage{display:flex;flex-direction:column;grid-row:auto}
  .drl .stage .more{align-self:flex-start;padding:8px 0;margin-top:2px}
  .drl .stage .sfoot{margin-top:10px;align-self:flex-start}
  .drl .chk .row{grid-template-columns:22px auto minmax(0,1fr);row-gap:4px;min-height:0;padding:10px 0}
  .drl .chk .row .hq{display:none}
  .drl .chk .row .full{display:block;grid-column:2/-1;font-size:13px;line-height:1.5;color:var(--dim)}
}
@media(max-width:680px){
  .drl .stage{padding:18px 16px 16px}
  .drl .stage .v{font-size:24px}
}

/* ── Method disclosure and the research path ──────────────────────── */
.drl .results{margin:16px 0 22px;border:1px solid var(--bd);border-radius:0;background:rgba(51,255,102,.04);overflow:hidden}
.drl .results summary{cursor:pointer;padding:12px 14px;color:#eafff0;font-weight:700;font-size:13px}
.drl .results summary::marker{color:var(--p)}
.drl .results .in{padding:0 14px 14px}
.drl .results .note{font-size:11.5px;color:var(--dim);line-height:1.6;margin:8px 0}
.drl .results h3{font-family:'Space Grotesk',sans-serif;font-size:15px;color:#eafff0;margin:14px 0 4px}
.drl .research-flow{display:flex;flex-wrap:wrap;align-items:center;gap:7px;max-width:920px;margin:8px 0}
.drl .research-flow span{color:#eafff0;background:rgba(51,255,102,.07);border:1px solid var(--bd);border-radius:0;
  padding:5px 9px;font-size:11px}
.drl .research-flow i{font-style:normal;color:var(--p);font-weight:700}
html.tt-light .drl .results{background:rgba(0,122,31,.04)}
html.tt-light .drl .results summary,html.tt-light .drl .results h3{color:#007a23}
html.tt-light .drl .research-flow span{color:#007a23;background:rgba(0,122,31,.07)}

/* ── Board table ──────────────────────────────────────────────────── */
.drl .tblwrap{overflow-x:auto;margin:12px 0}
.drl table.t10{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
.drl table.t10 th,.drl table.t10 td{padding:10px 12px;border-bottom:1px solid rgba(232,236,233,.1);
  text-align:left;white-space:nowrap;vertical-align:top}
.drl table.t10 th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#8a948c}
html.tt-light .drl table.t10 th,html.tt-light .drl table.t10 td{border-bottom-color:rgba(18,22,19,.1)}
html.tt-light .drl table.t10 th{color:#555d57}
@media(max-width:680px){
  .drl table.t10{min-width:0;font-size:13px}
  .drl table.t10 th,.drl table.t10 td{padding:8px 6px}
}

/* ── Legend chips ─────────────────────────────────────────────────── */
.drl .legend .g{color:var(--p)}
.drl .legend .a{color:var(--amber)}
.drl .legend .r{color:var(--red)}
.drl .legend .m{color:var(--dim)}
