/* AWS Report # 1: Forecast style, the look of activedirectoryreports.com Report # 1 (deep slate, cream type,
   orange bands, pill controls, Jost). Loaded after site.css on every page. The report is always dark: each
   page's <head> sets data-theme="dark", so site.css's dark rules apply first and this file restyles them.
   site.css stays the neutral cream / teal base (light and dark); keep the Forecast look in this file.
   Rules are prefixed with :root[data-theme] so they outrank site.css's :root[data-theme="dark"] rules.
   Taken from ADR's adr1/assets/css/forecast.css (7 Nov 2026); the AWS additions are at the end. */
/* Jost is self-hosted in site/shared/fonts (SIL Open Font License, OFL-jost.txt). */
@font-face { font-family: "Jost"; src: url("../../../shared/fonts/jost-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../../../shared/fonts/jost-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root, :root[data-theme] {
  color-scheme: dark;
  /* the palette */
  --fc-bg: #142026; --fc-surface: #1A2A31; --fc-well: #22323A; --fc-grid: #2C3A3F; --fc-rule: #3B4A50; --fc-mid: #3A4A50;
  --fc-cream: #F3EBDD; --fc-muted: #B9B2A4; --fc-orange: #E07A45; --fc-on-orange: #142026;
  --fc-teal: #5AA3A6; --fc-blue: #6F9AE0; --fc-red: #EC6A5C; --fc-gold: #F0B94A; --fc-plum: #B892E8;
  --fc-radius: 22px;

  --font: "Jost", Futura, "Century Gothic", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --ground: var(--fc-bg); --surface: var(--fc-surface); --well: var(--fc-well); --track: var(--fc-grid);
  --primary: var(--fc-orange); --primary-dark: #C9652F; --teal-2: var(--fc-teal);
  --link: #7CC3C6; --link-hover: var(--fc-cream);
  --ink: var(--fc-cream); --ink-2: #E2D9C9; --muted: var(--fc-muted); --rule: rgba(243, 235, 221, .10);

  --pass-bg: rgba(90, 163, 166, .18); --pass-fg: #8FD0D2;
  --warn-bg: rgba(240, 185, 74, .16); --warn-fg: #F5CB75; --warn-strong: var(--fc-gold);
  --fail-bg: rgba(236, 106, 92, .18); --fail-fg: #F69A8F; --fail-strong: #F07A6D;
  --info-bg: rgba(111, 154, 224, .18); --info-fg: #A9C3EE; --info-strong: #93B4EA;
  --fail-solid: #C94A3F; --warn-solid: #D39A2A; --info-solid: #4F72AE;

  /* charts: teal, orange, blue, plum, gold (regions take the first four) */
  --c1: var(--fc-teal); --c2: var(--fc-orange); --c3: var(--fc-blue); --c4: var(--fc-plum); --c5: var(--fc-gold); --c-other: #6B7A7F;
  --m1: #4F8E91; --m2: #C46C3E; --m3: #6385C2; --m4: #9C7CC6; --m5: #CFA145; --m6: #5F7D88;
  --s-good: var(--fc-teal); --s-warn: var(--fc-gold); --s-bad: var(--fc-red); --s-info: var(--fc-blue);
  --alert-red: var(--fc-red);

  --tint: rgba(90, 163, 166, .16); --field: #10181C; --edge: var(--fc-grid);
  --row-hover: rgba(243, 235, 221, .04); --row-open: rgba(243, 235, 221, .06);
  --teal-rgb: 90,163,166; --shade-rgb: 0,0,0; --lo-rgb: 0,0,0; --lo-a: 0; --hi-rgb: 255,255,255; --hi-a: 0;
  --tip-bg: #0E171B; --tip-edge: var(--fc-rule);
  --yes-bg: rgba(90, 163, 166, .18); --yes-fg: #8FD0D2; --no-bg: var(--fc-well); --no-fg: var(--fc-muted);
  --sea: #10191E; --land: #22323A; --land-edge: #3B4A50; --land-edge-strong: #6B7A7F; --land-dim: #1A2A31;
  --hub-line: #D8CFBF; --repl-ok: var(--fc-teal); --map-ring: var(--fc-bg); --halo: rgba(20, 32, 38, .9);
  --topo-bg: #10191E; --topo-land: #1F2E35; --topo-land-edge: #3B4A50; --topo-node: rgba(26, 42, 49, .96); --glass: rgba(26, 42, 49, .94);

  /* flat: borders instead of the neumorphic shadows */
  --sh-raised: none; --sh-control: none; --sh-small: none; --sh-inset: none; --sh-inset-sm: none; --sh-primary: none;

  --range-a: var(--fc-gold); --range-b: var(--fc-orange); --range-track: var(--fc-grid); --range-thumb: var(--fc-bg); --range-ring: var(--fc-orange); --range-glow: rgba(224, 122, 69, .3);
}

:root[data-theme] body { background: var(--fc-bg); font-size: 15px; }
:root[data-theme] :focus-visible { outline: 3px solid var(--fc-gold); outline-offset: 2px; }
:root[data-theme] ::selection { background: var(--fc-orange); color: var(--fc-on-orange); }

/* ---------- headings ---------- */
:root[data-theme] h1 { font-weight: 600; font-size: 38px; letter-spacing: -0.02em; }
:root[data-theme] .eyebrow, :root[data-theme] .tile .label { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--fc-teal); }
@media (max-width: 600px) { :root[data-theme] h1 { font-size: 28px; } }

/* ---------- sidebar ---------- */
:root[data-theme] .sidebar { background: var(--fc-bg); border: 1.5px solid var(--fc-rule); border-radius: var(--fc-radius); box-shadow: none; }
:root[data-theme] .brand-mark { background: var(--fc-orange); border-radius: 14px; }
:root[data-theme] .brand-mark svg, :root[data-theme] .brand-mark svg * { stroke: var(--fc-on-orange); }
:root[data-theme] .brand-name { font-weight: 700; font-size: 17px; }
:root[data-theme] .brand-sub { letter-spacing: .02em; }
:root[data-theme] .forest-chip { background: var(--fc-surface); border: 1px solid var(--fc-grid); }
:root[data-theme] .forest-chip small { color: var(--fc-orange); font-weight: 600; letter-spacing: .16em; }
:root[data-theme] .rail-toggle { background: var(--fc-surface); border: 1px solid var(--fc-grid); color: var(--fc-cream); }
:root[data-theme] .nav-group-label { font-weight: 600; font-size: 12px; letter-spacing: .18em; color: var(--fc-muted); }
:root[data-theme] .nav-group-label:hover { background: transparent; color: var(--fc-cream); }
:root[data-theme] .nav-group.folded:has(.nav-item[aria-current="page"]) .nav-group-label { color: var(--fc-orange); background: transparent; }
:root[data-theme] .nav-item { font-weight: 500; font-size: 15px; color: var(--ink-2); border-radius: 999px; }
:root[data-theme] .nav-item:hover { background: var(--fc-surface); color: var(--fc-cream); }
:root[data-theme] .nav-item[aria-current="page"] { background: var(--fc-orange); color: var(--fc-on-orange); font-weight: 600; }
:root[data-theme] .nav-item[aria-current="page"] svg, :root[data-theme] .nav-item[aria-current="page"] svg * { stroke: var(--fc-on-orange); }
:root[data-theme] .nav-badge { font-weight: 700; }
:root[data-theme] .freshness { background: var(--fc-surface); border: 1px solid var(--fc-grid); }
:root[data-theme] .freshness .head { color: var(--fc-teal); }
:root[data-theme] .freshness .dot { background: var(--fc-teal); }

/* ---------- page header ---------- */
:root[data-theme] .crumbs, :root[data-theme] .page-head .crumbs { background: transparent; border: 1.5px solid var(--fc-rule); border-radius: 999px; box-shadow: none; font-weight: 500; }
:root[data-theme] .crumbs b { font-weight: 700; }
:root[data-theme] .page-head .titles .page-sub { color: var(--fc-muted); font-weight: 400; }
:root[data-theme] .page-head .titles .page-sub a { color: var(--fc-cream); font-weight: 600; }

/* ---------- buttons and switches: pills ---------- */
:root[data-theme] .btn { font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
:root[data-theme] .btn-primary, :root[data-theme] .btn-primary:hover { background: var(--fc-orange); color: var(--fc-on-orange); }
:root[data-theme] .btn-primary:hover { background: #EA8C5A; }
:root[data-theme] .btn-primary svg, :root[data-theme] .btn-primary svg * { stroke: currentColor; }
:root[data-theme] .btn-secondary { background: transparent; color: var(--fc-cream); border: 1.5px solid var(--fc-cream); }
:root[data-theme] .btn-secondary:hover { border-color: var(--fc-gold); color: var(--fc-gold); }
:root[data-theme] .back-btn { background: var(--fc-orange); color: var(--fc-on-orange); }
:root[data-theme] .seg { background: transparent; border: 1.5px solid var(--fc-cream); border-radius: 999px; box-shadow: none; }
:root[data-theme] .seg button { border-radius: 999px; font-weight: 600; }
:root[data-theme] .seg button[aria-selected="true"] { background: var(--fc-orange); color: var(--fc-on-orange); box-shadow: none; }
:root[data-theme] .seg button.tone-fail[aria-selected="true"] { background: var(--fc-red); color: #10181C; }
:root[data-theme] .seg button.tone-warn[aria-selected="true"] { background: var(--fc-gold); color: #10181C; }

/* everything else that sat white text on --primary: dark text on the orange */
:root[data-theme] .pager button[aria-current="page"], :root[data-theme] .pager .pg-size button[aria-pressed="true"], :root[data-theme] .pg-sel.on select,
:root[data-theme] .region-pill, :root[data-theme] .row-x:hover, :root[data-theme] .row-x[aria-expanded="true"],
:root[data-theme] .detail-bar .nav-btns:last-child > a.btn, :root[data-theme] .jump-nav .jump .n, :root[data-theme] .jump-nav .jump:hover,
:root[data-theme] .pager button.edge:not([disabled]):hover, :root[data-theme] .gp-step, :root[data-theme] .gpr-btn:hover, :root[data-theme] .help-i:hover,
:root[data-theme] .flow-n, :root[data-theme] .guide-toc a.on, :root[data-theme] .about-real-icon, :root[data-theme] .flow-btn.play,
:root[data-theme] select option:checked { color: var(--fc-on-orange); box-shadow: none; }
:root[data-theme] .pager button[aria-current="page"] { border-radius: 999px; }
:root[data-theme] .pg-size { background: var(--fc-well); border-radius: 999px; }
:root[data-theme] .pager .pg-size button { border-radius: 999px; color: var(--fc-cream); }
:root[data-theme] .pg-sel select { color: var(--fc-cream); }
:root[data-theme] .pager button.edge { color: var(--fc-cream); }

/* ---------- cards: an orange band across the top, like a forecast panel ---------- */
:root[data-theme] .card { background: var(--fc-surface); border: 1px solid var(--fc-grid); border-radius: var(--fc-radius); box-shadow: none; }
:root[data-theme] .card > .card-head:first-child { margin: -24px -24px 0; padding: 11px 24px; min-height: 44px; background: var(--fc-orange); color: var(--fc-on-orange); border-radius: calc(var(--fc-radius) - 1px) calc(var(--fc-radius) - 1px) 0 0; }
:root[data-theme] .card > .card-head:first-child h2 { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fc-on-orange); display: flex; align-items: center; gap: 8px; }
:root[data-theme] .card > .card-head:first-child h2 .count { color: rgba(20, 32, 38, .72); font-weight: 600; }
:root[data-theme] .card > .card-head:first-child h2 svg, :root[data-theme] .card > .card-head:first-child h2 svg * { stroke: var(--fc-on-orange); }
:root[data-theme] .card > .card-head:first-child .card-link, :root[data-theme] .card > .card-head:first-child a { color: var(--fc-on-orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme] .card > .card-head:first-child .alert-dot { background: var(--fc-on-orange); color: var(--fc-orange); }
/* table tools that sit in the band: dark-on-orange pills */
:root[data-theme] .card > .card-head:first-child .search { background: rgba(20, 32, 38, .14); border: 1.5px solid var(--fc-on-orange); box-shadow: none; border-radius: 999px; }
:root[data-theme] .card > .card-head:first-child .search input { color: var(--fc-on-orange); }
:root[data-theme] .card > .card-head:first-child .search input::placeholder { color: rgba(20, 32, 38, .7); }
:root[data-theme] .card > .card-head:first-child .search svg, :root[data-theme] .card > .card-head:first-child .search svg * { stroke: var(--fc-on-orange); }
:root[data-theme] .card > .card-head:first-child .btn, :root[data-theme] .card > .card-head:first-child .seg { background: transparent; color: var(--fc-on-orange); border: 1.5px solid var(--fc-on-orange); }
:root[data-theme] .card > .card-head:first-child .seg button { color: var(--fc-on-orange); background: transparent; box-shadow: none; }
:root[data-theme] .card > .card-head:first-child .seg button[aria-selected="true"] { background: var(--fc-on-orange); color: var(--fc-orange); }
:root[data-theme] .card > .card-head:first-child .seg button .n { color: inherit; }
:root[data-theme] .card > .card-head:first-child .btn svg, :root[data-theme] .card > .card-head:first-child .btn svg * { stroke: currentColor; }
:root[data-theme] .card.card-alert { border-color: rgba(236, 106, 92, .55); }
:root[data-theme] .card.card-alert > .card-head:first-child { background: var(--fc-red); }
@media (max-width: 600px) { :root[data-theme] .card > .card-head:first-child { margin: -18px -18px 0; padding: 10px 18px; } }
:root[data-theme] .card h2 { font-weight: 700; }
:root[data-theme] .well, :root[data-theme] .kv > div, :root[data-theme] .issue, :root[data-theme] .dt-empty { background: var(--fc-bg); border: 1px solid var(--fc-grid); box-shadow: none; }
:root[data-theme] .kv dd { font-weight: 600; }
:root[data-theme] .country-chip { background: var(--fc-bg); border: 1px solid var(--fc-grid); }

/* ---------- summary tiles: eyebrow, then a big cream number ---------- */
:root[data-theme] .tile { background: var(--fc-surface); border: 1px solid var(--fc-grid); border-radius: var(--fc-radius); box-shadow: none; }
:root[data-theme] a.tile:hover { border-color: var(--fc-orange); box-shadow: none; }
:root[data-theme] .tile .value, :root[data-theme] .tile .value:not(.warn):not(.fail):not(.info) { font-weight: 700; letter-spacing: -0.02em; color: var(--fc-cream); }
:root[data-theme] .tile .value.warn { color: var(--fc-gold); }
:root[data-theme] .tile .value.fail { color: var(--fc-red); }
:root[data-theme] .tile .value.info { color: var(--fc-blue); }
:root[data-theme] .mini-legend b, :root[data-theme] .mini-bars .col em { font-weight: 700; }

/* ---------- status ---------- */
:root[data-theme] .badge { font-weight: 700; letter-spacing: .02em; }
:root[data-theme] .badge.neutral { background: var(--fc-well); }
:root[data-theme] .banner { background: var(--fc-orange); color: var(--fc-on-orange); border-radius: var(--fc-radius); box-shadow: none; }
:root[data-theme] .banner a:not(.btn) { color: var(--fc-on-orange); }
:root[data-theme] .banner .text span { opacity: 1; }
:root[data-theme] .banner .icon { background: var(--fc-on-orange); box-shadow: none; }
:root[data-theme] .banner .icon svg, :root[data-theme] .banner .icon svg * { stroke: var(--fc-red); }
:root[data-theme] .banner a.btn { background: var(--fc-on-orange); color: var(--fc-cream); }
:root[data-theme] .banner.ok { background: var(--fc-teal); }
:root[data-theme] .banner.ok .icon { background: rgba(20, 32, 38, .2); }
:root[data-theme] .banner.ok .icon svg, :root[data-theme] .banner.ok .icon svg * { stroke: var(--fc-on-orange); }
:root[data-theme] .bar, :root[data-theme] .stack { background: var(--fc-well); box-shadow: none; }
:root[data-theme] .bar > span { background: var(--fc-teal); }
:root[data-theme] .ring { box-shadow: none; }
:root[data-theme] .ring .hole { background: var(--fc-surface); box-shadow: none; }
:root[data-theme] .ring .big, :root[data-theme] .meter .top b { color: var(--fc-cream); font-weight: 700; }
:root[data-theme] .flow .node { background: var(--fc-well); box-shadow: none; }

/* ---------- tables ---------- */
:root[data-theme] table.data thead th { background: var(--fc-bg); color: var(--fc-muted); font-weight: 600; letter-spacing: .12em; border-bottom: 1.5px solid var(--fc-rule); }
:root[data-theme] table.data thead th:first-child, :root[data-theme] table.data thead th:last-child { border-radius: 0; }
:root[data-theme] table.data thead tr { box-shadow: none; }
:root[data-theme] table.data thead th .arrow { color: var(--fc-orange); }
:root[data-theme] table.data tbody td { border-bottom-color: var(--fc-grid); }
:root[data-theme] .card > .dt-scroll, :root[data-theme] .dt-scroll { border-radius: 0; }
:root[data-theme] .search { border-radius: 999px; }

/* ---------- maps ---------- */
:root[data-theme] .map { box-shadow: none; border: 1px solid var(--fc-grid); }
:root[data-theme] .flag { box-shadow: 0 0 0 1px rgba(243, 235, 221, .18); }

/* ---------- pop-ups ---------- */
:root[data-theme] .modal-card, :root[data-theme] .popped { border: 1px solid var(--fc-rule); }

/* the menu badge on the page you are on */
:root[data-theme] .nav-item[aria-current="page"] .nav-badge { background: var(--fc-on-orange); color: var(--fc-cream); }
/* All reports: an outlined pill like the breadcrumb */
:root[data-theme] .home-link { background: transparent; border: 1.5px solid var(--fc-rule); border-radius: 999px; box-shadow: none; color: var(--fc-cream); font-weight: 600; }
:root[data-theme] .home-link:hover { border-color: var(--fc-orange); color: var(--fc-orange); }
:root[data-theme] .home-link svg, :root[data-theme] .home-link svg * { stroke: currentColor; }

/* ---------- AWS Report # 1 additions ---------- */
/* findings list on the Dashboard: dark rows with a thin rule, orange on hover */
:root[data-theme] .finding { background: var(--fc-bg); border: 1px solid var(--fc-grid); box-shadow: none; border-radius: 14px; }
:root[data-theme] .finding:hover { border-color: var(--fc-orange); background: var(--fc-bg); }
:root[data-theme] .finding b { font-weight: 600; }
/* horizontal bars */
:root[data-theme] .hbar .track { background: var(--fc-well); }
:root[data-theme] .hbar .val { font-weight: 700; }
/* chips and the demo-data tag */
:root[data-theme] .chip { font-weight: 600; }
:root[data-theme] .demo-tag { background: transparent; border: 1.5px solid var(--fc-blue); color: var(--info-fg); font-weight: 600; letter-spacing: .14em; }
/* charts */
:root[data-theme] .chart .axis text, :root[data-theme] .chart text.axis { font-weight: 500; }
/* the security baseline matrix: the same flat header as the data tables */
:root[data-theme] table.matrix thead th { background: var(--fc-bg); color: var(--fc-muted); font-weight: 600; letter-spacing: .12em; border-bottom: 1.5px solid var(--fc-rule); border-radius: 0; }
:root[data-theme] table.matrix th, :root[data-theme] table.matrix td { border-bottom-color: var(--fc-grid); }
/* jump links to each data set: outlined pills, orange when hovered */
:root[data-theme] .jump-nav .jump { background: transparent; border: 1.5px solid var(--fc-rule); box-shadow: none; color: var(--fc-cream); font-weight: 600; }
:root[data-theme] .jump-nav .jump:hover { background: var(--fc-orange); border-color: var(--fc-orange); }
/* footer */
:root[data-theme] .layout > main > footer { color: var(--fc-muted); border-top: 1px solid var(--fc-grid); padding-top: 14px; }
:root[data-theme] .layout > main > footer a { color: var(--fc-cream); font-weight: 600; }
/* the brand mark's cloud is drawn with stroke="#fff" in core.js: dark on the orange */
:root[data-theme] .brand-mark svg[stroke] { stroke: var(--fc-on-orange); }
/* summary tiles: muted pastel tints in a fixed order, so a row of tiles has some colour. Each tile takes a pastel
   (--tp) for a faint wash, its border and its label; the figure stays cream, or red / gold / blue for Fail / Warn /
   info. Gold and red are left out of the cycle so they keep meaning a status. */
:root[data-theme] .tiles > .tile { --tp: #8FD0D2; background: color-mix(in srgb, var(--tp) 14%, var(--fc-surface)); border-color: color-mix(in srgb, var(--tp) 40%, transparent); }
:root[data-theme] .tiles > .tile:nth-child(5n+2) { --tp: #A9C3EE; }
:root[data-theme] .tiles > .tile:nth-child(5n+3) { --tp: #C9B3EE; }
:root[data-theme] .tiles > .tile:nth-child(5n+4) { --tp: #B5D3A8; }
:root[data-theme] .tiles > .tile:nth-child(5n+5) { --tp: #F2B896; }
:root[data-theme] .tiles > .tile .label { color: var(--tp); }
:root[data-theme] .tiles > a.tile:hover { border-color: var(--tp); }
/* the same pastel cycle on every other boxed figure: the key-value boxes (Dashboard Inventory, At a Glance on the
   section pages, the Role page's Policies) and the Dashboard's region boxes. They sit inside a card, so the wash
   goes over the darker --fc-bg. Labels take the pastel; figures are cream unless they are a Warn or a Fail. */
:root[data-theme] .kv > div, :root[data-theme] .regions > .region { --tp: #8FD0D2; background: color-mix(in srgb, var(--tp) 12%, var(--fc-bg)); border: 1px solid color-mix(in srgb, var(--tp) 38%, transparent); box-shadow: none; }
:root[data-theme] .kv > div:nth-child(5n+2), :root[data-theme] .regions > .region:nth-child(5n+2) { --tp: #A9C3EE; }
:root[data-theme] .kv > div:nth-child(5n+3), :root[data-theme] .regions > .region:nth-child(5n+3) { --tp: #C9B3EE; }
:root[data-theme] .kv > div:nth-child(5n+4), :root[data-theme] .regions > .region:nth-child(5n+4) { --tp: #B5D3A8; }
:root[data-theme] .kv > div:nth-child(5n+5), :root[data-theme] .regions > .region:nth-child(5n+5) { --tp: #F2B896; }
:root[data-theme] .kv dt:first-of-type { color: var(--tp); }
:root[data-theme] .kv dd, :root[data-theme] .kv dd.good { color: var(--fc-cream); }
:root[data-theme] .kv dd.warn { color: var(--fc-gold); }
:root[data-theme] .kv dd.fail { color: var(--fc-red); }
:root[data-theme] .kv > div:has(> a:hover) { border-color: var(--tp); }
:root[data-theme] .regions > .region .r-head b { color: var(--tp); }
/* Process flowchart: each lane takes a pastel (Microsoft blue, AWS peach, collector mint) for its header and steps */
:root[data-theme] .fl-ms { --tp: #A9C3EE; } :root[data-theme] .fl-aws { --tp: #F2B896; } :root[data-theme] .fl-pc, :root[data-theme] .fl-end { --tp: #8FD0D2; }
:root[data-theme] .fl-lane { background: color-mix(in srgb, var(--tp) 14%, var(--fc-surface)); border: 1px solid color-mix(in srgb, var(--tp) 40%, transparent); }
:root[data-theme] .fl-lane b, :root[data-theme] .fl-lane-tag { color: var(--tp); }
:root[data-theme] .fl-step { background: color-mix(in srgb, var(--tp) 10%, var(--fc-bg)); border-color: color-mix(in srgb, var(--tp) 38%, transparent); }
:root[data-theme] .fl-n { background: var(--tp); color: var(--fc-on-orange); }
:root[data-theme] .fl-end { border-style: dashed; }
:root[data-theme] .faq details { background: var(--fc-bg); border-color: var(--fc-grid); }
:root[data-theme] .faq details[open] { border-color: color-mix(in srgb, var(--fc-orange) 50%, transparent); }
:root[data-theme] .faq summary::after { color: var(--fc-orange); }

/* ---------- To-Do List (todo.html, TODO.render in todo-engine.js): base layout, coloured by the report's tokens ---------- */
.td { display: flex; flex-direction: column; gap: 30px; }
.td-now { --td-c: var(--td-now-c, var(--fail-solid)); --td-ink: var(--td-now-ink, var(--fail-fg)); --td-tint: var(--td-now-tint, var(--fail-bg)); }
.td-next { --td-c: var(--td-next-c, var(--warn-solid)); --td-ink: var(--td-next-ink, var(--warn-fg)); --td-tint: var(--td-next-tint, var(--warn-bg)); }
.td-check { --td-c: var(--td-check-c, var(--info-solid)); --td-ink: var(--td-check-ink, var(--info-fg)); --td-tint: var(--td-check-tint, var(--info-bg)); }
.td-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.td-lead { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 640px; }
.td-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.td-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--td-ink); background: var(--td-tint); border: 1px solid var(--td-c); }
.td-chip b { font-size: 17px; }
.td-c-now { --td-c: var(--td-now-c, var(--fail-solid)); --td-ink: var(--td-now-ink, var(--fail-fg)); --td-tint: var(--td-now-tint, var(--fail-bg)); }
.td-c-next { --td-c: var(--td-next-c, var(--warn-solid)); --td-ink: var(--td-next-ink, var(--warn-fg)); --td-tint: var(--td-next-tint, var(--warn-bg)); }
.td-c-check { --td-c: var(--td-check-c, var(--info-solid)); --td-ink: var(--td-check-ink, var(--info-fg)); --td-tint: var(--td-check-tint, var(--info-bg)); }
.td-group { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 70px; }
.td-ghead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 10px; border-bottom: 3px solid var(--td-c); }
.td-ghead h2 { margin: 0; font-size: 26px; line-height: 1.15; color: var(--td-ink); }
.td-when { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--td-ink); }
.td-gcount { margin-left: auto; font-size: 13px; color: var(--muted); }
.td-intro { margin: 0; color: var(--muted); font-size: 14.5px; }
.td-jobs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.td-job { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; min-width: 0; }
.td-n { flex: 0 0 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: var(--td-tint); color: var(--td-ink); border: 1px solid var(--td-c); }
.td-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.td-jt { display: flex; flex-direction: column; gap: 1px; }
.td-jt h3 { margin: 0; font-size: 16.5px; line-height: 1.3; color: var(--ink); }
.td-where { font-size: 12.5px; color: var(--muted); }
.td-lines { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); }
.td-lines li { overflow-wrap: anywhere; }
.td-do { margin: auto 0 0; display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; border-radius: 8px; background: var(--td-tint); color: var(--ink); font-size: 14px; }
.td-do b { flex: 0 0 auto; color: var(--td-ink); text-transform: uppercase; font-size: 11.5px; letter-spacing: .08em; }
.td-see { margin: 0; font-size: 12.5px; color: var(--muted); }
.td-see a { color: var(--link, inherit); }
.td-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border: 2px dashed var(--rule); border-radius: 12px; font-size: 15px; }
.td-rule-k { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--ink); }
.td-rule-v { color: var(--ink-2); }
.td-k-now { color: var(--td-now-ink, var(--fail-fg)); } .td-k-next { color: var(--td-next-ink, var(--warn-fg)); } .td-k-check { color: var(--td-check-ink, var(--info-fg)); }
.td-foot { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .td-gcount { margin-left: 0; flex-basis: 100%; } .td-job { padding: 14px; gap: 10px; } }

/* AWS guidance under a job (Security Hub controls; todo-engine.js) */
:root[data-theme] .td-do.td-aws, .td-do.td-aws { margin: 0; background: transparent; border: 1px dashed var(--td-ink); border-radius: 8px; font-size: 13px; font-weight: 400; line-height: 1.5; box-shadow: none; }
.td-aws a { color: var(--td-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* frozen table columns: the card colour behind them */
:root[data-theme] { --fz-bg: var(--fc-surface); }
