/* CSA Platform design system. Calm, sparse, operational (Ramp-inspired).
   Rules: no bold body text (only h1/h2 may carry weight). Nav links right-aligned.
   Status states never communicated by color alone: every pill carries text. No emojis. */

:root {
  --navy: #062a4c; --navy-2: #0a3258; --navy-3: #0f3d69;
  --ink: #16212e; --ink-2: #4a5768; --ink-3: #7b8794;
  --line: #e3e8ee; --line-2: #eef1f5;
  --bg: #f6f8fa; --card: #ffffff;
  --green: #008f62; --green-bg: #e5f4ee;
  --amber: #b45309; --amber-bg: #fdf3e3;
  --red: #c02626; --red-bg: #fdecec;
  --blue: #0b5ddd; --blue-bg: #e9f0fd;
  --violet: #6d4fc2; --violet-bg: #f0ecfb;
  --accent: #dff52a;
  --radius: 10px;
  font-size: 15px;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-weight: 400; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55; }
h1 { font-family: "Avenir Next", Avenir, Inter, -apple-system, sans-serif; font-weight: 400; font-size: 2rem; letter-spacing: -0.01em; line-height: 1.08; }
h2 { font-weight: 400; font-size: 1.6rem; letter-spacing: -0.005em; line-height: 1.15; }
h3, h4 { font-weight: 400; font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { color: var(--ink-2); }
small, .muted { color: var(--ink-3); font-size: 0.85rem; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }

/* ---------- Buttons ---------- */
/* Buttons are real Bootstrap buttons; variants use Bootstrap 5.3 CSS-variable API. */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none;
  --bs-btn-border-radius: 6px; --bs-btn-font-weight: 400; --bs-btn-font-size: 0.875rem;
  --bs-btn-padding-y: 0.55rem; --bs-btn-padding-x: 1rem;
  --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: var(--line-2); --bs-btn-hover-border-color: var(--line); --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--line-2); --bs-btn-active-border-color: var(--line); --bs-btn-active-color: var(--ink); }
.btn:hover { text-decoration: none; }
.btn.primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #007a53; --bs-btn-hover-border-color: #007a53; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #006b49; --bs-btn-active-border-color: #006b49; --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 0, 143, 98; }
.btn.navy { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--navy-3); --bs-btn-hover-border-color: var(--navy-3); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--navy-2); --bs-btn-active-border-color: var(--navy-2); --bs-btn-active-color: #fff;
  --bs-btn-focus-shadow-rgb: 6, 42, 76; }
.btn.accent { --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #16211a;
  --bs-btn-hover-bg: #d3e930; --bs-btn-hover-border-color: #d3e930; --bs-btn-hover-color: #16211a;
  --bs-btn-active-bg: #c8de24; --bs-btn-active-border-color: #c8de24; --bs-btn-active-color: #16211a; }
.btn.ghost { --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-color: var(--blue);
  --bs-btn-hover-bg: var(--line-2); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--blue);
  --bs-btn-active-bg: var(--line-2); --bs-btn-active-border-color: transparent; --bs-btn-active-color: var(--blue); }
.btn.sm { --bs-btn-padding-y: 0.3rem; --bs-btn-padding-x: 0.7rem; --bs-btn-font-size: 0.85rem; }

/* ---------- Pills / status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px;
  font-size: 0.78rem; font-weight: 500; white-space: nowrap; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.gray { background: var(--line-2); color: var(--ink-2); }
.pill.violet { background: var(--violet-bg); color: var(--violet); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.amber { background: var(--amber); }
.dot.red { background: var(--red); } .dot.blue { background: var(--blue); } .dot.gray { background: var(--ink-3); }

/* ---------- Bootstrap collision neutralizers (our .row/.card/.modal are not Bootstrap's) ---------- */
.row { --bs-gutter-x: 0; --bs-gutter-y: 0; margin: 0; }
.row > * { flex-grow: 0; flex-shrink: 1; flex-basis: auto; width: auto; max-width: none; min-width: 0; }
.card { display: block; --bs-card-border-color: var(--line); }
.card.row, a.card.row { display: flex; flex-direction: row; }
.modal { display: block; position: relative; overflow: visible; width: 100%; }

/* ---------- Cards / layout ---------- */
.card { background: var(--card); border: 1px solid rgba(6,42,76,0.1); border-radius: 12px; padding: 20px; min-width: 0; box-shadow: none; }
.cards { display: grid; gap: 14px; } .cards > * { min-width: 0; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .label { font-size: 0.8rem; color: var(--ink-3); }
.kpi .value { font-size: 1.7rem; letter-spacing: -0.02em; color: var(--ink); font-weight: 500; }
.kpi .sub { font-size: 0.8rem; color: var(--ink-3); }
.row { display: flex; align-items: center; gap: 12px; } .row > input { min-width: 0; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.section { margin: 34px 0; }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); max-width: 100%; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbfd; }
td input { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; width: 100%; min-width: 70px; }
td select { border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; width: auto; min-width: 128px; max-width: 100%; }
td input:hover, td select:hover { border-color: var(--line); background: #fff; }
td input:focus, td select:focus { border-color: var(--blue); background: #fff; outline: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 0.85rem; color: var(--ink-2); }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: #fff; font-size: 0.95rem; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--green); flex: none; }
.check span { color: var(--ink-2); font-size: 0.92rem; }

/* ---------- Progress bars ---------- */
.bar { height: 7px; border-radius: 4px; background: var(--line-2); overflow: hidden; min-width: 60px; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.bar > span.green { background: var(--green); } .bar > span.red { background: var(--red); } .bar > span.amber { background: var(--amber); }

/* ================= PUBLIC SITE ================= */
.pub-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.pub-nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; flex-wrap: wrap; padding: 0 24px; min-height: 62px; gap: 6px; row-gap: 0; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: 8px; text-decoration: none; flex: none; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 7px; background: var(--navy); color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 0.72rem; letter-spacing: 0.02em; font-weight: 500; }
.logo .name { color: var(--ink); font-size: 0.98rem; font-weight: 500; white-space: nowrap; }
/* Ramp-style nav: links beside the logo, CTAs right, full-width mega panels flush
   to the header bottom so hover never breaks while moving into the panel. */
.nav-links { display: flex; align-items: stretch; margin-left: 18px; align-self: stretch; flex: 0 0 auto; }
.nav-links > .nav-item { display: flex; align-items: center; align-self: stretch; min-height: 62px; }
.nav-links a.top, .nav-links span.top { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--ink);
  font-size: 0.93rem; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.nav-links a.top .chev { color: var(--ink-3); transition: transform .15s; margin-top: 1px; }
.nav-links .nav-item:hover a.top, .nav-links .nav-item:focus-within a.top { background: var(--line-2); text-decoration: none; }
.nav-links .nav-item:hover .chev, .nav-links .nav-item:focus-within .chev { transform: rotate(180deg); }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(11,31,58,0.10); }
.mega-wrap { max-width: 1200px; margin: 0 auto; display: flex; align-items: stretch; }
.mega-feat-side { flex: 0 0 300px; background: var(--bg); border-left: 1px solid var(--line-2); padding: 26px 24px; }
.mega-feat-side .fl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 14px; display: block; }
.mega-feat-side .feat-img { width: 100%; aspect-ratio: 16/9; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, #0f4a7a 100%); position: relative; overflow: hidden; }
.mega-feat-side .feat-img::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px; }
.mega-feat-side a { display: block; color: var(--ink); text-decoration: none; }
.mega-feat-side .feat-title { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--ink); }
.mega-feat-side .feat-desc { font-size: 0.82rem; color: var(--ink-3); margin-top: 6px; line-height: 1.4; }
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.mega-in { flex: 1; margin: 0; padding: 26px 24px; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 6px 40px; }
.mega-in.c2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.mega-col { min-width: 0; }
.mega-col + .mega-col { border-left: 1px solid var(--line-2); padding-left: 32px; }
.mega-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); padding: 4px 10px 10px; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; color: var(--ink); }
.mega-item:hover { background: var(--line-2); text-decoration: none; }
.mega-item:hover .ic { background: var(--navy); color: #fff; }
.mega-item .ic { width: 40px; height: 40px; border-radius: 3px; background: var(--line-2); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none; }
.mega-item .mt { font-size: 0.875rem; font-weight: 400; line-height: 1.3; }
.mega-item .md { font-size: 0.8rem; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
/* legacy .mega-feat-in bottom-bar removed: replaced by .mega-feat-side right column */
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.pub-main { max-width: 1200px; margin: 0 auto; padding: 30px 24px 80px; }
.hero { padding: 64px 0 40px; max-width: 780px; }
.hero h1 { font-size: clamp(2.5rem, 5.5vw, 4.4rem); margin-bottom: 18px; letter-spacing: -0.045em; line-height: 1.02; }
.hero p { font-size: 1.12rem; max-width: 640px; }
.hero .row { margin-top: 26px; }
.crumbs { font-size: 0.83rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.logo-band { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; padding: 18px 0; }
.logo-band .client { color: var(--ink-3); font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; }
.tag { display: inline-block; background: var(--line-2); border-radius: 6px; padding: 2px 9px; font-size: 0.8rem; color: var(--ink-2); margin: 2px 3px 2px 0; }
.tag:hover { background: var(--blue-bg); color: var(--blue); text-decoration: none; }
.toc-chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink-2); margin: 3px 4px 3px 0; }
.toc-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
/* Navy footer: email banner + exploded collapsible sitemap */
.footer { background: var(--navy); margin-top: 70px; color: #b9c7dd; }
.footer-wrap { max-width: 1200px; margin: 0 auto; padding: 34px 24px 18px; }
.femail { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 34px; }
.femail form { gap: 8px; margin: 0; }
.femail input { border: none; border-radius: 8px; padding: 9px 12px; min-width: 210px; }
.fgrid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 28px; font-size: 0.88rem; }
.fbrand img { opacity: 0.95; }
.fcol > summary, .fsub > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.fcol > summary::-webkit-details-marker, .fsub > summary::-webkit-details-marker { display: none; }
.fcol > summary { color: #93a5c0; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.09em; padding: 2px 0 10px; }
.fcol > summary::after, .fsub > summary::after { content: "+"; color: #93a5c0; margin-left: auto; font-size: 0.9rem; }
.fcol[open] > summary::after, .fsub[open] > summary::after { content: "-"; }
.footer a { display: block; color: #b9c7dd; padding: 4px 0; font-size: 0.88rem; }
.footer a:hover { color: #fff; text-decoration: none; }
.fsub { margin: 4px 0; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 4px; }
.fsub > summary { color: #dbe4f2; font-size: 0.86rem; padding: 4px 0; }
.fsub > div { padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.12); margin: 2px 0 6px; }
.fsub .fsub { border-top: none; }
.fbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 30px; padding-top: 16px; }
.fbar a { display: inline; padding: 0; color: #93a5c0; }
@media (max-width: 1000px) { .fgrid { grid-template-columns: 1fr 1fr; } .fbrand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.83rem; color: var(--ink-2); }

/* Consistent vertical rhythm on public pages */
.pub-main h1 { margin-bottom: 8px; }
.pub-main h2[id], .pub-main article h2 { margin: 36px 0 12px; }
.pub-main .defbox { margin: 18px 0; }
.pub-main .toc-chip { margin-bottom: 8px; }

/* Wiki / topic pages */
.wiki { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; } .wiki > * { min-width: 0; }
.wiki-side { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.wiki-side .card { padding: 16px; }
.wiki article h2 { margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.wiki article p { margin-bottom: 12px; }
.defbox { background: var(--blue-bg); border-radius: var(--radius); padding: 16px 18px; margin: 14px 0; color: var(--ink); }

/* ================= PORTAL (app) ================= */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: #cdd8ea; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 9px; color: #fff; padding: 4px 10px 18px; font-size: 0.95rem; }
.side .brand .mark { width: 28px; height: 28px; border-radius: 7px; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; }
.side .group { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: #7b90b3; padding: 14px 10px 5px; }
.side a { display: flex; align-items: center; gap: 10px; color: #cdd8ea; padding: 8px 10px; border-radius: 8px; font-size: 0.92rem; }
.side a:hover { background: var(--navy-2); text-decoration: none; }
.side a.active { background: var(--navy-3); color: #fff; }
.side .foot { margin-top: auto; padding: 14px 10px 4px; font-size: 0.78rem; color: #7b90b3; border-top: 1px solid rgba(255,255,255,0.08); }
.appmain { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px; position: sticky; top: 0; z-index: 40; }
.topbar .search { flex: 0 1 420px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; color: var(--ink-3); background: #fff; }
.topbar .search input { border: none; outline: none; flex: 1; background: transparent; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.78rem; }
.content { padding: 26px; max-width: 1340px; width: 100%; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; } .pagehead .row { flex-wrap: wrap; }

/* Sign-in split page */
.signin { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 100vh; }
.signin .pitch { background: var(--navy); color: #fff; padding: 60px 54px; display: flex; flex-direction: column; }
.signin .pitch h1 { font-size: 2.2rem; color: #fff; margin: 40px 0 14px; }
.signin .pitch p { color: #b9c7dd; font-size: 1.02rem; max-width: 420px; }
.signin .pitch .feat { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); color: #dbe4f2; }
.signin .pitch .feat .ic { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.signin .formside { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.signin .formcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px; width: 100%; max-width: 440px; }

/* Allocation matrix */
.matrix td { padding: 6px 8px; }
.cell { border-radius: 7px; padding: 6px 8px; font-size: 0.78rem; line-height: 1.3; min-width: 86px; }
.cell .pct { font-size: 0.82rem; }
.cell.confirmed { background: var(--blue-bg); color: var(--navy); }
.cell.tentative { background: var(--amber-bg); color: var(--amber); }
.cell.available { background: var(--green-bg); color: var(--green); }
.cell.over { background: var(--red-bg); color: var(--red); }
.cell.pto { background: var(--line-2); color: var(--ink-3); }

/* Charts (inline SVG) */
.chartbox { padding: 18px 20px; }
.chartbox svg { width: 100%; height: auto; display: block; }

/* Evidence status rows */
.ev-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.ev-row:last-child { border-bottom: none; }
.ev-status { flex: none; width: 130px; }

/* Scheduler (Schedule an Overview) */
.sched { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; max-width: 1000px; }
.sched-summary { position: sticky; top: 86px; }
.sched-summary .srow { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 0.9rem; }
.sched-summary .srow:last-of-type { border-bottom: none; }
.sched-summary .srow .k { color: var(--ink-3); flex: none; width: 74px; font-size: 0.8rem; padding-top: 1px; }
.sched-summary .srow .v { color: var(--ink); }
.sched-summary .srow .v.empty { color: var(--ink-3); }
.steps { display: flex; align-items: center; margin-bottom: 20px; }
.steps .st { display: flex; align-items: center; gap: 8px; }
.steps .st .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex: none; background: #fff; }
.steps .st .t { font-size: 0.85rem; color: var(--ink-3); white-space: nowrap; }
.steps .st.active .n { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps .st.active .t { color: var(--ink); }
.steps .st.done .n { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.steps .st.done .t { color: var(--ink-2); }
.steps .st.done { cursor: pointer; }
.steps .ln { flex: 1; height: 1.5px; background: var(--line); margin: 0 10px; min-width: 18px; }
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.topic-tile { border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; cursor: pointer;
  background: #fff; transition: border-color .12s, background .12s; }
.topic-tile:hover { border-color: #b9c7dd; }
.topic-tile.sel { border-color: var(--navy); background: var(--blue-bg); }
.topic-tile .tt { color: var(--ink); font-size: 0.94rem; }
.topic-tile .td { color: var(--ink-3); font-size: 0.8rem; margin-top: 3px; line-height: 1.4; }
.day-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; max-width: 560px; }
.day-tile { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 4px; text-align: center; cursor: pointer;
  background: #fff; transition: border-color .12s, background .12s; }
.day-tile:hover { border-color: #b9c7dd; }
.day-tile .dw { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); }
.day-tile .dn { font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.day-tile .dm { font-size: 0.68rem; color: var(--ink-3); }
.day-tile.sel { border-color: var(--navy); background: var(--navy); }
.day-tile.sel .dw, .day-tile.sel .dn, .day-tile.sel .dm { color: #fff; }
.slot-group { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 14px 0 7px; }
.slot-btn { border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 16px; margin: 0 8px 8px 0;
  font-size: 0.9rem; color: var(--ink); transition: border-color .12s, background .12s; }
.slot-btn:hover { border-color: #b9c7dd; }
.slot-btn.sel { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn.disabled, .btn[disabled] { opacity: 0.45; pointer-events: none; }
.confirm-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.confirm-hero .ok { width: 52px; height: 52px; border-radius: 50%; background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
@media (max-width: 900px) {
  .sched { grid-template-columns: 1fr; }
  .sched-summary { position: static; }
  .topic-grid { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(11,31,58,0.4); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: #fff; border-radius: 14px; padding: 28px; max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .cards.c3 { grid-template-columns: repeat(2, 1fr); }
  .wiki { grid-template-columns: 1fr; }
  .wiki-side { position: static; }
  .footer-in { grid-template-columns: 1fr 1fr; }
}
.burger { display: none; }
@media (max-width: 1360px) {
  .logo small { display: none; }
  .nav-links { margin-left: 16px; }
  .nav-links a.top { padding: 8px 9px; font-size: 0.9rem; }
}
@media (max-width: 1240px) {
  .pub-nav { padding: 8px 16px; }
  .nav-links { display: none; }
  .mega { display: none !important; }
  .exploded { display: none !important; }
  .burger { display: inline-flex; }
}
@media (max-width: 620px) {
  #nav-signin { display: none; }
  #nav-search-btn { display: none; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 240px; z-index: 60; transform: translateX(-100%); transition: transform .2s; height: 100vh; }
  .side.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .signin { grid-template-columns: 1fr; }
  .signin .pitch { padding: 36px 28px; }
  .hero h1 { font-size: 2.1rem; }
  .hero { padding: 34px 0 20px; }
}
@media (min-width: 861px) { .menu-btn { display: none; } }
@media (max-width: 560px) {
  .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .pub-main { padding: 20px 16px 60px; }
  .footer-in { grid-template-columns: 1fr; }
  .signin .formcard { padding: 26px; }
}

/* Educational tooltips: dotted-underlined terms with plain-language definitions */
.tip { position: relative; border-bottom: 1.5px dotted var(--blue); cursor: help; }
.tip { --tip-shift: 0px; }
.tip .tipbox { display: none; position: absolute; left: 50%; transform: translateX(calc(-50% + var(--tip-shift, 0px))); bottom: calc(100% + 8px);
  width: 290px; background: var(--navy); color: #dbe4f2; border-radius: 10px; padding: 12px 14px;
  font-size: 0.82rem; line-height: 1.5; z-index: 70; box-shadow: 0 14px 40px rgba(11,31,58,0.3); }
.tip .tipbox a { color: #7fd6a4; }
.tip:hover .tipbox, .tip:focus .tipbox, .tip:focus-within .tipbox { display: block; }
@media (max-width: 640px) { .tip .tipbox { left: 0; transform: none; width: min(290px, 78vw); } }
/* Terms in the upper part of the page open the tooltip below the term instead of above */
.tip.below .tipbox { bottom: auto; top: calc(100% + 8px); }

/* Learn more dropdown on CTA cards */
.cta-menu { position: relative; }
.cta-menu > summary { list-style: none; }
.cta-menu > summary::-webkit-details-marker { display: none; }
.cta-menu[open] > summary { background: var(--line-2); }
.cta-menu-list { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(11,31,58,0.14); padding: 8px; z-index: 60; }
.cta-menu-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: 0.92rem; }
.cta-menu-list a small { color: var(--ink-3); }
.cta-menu-list a:hover { background: var(--line-2); text-decoration: none; }

/* Eyebrow labels (prototype style: green, uppercase, tracked) */
.eyebrow { display: block; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); font-size: 0.72rem; font-weight: 400; margin-bottom: 12px; }
.eyebrow.mint { color: #62dfb1; }
.home-section { margin: 96px 0; }
.home-section > .sub { max-width: 620px; margin: 10px 0 26px; font-size: 1.02rem; }
.navy-section { background: var(--navy); border-radius: 18px; padding: 46px 40px; color: #dbe4f2; }
.navy-section h2 { color: #fff; }
.navy-section .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #dbe4f2; }
.navy-section .card h3 { color: #fff; }
.navy-section .card p { color: #b9c7dd; }
.navy-section .card a { color: #7fd6a4; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.trust-row span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.92rem; }
.journey { background: var(--navy); border-radius: 18px; padding: 30px; color: #dbe4f2; }
.journey .step { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.journey .step:last-child { border-bottom: none; }
.journey .n { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex: none; }
.home-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding: 56px 0 30px; }
@media (max-width: 900px) { .home-hero { grid-template-columns: 1fr; } }

/* Multiselect filter dropdowns (real checkboxes inside) */
.msel { position: relative; }
.msel > summary { list-style: none; }
.msel > summary::-webkit-details-marker { display: none; }
.msel[open] > summary { background: var(--line-2); }
.msel-list { position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; max-height: 300px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(11,31,58,0.14); padding: 8px 12px; z-index: 60; }

/* Section callouts on topic pages: color-coded, scannable */
.callout { border-radius: 10px; padding: 4px 18px; margin: 4px 0 8px; border-left: 3px solid var(--line); }
.callout p { margin: 10px 0; }
.callout.green { background: var(--green-bg); border-left-color: var(--green); }
.callout.navy { background: var(--blue-bg); border-left-color: var(--navy); }
.callout.amber { background: var(--amber-bg); border-left-color: var(--amber); }

/* Where to next band: the continuous journey */
.nextband { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 30px; }
.nextcard { display: block; transition: border-color .15s, transform .15s; }
.nextcard:hover { border-color: var(--navy); text-decoration: none; transform: translateY(-2px); }
.nextcard .arr { color: var(--green); }

/* Sticky hamburger menu (mobile/tablet). The header is sticky, so the burger is too. */
.mobile-panel { display: none; }
.mobile-panel.open { display: block; position: fixed; inset: 0; background: #fff; z-index: 90; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.mp-body { padding: 6px 18px 48px; }
.mp-body details { border-bottom: 1px solid var(--line-2); }
.mp-body summary { list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 15px 2px; font-size: 1.03rem; color: var(--ink); cursor: pointer; }
.mp-body summary::-webkit-details-marker { display: none; }
.mp-body summary::after { content: "+"; color: var(--ink-3); font-size: 1.15rem; }
.mp-body details[open] summary::after { content: "\2212"; }
.mp-body a.mp-link { display: block; padding: 10px 2px 10px 16px; color: var(--ink-2); }
.mp-row { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line-2); color: var(--ink); font-size: 1.03rem; }
.mp-ctas { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Exploded sitemap menu (desktop): one navy panel, all groups visible */
.exploded { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy);
  border-bottom: 1px solid var(--navy-3); box-shadow: 0 30px 60px rgba(6,42,76,0.35);
  max-height: calc(100vh - 70px); overflow-y: auto; opacity: 0; visibility: hidden; }
/* Visibility is unconditional; only the animated transition is gated behind a motion query below. */
.exploded.on { display: block; opacity: 1; visibility: visible; }
/* Content-driven width: each dropdown shows only its OWN section, so column count varies
   (Staffing has 2 columns, Services has 6) - flex + fixed column widths size to content
   instead of a rigid grid stretching a sparse section across the full viewport. */
.xp-in { max-width: 1440px; margin: 0 auto; padding: 30px 24px 36px; display: flex; gap: 32px; align-items: flex-start; }
.xp-in .xp-col { flex: 0 0 220px; }
.xp-in .xp-feat { flex: 0 0 260px; }
/* Ramp eyebrow spec: 10px, uppercase, tracking .08em */
.xp-head { display: block; font-size: 0.625rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em;
  color: #8fa5c2; padding: 4px 0 12px; }
.xp-head:hover { color: #fff; text-decoration: none; }
/* Ramp row anatomy: icon badge + title/description stack, tight padding, rounded-md hover fill */
.xp-row { display: flex; align-items: center; gap: 12px; padding: 7px 6px; margin: 0 -6px; border-radius: 6px;
  color: #dbe4f2; transition: background .12s; }
.xp-row:hover { background: rgba(255,255,255,0.06); text-decoration: none; color: #fff; }
.xp-ic { flex: none; width: 34px; height: 34px; border-radius: 3px; background: rgba(255,255,255,0.08);
  color: #b9c7dd; display: flex; align-items: center; justify-content: center; transition: background .12s, color .12s; }
.xp-row:hover .xp-ic { background: #fff; color: var(--navy); }
.xp-row .xp-t { display: block; font-size: 0.875rem; font-weight: 400; line-height: 1.3; }
.xp-row .xp-d { display: block; font-size: 0.76rem; color: #8fa5c2; margin-top: 1px; line-height: 1.3; }
.xp-link { display: block; color: #dbe4f2; padding: 6px 0; font-size: 0.92rem; line-height: 1.35; }
.xp-link:hover { color: #fff; text-decoration: none; }
.xp-sub { color: #8fa5c2; font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 400;
  padding: 12px 0 4px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; }
.xp-nested { padding-left: 0; font-size: 0.88rem; color: #b9c7dd; }
/* Brex density pattern: long groups pack into a 2-column grid instead of one tall list.
   320px keeps 3 wide columns + a normal column under the 1440px .xp-in max-width even
   with a full complement of groups (verified via headless overflow probe). */
.xp-in .xp-col.xp-wide { flex: 0 0 320px; }
.xp-2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.xp-2col .xp-link { padding: 5px 0; font-size: 0.86rem; }
/* Brex row anatomy for people: compact avatar + name/role, reused via monogram() */
.xp-people { display: flex; flex-direction: column; }
.xp-prow { display: flex; align-items: center; gap: 10px; padding: 5px 6px; margin: 0 -6px; border-radius: 6px;
  color: #dbe4f2; transition: background .12s; }
.xp-prow:hover { background: rgba(255,255,255,0.06); text-decoration: none; color: #fff; }
.xp-prow .xp-t { display: block; font-size: 0.82rem; font-weight: 400; line-height: 1.3; }
.xp-prow .xp-d { display: block; font-size: 0.7rem; color: #8fa5c2; margin-top: 1px; line-height: 1.3; }
@media (max-width: 1240px) { .xp-in .xp-col.xp-wide { flex-basis: 340px; } }
/* Right-side Featured card, Ramp anatomy: image block, eyebrow, title+arrow, description */
.xp-feat { border-left: 1px solid rgba(255,255,255,0.1); padding-left: 28px; }
.xp-feat a { display: block; color: #dbe4f2; text-decoration: none; }
.xp-feat .feat-img { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, #0f4a7a 0%, var(--navy-3) 55%, var(--navy) 100%); position: relative; overflow: hidden; }
.xp-feat .feat-img::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 18px 18px; }
.xp-feat .feat-title { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #fff; }
.xp-feat .feat-desc { display: block; font-size: 0.8rem; color: #8fa5c2; margin-top: 6px; line-height: 1.4; }
@media (max-width: 1500px) { .xp-in .xp-feat { display: none; } }
@media (max-width: 1240px) { .xp-in { flex-wrap: wrap; } }

/* Mobile panel nested labels */
.mp-sub { color: var(--ink-3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 2px 2px 14px; }
.mp-link.mp-nested { padding-left: 28px; font-size: 0.92rem; }

/* ---------- Motion system ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .home-hero > div > * { animation: rise .6s ease backwards; }
  .home-hero > div > *:nth-child(2) { animation-delay: .08s; }
  .home-hero > div > *:nth-child(3) { animation-delay: .16s; }
  .home-hero > div > *:nth-child(4) { animation-delay: .24s; }
  .home-hero > div > *:nth-child(5) { animation-delay: .32s; }
  .home-hero .journey { animation: rise .7s .2s ease backwards; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  a.card, .nextcard { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
  a.card:hover { transform: translateY(-3px); border-color: #c4d0de; box-shadow: 0 10px 24px rgba(6,42,76,0.08); text-decoration: none; }
  .btn { transition: background .15s, border-color .15s, transform .1s; }
  .btn:active { transform: scale(0.97); }
  .exploded { transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .exploded.on { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; } }

/* Textured surfaces: engineering grid on hero + navy sections */
.home-hero { position: relative; }
.journey, .navy-section, .exploded {
  background-image: radial-gradient(circle at 85% 12%, rgba(98,223,177,0.12), transparent 42%),
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  background-color: var(--navy);
}

/* ---------- Topic visualizations ---------- */
.viz-facts { border-left: 3px solid var(--navy); }
.viz-facts .vf-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 0.9rem; }
.viz-facts .vf-row:last-child { border-bottom: none; }
.viz-facts .vf-k { flex: 0 0 132px; color: var(--ink-3); }
.viz-scale { margin: 14px 0; }
.viz-scale .vs-bar { display: flex; border-radius: 9px; overflow: hidden; border: 1px solid var(--line); }
.viz-scale .vs-seg { flex: 1; padding: 10px 8px; text-align: center; color: #fff; }
.viz-scale .vs-seg small { display: block; color: rgba(255,255,255,0.85); margin-top: 2px; font-size: 0.75rem; }
.viz-flow { display: flex; gap: 0; margin: 14px 0; overflow-x: auto; padding-bottom: 4px; }
.viz-flow .fl-step { flex: 1; min-width: 128px; position: relative; padding: 12px 20px 12px 22px;
  background: var(--line-2); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
  overflow-wrap: break-word; word-break: break-word; }
.viz-flow .fl-step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); padding-left: 14px; }
.viz-flow .fl-step.hl { background: var(--navy); color: #fff; }
.viz-flow .fl-step.hl small { color: #b9c7dd; }
.viz-flow .fl-step small { display: block; color: var(--ink-3); font-size: 0.74rem; line-height: 1.3; margin-top: 2px; }

/* Brand icon tiles on cards: navy with mint accent, echoes the menu icon language */
.ic-tile { width: 68px; height: 68px; border-radius: 16px; background: var(--navy); color: #62dfb1;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  background-image: radial-gradient(circle at 75% 20%, rgba(98,223,177,0.25), transparent 60%),
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 17px 17px, 17px 17px;
  box-shadow: 0 8px 18px rgba(6,42,76,0.18); }
a.card:hover .ic-tile { transform: scale(1.05); transition: transform .18s ease; }
a.card:hover .ic-tile { background-color: var(--navy-3); }

/* Charter certificate panel */
.cert { background: var(--navy); border-radius: 16px; padding: 10px; margin: 6px 0 10px;
  background-image: radial-gradient(circle at 88% 8%, rgba(98,223,177,0.14), transparent 45%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px; }
.cert-inner { border: 1px solid rgba(98,223,177,0.35); border-radius: 11px; padding: 26px 28px; }
.cert-kicker { text-transform: uppercase; letter-spacing: 0.16em; color: #62dfb1; font-size: 0.76rem; margin-top: 14px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.cert-grid .ck { display: block; color: #8fa5c2; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cert-grid .cv { color: #eef3f9; font-size: 0.95rem; }
.cert-foot { color: #8fa5c2; font-size: 0.8rem; margin-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 12px; }
@media (max-width: 640px) { .cert-grid { grid-template-columns: 1fr; } .cert-inner { padding: 20px; } }

/* Section rhythm: headers with actions never crowd the content below */
.home-section > .row.between, .pub-main .section > .row.between, .pub-main > .row.between { margin-bottom: 18px; row-gap: 12px; }
.home-section .cards, .pub-main .section .cards { margin-top: 4px; }
.row.between { flex-wrap: wrap; }

/* Designed cards: badge header, clamped text, pinned footer */
.card.dc { display: flex; flex-direction: column; color: var(--ink); }
.card.dc:hover { text-decoration: none; }
.code-badge { display: inline-flex; flex-direction: column; background: var(--navy); color: #62dfb1;
  border-radius: 10px; padding: 7px 13px; font-size: 1.02rem; letter-spacing: 0.02em; line-height: 1.15;
  background-image: linear-gradient(135deg, rgba(98,223,177,0.18), transparent 60%); }
.code-badge small { color: #8fa5c2; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; }
.mini-icons { display: flex; gap: 6px; }
.mini-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--line-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcfoot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center;
  gap: 10px; font-size: 0.82rem; color: var(--ink-3); border-top: 1px solid var(--line-2); margin-top: 14px; }
.dcfoot .arr { color: var(--blue); white-space: nowrap; }
.card.dc .dcfoot { margin-top: auto; }
.card.dc h3 { min-height: auto; }
.card.dc p.clamp2 { flex-grow: 0; }

/* Common-mistakes checklist */
.mistake-list { background: var(--amber-bg); border-left: 3px solid var(--amber); border-radius: 10px; padding: 8px 18px; margin: 4px 0 8px; }
.mk-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(180,83,9,0.15); color: var(--ink-2); }
.mk-row:last-child { border-bottom: none; }

/* Wikipedia-style Contents box */
.toc-box { display: inline-block; border: 1px solid var(--line); background: #fafbfc; border-radius: 10px;
  padding: 14px 20px 14px 16px; margin: 4px 0 18px; min-width: 300px; max-width: 100%; }
.toc-box .toc-title { font-size: 0.98rem; color: var(--ink); margin-bottom: 6px; }
.toc-box ol { margin: 0; padding-left: 22px; }
.toc-box li { padding: 3px 0; font-size: 0.9rem; }
.toc-box .toc-item { color: var(--blue); cursor: pointer; }

/* Services exploded per term */
.svc-exploded { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 30px; }
.svcx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.svcx-col { min-width: 0; }
.svcx-item { padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 0.92rem; }
.svcx-item:last-child { border-bottom: none; }
@media (max-width: 1100px) { .svcx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svcx-grid { grid-template-columns: 1fr; } }

/* The design is deliberately single-theme light. Opt out of browser auto-darkening
   and pin explicit backgrounds on every control so no UA heuristic repaints them. */
:root { color-scheme: only light; }
input, select, textarea { background-color: #ffffff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
body { background: var(--bg); }

/* Quote cart: Add to Quote toggle + persistent bottom-right floating review button */
.qadd { cursor: pointer; user-select: none; }
.qfloat { position: fixed; right: 22px; bottom: 22px; z-index: 85; display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 13px 20px 13px 16px; text-decoration: none;
  font-size: 0.9rem; box-shadow: 0 12px 30px rgba(6,42,76,0.35); transition: transform .15s ease, box-shadow .15s ease; }
.qfloat:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(6,42,76,0.42); text-decoration: none; color: #fff; }
.qfloat-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
  border-radius: 999px; background: var(--accent); color: #16211a; font-size: 0.78rem; padding: 0 6px; }
@media (max-width: 640px) { .qfloat { right: 14px; bottom: 14px; padding: 11px 16px 11px 14px; font-size: 0.85rem; } }

/* Sister-site links in the footer (issue #24) */
.footer .sister { margin-top: 10px; color: #93a5c0; }
.footer .sister a { color: #c9d5e6; }
