/* ==========================================================================
   Concordia University Wisconsin — CSC Curriculum Evolution
   Brand tokens taken verbatim from https://www.cuw.edu/_files/css/bootstrap.css
   (--bs-primary #005596, --bs-secondary #002641, --bs-warning #faa634,
    --bs-danger #d51525, --bs-info #90b9e2, --bs-light #ededed) and the site's
   Roboto type stack.
   The sequential ramp is a single-hue ramp anchored on CUW blue, validated for
   monotone lightness, step separation and light-end contrast in both modes.
   ========================================================================== */

:root {
  color-scheme: light;

  /* --- CUW brand --- */
  --cuw-blue:      #005596;
  --cuw-navy:      #002641;
  --cuw-gold:      #faa634;
  --cuw-red:       #d51525;
  --cuw-sky:       #90b9e2;

  /* --- surfaces & ink --- */
  --surface:       #ffffff;
  --surface-2:     #f5f7fa;
  --surface-3:     #eaeff5;
  --hero-ink:      #ffffff;
  --border:        #dde4ec;
  --border-strong: #c3cede;
  --text:          #002641;
  --text-2:        #4a5b6b;
  --text-3:        #5f6d7a;

  /* --- validated single-hue sequential ramp (light) --- */
  --seq-1: #9bb8d8;
  --seq-2: #74a0cf;
  --seq-3: #4c88c5;
  --seq-4: #206fb7;
  --seq-5: #005596;
  --seq-0: #eef2f7;   /* zero / empty cell */

  /* ULO accent INK — the accent used as TEXT. CUW gold is 1.99:1 on white, so text
     takes a darkened gold while borders and fills keep the brand colour. */
  --ink-gold: #8a5600;
  --ink-red:  #d51525;
  --ink-blue: #005596;
  --on-gold:  #2b1a00;   /* text sitting ON a gold fill */
  --on-red:   #ffffff;
  --on-blue:  #ffffff;

  --radius:   10px;
  --radius-s: 6px;
  --shadow:   0 1px 2px rgba(0,38,65,.06), 0 2px 8px rgba(0,38,65,.05);
  --shadow-h: 0 2px 6px rgba(0,38,65,.10), 0 10px 24px rgba(0,38,65,.10);
  --maxw: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface:       #101b26;
    --surface-2:     #16242f;
    --surface-3:     #1d2f3d;
    --border:        #273b4d;
    --border-strong: #35506a;
    --text:          #e8eef4;
    --text-2:        #a8bccd;
    --text-3:        #8ba1b5;
    --cuw-sky:       #90b9e2;
    --seq-1: #334f6c;
    --seq-2: #386694;
    --seq-3: #3c7dbe;
    --seq-4: #4e96de;
    --seq-5: #76afea;
    --seq-0: #18262f;
    --ink-gold: #faa634;
    --ink-red:  #ff9aa2;
    --ink-blue: #8cc0f5;
    --on-gold:  #2b1a00;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
    --shadow-h: 0 2px 6px rgba(0,0,0,.5), 0 10px 24px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface:       #101b26;
  --surface-2:     #16242f;
  --surface-3:     #1d2f3d;
  --border:        #273b4d;
  --border-strong: #35506a;
  --text:          #e8eef4;
  --text-2:        #a8bccd;
  --text-3:        #8ba1b5;
  --seq-1: #334f6c;
  --seq-2: #386694;
  --seq-3: #3c7dbe;
  --seq-4: #4e96de;
  --seq-5: #76afea;
  --seq-0: #18262f;
  --ink-gold: #faa634;
  --ink-red:  #ff9aa2;
  --ink-blue: #8cc0f5;
  --on-gold:  #2b1a00;
  --shadow:   0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-h: 0 2px 6px rgba(0,0,0,.5), 0 10px 24px rgba(0,0,0,.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
p { margin: 0 0 1em; }
a { color: var(--cuw-blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
:root[data-theme="dark"] a, :root:not([data-theme="light"]) a { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--seq-5); } }
:root[data-theme="dark"] a { color: var(--seq-5); }
a:hover { color: var(--cuw-navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:hover { color: #a9cdf5; } }
:root[data-theme="dark"] a:hover { color: #a9cdf5; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* skip link */
.skip { position:absolute; left:-9999px; top:0; background:var(--cuw-gold); color:#002641;
        padding:10px 16px; z-index:200; font-weight:700; border-radius:0 0 var(--radius-s) 0; }
.skip:focus { left:0; }

/* ---------- utility strip ---------- */
.util {
  background: var(--cuw-navy); color: #cfe0ee;
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
}
.util .wrap { display:flex; gap:14px; align-items:center; justify-content:space-between;
              min-height:34px; flex-wrap:wrap; }
.util a { color:#cfe0ee; text-decoration:none; }
.util a:hover { color:#fff; text-decoration:underline; }
.util .draft-flag { color: var(--cuw-gold); font-weight:700; }

/* ---------- header ---------- */
header.site {
  background: var(--surface); border-bottom: 3px solid var(--cuw-blue);
  position: sticky; top: 0; z-index: 100;
}
header.site .wrap { display:flex; align-items:center; gap:18px; min-height:70px; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); margin-right:auto; }
.brand .mark {
  width:40px; height:40px; flex:none; border-radius:4px;
  background: var(--cuw-blue); color:#fff;
  display:grid; place-items:center; font-weight:900; font-size:1.05rem; letter-spacing:-.04em;
}
.brand .words { display:flex; flex-direction:column; line-height:1.12; }
.brand .w1 { font-weight:800; font-size:1rem; letter-spacing:-.01em; }
.brand .w2 { font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; color:var(--text-3); }

nav.main { display:flex; gap:2px; flex-wrap:wrap; align-items:center; }
nav.main a {
  display:block; padding:9px 13px; border-radius:var(--radius-s);
  color:var(--text); text-decoration:none; font-weight:600; font-size:.9rem;
}
nav.main a:hover { background:var(--surface-3); color:var(--cuw-blue); }
nav.main a[aria-current="page"] { background:var(--cuw-blue); color:#fff; }

.theme-btn {
  border:1px solid var(--border-strong); background:var(--surface-2); color:var(--text);
  border-radius:var(--radius-s); padding:8px 11px; cursor:pointer; font:inherit; font-size:.85rem;
  line-height:1; min-height:36px;
}
.theme-btn:hover { border-color:var(--cuw-blue); color:var(--cuw-blue); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 78% -18%, rgba(0,85,150,.55), transparent 62%),
    linear-gradient(160deg, #002641 0%, #013655 58%, #004a7d 100%);
  color: var(--hero-ink);
  border-bottom: 5px solid var(--cuw-gold);
  padding: clamp(40px, 7vw, 84px) 0;
}
.hero h1 { color:#fff; max-width: 21ch; }
.hero .kicker {
  display:inline-block; background: rgba(250,166,52,.16); color: var(--cuw-gold);
  border:1px solid rgba(250,166,52,.42);
  padding:5px 13px; border-radius:100px; font-size:.75rem; font-weight:700;
  letter-spacing:.11em; text-transform:uppercase; margin-bottom:18px;
}
.hero p.lede { font-size: clamp(1rem, 1.7vw, 1.19rem); color:#d3e4f2; max-width: 68ch; margin-bottom:0; }
.hero .cta { display:flex; gap:12px; flex-wrap:wrap; margin-top:28px; }

.btn {
  display:inline-flex; align-items:center; gap:8px; padding:12px 22px; border-radius:var(--radius-s);
  font-weight:700; text-decoration:none; font-size:.94rem; border:2px solid transparent; cursor:pointer;
}
.btn-gold { background:var(--cuw-gold); color:#2b1a00; }
.btn-gold:hover { background:#ffb955; color:#2b1a00; }
.btn-ghost { border-color:rgba(255,255,255,.5); color:#fff; }
.btn-ghost:hover { background:rgba(255,255,255,.12); color:#fff; }
.btn-blue { background:var(--cuw-blue); color:#fff; }
.btn-blue:hover { background:#01477e; color:#fff; }

/* ---------- sections ---------- */
section.band { padding: clamp(36px, 5.5vw, 68px) 0; }
section.band.alt { background: var(--surface-2); border-block: 1px solid var(--border); }
.sec-head { max-width: 74ch; margin-bottom: 30px; }
.sec-head .eyebrow {
  color: var(--cuw-blue); font-size:.76rem; font-weight:800; letter-spacing:.13em;
  text-transform:uppercase; display:block; margin-bottom:8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec-head .eyebrow { color: var(--seq-5); } }
:root[data-theme="dark"] .sec-head .eyebrow { color: var(--seq-5); }
.sec-head p { color: var(--text-2); margin-bottom:0; }

/* ---------- cards & grid ---------- */
.grid { display:grid; gap:18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
section.band.alt .card { background: var(--surface); }
a.card { text-decoration:none; color:inherit; display:block; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
a.card:hover { box-shadow: var(--shadow-h); border-color: var(--cuw-blue); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform:none; } }

/* stat tiles */
.stat { text-align:left; }
.stat .figure { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight:800; color:var(--cuw-blue); line-height:1; letter-spacing:-.03em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat .figure { color: var(--seq-5); } }
:root[data-theme="dark"] .stat .figure { color: var(--seq-5); }
.stat .label { font-weight:700; margin-top:10px; font-size:.95rem; }
.stat .sub { color:var(--text-3); font-size:.85rem; margin-top:3px; }

/* ---------- ULO cards ---------- */
.ulo-card { border-top: 5px solid var(--accent, var(--cuw-blue)); }
.ulo-card .ulo-id {
  font-size:.72rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase;
  color: var(--accent-ink, var(--cuw-blue));
}
.ulo-card h3 { margin:6px 0 8px; }
.ulo-card .ulo-desc { color:var(--text-2); font-size:.93rem; font-style:italic; margin-bottom:16px; }
.plo-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.plo-list li { border-left:3px solid var(--accent, var(--cuw-blue)); padding-left:12px; }
.plo-list .pid { font-weight:800; font-size:.78rem; letter-spacing:.06em; color:var(--accent-ink, var(--cuw-blue)); display:block; }
.plo-list .pname { font-weight:700; font-size:.95rem; display:block; margin:1px 0 3px; }
.plo-list .ptext { font-size:.88rem; color:var(--text-2); }

/* ---------- PLO chips ---------- */
.chips { display:flex; flex-wrap:wrap; gap:7px; }
.chip {
  display:inline-flex; align-items:center; gap:6px; font-size:.79rem; font-weight:600;
  background:var(--surface-2); border:1px solid var(--border);
  border-left:3px solid var(--accent, var(--cuw-blue));
  padding:4px 10px; border-radius:var(--radius-s); color:var(--text-2); text-decoration:none;
}
a.chip:hover { border-color:var(--cuw-blue); border-left-color:var(--accent, var(--cuw-blue)); color:var(--text); }
.chip b { color:var(--text); font-weight:800; }

/* ---------- badges ---------- */
.badge {
  display:inline-block; font-size:.7rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
  padding:3px 9px; border-radius:100px; border:1px solid transparent; white-space:nowrap;
}
.badge-blue { background:rgba(0,85,150,.10); color:var(--cuw-blue); border-color:rgba(0,85,150,.28); }
.badge-gold { background:rgba(250,166,52,.15); color:#8a5600; border-color:rgba(250,166,52,.45); }
.badge-grey { background:var(--surface-3); color:var(--text-2); border-color:var(--border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .badge-blue { color:var(--seq-5); background:rgba(118,175,234,.12); border-color:rgba(118,175,234,.35); }
  :root:not([data-theme="light"]) .badge-gold { color:#ffc978; background:rgba(250,166,52,.14); border-color:rgba(250,166,52,.38); }
}
:root[data-theme="dark"] .badge-blue { color:var(--seq-5); background:rgba(118,175,234,.12); border-color:rgba(118,175,234,.35); }
:root[data-theme="dark"] .badge-gold { color:#ffc978; background:rgba(250,166,52,.14); border-color:rgba(250,166,52,.38); }

/* AI intensity — ordinal, single-hue ramp + always a text label */
.ai-dot { width:9px; height:9px; border-radius:2px; display:inline-block; flex:none; }
.ai-Foundational { background: var(--seq-2); }
.ai-Moderate     { background: var(--seq-3); }
.ai-Substantial  { background: var(--seq-4); }
.ai-CoreAI       { background: var(--seq-5); }

/* ---------- course cards ---------- */
/* `a.card` sets display:block and outranks `.course-card`, so the column layout has to
   match that specificity or the footer never sinks to the bottom of the card. */
a.card.course-card,
.course-card { display:flex; flex-direction:column; gap:10px; height:100%; }
.course-card .code { font-weight:800; color:var(--cuw-blue); font-size:.85rem; letter-spacing:.05em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .course-card .code { color:var(--seq-5); } }
:root[data-theme="dark"] .course-card .code { color:var(--seq-5); }
.course-card h3 { margin:0; font-size:1.06rem; }
.course-card .snip { color:var(--text-2); font-size:.88rem; margin:0; flex:1; }
.course-card .foot { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:.78rem; color:var(--text-3); }

/* ---------- filters ---------- */
.filters {
  display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end;
  background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius);
  padding:14px 16px; margin-bottom:22px;
}
.filters .f { display:flex; flex-direction:column; gap:5px; }
.filters label { font-size:.74rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); }
.filters select, .filters input {
  font:inherit; font-size:.9rem; padding:8px 11px; border-radius:var(--radius-s);
  border:1px solid var(--border-strong); background:var(--surface); color:var(--text); min-height:38px;
}
.filters select:focus-visible, .filters input:focus-visible { outline:2px solid var(--cuw-blue); outline-offset:1px; }
.filters .count { margin-left:auto; font-size:.85rem; color:var(--text-2); font-weight:600; }

/* ---------- compare (current vs proposed) ---------- */
.compare { display:grid; gap:18px; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); align-items:start; }
.pane { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.pane > .pane-head {
  padding:12px 18px; font-weight:800; font-size:.8rem; letter-spacing:.1em; text-transform:uppercase;
  display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.pane.current > .pane-head { background:var(--surface-3); color:var(--text-2); border-bottom:1px solid var(--border); }
.pane.proposed > .pane-head { background:var(--cuw-blue); color:#fff; }
.pane .pane-body { padding:18px; }
.pane .pane-body p:last-child { margin-bottom:0; }
.pane.proposed { border-color:var(--cuw-blue); }

/* ---------- CLO cards ---------- */
.clo { border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; }
.clo + .clo { margin-top:14px; }
.clo-head { display:flex; gap:14px; padding:16px 18px; align-items:flex-start; }
.clo-num {
  flex:none; width:34px; height:34px; border-radius:var(--radius-s); background:var(--cuw-blue); color:#fff;
  display:grid; place-items:center; font-weight:800; font-size:.85rem;
}
.clo-text { font-size:1rem; margin:0; font-weight:500; }
.clo-map { border-top:1px dashed var(--border); padding:14px 18px; background:var(--surface-2); }
.clo-map .maplabel { font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); margin-bottom:9px; }
.clo-rat { font-size:.86rem; color:var(--text-2); margin:10px 0 0; font-style:italic; }

/* ---------- coverage strip ---------- */
.strip { display:flex; gap:12px; flex-wrap:wrap; }
.strip-group { display:flex; flex-direction:column; gap:5px; }
.strip-group .gl { font-size:.66rem; font-weight:800; letter-spacing:.06em; color:var(--text-3); text-transform:uppercase; }
.strip-cells { display:flex; gap:3px; }
.strip-cells .sc {
  width:26px; height:26px; border-radius:4px; background:var(--seq-0);
  border:1px solid var(--border); display:grid; place-items:center;
  font-size:.62rem; font-weight:800; color:var(--text-3);
}
.strip-cells .sc.on { background:var(--accent, var(--cuw-blue)); border-color:var(--accent, var(--cuw-blue)); color:var(--accent-on, #fff); }

/* ---------- heatmap (PLO rows x course columns) ---------- */
.hm-scroll { overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
table.hm { border-collapse:separate; border-spacing:2px; font-size:.75rem; margin:0; padding:10px 10px 14px; }

table.hm th.course-h {
  width:26px; padding:0; vertical-align:bottom; font-weight:600; font-size:.7rem;
  color:var(--text-2); height:74px;
}
table.hm th.course-h span {
  writing-mode:vertical-rl; transform:rotate(180deg); white-space:nowrap;
  display:block; margin:0 auto 4px;
}
table.hm th.rowh {
  text-align:left; white-space:nowrap; padding:2px 14px 2px 8px; font-weight:400;
  position:sticky; left:0; background:var(--surface); z-index:2; font-size:.78rem;
  color:var(--text-2); min-width:250px;
}
table.hm th.rowh.corner { color:var(--text-3); font-size:.72rem; letter-spacing:.06em;
                          text-transform:uppercase; font-weight:800; vertical-align:bottom; padding-bottom:6px; }
table.hm th.rowh a { text-decoration:none; color:var(--text-2); border-left:3px solid var(--accent); padding-left:9px; display:block; }
table.hm th.rowh a b { color:var(--text); font-weight:800; }
table.hm th.rowh a:hover { color:var(--cuw-blue); }
table.hm th.rowh a:hover b { color:var(--cuw-blue); }

table.hm tr.grp-row th {
  position:sticky; left:0; text-align:left; padding:16px 8px 5px;
  font-size:.72rem; letter-spacing:.09em; text-transform:uppercase; font-weight:800;
  color:var(--accent-ink); background:var(--surface); border-bottom:2px solid var(--accent); white-space:nowrap;
}
table.hm tr.grp-row th .gid { opacity:.65; margin-right:5px; }

table.hm td.cell { width:26px; min-width:26px; height:24px; padding:0; border-radius:3px; background:var(--seq-0); }
table.hm td.cell.v1 { background:var(--seq-1); }
table.hm td.cell.v2 { background:var(--seq-2); }
table.hm td.cell.v3 { background:var(--seq-3); }
table.hm td.cell.v4 { background:var(--seq-4); }
table.hm td.cell.v5 { background:var(--seq-5); }
table.hm td.cell:focus-visible { outline:2px solid var(--cuw-gold); outline-offset:1px; }

.legend { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:14px; font-size:.8rem; color:var(--text-2); }
.legend .swatches { display:flex; gap:6px; align-items:flex-end; }
.legend .lg { display:flex; flex-direction:column; align-items:center; gap:3px; }
.legend .sw { width:26px; height:14px; border-radius:2px; display:block; }
.legend .ln { font-size:.7rem; color:var(--text-3); font-variant-numeric:tabular-nums; }

/* tooltip */
#tip {
  position:fixed; z-index:300; pointer-events:none; opacity:0; transition:opacity .1s ease;
  background:var(--cuw-navy); color:#fff; padding:8px 11px; border-radius:var(--radius-s);
  font-size:.8rem; line-height:1.45; max-width:280px; box-shadow:0 6px 20px rgba(0,0,0,.28);
}
#tip.on { opacity:1; }
#tip b { color:var(--cuw-gold); }

/* ---------- bar chart ---------- */
.bars { display:flex; flex-direction:column; gap:3px; }
.bar-row { display:grid; grid-template-columns: 210px 1fr 34px; gap:12px; align-items:center; font-size:.82rem; }
.bar-row .bl { color:var(--text-2); text-align:right; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bar-track { position:relative; height:19px; background:var(--surface-3); border-radius:3px; }
.bar-fill { position:absolute; inset:0 auto 0 0; background:var(--cuw-blue); border-radius:3px; min-width:2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar-fill { background:var(--seq-4); } }
:root[data-theme="dark"] .bar-fill { background:var(--seq-4); }
.bar-row .bv { font-variant-numeric: tabular-nums; color:var(--text-3); font-size:.78rem; }
.bar-row .bv.shown { color:var(--text); font-weight:700; }
.axis { display:grid; grid-template-columns:210px 1fr 34px; gap:12px; margin-top:8px; font-size:.7rem; color:var(--text-3); }
.axis .ticks { display:flex; justify-content:space-between; border-top:1px solid var(--border); padding-top:4px; }
@media (max-width:640px) {
  .bar-row, .axis { grid-template-columns: 116px 1fr 30px; gap:8px; font-size:.76rem; }
}

/* ---------- tables ---------- */
.tablewrap { overflow-x:auto; border:1px solid var(--border); border-radius:var(--radius); }
table.data { border-collapse:collapse; width:100%; font-size:.86rem; background:var(--surface); }
table.data th, table.data td { padding:9px 13px; text-align:left; border-bottom:1px solid var(--border); vertical-align:top; }
table.data thead th { background:var(--surface-3); font-size:.74rem; letter-spacing:.07em; text-transform:uppercase; color:var(--text-2); position:sticky; top:0; }
table.data tbody tr:hover { background:var(--surface-2); }
table.data td.num { font-variant-numeric: tabular-nums; }

details.tableview { margin-top:16px; }
details.tableview > summary {
  cursor:pointer; font-size:.85rem; font-weight:700; color:var(--cuw-blue);
  padding:9px 13px; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-s);
  list-style:none; display:inline-flex; align-items:center; gap:7px; min-height:38px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) details.tableview > summary { color:var(--seq-5); } }
:root[data-theme="dark"] details.tableview > summary { color:var(--seq-5); }
details.tableview > summary::-webkit-details-marker { display:none; }
details.tableview > summary::before { content:"▸"; font-size:.8em; }
details.tableview[open] > summary::before { content:"▾"; }
details.tableview > *:not(summary) { margin-top:12px; }

/* ---------- notices ---------- */
.notice {
  border-left:4px solid var(--cuw-gold); background:rgba(250,166,52,.09);
  padding:14px 18px; border-radius:0 var(--radius-s) var(--radius-s) 0; font-size:.9rem; color:var(--text-2);
}
.notice strong { color:var(--text); }
.notice.blue { border-left-color:var(--cuw-blue); background:rgba(0,85,150,.07); }

/* ---------- key changes ---------- */
.changes { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
.changes li { display:flex; gap:10px; align-items:flex-start; font-size:.92rem; color:var(--text-2); }
.changes li::before { content:"+"; color:var(--cuw-gold); font-weight:900; flex:none; line-height:1.5; }

/* ---------- prev/next ---------- */
.pager { display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; margin-top:34px;
         border-top:1px solid var(--border); padding-top:20px; font-size:.9rem; }
.pager a { text-decoration:none; font-weight:600; }

/* ---------- footer ---------- */
footer.site { background:var(--cuw-navy); color:#b9cfe1; padding:44px 0 30px; margin-top:0; font-size:.88rem; }
footer.site a { color:#d7e7f4; }
footer.site h4 { color:#fff; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:12px; }
footer.site .cols { display:grid; gap:28px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
footer.site ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:7px; }
footer.site .rule { border-top:1px solid rgba(255,255,255,.14); margin:28px 0 18px; }
footer.site .fine { color:#8fa9c0; font-size:.79rem; }
footer.site .fine code { background:rgba(255,255,255,.08); padding:1px 5px; border-radius:3px; font-size:.95em; }

/* ---------- breadcrumb ---------- */
.crumb { font-size:.82rem; color:var(--text-3); padding:16px 0 0; }
.crumb a { text-decoration:none; }
.crumb a:hover { text-decoration:underline; }

/* ---------- misc ---------- */
.lede-2 { font-size:1.05rem; color:var(--text-2); max-width:72ch; }
.meta-row { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:18px; }
.anchor-offset { scroll-margin-top: 90px; }
.visually-hidden { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
                   clip:rect(0 0 0 0); white-space:nowrap; border:0; }
:focus-visible { outline:2px solid var(--cuw-gold); outline-offset:2px; }

@media print {
  header.site, .util, nav.main, .theme-btn, .filters, .pager { display:none !important; }
  body { background:#fff; color:#000; }
  .card, .pane, .clo { break-inside: avoid; }
}

/* ---------- hero: two-column with the mapping-chain diagram ---------- */
.hero .hero-grid {
  display:grid; gap:40px; align-items:center;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}
@media (max-width: 900px) { .hero .hero-grid { grid-template-columns: 1fr; gap:34px; } }

.chain { display:flex; flex-direction:column; gap:0; }
.chain-cap {
  font-size:.7rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase;
  color:var(--cuw-gold); margin-bottom:12px;
}
.chain-node {
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.18);
  border-left:4px solid var(--n, var(--cuw-gold));
  border-radius:var(--radius-s); padding:11px 15px;
}
.chain-node .nl {
  font-size:.64rem; font-weight:800; letter-spacing:.11em; text-transform:uppercase;
  color:var(--nl, var(--n, var(--cuw-gold))); display:block; margin-bottom:3px;
}
.chain-node .nt { font-size:.87rem; color:#eaf2f9; line-height:1.45; }
.chain-node .nt b { color:#fff; font-weight:700; }
.chain-arrow { height:20px; margin-left:22px; border-left:2px dotted rgba(255,255,255,.34); position:relative; }
.chain-arrow::after {
  content:""; position:absolute; bottom:-1px; left:-5px;
  border-left:5px solid transparent; border-right:5px solid transparent;
  border-top:6px solid rgba(255,255,255,.44);
}

/* Long filenames and paths must not force a horizontal scroll at phone width. */
code { overflow-wrap:anywhere; word-break:break-word; }

/* The filter reset is NOT a .theme-btn — site.js claims every one of those as a theme toggle. */
.btn-reset {
  border:1px solid var(--border-strong); background:var(--surface-2); color:var(--text);
  border-radius:var(--radius-s); padding:8px 14px; cursor:pointer; font:inherit;
  font-size:.85rem; line-height:1; min-height:38px; font-weight:600;
}
.btn-reset:hover { border-color:var(--cuw-blue); color:var(--cuw-blue); }
