/* AI Governance Commons site styles. Dark theme, teal primary, purple secondary, Space Grotesk headings, Inter body. */
:root {
  --bg: #070b14; --bg-2: #0b1222; --card: #0f172a; --card-2: #141e35; --line: #1e2940; --line-2: #2a3752;
  --fg: #e6edf7; --muted: #8fa0b8; --teal: #2dd4bf; --teal-2: #14b8a6; --purple: #a78bfa; --blue: #60a5fa; --green: #34d399; --amber: #fbbf24; --red: #f87171; --ink: #06101c;
  --tcard: #0e3936; --tcard-hover: #124a44; --tcard-line: #1d6a61; --tcard-title: #eafdf9; --tcard-text: #a9d3cd; --tcard-soft: rgba(14, 57, 54, 0.55); --tcard-soft-hover: rgba(18, 74, 68, 0.75); --tcard-soft-line: rgba(29, 106, 97, 0.6); --tcard-ico: var(--ink);
  --cyan: #1cc3e3; --cyan-2: #0ea5c7; --cyan-tint: rgba(28, 195, 227, 0.12);
  --hdr: rgba(7, 11, 20, 0.95); --pill: rgba(11, 18, 34, 0.68); --hover-tool: #182340; --lines-b: rgba(226, 232, 240, 0.035); --tint: rgba(45, 212, 191, 0.12); --tint-line: rgba(45, 212, 191, 0.35); color-scheme: dark;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { position: relative; margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 15px; line-height: 1.55; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(30px, 5vw, 56px); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Light theme: the same tokens, swapped. Chosen from the bubble (Theme), remembered per browser, applied before first paint. */
:root[data-theme="light"] { --bg: #f4f6fa; --bg-2: #ffffff; --card: #ffffff; --card-2: #eaeff6; --line: #dbe2ec; --line-2: #c3cedd; --fg: #0f172a; --muted: #52627a; --teal: #0f766e; --teal-2: #115e59; --purple: #6d28d9; --blue: #1d4ed8; --green: #047857; --amber: #b45309; --red: #b91c1c; --ink: #ffffff;
  --tcard: #d9f3ee; --tcard-hover: #c6ebe4; --tcard-line: #8fd3c8; --tcard-title: #0b2f2b; --tcard-text: #2d5a55; --tcard-soft: rgba(217, 243, 238, 0.5); --tcard-soft-hover: rgba(198, 235, 228, 0.8); --tcard-soft-line: rgba(143, 211, 200, 0.75); --tcard-ico: #ffffff;
  --cyan: #0b7f9c; --cyan-2: #096b84; --cyan-tint: rgba(11, 127, 156, 0.1);
  --hdr: rgba(244, 246, 250, 0.95); --pill: rgba(255, 255, 255, 0.72); --hover-tool: #e3e9f3; --lines-b: rgba(15, 23, 42, 0.05); --tint: rgba(15, 118, 110, 0.1); --tint-line: rgba(15, 118, 110, 0.3); color-scheme: light; }
:root[data-theme="light"] .card.link.tool, :root[data-theme="light"] .navi .ddin, :root[data-theme="light"] .bub-panel { box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12); }
:root[data-theme="light"] .sky .glow { opacity: 0.8; }
.wrap { max-width: 1200px; margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }
.sec { padding-block: 44px; }
.sec + .sec { border-top: 1px solid var(--line); padding-top: 44px !important; } /* a section under a rule always gets its top space, even when inline styles zero it */
.sec-head { display: grid; gap: 8px; margin-bottom: 22px; max-width: 72ch; }
.sec-head p { color: var(--muted); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px var(--body); padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--fg); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--teal); text-decoration: none; }
.btn.primary { background: var(--teal); color: var(--ink); border-color: transparent; }
.btn.primary:hover { background: var(--teal-2); }
.btn.ghost { background: transparent; }
.btn.sm { font-size: 13px; padding: 7px 12px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--fg); white-space: nowrap; }
.chip.law { border-color: var(--teal); color: var(--teal); }
.chip.regulation { border-color: var(--teal); color: var(--teal); }
.chip.policy { border-color: var(--teal); color: var(--teal); }
.chip.standard, .chip.framework { border-color: var(--purple); color: var(--purple); }
.chip.scheme, .chip.credential { border-color: var(--green); color: var(--green); }
.chip.institute, .chip.assurer, .chip.insurer, .chip.vendor, .chip.regulator { border-color: var(--blue); color: var(--blue); }
.chip.status { border-color: var(--line-2); color: var(--muted); }
.chip.jur { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-tint); }
.chip.ok { border-color: var(--green); color: var(--green); }
.chip.warn { border-color: var(--amber); color: var(--amber); }
.chip.bad { border-color: var(--red); color: var(--red); }
.wrapchips .chip { white-space: normal; text-align: left; }
.lic { font-size: 10px; letter-spacing: 0.08em; border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; color: var(--muted); }

/* Header */
/* Header, after the Synthetic Labs top menu: transparent over the hero, then a floating translucent pill once the page scrolls.
   Dropdowns open on hover or click, centered under their trigger, with an icon and a one-line description per item. */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); padding: 0 max(16px, env(safe-area-inset-left, 0px)); transition: padding 0.4s ease; }
.hdr .in { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 14px; min-height: 68px; min-width: 0; padding: 0 8px; border: 1px solid transparent; border-radius: 16px; transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, min-height 0.4s ease, margin 0.4s ease; }
.hdr.scrolled { padding-top: 10px; }
.hdr.scrolled .in { background: var(--pill); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4); min-height: 56px; padding: 0 16px; }
:root[data-theme="light"] .hdr.scrolled .in { border-color: rgba(15, 23, 42, 0.08); box-shadow: 0 4px 30px rgba(15, 23, 42, 0.12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; flex: none; object-fit: contain; }
.brand .t { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.brand .t small { display: block; font-family: var(--body); font-weight: 500; font-size: 10px; letter-spacing: 0.02em; text-transform: none; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.navi { position: relative; }
.navb { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--fg); opacity: 0.78; font: 500 13.5px var(--body); padding: 8px 9px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: opacity 0.15s ease; }
.navb:hover, .navi.open .navb, .navb[aria-expanded="true"] { opacity: 1; }
.navb.on { color: var(--teal); opacity: 1; }
.navb .chev { width: 13px; height: 13px; transition: transform 0.2s ease; }
.navi.open .navb .chev { transform: rotate(180deg); }
.navi .dd { position: absolute; left: 50%; top: 100%; padding-top: 10px; transform: translate(-50%, 8px) scale(0.96); opacity: 0; visibility: hidden; transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s; z-index: 70; }
.navi.open .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s; }
.navi .ddin { background: var(--card); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.6); padding: 8px; min-width: 264px; display: flex; flex-direction: column; }
:root[data-theme="light"] .navi .ddin { border-color: rgba(15, 23, 42, 0.1); box-shadow: 0 20px 60px -15px rgba(15, 23, 42, 0.25); }
.navi .dd.two .ddin { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; }
.nav .navi .ddin a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--fg); text-decoration: none; }
.nav .navi .ddin a svg { width: 16px; height: 16px; color: var(--teal); opacity: 0.7; flex: none; margin-top: 2px; transition: opacity 0.15s ease; }
.nav .navi .ddin a b { display: block; font-size: 13.5px; font-weight: 500; opacity: 0.9; white-space: nowrap; }
.nav .navi .ddin a small { display: block; font-size: 11.5px; color: var(--muted); opacity: 0.8; margin-top: 2px; white-space: nowrap; }
.nav .navi .ddin a:hover { background: rgba(255, 255, 255, 0.05); }
:root[data-theme="light"] .nav .navi .ddin a:hover { background: rgba(15, 23, 42, 0.05); }
.nav .navi .ddin a:hover svg { opacity: 1; }
.nav .navi .ddin a:hover b { opacity: 1; }
.navi:nth-last-child(-n+2) .dd { left: auto; right: 0; transform: translate(0, 8px) scale(0.96); }
.navi:nth-last-child(-n+2).open .dd { transform: translate(0, 0) scale(1); }
.hdr .sp { flex: 1; }
.hdr .acts { display: flex; gap: 6px; align-items: center; }
.hdr .acts .link { font-size: 13.5px; color: var(--fg); opacity: 0.78; padding: 8px 12px; border-radius: 8px; border: 1px solid transparent; white-space: nowrap; transition: opacity 0.15s ease, border-color 0.15s ease; }
.hdr .acts .link:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.1); text-decoration: none; }
.hdr .acts .link.ic { padding: 8px; display: inline-flex; }
.hdr .acts .link.ic svg { width: 18px; height: 18px; }
.hdr .acts .cta { box-shadow: 0 0 20px -5px rgba(45, 212, 191, 0.5); }
.burger { display: none; background: none; border: 0; color: var(--fg); padding: 8px; cursor: pointer; }
.burger svg { width: 24px; height: 24px; }
.burger .i-x, .burger[aria-expanded="true"] .i-menu { display: none; }
.burger[aria-expanded="true"] .i-x { display: block; }
@media (max-width: 1180px) { .navb { padding: 8px 7px; font-size: 13px; } .nav { margin-left: 8px; } }
@media (max-width: 1080px) { .nav, .hdr .acts .link { display: none; } .burger { display: inline-flex; } }
@media (max-width: 640px) { .hdr .acts .cta { display: none; } }
@media (max-width: 430px) { .hdr .in { gap: 8px; } .brand img { width: 28px; height: 28px; } .brand .t { font-size: 11px; letter-spacing: 0.08em; } .brand .t small { font-size: 9px; } }
/* Mobile: a full-screen overlay with fold-out groups and the two buttons at the bottom. */
.mnav { display: none; position: fixed; inset: 0; z-index: 1; background: var(--hdr); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow-y: auto; padding: calc(84px + env(safe-area-inset-top, 0px)) 20px 24px; }
.mnav.open { display: block; }
.mnav .mnin { max-width: 440px; margin: 0 auto; display: grid; gap: 2px; }
.mnav details.mg summary { list-style: none; cursor: pointer; padding: 12px 14px; font-size: 17px; font-weight: 500; color: var(--fg); opacity: 0.85; display: flex; justify-content: space-between; align-items: center; border-radius: 8px; }
.mnav details.mg summary::-webkit-details-marker { display: none; }
.mnav details.mg summary .chev { width: 16px; height: 16px; transition: transform 0.2s ease; }
.mnav details.mg[open] summary .chev { transform: rotate(180deg); }
.mnav .mgl { margin: 0 0 6px 16px; padding: 0 0 6px 12px; border-left: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 2px; }
.mnav .mgx { display: grid; gap: 2px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 10px; margin-top: 8px; }
.mnav .mgl a, .mnav .mgx a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--fg); opacity: 0.75; font-size: 14.5px; }
.mnav .mgx a { font-size: 16px; padding: 10px 14px; }
.mnav .mgl a:hover, .mnav .mgx a:hover { opacity: 1; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.mnav .mgl a svg, .mnav .mgx a svg { width: 16px; height: 16px; color: var(--teal); opacity: 0.7; flex: none; }
.mnav .mbtns { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mnav .mbtns .btn { height: 48px; justify-content: center; }
:root[data-theme="light"] .mnav .mgl, :root[data-theme="light"] .mnav .mgx, :root[data-theme="light"] .mnav .mbtns { border-color: rgba(15, 23, 42, 0.1); }
body.menu-open { overflow: hidden; }

/* Hero */
.hero { position: relative; padding-block: 72px 56px; text-align: center; }
/* The hero graphic, edge to edge and on every page: a soft glow plus faint angled lines that start behind the header,
   fade out further down, and drift slowly. The element sits first in <body>, behind everything. */
.sky { position: absolute; top: 0; left: 0; right: 0; height: min(720px, 92vh); z-index: -1; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; inset: 0; display: block; }
.sky .glow { background: radial-gradient(60% 50% at 50% 0%, rgba(45, 212, 191, 0.16), transparent 70%), radial-gradient(40% 40% at 82% 42%, rgba(167, 139, 250, 0.14), transparent 70%); }
/* The moving lines: a port of the Synthetic Labs hero canvas (teal, cyan, and soft grey sine waves with a glow), drawn by app.js.
   Fades slightly at the very top and out toward the bottom of the first screen. */
.sky canvas.sky-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 58%, transparent 100%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, #000 22%, #000 58%, transparent 100%); }
.hero > * { position: relative; }
.hero .lede { max-width: 62ch; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.hero .cta { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .fine { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero.left { text-align: left; padding-block: 44px 36px; }
.hero.left .lede, .hero.left .cta { margin-left: 0; justify-content: flex-start; }

/* Tiles and cards */
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.tile .n { font-family: var(--display); font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.tile .l { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.tile .s { font-size: 12px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 10px; min-width: 0; }
.card:hover { border-color: var(--line-2); }
.card.link { cursor: pointer; position: relative; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.card.link:hover, .card.link:focus-visible { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(45, 212, 191, 0.25); }
.card.link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
/* Tool and center cards: a raised surface (depth is the clickability cue), the icon and title on one row, an arrow at the right. */
.card.link.tool { background: var(--tcard); border-color: var(--tcard-line); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 22px rgba(0, 0, 0, 0.28); gap: 8px; align-content: start; padding: 16px 16px 18px; }
.card.link.tool:hover, .card.link.tool:focus-visible { background: var(--tcard-hover); border-color: var(--teal); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 16px 34px rgba(0, 0, 0, 0.4); }
.card.link.tool .tl h3 { color: var(--tcard-title); }
.card.link.tool p.muted { color: var(--tcard-text); }
.card.link.tool .tl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.card.link.tool .tl h3 { margin: 0; flex: 1; min-width: 0; font-size: 15px; line-height: 1.25; }
.card.link.tool .ico { width: 34px; height: 34px; border-radius: 10px; flex: none; background: var(--teal); border-color: transparent; color: var(--tcard-ico); }
.card.link.tool .arr { position: absolute; right: 14px; bottom: 14px; display: inline-flex; color: var(--teal); opacity: 0.8; transition: transform 0.15s ease, opacity 0.15s ease; }
.card.link.tool .arr svg { width: 16px; height: 16px; }
.card.link.tool:hover .arr, .card.link.tool:focus-visible .arr { opacity: 1; transform: translateX(3px); }
.card.link.tool p { margin: 0; padding-right: 20px; }
/* The numbers row on the home page: centered, almost transparent, with a dashed teal rule between neighbors. */
.stats-grid .tile { background: rgba(45, 212, 191, 0.04); border-color: rgba(45, 212, 191, 0.18); text-align: center; justify-items: center; position: relative; }
:root[data-theme="light"] .stats-grid .tile { background: rgba(15, 118, 110, 0.04); border-color: rgba(15, 118, 110, 0.22); }
.stats-grid .tile .n { color: var(--teal); }
.stats-grid .tile::after { content: ""; position: absolute; top: 14%; bottom: 14%; right: -9px; border-left: 1px dashed var(--teal); opacity: 0.65; pointer-events: none; }
.stats-grid .tile:last-child::after { display: none; }
@media (max-width: 1000px) { .stats-grid .tile::after { top: auto; bottom: -9px; left: 12%; right: 12%; border-left: 0; border-top: 1px dashed var(--teal); } }
/* Center cards (the five parts of the Commons): the same layout, but a mostly transparent surface so they read as a map of the site rather than a second row of buttons. */
.card.link.tool.center { background: var(--tcard-soft); border-color: var(--tcard-soft-line); box-shadow: none; }
.card.link.tool.center:hover, .card.link.tool.center:focus-visible { background: var(--tcard-soft-hover); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.card.link.tool.center .ico { background: var(--tint); border-color: var(--tint-line); color: var(--teal); }
.card .ico svg { width: 20px; height: 20px; }
.card .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--teal); font-family: var(--display); font-weight: 700; font-size: 13px; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; flex-wrap: wrap; }
.card .foot b { color: var(--fg); font-weight: 600; }
.list { display: grid; }
.list .it { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.list .it:first-child { border-top: 0; }
.list .it .d { font-family: var(--mono); font-size: 12px; color: var(--cyan); padding-top: 3px; }
.list .it .h { font-weight: 600; }
.list .it .h a { color: var(--fg); }
.list .it .s { color: var(--muted); font-size: 13.5px; }
@media (max-width: 620px) { .list .it { grid-template-columns: 1fr; gap: 4px; } }
.two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.two.rev { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
@media (max-width: 900px) { .two, .two.rev { grid-template-columns: 1fr; } }
.rail { display: grid; gap: 14px; align-content: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.panel h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: 500 13px var(--body); color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.tabs button.on { border-color: var(--teal); color: var(--teal); }
.search { display: flex; gap: 8px; }
.search input, .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { width: 100%; font: 400 14px var(--body); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); cursor: pointer; white-space: nowrap; }
.checks label:has(input:checked) { border-color: var(--teal); color: var(--teal); }
.checks input { margin: 0; width: auto; flex: none; accent-color: var(--teal); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table tr:hover td { background: rgba(255, 255, 255, 0.015); }
.tw { overflow-x: auto; }
.note { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
.note.amber { border-left-color: var(--amber); }
.banner { background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.4); color: var(--fg); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--cyan); }
.dates { display: grid; gap: 0; }
.dates .dt { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.dates .dt:first-child { border-top: 0; }
.dates .dt .when { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }
.dates .dt.future .when { color: var(--teal); }
.dates .dt.past .when { color: var(--muted); }
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose p { color: var(--fg); }
.prose .muted { color: var(--muted); }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar .tr { height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar .tr i { display: block; height: 100%; background: var(--teal); }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.radio { display: grid; gap: 8px; }
.radio label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); cursor: pointer; font-size: 14px; }
.radio label:has(input:checked) { border-color: var(--purple); background: rgba(167, 139, 250, 0.08); }
.radio input { margin-top: 3px; width: auto; accent-color: var(--purple); }
.progress { height: 6px; background: var(--card-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--purple); }
.level { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; }

/* App shell (Workspace) */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); margin-top: 20px; }
.app .side { background: var(--bg); border-right: 1px solid var(--line); padding: 16px 12px; display: grid; gap: 4px; align-content: start; }
.app .side .b { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px 12px; }
.app .side .b small { display: block; font-family: var(--body); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 10px; }
.app .side .lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.app .side a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--fg); font-size: 13.5px; }
.app .side a.on { background: var(--card-2); color: var(--teal); }
.app .side a:hover { background: var(--card-2); text-decoration: none; }
.app .main { padding: 22px; display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } .app .side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; } .app .side .b, .app .side .lbl { width: 100%; } }
.mod { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 10px; }
.mod .top { display: flex; justify-content: space-between; align-items: center; }
.mod .id { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mod .st { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.mod .st b { color: var(--fg); text-align: right; }

/* Footer */
.ftr { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 36px 28px; }
.ftr .cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .ftr .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ftr .cols { grid-template-columns: 1fr; } }
.ftr h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ftr ul a { color: var(--teal); }
.ftr ul a:hover { color: var(--teal-2); }
.ftr .bot { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; display: grid; gap: 8px; font-size: 12.5px; color: var(--muted); }
.ftr .bot .links { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ftr .bot .links a, .ftr .bot .links .linkbtn { color: var(--teal); }
.ftr .bot .links a:hover, .ftr .bot .links .linkbtn:hover { color: var(--teal-2); }
.ftr .bot div a { color: var(--teal); }
.proto { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 55; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--purple); color: var(--ink); padding: 5px 10px; border-radius: 999px; font-weight: 700; }
.sr { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Additions for the live site ------------------------------------------------------------- */
.h1s { font-size: clamp(28px, 4vw, 44px); }
.h1m { font-size: clamp(26px, 3.6vw, 40px); }
.card.link { text-decoration: none; color: inherit; }
.card.link:hover { text-decoration: none; }
a.mod { text-decoration: none; color: inherit; }
a.tile { text-decoration: none; color: inherit; }
a.tile:hover { border-color: var(--teal); text-decoration: none; }
.tabs .tab, .tabs a.tab { font: 500 13px var(--body); color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.tabs .tab.on { border-color: var(--teal); color: var(--teal); }
.tabs .tab:hover { text-decoration: none; border-color: var(--line-2); }
select.sm, input.sm { font: 400 13px var(--body); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; }
.filters { gap: 8px; }
.filters select, .filters input { max-width: 260px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.chk input { accent-color: var(--teal); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { width: 100%; font: 400 14px var(--body); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-width: 0; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--teal); }
input[type="file"] { padding: 6px; }
textarea { resize: vertical; line-height: 1.5; }
textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.row > input:not([type="checkbox"]), .row > select { width: auto; }
.search input { width: auto; flex: 1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.flashes { margin-top: 14px; display: grid; gap: 8px; }
.flash { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line-2); border-left: 3px solid var(--teal); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.flash.error { border-left-color: var(--red); }
.flash .x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 4px; }
.bad { color: var(--red); }
.ok { color: var(--green); }
.code { font-family: var(--mono); font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; color: var(--fg); margin: 0; }
.bar.wide { grid-template-columns: 150px minmax(0, 1fr) 44px; }
@media (max-width: 620px) { .bar.wide { grid-template-columns: 110px minmax(0, 1fr) 36px; } }
.whyfree { border-left: 3px solid var(--cyan); border-right: 3px solid var(--cyan); padding: 22px 24px; }
details.inline { display: inline-block; }
details.inline summary { list-style: none; cursor: pointer; display: inline-flex; }
details.inline summary::-webkit-details-marker { display: none; }
details.card summary { outline: none; }
details.card summary::marker { color: var(--teal); }
.prose h2, .prose h3 { margin-top: 10px; }
.prose ul, .prose ol { margin: 0 0 0 18px; padding: 0; display: grid; gap: 6px; }
.prose.legal h2 { font-size: 20px; margin-top: 18px; }
.prose.legal p, .prose.legal li { color: var(--fg); }
.prose img { max-width: 100%; border-radius: 10px; }
.panel a { font-size: 13.5px; }
.panel .btn { justify-self: start; }
.app .side .chip { font-size: 10px; padding: 1px 6px; }
.app.admin .side { min-width: 0; }
.app.admin .side a { font-size: 13px; padding: 6px 10px; }
/* Collapsible sidebar sections (admin). Native <details>; the choice is remembered per browser. */
.app .side details.grp { display: block; }
.app .side details.grp > summary.lbl { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 7px; user-select: none; border-radius: 8px; padding: 10px 10px 6px; }
.app .side details.grp > summary.lbl::-webkit-details-marker { display: none; }
.app .side details.grp > summary.lbl::before { content: ""; width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform 0.15s; flex: none; }
.app .side details.grp[open] > summary.lbl::before { transform: rotate(90deg); }
.app .side details.grp > summary.lbl:hover { color: var(--fg); background: var(--card-2); }
.app .side details.grp[open] > summary .chip { display: none; }
.app .side .grp-links { display: grid; gap: 4px; }
.app .side .b .navall { display: block; font-size: 10px; letter-spacing: 0; text-transform: none; font-family: var(--body); font-weight: 400; margin-top: 6px; color: var(--muted); }
.app .side .b .navall .linkbtn { font-size: 10px; }
.app .side .b .navall .linkbtn:hover { color: var(--teal); text-decoration: none; }
@media (max-width: 900px) { .app .side details.grp { width: 100%; } .app .side .grp-links { display: flex; flex-wrap: wrap; } }
.wide .wrap, body.wide main.wrap { max-width: 1380px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--card-2); border: 1px solid var(--line-2); color: var(--fg); padding: 10px 14px; border-radius: 10px; font-size: 13px; z-index: 70; max-width: 90vw; }
.resume { background: rgba(45, 212, 191, 0.08); border: 1px solid rgba(45, 212, 191, 0.35); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.resume .btn { margin-left: auto; }
.proto { display: none; }
iframe { max-width: 100%; }
.table form { margin: 0; }
.table .row { gap: 6px; }
.list .it.wideit { grid-template-columns: minmax(0, 1fr) auto; }
@media print {
  .hdr, .ftr, .flashes, .no-print, .side, .rail, .banner, .toast, .resume, .btn, form.search, nav { display: none !important; }
  .sky { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; padding: 0; }
  .card, .note, .tile, .panel { border: 1px solid #ccc; background: #fff; color: #000; break-inside: avoid; }
  .muted, .small { color: #333; }
  a { color: #000; text-decoration: none; }
  .two { grid-template-columns: 1fr; }
  .bar .tr i { background: #333; }
  .level, .eyebrow { color: #000; }
  .app { border: 0; grid-template-columns: 1fr; }
  .app .main { padding: 0; }
  .table th, .table td { border-bottom: 1px solid #ccc; }
  h1, h2, h3, h4 { color: #000; }
}

/* Full-width answer rows, question help, restart icon ------------------------------------------- */
.checks.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.checks.seg.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.checks.seg label.na { color: var(--muted); border-style: dashed; }
.checks.seg label.na:has(input:checked) { color: var(--fg); border-style: solid; }
@media (max-width: 620px) { .checks.seg.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checks.seg label { justify-content: center; text-align: center; white-space: normal; border-radius: 10px; padding: 10px 12px; font-weight: 500; }
.checks.seg label:has(input:checked) { background: rgba(45, 212, 191, 0.1); }
@media (max-width: 480px) { .checks.seg label { padding: 10px 6px; font-size: 12.5px; } }
.qlabel { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.qlabel label { font-size: inherit; font-weight: inherit; }
.qlabel.lg { font-size: 15px; }
.info { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--teal); background: transparent; color: var(--teal); font: 700 11px var(--display); line-height: 1; cursor: pointer; padding: 0; flex: none; vertical-align: middle; }
.info:hover, .info[aria-expanded="true"] { background: var(--teal); color: var(--ink); }
.pop { background: var(--card-2); border: 1px solid var(--line-2); border-left: 3px solid var(--teal); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.pop b { color: var(--fg); }
h2 .info, h3 .info, h4 .info { margin-left: 8px; }
.btn svg.ico { width: 14px; height: 14px; flex: none; }

/* Cookie consent ------------------------------------------------------------------------------ */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; padding: 0 max(16px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)); }
.cookie .in { max-width: 1200px; margin: 0 auto; background: linear-gradient(115deg, rgba(27, 20, 48, 0.92), rgba(17, 16, 36, 0.92)); color: var(--fg); border: 1px solid #fff; border-radius: 14px; padding: 14px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.48), 0 0 22px rgba(45, 212, 191, 0.34), 0 14px 40px rgba(0, 0, 0, 0.5); }
.cookie { --fg: #edf4ff; --muted: #b7c1d4; --teal: #2dd4bf; --teal-2: #5eead4; --ink: #061321; --card: #151729; }
.cookie .txt { flex: 1 1 420px; min-width: 0; }
.cookie .txt p { margin-top: 4px; color: var(--muted); }
.cookie .txt a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.cookie .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .acts .btn.primary { background: var(--teal); color: var(--ink); border-color: var(--teal); }
.cookie .acts .btn.primary:hover { background: var(--teal-2); border-color: var(--teal-2); }
.cookie .acts .btn:not(.primary) { background: rgba(255, 255, 255, 0.06); color: #edf4ff; border-color: rgba(143, 160, 184, 0.48); }
.cookie .acts .btn:not(.primary):hover { background: rgba(45, 212, 191, 0.12); }
.cookie-prefs { background: var(--card); color: var(--fg); border: 1px solid var(--line-2); border-radius: 14px; padding: 22px; width: min(560px, calc(100vw - 32px)); }
.cookie-prefs::backdrop { background: rgba(3, 6, 12, 0.7); }
.cookie-prefs .x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 0 6px; }
.cookie-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); cursor: pointer; font-size: 14px; }
.cookie-cat input { width: 18px; height: 18px; accent-color: var(--teal); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
@media print { .cookie, .cookie-prefs { display: none !important; } }

/* Help bubble: a draggable round button on every page that opens theme, subscribe, support, and feedback. */
.bub { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 80; }
.bub-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card-2); color: var(--teal); display: grid; place-items: center; cursor: grab; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4); touch-action: none; user-select: none; -webkit-user-select: none; }
.bub-btn svg { width: 22px; height: 22px; transition: transform 0.25s ease; }
.bub-btn:hover { border-color: var(--teal); }
.bub.open .bub-btn svg { transform: rotate(45deg); }
.bub.dragging .bub-btn { cursor: grabbing; }
.bub-panel { position: absolute; right: 0; bottom: 58px; width: 340px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); padding: 12px; display: grid; gap: 10px; }
.bub.left .bub-panel { right: auto; left: 0; }
.bub.top .bub-panel { bottom: auto; top: 58px; }
.bub-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.bub-head .x { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px; }
.bub-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bub-tabs button { display: grid; justify-items: center; gap: 3px; padding: 7px 4px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 11px var(--body); cursor: pointer; }
.bub-tabs button svg { width: 16px; height: 16px; }
.bub-tabs button:hover { color: var(--fg); background: var(--card-2); }
.bub-tabs button[aria-selected="true"] { background: var(--card-2); color: var(--teal); border-color: var(--line-2); }
.bub-panel[hidden], .bub-sec[hidden] { display: none; }
.bub-sec { display: grid; gap: 8px; }
.bub-sec p { margin: 0; }
.bub-form { display: flex; gap: 6px; }
.bub-form.col { flex-direction: column; }
.bub-form input:not([type="checkbox"]), .bub-form textarea, .bub-form select { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; color: var(--fg); padding: 8px 10px; font: inherit; font-size: 13.5px; }
.bub-form textarea { resize: vertical; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg3 button { background: transparent; border: 0; color: var(--fg); padding: 8px; font: 600 13px var(--body); cursor: pointer; }
.seg3 button + button { border-left: 1px solid var(--line-2); }
.seg3 button[aria-checked="true"] { background: var(--teal); color: var(--ink); }
.bub-chat { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.bub-chat .m { padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; max-width: 92%; }
.bub-chat .m.a { background: var(--card-2); justify-self: start; }
.bub-chat .m.u { background: var(--tint); border: 1px solid var(--tint-line); justify-self: end; }
.bub-chat .m.wait { color: var(--muted); font-style: italic; }
.bub-human summary { cursor: pointer; font-size: 13px; color: var(--teal); }
.bub-human form { margin-top: 8px; }
.bub-msg { color: var(--muted); }
.bub-msg.ok { color: var(--green); }
.bub-msg.err { color: var(--red); }
.bub-msg:empty { display: none; }
@media (max-width: 480px) { .bub-panel { width: calc(100vw - 32px); } .bub-chat { max-height: 180px; } }
@media print { .bub { display: none !important; } }

/* ---- Preserved from the current build: icon helper, workspace sidebar icons, Clerk auth, saved progress, Executive Briefing, Republish, Press ---- */
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -4px; }
.card .ico .i { width: 20px; height: 20px; }
.app .side a .i { width: 16px; height: 16px; color: var(--muted); margin-right: 8px; vertical-align: -3px; }
.app .side a.on .i, .app .side a:hover .i { color: var(--teal); }
.auth-page .two { align-items: start; }
.auth-card { width: 100%; max-width: 620px; padding: 28px; }
.auth-card .h1s { margin: 6px 0 8px; }
.clerk-widget { width: 100%; min-height: 220px; margin-top: 20px; }
.auth-legal { margin-top: 18px; }
#clerk-signout { margin-top: 20px; }
.assessment-save-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 12px 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font-size: 13px; }
.assessment-save-bar > span:first-child { flex: 1 1 220px; }
.assessment-save-bar .save-status { flex: 1 1 180px; color: var(--green); }
@media (max-width: 680px) { .auth-card { padding: 20px; } .assessment-save-bar { align-items: stretch; } .assessment-save-bar .btn { width: 100%; } }
@media print { .assessment-save-bar { display: none !important; } }
/* Executive Briefing: a paper document on screen and in print. Always light so the PDF matches the screen. */
.xr-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 14px; }
.xr-promo { border-color: var(--teal); background: linear-gradient(135deg, rgba(45, 212, 191, 0.10), transparent 60%); margin-bottom: 18px; }
.xr { --xr-ink: #111827; --xr-mute: #6b7280; --xr-line: #d7dde6; --xr-teal: #0b7d73; --xr-teal-d: #075e56; --xr-paper: #f3f5f8; color: var(--xr-ink); font-family: var(--body); font-size: 12.5px; line-height: 1.5; display: grid; gap: 22px; max-width: 8.5in; margin: 0 auto 30px; }
.xr h1, .xr h2, .xr h3 { color: var(--xr-ink); font-family: var(--display); text-wrap: balance; }
/* Cover */
.xr-cover { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; min-height: 11in; color: #f1fbf9; background: radial-gradient(80% 50% at 100% 0%, rgba(167, 243, 234, 0.22), transparent 60%), radial-gradient(60% 40% at 0% 100%, rgba(6, 40, 38, 0.55), transparent 60%), linear-gradient(160deg, #0a6d64 0%, #075e56 55%, #04433d 100%); border-radius: 6px; overflow: hidden; box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.6); }
.xr-cover::after { content: ""; position: absolute; left: -10%; right: -10%; top: 36%; height: 46%; background: repeating-linear-gradient(170deg, transparent 0 26px, rgba(255, 255, 255, 0.045) 26px 27px); transform: skewY(-5deg); pointer-events: none; }
.xr-cover > * { position: relative; z-index: 1; }
.xr-cover-top { display: flex; justify-content: space-between; align-items: center; padding: 0.55in 0.8in 0; }
.xr-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #f1fbf9; }
.xr-brand svg { width: 26px; height: 26px; }
.xr-cover-tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(241, 251, 249, 0.75); border: 1px solid rgba(241, 251, 249, 0.35); border-radius: 999px; padding: 5px 12px; }
.xr-cover-mid { padding: 0.9in 0.8in 0.4in; align-self: center; }
.xr-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a7f3ea; font-weight: 600; }
.xr-cover h1 { font-size: 44px; font-weight: 700; margin: 12px 0 10px; line-height: 1.05; color: #fff; }
.xr-cover-meta { color: rgba(241, 251, 249, 0.8); font-size: 13.5px; margin: 0 0 0.5in; }
.xr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.xr-kpi { background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 10px; padding: 16px 14px 14px; backdrop-filter: blur(4px); }
.xr-kpi .n { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1; color: #fff; }
.xr-kpi .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #a7f3ea; font-weight: 600; margin-top: 9px; }
.xr-kpi .s { font-size: 11.5px; color: rgba(241, 251, 249, 0.8); margin-top: 2px; }
.xr-cover-low { padding: 0.35in 0.8in 0.4in; background: rgba(0, 0, 0, 0.16); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.xr-cover-h { font-family: var(--display); font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.xr-lede { font-size: 14px; line-height: 1.65; max-width: 66ch; margin: 0; color: rgba(241, 251, 249, 0.92); }
.xr-lede b { color: #fff; }
.xr-cover-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0.8in 0.4in; font-size: 10px; color: rgba(241, 251, 249, 0.6); }
/* Body pages */
.xr-body { background: #fff; border: 1px solid var(--xr-line); border-radius: 6px; padding: 0.7in 0.8in 0.8in; box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.45); }
.xr-sec + .xr-sec { margin-top: 36px; }
.xr-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--xr-teal); padding-bottom: 8px; margin-bottom: 18px; break-after: avoid; }
.xr-head h2 { font-size: 21px; font-weight: 600; margin: 0; }
.xr-num { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--xr-teal); }
.xr-h3 { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; margin: 22px 0 8px; color: var(--xr-ink); break-after: avoid; }
.xr-h3:first-of-type { margin-top: 0; }
.xr-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.xr-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; break-inside: avoid; }
.xr-card { border: 1px solid var(--xr-line); border-radius: 8px; padding: 14px 16px; background: #fff; break-inside: avoid; }
.xr-card h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.xr-card p { margin: 8px 0 0; }
.xr-mt { margin-top: 14px; }
.xr-donut { display: flex; align-items: center; gap: 18px; }
.xr-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12px; min-width: 130px; }
.xr-legend li { display: flex; align-items: center; gap: 8px; text-transform: capitalize; }
.xr-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.xr-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.xr-stat { border: 1px solid var(--xr-line); border-radius: 8px; padding: 12px 14px; background: var(--xr-paper); break-inside: avoid; }
.xr-stat .l { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xr-mute); font-weight: 600; }
.xr-stat .v { font-family: var(--display); font-size: 17px; font-weight: 700; margin-top: 4px; }
.xr-stat .v.ok { color: var(--xr-teal); }
.xr-stat .v.warn { color: #b45309; }
.xr-stat .s { font-size: 11px; color: var(--xr-mute); margin-top: 2px; }
.xr-fine { font-size: 11px; color: var(--xr-mute); margin-top: 8px; }
.xr-empty { font-size: 12.5px; color: var(--xr-mute); border: 1px dashed var(--xr-line); border-radius: 8px; padding: 14px; }
.xr-mute { color: var(--xr-mute); font-size: 11px; }
.xr-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.xr-table thead { display: table-header-group; }
.xr-table th { text-align: left; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--xr-mute); font-weight: 600; padding: 6px 8px; border-bottom: 2px solid var(--xr-line); }
.xr-table td { padding: 8px; border-bottom: 1px solid var(--xr-line); vertical-align: top; }
.xr-table tr { break-inside: avoid; }
.xr-table.compact td { padding: 5px 8px; font-size: 11.5px; }
.xr-table .xr-date { white-space: nowrap; font-variant-numeric: tabular-nums; width: 92px; color: var(--xr-ink); font-weight: 600; }
.xr-table .xr-owner { width: 120px; }
.xr-table .xr-status { width: 90px; text-transform: capitalize; color: var(--xr-mute); white-space: nowrap; }
.xr-chip { display: inline-block; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.xr-pill { display: inline-block; font-size: 10.5px; font-weight: 600; text-transform: capitalize; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--xr-line); }
.xr-pill.high { border-color: #dc2626; color: #dc2626; }
.xr-pill.medium { border-color: #d97706; color: #d97706; }
.xr-pill.low { border-color: var(--xr-teal); color: var(--xr-teal); }
.xr-group { margin-top: 10px; break-inside: avoid; }
.xr-group-h { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--xr-mute); padding: 4px 8px; background: var(--xr-paper); border-radius: 6px; }
.xr-group-h.warn { color: #b45309; background: rgba(217, 119, 6, 0.10); }
.xr-group-h.bad { color: #b91c1c; background: rgba(220, 38, 38, 0.08); }
@media screen and (max-width: 760px) { .xr-body { padding: 24px 18px; } .xr-cover { min-height: 0; } .xr-cover-top, .xr-cover-mid, .xr-cover-low, .xr-cover-foot { padding-left: 18px; padding-right: 18px; } .xr-kpis, .xr-grid2, .xr-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .xr-cover h1 { font-size: 30px; } }
@media print {
  body.print-doc { background: #fff !important; }
  body.print-doc main { padding: 0; margin: 0; max-width: none; }
  .xr { display: block; max-width: none; margin: 0; font-size: 11pt; line-height: 1.45; }
  /* Width stays auto: an explicit 8.5in trips Chrome's shrink-to-fit mode, which drops the margins on every page. */
  .xr-cover { width: auto; height: 11in; min-height: 0; margin: 0; border-radius: 0; box-shadow: none; break-after: page; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .xr-cover::after { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .xr-body { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
  .xr-sec + .xr-sec { margin-top: 30px; }
  .xr-appendix { margin-top: 36px; }
  .xr-head h2 { font-size: 18pt; }
  .xr-kpi, .xr-chip, .xr-stat, .xr-group-h, .xr-pill, .xr-promo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .xr-table, .xr-table td, .xr-table th { color: #111827; }
  .xr-table td { padding: 6px 8px; }
  .xr-table.compact td { padding: 4px 8px; font-size: 9.5pt; }
}

.republish-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr); gap: 30px; align-items: start; }
.republish-stamp-card { margin: 0; padding: 18px; border: 0; border-radius: 14px; background: #050b14; display: grid; gap: 12px; }
.republish-stamp-card img { display: block; width: 100%; height: auto; }
.republish-stamp-card figcaption { color: #dbeafe; font-size: 12px; text-align: center; }
.press-release-list { display: grid; gap: 12px; }
.press-release-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 9px; }
.press-release-item:first-child { padding-top: 0; }
.press-release-item .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.press-release-item h3 { margin: 0; }
.press-brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.press-brand-card { align-content: start; }
.press-brand-preview { display: grid; place-items: center; min-height: 130px; padding: 14px; border-radius: 10px; background: #08111c; border: 1px solid var(--line); }
.press-brand-preview img { display: block; max-width: 100%; max-height: 150px; object-fit: contain; }
.press-release-detail { display: grid; gap: 20px; max-width: 78ch; }
.press-release-hero { margin: 0; }
.press-release-hero img { display: block; width: 100%; max-height: 440px; object-fit: cover; border-radius: 12px; }
.admin-hero-upload-preview img { display: block; max-width: min(100%, 640px); max-height: 320px; object-fit: contain; border-radius: 10px; margin-top: 10px; }
@media (max-width: 900px) {
  .republish-layout { grid-template-columns: 1fr; }
  .republish-stamp-card { max-width: 520px; }
}
@media (max-width: 620px) {
  .press-brand-grid { grid-template-columns: 1fr; }
}
.press-release-detail > .meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* World map (/crosswalk/map): the inlined SVG, the legend and picker above it, the country panel below it. */
:root { --map-sea: rgba(28, 195, 227, 0.035); --map-land: #182335; --map-land-line: #070b14; --map-t1: #1f5e5a; --map-t2: #238f85; --map-t3: #2dd4bf; --map-hover: #5eead4; --map-sel: #99f6e4; --map-reg: #1cc3e3; --map-mk: #3a4a62; }
:root[data-theme="light"] { --map-sea: rgba(11, 127, 156, 0.05); --map-land: #e1e7f0; --map-land-line: #f4f6fa; --map-t1: #9ddfd3; --map-t2: #4fbfae; --map-t3: #0f766e; --map-hover: #14b8a6; --map-sel: #0b4f4a; --map-reg: #0b7f9c; --map-mk: #b7c2d2; }
.maplink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.maplink svg { width: 18px; height: 18px; flex: none; }
.mapwrap { display: grid; gap: 14px; }
.maptop { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mlegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.mlegend span { display: inline-flex; align-items: center; gap: 6px; }
.mlegend .sw { width: 14px; height: 14px; border-radius: 4px; background: var(--map-land); border: 1px solid var(--line-2); }
.mlegend .sw.t3 { background: var(--map-t3); border-color: transparent; }
.mlegend .sw.t1 { background: var(--map-t1); border-color: transparent; }
.mlegend .sw.reg { background: var(--map-land); border: 2px solid var(--map-reg); }
.mpick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mpick select { font: 500 13px var(--body); padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); color: var(--fg); max-width: 260px; }
.mapbox { position: relative; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%); padding: 10px; overflow: hidden; }
.wmap { display: block; width: 100%; height: auto; }
.wmap .sphere { fill: var(--map-sea); stroke: var(--line); stroke-width: 0.6; }
.wmap .countries path { fill: var(--map-land); stroke: var(--map-land-line); stroke-width: 0.45; cursor: pointer; transition: fill 0.15s ease; }
.wmap .countries path.t1 { fill: var(--map-t1); }
.wmap .countries path.t2 { fill: var(--map-t2); }
.wmap .countries path.t3 { fill: var(--map-t3); }
.wmap .countries path.reg { stroke: var(--map-reg); stroke-width: 0.9; }
.wmap .countries path:hover, .wmap .countries path.hov { fill: var(--map-hover); }
.wmap .countries path.sel { fill: var(--map-sel); stroke: var(--fg); stroke-width: 0.9; }
.wmap .markers .mk { fill: var(--map-mk); stroke: var(--map-land-line); stroke-width: 0.6; cursor: pointer; opacity: 0.75; transition: fill 0.15s ease, r 0.15s ease; }
.wmap .markers .mk.t1, .wmap .markers .mk.t2, .wmap .markers .mk.t3 { fill: var(--map-t3); opacity: 1; r: 4.2; }
.wmap .markers .mk.reg { stroke: var(--map-reg); stroke-width: 1.2; opacity: 1; }
.wmap .markers .mk:hover, .wmap .markers .mk.hov { fill: var(--map-hover); opacity: 1; r: 5; }
.wmap .markers .mk.sel { fill: var(--map-sel); stroke: var(--fg); stroke-width: 1; opacity: 1; r: 5.2; }
.wmap title { pointer-events: none; }
.mtip { position: absolute; pointer-events: none; z-index: 2; background: var(--card); color: var(--fg); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); white-space: nowrap; }
.mtip b { font-weight: 600; }
.mtip .muted { margin-left: 6px; }
.mtip[hidden] { display: none; }
.mpanel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 24px; display: grid; gap: 18px; scroll-margin-top: 90px; }
.mpanel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.mpanel-head h2 { margin-top: 4px; }
.mpanel-head p { max-width: 70ch; margin-top: 6px; }
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mcol { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg-2); }
.mcol h3, .msec h3 { font-size: 16px; margin-bottom: 10px; }
.mcol h3 .muted, .msec h3 .muted { font-family: var(--body); font-weight: 500; }
.mdates { display: grid; gap: 8px; }
.mdate { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.45; }
.mdate .when { color: var(--cyan); font-weight: 600; font-variant-numeric: tabular-nums; }
.mdate .what a { font-weight: 600; }
.mdate .chip { margin-left: 4px; vertical-align: 1px; }
.msec { display: grid; gap: 4px; }
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mcard { display: grid; gap: 7px; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-2); color: var(--fg); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.mcard:hover { border-color: var(--teal); text-decoration: none; transform: translateY(-1px); }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mcard-top b { font-family: var(--display); font-size: 15px; line-height: 1.25; }
.mcard-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mcard p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mchips { display: flex; gap: 8px; flex-wrap: wrap; }
.mchip { font: 600 13px var(--body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); cursor: pointer; }
.mchip span { color: var(--cyan); margin-left: 4px; }
.mchip:hover { border-color: var(--teal); }
.mintl summary { cursor: pointer; list-style: none; }
.mintl summary::-webkit-details-marker { display: none; }
.mintl summary h3::before { content: "+"; display: inline-block; width: 18px; color: var(--teal); }
.mintl[open] summary h3::before { content: "–"; }
.mintl .mcards { margin-top: 12px; }
.mcredit { max-width: 90ch; }
@media (max-width: 900px) { .mgrid { grid-template-columns: 1fr; } .mcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mcards { grid-template-columns: 1fr; } .mpanel { padding: 16px; } .mdate { grid-template-columns: 1fr; gap: 2px; } .mapbox { padding: 4px; border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; } .wmap { min-width: 680px; } .mtip { display: none; } }

/* Ruled stacks: the long columns on entry and Wire pages get a hairline between sections, nothing heavier. */
.stack.ruled { gap: 0; }
.stack.ruled > * { padding: 22px 0; }
.stack.ruled > *:first-child { padding-top: 0; }
.stack.ruled > * + * { border-top: 1px solid var(--line); }
.stack.ruled > .note, .stack.ruled > .prose { padding-top: 22px; }
.stack.ruled > .note { margin-top: 0; }
.stack.ruled > div > h3 { display: flex; align-items: center; gap: 10px; }
.stack.ruled > div > h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--cyan); opacity: 0.85; }
/* Cover images on Wire items (photos with credit, or the generated illustration). */
.cover { margin: 0; display: grid; gap: 8px; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.cover figcaption a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-2); }
.wire-thumb { width: 92px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--card); display: block; }
.list .it.thumbed { grid-template-columns: 92px 92px minmax(0, 1fr) auto; }
.card.link.lead-cover { display: grid; gap: 14px; }
.card.link .lead-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 480; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 620px) { .list .it.thumbed { grid-template-columns: 1fr; } .wire-thumb { width: 100%; height: auto; aspect-ratio: 1200 / 630; } }
.stack.ruled .dates .dt:first-child { border-top: 0; }
.mpanel > * + * { border-top: 1px solid var(--line); padding-top: 16px; }
.mpanel > .msec > h3, .mcol > h3 { display: flex; align-items: center; gap: 10px; }
.mpanel > .msec > h3::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--cyan); opacity: 0.85; }
