/* AI Beyond The Hype, Part 2: playbook site. neKey brand: navy, deep blue, mid blue, gold. */
:root {
  --navy: #0C3454;
  --deep: #004F78;
  --blue: #2E6EA1;
  --gold: #E3DB77;
  --gold-soft: #F6F2C9;
  --paper: #FFFFFF;
  --mist: #F1F5F9;
  --line: #D6E1EB;
  --ink: #0E2236;
  --muted: #4B6278;
  --ok: #2F7D4F;
  --warn: #8A5A00;
  --warn-bg: #FFF6E0;
  --code-bg: #0C3454;
  --code-ink: #EAF2F8;
  --canvas-dot: #C9D6E2;
  --node-fill: #FFFFFF;
  --sub-fill: #EEF4F9;
  --shadow: 0 1px 2px rgba(12, 52, 84, .08), 0 4px 14px rgba(12, 52, 84, .06);
  --radius: 10px;
  --sidebar-w: 300px;
  --font-body: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Saira Semi Condensed', 'Poppins', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1B2B;
    --mist: #0F2537;
    --line: #21405A;
    --ink: #E6EEF5;
    --muted: #9CB2C6;
    --blue: #7FB0DE;
    --deep: #0B3A5A;
    --gold-soft: #2C2A12;
    --warn: #F2C46B;
    --warn-bg: #2A2110;
    --code-bg: #06121E;
    --canvas-dot: #23405A;
    --node-fill: #10283D;
    --sub-fill: #0C2134;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1B2B; --mist: #0F2537; --line: #21405A; --ink: #E6EEF5; --muted: #9CB2C6;
  --blue: #7FB0DE; --deep: #0B3A5A; --gold-soft: #2C2A12; --warn: #F2C46B; --warn-bg: #2A2110;
  --code-bg: #06121E; --canvas-dot: #23405A; --node-fill: #10283D; --sub-fill: #0C2134;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #0C3454; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- layout ---------- */
.layout { background: linear-gradient(to right, #0C3454 var(--sidebar-w), transparent 0); display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: #0C3454; color: #E8EFF6; padding: 22px 20px 28px;
  display: flex; flex-direction: column; gap: 22px;
}
.sidebar a { color: #E8EFF6; }
.brand { display: block; }
.brand img { width: 150px; height: auto; display: block; }
.brand-sub { font-family: var(--font-display); font-size: 15px; line-height: 1.3; color: #B9CCDD; margin-top: 10px; letter-spacing: .01em; }

.setup { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 14px 14px 12px; }
.setup h2 { font-family: var(--font-display); font-size: 17px; margin: 0 0 2px; color: #fff; font-weight: 600; }
.setup p.hint { margin: 0 0 10px; font-size: 12.5px; color: #B9CCDD; line-height: 1.45; }
.setup label { display: block; font-size: 12.5px; color: #CFDCE8; margin: 10px 0 4px; }
.setup select, .setup input {
  width: 100%; font: inherit; font-size: 14px; color: #0C3454; background: #fff;
  border: 0; border-radius: 7px; padding: 8px 10px; min-height: 38px;
}
.setup .team-email { display: none; }
.setup.chat-email .team-email { display: block; }
.setup .saved { font-size: 12px; color: #9FB6CA; margin: 10px 0 0; }

.course h2 { font-family: var(--font-display); font-size: 17px; margin: 0 0 8px; color: #fff; font-weight: 600; }
.course ol { list-style: none; margin: 0; padding: 0; }
.course li a {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px; text-decoration: none; font-size: 14px; line-height: 1.3;
}
.course li a:hover { background: rgba(255, 255, 255, .08); }
.course li a[aria-current="page"] { background: var(--gold); color: #0C3454; font-weight: 600; }
.course .num {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .45);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.course a[aria-current="page"] .num { border-color: #0C3454; }
.course .num.done { background: var(--gold); border-color: var(--gold); color: #0C3454; }
.course .pct { font-size: 11.5px; opacity: .8; }
.course .divider { height: 1px; background: rgba(255, 255, 255, .12); margin: 8px 0; }
.side-foot { margin-top: auto; font-size: 12.5px; color: #B9CCDD; line-height: 1.5; }
.side-foot a { color: var(--gold); }

.topbar { display: none; }

main { min-width: 0; }
.content { max-width: 860px; margin: 0 auto; padding: 44px 40px 40px; }
.content.wide { max-width: 1040px; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; margin: 6px 0 12px; }
h2 { font-size: 28px; font-weight: 700; margin: 52px 0 12px; }
h3 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
p, li { max-width: 72ch; }
.kicker { font-family: var(--font-display); font-size: 17px; color: var(--blue); font-weight: 600; margin: 0; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 18px; max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; list-style: none; }
.meta li { font-size: 13.5px; background: var(--mist); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.small { font-size: 14px; color: var(--muted); }
kbd { font-family: var(--font-mono); font-size: .85em; background: var(--mist); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
code { font-family: var(--font-mono); font-size: .88em; background: var(--mist); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- callouts ---------- */
.leaders {
  border-left: 6px solid var(--gold); background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 26px 0;
}
.leaders h2 { font-size: 19px; margin: 0 0 6px; }
.leaders dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 6px 16px; }
.leaders dt { font-weight: 600; font-size: 14.5px; }
.leaders dd { margin: 0; font-size: 15px; }
.note, .warn { border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; font-size: 15px; }
.note { background: var(--mist); border: 1px solid var(--line); }
.warn { background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.warn strong { color: var(--warn); }
.note > :first-child, .warn > :first-child { margin-top: 0; }
.note > :last-child, .warn > :last-child { margin-bottom: 0; }
.deeper { border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; }
.deeper > summary { cursor: pointer; padding: 10px 16px; font-weight: 600; font-size: 15px; list-style: none; }
.deeper > summary::-webkit-details-marker { display: none; }
.deeper > summary::before { content: "+"; display: inline-block; width: 18px; color: var(--blue); font-weight: 700; }
.deeper[open] > summary::before { content: "\2212"; }
.deeper > div { padding: 0 18px 14px; font-size: 15px; }

/* ---------- env-specific blocks ---------- */
[data-when] { display: none; }
html[data-mail="microsoft"] [data-when~="mail=microsoft"],
html[data-mail="google"] [data-when~="mail=google"],
html[data-chat="teams"] [data-when~="chat=teams"],
html[data-chat="slack"] [data-when~="chat=slack"],
html[data-chat="email"] [data-when~="chat=email"],
html[data-chat="teams"] [data-when~="chat=notemail"],
html[data-chat="slack"] [data-when~="chat=notemail"],
html[data-model="openrouter"] [data-when~="model=openrouter"],
html[data-model="openai"] [data-when~="model=openai"],
html[data-model="anthropic"] [data-when~="model=anthropic"],
html[data-model="gemini"] [data-when~="model=gemini"],
html[data-model="openrouter"] [data-when~="model=notgemini"],
html[data-model="openai"] [data-when~="model=notgemini"],
html[data-model="anthropic"] [data-when~="model=notgemini"] { display: revert; }
span[data-when] { display: none !important; }
html[data-mail="microsoft"] span[data-when~="mail=microsoft"],
html[data-mail="google"] span[data-when~="mail=google"],
html[data-chat="teams"] span[data-when~="chat=teams"],
html[data-chat="slack"] span[data-when~="chat=slack"],
html[data-chat="email"] span[data-when~="chat=email"],
html[data-chat="teams"] span[data-when~="chat=notemail"],
html[data-chat="slack"] span[data-when~="chat=notemail"],
html[data-model="openrouter"] span[data-when~="model=openrouter"],
html[data-model="openai"] span[data-when~="model=openai"],
html[data-model="anthropic"] span[data-when~="model=anthropic"],
html[data-model="gemini"] span[data-when~="model=gemini"] { display: inline !important; }
.setup-pill { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); border: 1px solid var(--line); border-radius: 99px; padding: 0 9px; margin-right: 6px; vertical-align: 2px; }

/* ---------- workflow canvas ---------- */
.flow { margin: 26px 0 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.flow-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--mist); }
.flow-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.flow-setup { font-size: 13px; color: var(--muted); }
.flow-scroll { overflow-x: auto; background-color: var(--paper);
  background-image: radial-gradient(var(--canvas-dot) 1.2px, transparent 1.3px); background-size: 20px 20px; }
.flow-scroll svg { display: block; width: 100%; height: auto; }
.flow svg .edge { fill: none; stroke: var(--muted); stroke-width: 2.6; }
.flow svg .edge.ai { stroke: var(--blue); stroke-dasharray: 7 6; stroke-width: 2.2; }
.flow svg .port-label { font: 600 15px var(--font-body); fill: var(--muted); }
.flow svg .node-box { fill: var(--node-fill); stroke: var(--navy); stroke-width: 2; }
:root[data-theme="dark"] .flow svg .node-box, .flow svg .sub .node-box { stroke: var(--blue); }
.flow svg .sub .node-box { fill: var(--sub-fill); stroke-width: 1.6; }
.flow svg .node-label { font: 500 17px var(--font-body); fill: var(--ink); text-anchor: middle; }
.flow svg .node-icon { fill: none; stroke: var(--deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flow svg .node-icon { stroke: var(--blue); } :root:not([data-theme="light"]) .flow svg .node-box { stroke: var(--blue); } }
:root[data-theme="dark"] .flow svg .node-icon { stroke: var(--blue); }
.flow svg .ai-dot { fill: var(--gold); stroke: var(--navy); stroke-width: 1.2; }
.flow svg .bolt { fill: var(--gold); stroke: var(--navy); stroke-width: 1; }
.flow svg g.node { cursor: pointer; outline: none; }
.flow svg g.node:hover .node-box, .flow svg g.node:focus .node-box, .flow svg g.node.active .node-box { stroke: var(--gold); stroke-width: 3.5; }
.flow-info { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); min-height: 64px; }
.flow-info .what { font-size: 15px; }
.flow-info .what b { font-family: var(--font-display); font-size: 17px; display: block; margin-bottom: 2px; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); padding: 0 18px 14px; }
.legend span::before { content: ""; display: inline-block; width: 26px; height: 0; border-top: 2px solid var(--muted); vertical-align: middle; margin-right: 6px; }
.legend span.ai::before { border-top: 2px dashed var(--blue); }
.legend span.trig::before { width: 12px; height: 12px; border: 0; background: var(--gold); border-radius: 2px; transform: rotate(45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--font-body);
  border-radius: 8px; padding: 9px 16px; border: 2px solid var(--navy); background: var(--navy); color: #fff;
  cursor: pointer; text-decoration: none; min-height: 42px;
}
.btn:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--blue); color: var(--ink); background: transparent; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #0C3454; }
.btn.gold:hover { filter: brightness(.95); color: #0C3454; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.ghost):not(.gold) { background: var(--blue); border-color: var(--blue); color: #06121E; } }

/* ---------- steps ---------- */
.progress { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; font-size: 14px; color: var(--muted); }
.progress .bar { flex: 1; height: 8px; background: var(--mist); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; max-width: 340px; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 58px; max-width: none; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--navy); color: var(--ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
}
ol.steps > li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps > li.done::before { content: "\2713"; background: var(--gold); border-color: var(--gold); color: #0C3454; }
.step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.step-head h3 { margin: 4px 0 6px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: var(--paper); margin-top: 2px; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--navy); margin: 0; }
li.done .check { color: var(--ink); border-color: var(--gold); background: var(--gold-soft); }
ol.steps .body > :first-child { margin-top: 0; }
ol.steps .body ul, ol.steps .body ol { padding-left: 22px; }

/* ---------- copy blocks ---------- */
.copy { position: relative; margin: 12px 0 16px; }
.copy pre {
  margin: 0; background: var(--code-bg); color: var(--code-ink); font: 13.5px/1.6 var(--font-mono);
  padding: 16px 18px; padding-right: 96px; border-radius: var(--radius); white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto;
}
.copy .label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.copy button {
  position: absolute; right: 10px; top: 10px; font: 600 12.5px var(--font-body); color: #0C3454; background: var(--gold);
  border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer;
}
.copy .label + pre + button, .copy .label ~ button { top: 37px; }
.copy button.copied { background: #fff; }

/* test message cards */
.msgs { display: grid; gap: 12px; margin: 12px 0 18px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--paper); }
.msg header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.msg header b { font-family: var(--font-display); font-size: 16px; }
.msg header span { font-size: 13px; color: var(--muted); }
.msg p { margin: 4px 0 8px; font-size: 15px; }
.msg .expect { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.msg .expect b { color: var(--ink); }
.msg .row { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font: 600 12.5px var(--font-body); border: 1px solid var(--line); background: var(--mist); color: var(--ink); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.mini:hover { border-color: var(--blue); }
.mini.copied { background: var(--gold); border-color: var(--gold); color: #0C3454; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 600; }
.tbl-wrap { overflow-x: auto; }

/* video */
.clip { margin: 22px 0; border-radius: 14px; overflow: hidden; background: #0C3454; position: relative; }
.clip.ready { aspect-ratio: 16 / 9; }
.clip:not(.ready) .soon { position: static; padding: 18px 20px; text-align: left; place-items: start; }
.clip video { width: 100%; height: 100%; display: block; background: #000; }
.clip .soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #DCE7F1; padding: 20px; }
.clip .soon b { font-family: var(--font-display); font-size: 22px; color: #fff; display: block; }
.clip .soon span { font-size: 14px; }
.clip.ready .soon { display: none; }

/* cards on home */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; background: var(--paper);
}
.card:hover { border-color: var(--blue); color: var(--ink); box-shadow: var(--shadow); }
.card .n { font-family: var(--font-display); font-size: 15px; color: var(--blue); font-weight: 600; }
.card h3 { margin: 0; font-size: 21px; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.card .bar { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; margin-top: 8px; }
.card .bar i { display: block; height: 100%; width: 0; background: var(--gold); }

.hero { padding: 6px 0 4px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 70px); line-height: 1.02; max-width: 15ch; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; border-top: 3px solid var(--navy); padding-top: 12px; font-size: 15px; }
.how li::before { content: counter(how); font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--blue); display: block; line-height: 1; margin-bottom: 4px; }
.how li b { display: block; font-size: 16px; }

/* decision guide */
.ladder { display: grid; gap: 12px; margin: 18px 0; }
.rung { display: grid; grid-template-columns: 54px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rung .hex { width: 46px; height: 46px; display: grid; place-items: center; background: #0C3454; color: var(--gold); font: 700 20px var(--font-display);
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); }
.rung h3 { margin: 2px 0 2px; }
.rung p { margin: 0; font-size: 15px; }
.rung .act { font-style: italic; color: var(--blue); }
.quiz { display: grid; gap: 14px; margin: 16px 0; }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.q p { margin: 0 0 10px; font-weight: 500; }
.q .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q .opts button { font: 600 14px var(--font-body); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.q .opts button:hover { border-color: var(--blue); }
.q .opts button.right { background: var(--gold); border-color: var(--gold); color: #0C3454; }
.q .opts button.wrong { border-color: var(--warn); color: var(--warn); }
.q .why { display: none; margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.q.answered .why { display: block; }
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.tier h3 { margin: 0 0 4px; font-size: 18px; }
.tier p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* worksheet */
.sheet { border: 2px solid var(--navy); border-radius: 14px; padding: 22px; display: grid; gap: 16px; }
.sheet label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 4px; }
.sheet input, .sheet textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.sheet textarea { min-height: 76px; resize: vertical; }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sheet .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* next / prev */
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 50px 0 10px; }
.pager a { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; text-decoration: none; color: var(--ink); }
.pager a:hover { border-color: var(--blue); }
.pager a span { display: block; font-size: 13px; color: var(--muted); }
.pager a b { font-family: var(--font-display); font-size: 18px; }
.pager a.next { text-align: right; }

/* footer */
.site-foot { background: #004F78; border-top: 3px solid var(--gold); color: #DCE7F1; padding: 34px 40px 30px; margin-top: 40px; }
.site-foot .in { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.site-foot h2 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.site-foot p { margin: 0 0 8px; font-size: 14.5px; }
.site-foot a { color: var(--gold); }
.site-foot .contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin: 4px 0; text-decoration: none; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 14px; font-size: 12.5px; color: #A9BED1; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(120%); background: #0C3454; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 60; transition: transform .25s; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- mobile ---------- */
@media (max-width: 960px) {
  .layout { display: block; background: none; }
  .topbar {
    display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 10px;
    background: #0C3454; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar img { height: 30px; width: auto; }
  .topbar button { font: 600 14px var(--font-body); color: #0C3454; background: var(--gold); border: 0; border-radius: 7px; padding: 8px 14px; min-height: 40px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(88vw, 340px); z-index: 50; transform: translateX(-102%); transition: transform .25s; height: 100%; padding-top: max(22px, env(safe-area-inset-top)); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 18, 30, .55); }
  .content { padding: 26px 18px 30px; }
  .how { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .leaders dl { grid-template-columns: 1fr; gap: 2px 0; }
  .leaders dd { margin-bottom: 8px; }
  .site-foot { padding: 28px 18px; }
  .site-foot .in { grid-template-columns: 1fr; }
  ol.steps > li { padding-left: 48px; }
  .step-head { flex-direction: column; gap: 4px; }
  .sheet .two { grid-template-columns: 1fr; }
  .flow-info { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .sidebar, .topbar, .site-foot, .flow-actions, .pager, .check, .copy button { display: none !important; }
  .layout { display: block; }
  .content { max-width: none; padding: 0; }
  [data-when] { display: none !important; }
}
ol.steps[start="4"] { counter-reset: step 3; }
