/* ==========================================================================
   celedog.us — brand system aligned with celedog.com
   Deep-blue gradient hero · brand blue #235AFF · white cards · HOT pills
   ========================================================================== */

:root {
  --brand: #235aff;
  --brand-2: #2b52ff;
  --brand-deep: #1e3a8a;

  --hero-a: #2143c0;
  --hero-b: #264dcf;
  --hero-c: #3160e3;

  --bg: #f6f8fb;
  --card: #fff;

  --ink: #0f172b;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  --line: #e4e7ec;

  --gold: #ffd83d;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .06);
  --radius: 16px;

  --max: 1060px;
  --nav-h: 64px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;

  --font-serif: "Georgia", "Times New Roman", "Songti SC", "STSong", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------- nav ---- */
/* Transparent over the blue hero; solid white once scrolled. */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: #fff;
  background: transparent;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { display: block; width: 34px; height: 34px; }
.logo .word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}
.logo .tld { font-weight: 700; opacity: .55; margin-left: -2px; }

.nav .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav .right > a { font-size: 14.5px; font-weight: 600; opacity: .92; }
.nav .right > a:hover { opacity: 1; }

.lang { display: flex; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px; }
.nav.scrolled .lang { background: #eef1f6; }
.lang button {
  border: 0; background: transparent; font: inherit;
  font-size: 12px; font-weight: 650; color: inherit; opacity: .75;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--brand); opacity: 1; box-shadow: 0 1px 3px rgba(16,24,40,.14); }
.nav.scrolled .lang button[aria-pressed="true"] { background: #fff; }

/* home page sits on a light hero — nav reads dark until scrolled */
body.home .nav { color: var(--ink); }
body.home .nav .lang { background: #e8edf6; }

/* visually hidden (a11y labels kept for icon-only buttons) */
.sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* --------------------------------------------------------------- hero --- */
/* america.gov style: light stage, huge serif headline, a rounded skyline
   visual with the ask pill floating over its top edge. */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 78px) 0 76px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(760px 320px at 50% -60px, rgba(35, 90, 255, .09), transparent 62%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f9 100%);
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 5.3rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.05;
  color: #101d4d;
}
.hero .sub {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 19px;
  color: #5a6474;
}

/* rounded skyline visual */
.hero-stage {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-visual {
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(13, 27, 68, .26),
    0 6px 18px rgba(13, 27, 68, .10);
}
.hero-visual img { display: block; width: 100%; height: auto; }

.hero-below { margin-top: 34px; }

/* "local server not running" warning */
.nosrv {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 auto 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 7px 16px 7px 13px;
  font-size: 13px; color: #92400e;
}
.nosrv[hidden] { display: none; }
.nosrv svg { flex: none; color: #f59e0b; }
.nosrv code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: #fff;
  border: 1px solid #fde68a; border-radius: 6px; padding: 2px 7px; color: #334155;
}

/* ------------------------------------------------------------ ask box --- */
/* floating pill, half over the visual's top edge */
.ask {
  max-width: 720px;
  margin: 48px auto -33px;
  position: relative;
  z-index: 2;
}
.ask-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 7px 7px 26px;
  box-shadow:
    0 30px 70px rgba(13, 27, 68, .30),
    0 4px 14px rgba(13, 27, 68, .10);
}
.ask-box:focus-within {
  box-shadow:
    0 30px 70px rgba(13, 27, 68, .30),
    0 4px 14px rgba(13, 27, 68, .10),
    0 0 0 3px rgba(35, 90, 255, .25);
}
.ask-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink); padding: 13px 0; min-width: 0;
}
.ask-box input::placeholder { color: var(--ink-3); }
.ask-box .ask-send {
  width: 50px; height: 50px; padding: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #14265c;
}
.ask-box .ask-send:hover { background: var(--brand); }

.ask-hint { font-size: 13px; color: var(--ink-3); }

/* base send button — shared by the follow-up bar; hero pill overrides shape */
.ask-send {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 12px 16px;
  background: var(--brand); color: #fff;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.ask-send:hover { background: #1c4ce6; }
.ask-send:active { transform: scale(.97); }

/* hero chips — quiet white pills on the light stage */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.chips .chip {
  font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: .16s ease;
}
.chips .chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 14px rgba(35, 90, 255, .28); }

/* --------------------------------------------------------------- main --- */
main .band { padding: 72px 0 0; }

/* section head — gradient square icon + title, like "Popular Collections" */
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #7b8cff 100%);
  box-shadow: 0 8px 18px rgba(35, 90, 255, .28);
}
.sec-head h2 { font-size: 26px; }
.sec-head .sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

/* --------------------------------------------------------------- chat --- */
/* america.gov style: the question, the streamed answer, then its citations. */
.chat { display: flex; flex-direction: column; gap: 18px; }

.msg {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.msg-q {
  font-size: 19px; font-weight: 750; letter-spacing: -.02em; line-height: 1.35;
  padding-left: 14px; border-left: 3px solid var(--brand);
}
.msg-a { margin-top: 14px; font-size: 15.5px; line-height: 1.75; color: #1b2432; }
.msg-a p + p { margin-top: 12px; }
.msg-a ul, .msg-a ol { margin: 10px 0; padding-left: 19px; }
.msg-a li { margin-bottom: 6px; }
.msg-a strong { font-weight: 700; color: var(--ink); }
.msg.working .msg-a::after {
  content: ""; display: inline-block; width: 7px; height: 15px;
  margin-left: 3px; vertical-align: -2px;
  background: var(--brand); animation: blink 1s steps(2) infinite;
}
.muted { color: var(--ink-3); }

/* error diagnosis block — says *why* and what to run */
.msg-err {
  margin-top: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.6;
  color: #7c4a03;
}
.msg-err .er { display: block; }
.msg-err .eo { display: block; margin-top: 6px; color: #92400e; font-weight: 600; }
.msg-err code {
  display: block;
  margin-top: 7px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 7px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #334155;
  overflow-x: auto;
  white-space: nowrap;
}

/* [n] citation marker -> link to that source */
.cb {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px;
  margin: 0 1px; padding: 0 4px;
  font-size: 11px; font-weight: 750; text-align: center;
  color: var(--brand); background: #e8eeff; border-radius: 5px;
  vertical-align: 1px;
}
.cb:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* citation cards under the answer */
.cites { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cg-t {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin: 14px 0 8px;
}
.cites .cg-t:first-child { margin-top: 0; }
.cg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cite {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  transition: .15s ease;
}
.cite:hover { border-color: var(--brand); background: #fbfcff; }
.cite .cn {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 750; color: #fff;
  background: linear-gradient(135deg, var(--brand), #5d7dff);
}
.cite .cbody { display: flex; flex-direction: column; min-width: 0; }
.cite .ct {
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cite .cs { margin-top: 3px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.cite .chost { margin-top: 5px; font-size: 11px; color: var(--ink-3); }

/* an uploaded library PDF, as opposed to a web source */
.cite.doc { border-color: #dcd6ff; background: #fbfaff; }
.cite .cdot {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 9.5px; font-weight: 750; letter-spacing: .06em;
  color: #5b21b6; background: #ede9fe; border-radius: 4px;
  vertical-align: 1px;
}

/* feedback row — one bit of signal per answer */
.fb { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-q { font-size: 12.5px; color: var(--ink-3); }
.fb-b {
  font: inherit; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: .15s ease;
}
.fb-b:hover { border-color: var(--brand); color: var(--brand); }
.fb-b.up.on { background: #dcf5e7; color: #0d7a43; border-color: #a7e8c6; }
.fb-b.down.on { background: #fde8e8; color: #c0392b; border-color: #f5c0c0; }
.fb-s { font-size: 12.5px; color: var(--ink-3); }
.fb-s.bad { color: #c0392b; }

/* related / follow-up questions — america.gov style */
.fups { margin-top: 16px; }
.fups-t {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 9px;
}
.fups-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fup {
  font: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
  color: var(--brand); background: #f3f6ff;
  border: 1px solid #e0e7ff; border-radius: 999px;
  padding: 9px 15px; cursor: pointer; transition: .15s ease;
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
}
.fup:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 6px 14px rgba(35, 90, 255, .26);
}
.fup::after { content: "↗"; font-size: 12px; opacity: .7; flex: none; }
.fups-loading { font-size: 13px; color: var(--ink-3); }
.fups-loading::after {
  content: ""; display: inline-block; width: 6px; height: 13px; margin-left: 4px;
  vertical-align: -2px; background: var(--ink-3); animation: blink 1s steps(2) infinite;
}

/* follow-up bar */
.follow {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 9px 9px 20px; box-shadow: var(--shadow-card);
}
.follow input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15.5px; color: var(--ink); padding: 11px 0; min-width: 0;
}
.follow input::placeholder { color: var(--ink-3); }

/* live local matches while typing */
.live {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 16px 22px; margin-bottom: 20px;
}
.live[hidden] { display: none; }
.live-t {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}

/* ---------------------------------------------------------------- ai ---- */
.ai {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
}
.ai .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: #7c3aed;
  background: linear-gradient(90deg, #f3e8ff, #ede9fe);
  border-radius: 999px; padding: 4px 11px;
  margin-bottom: 14px;
}
.ai-q { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.4; }
.ai-a { margin-top: 14px; font-size: 15.5px; line-height: 1.72; color: #1b2432; }
.ai-a p + p { margin-top: 13px; }
.ai-a ul, .ai-a ol { margin: 12px 0; padding-left: 19px; }
.ai-a li { margin-bottom: 6px; }
.ai-a strong { font-weight: 700; color: var(--ink); }
.caret { display: inline-block; width: 8px; background: var(--brand); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.src-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
}
.src {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; font-size: 12.5px;
  font-weight: 550; transition: .15s ease;
}
.src:hover { border-color: var(--brand); color: var(--brand); }
.src .ag {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, var(--brand), #5d7dff);
  border-radius: 5px; padding: 2.5px 6px;
}
.src .arrow { color: var(--ink-3); }

/* ------------------------------------------------------------ results --- */
.res-count { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.res { display: flex; align-items: baseline; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.res:last-child { border-bottom: 0; }
.res .body { display: flex; flex-direction: column; min-width: 0; }
.res .t { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.res .d { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.res .arrow { margin-left: auto; color: var(--ink-3); font-size: 14px; flex: none; }
.res:hover .t, .res:hover .arrow { color: var(--brand); }
.res .badge {
  flex: none; min-width: 40px; text-align: center;
  font-size: 10.5px; font-weight: 750; padding: 3.5px 7px; border-radius: 6px;
  background: #eef1f6; color: var(--ink-2);
}
mark { background: rgba(35, 90, 255, .14); color: inherit; border-radius: 3px; padding: 0 1px; }

/* -------------------------------------------------------------- notes --- */
/* 3 feature cards, like celedog.com "AI-Powered Analysis" grid. */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
}
.note .ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  margin-bottom: 16px;
}
.note:nth-child(1) .ico { background: linear-gradient(135deg, var(--brand), #5d7dff); box-shadow: 0 8px 18px rgba(35,90,255,.25); }
.note:nth-child(2) .ico { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 8px 18px rgba(16,185,129,.25); }
.note:nth-child(3) .ico { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 8px 18px rgba(139,92,246,.25); }
.note h3 { font-size: 16.5px; }
.note p { margin-top: 8px; font-size: 14px; line-height: 1.62; color: var(--ink-2); }
.note a { color: var(--brand); font-size: 14px; font-weight: 650; }
.note a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- table --- */
/* compact blue band for inner pages */
.page-hero {
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 54px) 0 58px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(120, 160, 255, .32), transparent 60%),
    linear-gradient(118deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { margin: 14px auto 0; max-width: 520px; font-size: 16px; color: rgba(255, 255, 255, .82); }

main .page-body { padding: 44px 0 0; }

.tbl {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); background: #f9fafc;
  padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfe; }
td .name { font-weight: 650; }
td .name a { color: inherit; text-decoration: none; }
td .name a:hover { color: var(--brand); text-decoration: underline; }
td .sm { font-size: 13px; color: var(--ink-2); }
td a.h { color: var(--brand); font-weight: 600; }
td a.h:hover { text-decoration: underline; }
.pill { display: inline-block; font-size: 11px; font-weight: 750; padding: 3.5px 9px; border-radius: 7px; }
.pill.p0 { background: #dcf5e7; color: #0d7a43; }
.pill.p1 { background: #e3ecff; color: var(--brand); }
.pill.p2 { background: #eef1f6; color: var(--ink-2); }

/* filter pills — active = solid brand blue, like "This Week" */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.filters .chip {
  font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: .15s ease;
}
.filters .chip:hover { border-color: var(--brand); color: var(--brand); }
.filters .chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 6px 14px rgba(35, 90, 255, .3);
}

.fine { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------- home: go-to-chat CTA -- */
.go-chat { text-align: center; padding: 34px 0 6px; }
.go-chat .btn-go {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(35, 90, 255, .3);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.go-chat .btn-go:hover { background: #1b46e0; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(35, 90, 255, .36); }
.go-chat .sub { max-width: 560px; margin: 16px auto 0; }

/* ------------------------------------------------------------ chat page -- */
body.chatpage { display: flex; flex-direction: column; min-height: 100vh; }
body.chatpage main.cp-main { flex: 1; display: flex; flex-direction: column; }

.cp-top { border-bottom: 1px solid var(--line); background: var(--card); }
.cp-top-in { display: flex; align-items: center; gap: 16px; padding: 13px 0; }
.cp-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 650; color: var(--brand); text-decoration: none;
}
.cp-back:hover { text-decoration: underline; }
.cp-title {
  margin-left: auto; font-size: 12.5px; font-weight: 750;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}

.cp-body { flex: 1; padding: 26px 0 8px; }
.cp-body .chat { padding-bottom: 8px; }

.cp-welcome { text-align: center; padding: 40px 0 8px; }
.cp-welcome[hidden] { display: none; }
.cp-welcome-h {
  font-family: var(--font-serif); font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.14; letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.cp-welcome-p {
  max-width: 540px; margin: 14px auto 0;
  font-size: 15.5px; line-height: 1.65; color: var(--ink-2);
}
.cp-suggest-t {
  margin: 30px 0 12px; font-size: 11.5px; font-weight: 750;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.cp-suggest { justify-content: center; }

.cp-composer {
  position: sticky; bottom: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 26%);
  padding: 14px 0 4px;
}
.cp-composer .follow { margin-top: 0; }
.cp-note { margin: 9px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
body.chatpage footer { margin-top: 40px; }

@media (max-width: 640px) {
  .cp-welcome { padding: 26px 0 4px; }
  .cp-note { display: none; }
}

/* ------------------------------------------------------------- footer --- */
footer {
  margin-top: 88px;
  background: linear-gradient(160deg, #101d4d 0%, #14266b 60%, #1b34a0 130%);
  color: rgba(255, 255, 255, .75);
  padding: 30px 0 38px;
}
footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
footer .flogo { display: flex; align-items: center; gap: 9px; color: #fff; }
footer .flogo svg { width: 28px; height: 28px; display: block; }
footer .flogo b { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
footer .r { margin-left: auto; color: rgba(255, 255, 255, .5); }

/* -------------------------------------------------------------- misc ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .notes { grid-template-columns: 1fr; }
  .cg { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .msg { padding: 20px 18px; }
  .msg-q { font-size: 17px; }
}
@media (max-width: 640px) {
  .nav .wrap { gap: 14px; }
  .nav .right { gap: 10px; }
  .lang button { padding: 5px 9px; }
  .hero { padding: calc(var(--nav-h) + 52px) 0 56px; }
  .hero .sub { font-size: 16.5px; }
  .hero-visual { border-radius: 18px; }
  .ask { margin: 36px auto -23px; }
  .ask-box { padding: 5px 5px 5px 18px; }
  .ask-box input { font-size: 15.5px; padding: 11px 0; }
  .ask-box .ask-send { width: 44px; height: 44px; }
  .ai { padding: 22px 18px; }
  footer .r { margin-left: 0; }
}
@media (max-width: 480px) {
  .nav .right > a { display: none; } /* Sources link hidden on phones */
  .logo .word { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   FAQ — the crawlable Q&A that backs the FAQPage structured data.
   Kept in the DOM (not injected by JS) so answer engines that do not execute
   JavaScript still read the questions and answers.
   ========================================================================== */
.faq { margin-top: 68px; padding-bottom: 8px; }
.faq h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 2px 22px;
}
.faq-item[open] { padding-bottom: 18px; }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 32px 16px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 5px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item > p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-item > p.faq-src { margin-bottom: 0; font-size: 13.5px; color: var(--ink-3); }
.faq-src span { font-weight: 600; color: var(--ink-2); }
.faq-src a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-right: 8px;
}
.faq-src a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .faq-item { padding: 2px 17px; }
  .faq-item > summary { font-size: 16px; }
}

/* ==========================================================================
   Streaming answer — the caret that shows text is still arriving, and the
   optional reasoning trail (only models that emit one will ever fill it).
   ========================================================================== */
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--brand);
  animation: caret-blink 1s steps(2, start) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.reason {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  font-size: 14px;
}
.reason > summary {
  cursor: pointer;
  padding: 9px 14px;
  color: var(--ink-2);
  font-weight: 600;
  list-style: none;
}
.reason > summary::-webkit-details-marker { display: none; }
.reason > summary::before {
  content: "▸ ";
  color: var(--ink-3);
}
.reason[open] > summary::before { content: "▾ "; }
.reason-body {
  padding: 0 14px 12px;
  color: var(--ink-2);
  line-height: 1.65;
  white-space: pre-wrap;
}

/* Progress trace: the retrieval pipeline made visible, one row per stage with
   the time that stage actually took. Turns a silent multi-second wait into
   visible work. */
.trace {
  margin: 0 0 12px;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
}
.trace-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-2);
  animation: trace-in .22s ease both;
}
.trace-dot {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
  transform: translateY(-2px);
}
.trace-label { flex: 1 1 auto; }
.trace-detail {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.trace-ms {
  flex: none;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
}
@keyframes trace-in { from { opacity: 0; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .caret, .trace-row { animation: none; }
}


/* ==========================================================================
   Crawler-visible category map (.cx-map)
   The whole map is prerendered into index.html by build-catindex.mjs, one
   attribute per language, so answer engines that run no JavaScript still read
   every category and source. Collapsed by default; applyCrawlLang() in
   main.js swaps the visible text when the reader switches language.
   ========================================================================== */
.crawl-band { margin-top: 40px; padding-bottom: 8px; }

/* -------------------------------------------------------------- about --- */
/* Same section language as the rest of the page: gradient .sec-head, then a
   card grid, then a source row. Replaces the former single dense paragraph. */
.geo-intro { margin-top: 40px; padding-bottom: 8px; }
.geo-intro .sec-head { margin-bottom: 20px; }
.geo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.geo-card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
}
.geo-card h3 { font-size: 15px; line-height: 1.35; }
.geo-card p { margin-top: 8px; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.geo-src {
  margin-top: 16px; font-size: 12.5px; line-height: 1.7; color: var(--ink-3);
}
.geo-src span { font-weight: 600; color: var(--ink-2); }
.geo-src a {
  color: var(--brand); font-weight: 600; text-decoration: none;
  display: inline-block; margin-right: 12px;
  border-bottom: 1px solid transparent;
}
.geo-src a:hover { border-bottom-color: currentColor; }

@media (max-width: 900px) {
  .geo-grid { grid-template-columns: 1fr; }
}

.cx-map {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 15px 18px; box-shadow: var(--shadow-card);
}
.cx-map > summary {
  cursor: pointer; font-size: 14.5px; font-weight: 650; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 9px;
}
.cx-map > summary::-webkit-details-marker { display: none; }
.cx-map > summary::before {
  content: ""; width: 0; height: 0; flex: none;
  border-left: 6px solid var(--ink-3);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  transition: transform .18s ease;
}
.cx-map[open] > summary::before { transform: rotate(90deg); }
.cx-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 14px; margin-top: 18px;
}
.cx-card {
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); padding: 15px 16px 14px;
}
.cx-card h3 { font-size: 15px; line-height: 1.35; }
.cx-desc { margin-top: 7px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.cx-meta {
  margin-top: 11px; display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12px; color: var(--ink-3);
}
.cx-meta em { font-style: normal; opacity: .72; }
.cx-meta .pill { font-size: 11px; }
.cx-src { margin-top: 9px; font-size: 12.5px; line-height: 1.62; color: var(--ink-3); }
.cx-src em { font-style: normal; opacity: .72; }
.cx-src a {
  color: var(--brand); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.cx-src a:hover { border-bottom-color: currentColor; }
.cx-foot {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.cx-foot .sub { font-size: 14px; color: var(--ink-2); margin-top: 0; }
.cx-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-ghost {
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  padding: 8px 16px; font-size: 13.5px; font-weight: 620; color: var(--ink-2);
  text-decoration: none; box-shadow: var(--shadow-card);
  transition: border-color .16s ease, color .16s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.cx-foot + .fine { margin-top: 18px; }

@media (max-width: 720px) {
  .cx-foot { align-items: flex-start; }
}

/* ==========================================================================
   Legal page (legal.html) — two documents in one page, switched by ?tab=
   ========================================================================== */
.legal-page { padding-bottom: 20px; }
.legal-tabs {
  display: flex; gap: 6px; margin: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}
.legal-tab {
  padding: 11px 4px 13px; margin-right: 22px; font-size: 15px; font-weight: 650;
  color: var(--ink-3); text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .16s ease, border-color .16s ease;
}
.legal-tab:hover { color: var(--ink); }
.legal-tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.legal-doc { max-width: 780px; }
.legal-updated { margin-top: 0; font-size: 13px; color: var(--ink-3); }
.legal-note {
  margin-top: 22px; padding: 13px 16px; font-size: 13.5px; line-height: 1.6;
  color: var(--ink-2); background: var(--card);
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 6px;
}
.legal-body { margin-top: 30px; }
.legal-body h2 {
  font-size: 18px; margin-top: 34px; padding-top: 4px;
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-top: 11px; font-size: 15.5px; line-height: 1.72; color: var(--ink-2); }
.legal-contact {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-3);
}
footer .legal { display: flex; align-items: center; gap: 9px; margin-left: auto; }
footer .legal a {
  color: rgba(255, 255, 255, .72); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
footer .legal a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .55); }
footer .legal .sep { color: rgba(255, 255, 255, .32); }

/* Entry card from the home page into the country report (india.html). */
.kb-entry {
  margin-top: 22px;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}
.kb-entry:hover { border-color: var(--brand); transform: translateY(-1px); }
.kb-entry h3 { font-size: 17px; }
.kb-entry p { margin-top: 7px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.kb-entry .kb-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}
.kb-entry .kb-go svg { transition: transform .16s ease; }
.kb-entry:hover .kb-go svg { transform: translateX(3px); }



/* ==========================================================================
   Country report (india.html) — .kb-* page furniture, .g-* long-form typography,
   and the trilingual span switch.

   Every string of the report is prerendered three times — <span class="l-hi">,
   <span class="l-zh">, <span class="l-en"> — directly in the HTML, so a crawler
   that never runs JavaScript still reads all three languages. india.js only sets
   html[data-lang]; the stylesheet below decides which of the three spans shows.
   ========================================================================== */
html[data-lang="hi"] .l-en, html[data-lang="hi"] .l-zh,
html[data-lang="zh"] .l-hi, html[data-lang="zh"] .l-en,
html[data-lang="en"] .l-hi, html[data-lang="en"] .l-zh { display: none; }
/* no JS (or JS not yet run): BM is the page language, so show BM */
html:not([data-lang]) .l-hi, html:not([data-lang]) .l-zh { display: none; }

main .page-body.kb-page { padding: 44px 24px 60px; }
.kb-grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.kb-toc {
  position: sticky;
  top: calc(var(--nav-h) + 22px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 16px 8px 16px 16px;
}

.kb-toc-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 2px 8px 2px 0;
  cursor: pointer;
}

.kb-toc-toggle svg { transition: transform .18s ease; }
.kb-toc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.kb-toc-list ol { list-style: none; margin: 0; padding: 0; }
.kb-toc-list li { margin: 0; }
.kb-toc-list a {
  display: block;
  padding: 6px 10px;
  margin-right: 6px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}

.kb-toc-list a:hover { background: #f2f5fb; color: var(--brand); }
.kb-toc-list a.on { background: #eaf0ff; color: var(--brand); font-weight: 750; }
.kb-toc-list .g-num {
  display: inline-block;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-weight: 700;
}

.kb-toc-list a.on .g-num { color: var(--brand); }

/* --------------------------------------------------------------- article */
.kb-doc { min-width: 0; max-width: 780px; }

/* Sub-line under a page <h1>: cadence + priority pill. Shared by india.html and
   the generated cat/ pages. */
.gm-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px auto 0; max-width: 720px;
  font-size: 14px; color: rgba(255, 255, 255, .82);
}

/* Breadcrumb trail above a page <h1>. */
.cp-crumb { margin: 0 0 10px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.cp-crumb a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.cp-crumb a:hover { text-decoration: underline; }
.cp-crumb span[aria-hidden] { opacity: .5; margin: 0 2px; }

/* Official portals behind a category: name plus the abbreviation used in the
   citation column, so the reader can match either to the source map. */
.cp-srcs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.cp-srcs li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.6;
}
.cp-srcs li:first-child { border-top: 1px solid var(--line); }
.cp-abbr {
  font-size: 11.5px; font-weight: 750; letter-spacing: .02em;
  color: var(--ink-3); background: var(--card-2, #f4f6fb);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}

/* Sibling category links — keeps the crawl inside the domain. */
.cp-rel {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.cp-rel li a {
  display: block; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); text-decoration: none; color: var(--ink);
  font-size: 14.5px; font-weight: 600; line-height: 1.45;
}
.cp-rel li a:hover { border-color: var(--brand); color: var(--brand); }

/* Button row inside a paragraph. */
.g-ul-wrap { margin-top: 16px; }

.g-ch {
  scroll-margin-top: calc(var(--nav-h) + 20px);
  margin-bottom: 52px;
}

.g-ch:target .g-h2 { color: var(--brand-deep); }
.g-h2 {
  font-size: clamp(1.32rem, 2.6vw, 1.75rem);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.g-h2 .g-num {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-right: 10px;
  opacity: .85;
}

.g-lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  font-weight: 500;
}

.g-h3 {
  margin-top: 30px;
  font-size: 17.5px;
  letter-spacing: -.015em;
}

.g-p { margin-top: 13px; font-size: 15.5px; line-height: 1.78; color: var(--ink-2); }
.g-ul { margin: 14px 0 0; padding-left: 22px; }
.g-ul li { margin-top: 9px; font-size: 15.5px; line-height: 1.72; color: var(--ink-2); }

/* key/value facts — a definition list keeps the pair attached in the DOM */
.g-kv { margin: 18px 0 0; display: grid; gap: 0; }
.g-kv-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.g-kv-row:first-child { border-top: 1px solid var(--line); }
.g-kv dt { font-size: 13.5px; font-weight: 700; color: var(--ink-3); line-height: 1.55; }
.g-kv dd { margin: 0; font-size: 15px; line-height: 1.62; color: var(--ink); }

/* tables reuse the site .tbl shell, but sit inside the article */
.g-tbl { margin-top: 20px; }
.g-tbl caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 0;
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
}

.g-tbl table { min-width: 560px; }

/* timeline */
.g-tl { list-style: none; margin: 20px 0 0; padding: 0 0 0 4px; }
.g-tl-i {
  position: relative;
  padding: 0 0 20px 116px;
  border-left: 2px solid var(--line);
  margin-left: 6px;
}

.g-tl-i:last-child { border-left-color: transparent; padding-bottom: 0; }
.g-tl-i::before {
  content: "";
  position: absolute;
  left: -7px; top: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px #eaf0ff;
}

.g-tl-y {
  position: absolute;
  left: 14px; top: -2px;
  width: 92px;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.g-tl-t { font-size: 15px; line-height: 1.72; color: var(--ink-2); }

/* sources */
.g-src { margin-top: 16px; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.g-src em { font-style: normal; font-weight: 750; color: var(--ink-2); }
.g-src a { color: var(--brand); font-weight: 600; }
.g-src a:hover { text-decoration: underline; }

.kb-note {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.7;
}

.kb-cta { margin-top: 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.kb-cta-alt { font-size: 14.5px; font-weight: 650; color: var(--brand); }
.kb-cta-alt:hover { text-decoration: underline; }

/* ------------------------------------------- home: entry card to the KB -- */
/* Deliberately one card inside the existing .band — the home page has exactly
   one grey band, and doubling it is what made that section look broken. */
.kb-entry {
  margin-top: 22px;
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  transition: border-color .16s ease, transform .16s ease;
}

.kb-entry:hover { border-color: var(--brand); transform: translateY(-1px); }
.kb-entry h3 { font-size: 17px; }
.kb-entry p { margin-top: 7px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.kb-entry .kb-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
}

.kb-entry .kb-go svg { transition: transform .16s ease; }
.kb-entry:hover .kb-go svg { transform: translateX(3px); }

@media (max-width: 900px) {
  main .page-body.kb-page { padding: 28px 18px 48px; }
  .kb-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kb-toc { position: static; max-height: none; padding: 12px 14px; }
  .kb-toc-toggle { display: flex; }
  .kb-toc-list { display: none; margin-top: 10px; }
  .kb-toc-list.open { display: block; }
  .kb-toc-list ol { max-height: 46vh; overflow: auto; }
  .g-kv-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .g-tl-i { padding-left: 0; padding-top: 26px; }
  .g-tl-y { left: 18px; top: 0; }
}

/* Sources page: scope-and-limitations heading (US) */
.src-open { margin-top: 44px; font-size: 22px; }
