/* Awareness to Action — Human Aid & Advocacy
   Brand: yellow / black / red on warm paper, Poppins (as in the printed guide) */

:root {
  --yellow: #ffcd00;
  --yellow-soft: #fff6cc;
  --ink: #0b0b0b;
  --ink-2: #2a2a28;
  --muted: #5d5c57;
  --red: #d3121b;
  --green: #2e9b47;
  --paper: #fbfaf7;
  --card: #f1f0ec;
  --line: #e6e3da;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 64px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: .3em 0; }
strong { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--yellow); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.hl { color: var(--red); }
figure { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 32px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 40px; width: auto; }
.brand-title { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #cfcfcf; white-space: nowrap; border-left: 1px solid #333; padding-left: 12px; }
.header-current { flex: 1; min-width: 0; font-size: 13px; color: #bdbdbd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; opacity: 0; transition: opacity .2s; }
.header-current.show { opacity: 1; }
.header-current b { color: var(--yellow); font-weight: 800; margin-right: 6px; }
.header-actions { display: flex; gap: 8px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost-light { border-color: #444; color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--yellow); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.progress { position: absolute; left: 0; bottom: -3px; height: 3px; background: var(--yellow); width: 0; }

@media (max-width: 760px) {
  .brand-title, .header-current, .hide-sm { display: none; }
  .brand img { height: 34px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 3vw, 32px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(48px, 8.2vw, 104px); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .92; margin: 14px 0 10px; }
.hero h1 .action { display: inline-block; background: var(--ink); color: var(--white); padding: 0 .12em; margin-top: .06em; position: relative; }
.hero h1 .action::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(90deg, #149954 0 100%); }
.hero h1 .action::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: .32em; background: var(--red); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero h1 .action span { position: relative; z-index: 1; padding-left: .2em; }
.rule { width: 96px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 22px 0; }
.hero .sub { font-size: clamp(20px, 2.3vw, 28px); font-weight: 600; line-height: 1.3; max-width: 22ch; margin-bottom: 18px; }
.badge { display: inline-block; background: var(--yellow); font-weight: 800; padding: 6px 14px; border-radius: 6px; font-size: 15px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-cover { justify-self: center; position: relative; max-width: 400px; width: 100%; }
.hero-cover img { border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06); transform: rotate(2deg); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-cover { max-width: 260px; order: -1; }
}

/* ---------- Contents grid ---------- */
.contents { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 3vw, 32px); }
.contents-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.contents h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; text-transform: uppercase; }
.contents-head p { margin: 0; color: var(--ink-2); }
.contents-head em { color: var(--muted); }
.toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.toc-grid li { margin: 0; }
.toc-card {
  display: flex; gap: 16px; align-items: stretch; height: 100%;
  background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  border: 1px solid transparent;
}
.toc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--white); border-color: var(--yellow); }
.toc-num { background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 28px; min-width: 76px; display: grid; place-items: center; }
.toc-num svg { width: 26px; height: 26px; }
.toc-body { padding: 16px 16px 16px 0; flex: 1; }
.toc-body strong { display: block; font-size: 15px; font-weight: 800; text-transform: uppercase; line-height: 1.25; margin-bottom: 4px; }
.toc-body span { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }
.toc-card.is-intro { background: var(--white); border-color: var(--yellow); }

/* ---------- Main layout ---------- */
.layout {
  max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
}
.sidebar { position: relative; }
.sidebar-inner { position: sticky; top: calc(var(--header-h) + 28px); max-height: calc(100vh - var(--header-h) - 56px); overflow-y: auto; padding: 0 4px 24px 0; }
.side-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.side-nav, .side-nav ul { list-style: none; padding: 0; margin: 0; }
.side-nav > li { margin: 0; }
.side-nav a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.side-nav a:hover { background: var(--card); }
.side-nav .n { font-weight: 800; font-size: 12px; color: var(--muted); min-width: 18px; }
.side-nav > li.active > a { background: var(--ink); color: var(--white); font-weight: 600; }
.side-nav > li.active > a .n { color: var(--yellow); }
.side-nav ul { display: none; margin: 4px 0 8px 28px; border-left: 2px solid var(--line); }
.side-nav li.active ul { display: block; }
.side-nav ul a { font-size: 13px; padding: 5px 10px; border-radius: 0 6px 6px 0; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); }
.side-nav ul a.active { border-left-color: var(--yellow); color: var(--ink); font-weight: 600; background: transparent; }
.side-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

main { min-width: 0; }
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
}

/* ---------- Chapters ---------- */
.chapter { padding: clamp(56px, 8vw, 96px) 0 24px; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
.chapter-head { margin-bottom: 32px; }
.chapter-num { font-size: clamp(56px, 8vw, 88px); font-weight: 900; color: var(--yellow); line-height: .9; letter-spacing: -.04em; }
.chapter-head h2 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 900; text-transform: uppercase; letter-spacing: -.025em; line-height: .98; margin-top: 4px; }
.chapter-head .kicker { font-size: clamp(16px, 2vw, 22px); font-weight: 800; text-transform: uppercase; margin-top: 10px; letter-spacing: .01em; }
.lead { font-size: clamp(19px, 2.1vw, 23px); line-height: 1.45; margin-bottom: 1.2em; }

.q-head {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(20px, 2.4vw, 26px); font-weight: 800;
  margin: 48px 0 18px;
}
.q-head::before { content: ""; width: 6px; align-self: stretch; min-height: 28px; background: var(--yellow); border-radius: 3px; }
.sub-head { font-size: 19px; font-weight: 800; margin: 40px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.sub-head .idx { font-size: 13px; font-weight: 800; background: var(--yellow); border-radius: 999px; padding: 2px 9px; }
.mini-head { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.mini-head.red { color: var(--red); }

.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.y { border-color: var(--yellow); }
.card.soft { background: var(--card); border-color: transparent; }
.card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card.dark .mini-head { color: var(--yellow); }
.card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card > :last-child { margin-bottom: 0; }
.panel { background: var(--card); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 18px 0; }

.callout {
  background: var(--ink); color: var(--white); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px); margin: 32px 0;
  font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; text-align: center; line-height: 1.35;
}
.callout.yellow-text { color: var(--yellow); text-transform: uppercase; letter-spacing: .01em; }
.callout .y { color: var(--yellow); }
.quote { font-style: italic; font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); text-align: center; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid #333; }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 28px; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }
ul.crosses li::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center/10px no-repeat; }
ul.dots li::marker { color: var(--yellow); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--yellow); background: var(--white); border-radius: 999px;
  padding: 6px 14px; font-size: 13.5px; font-weight: 700; text-decoration: none; line-height: 1.3;
}
a.chip:hover { background: var(--yellow); }
a.chip::after { content: "↗"; font-size: 12px; opacity: .6; }
.chip.grey { background: var(--card); border-color: var(--card); }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.split-row { display: grid; grid-template-columns: minmax(160px, .4fr) 1fr; gap: 18px; align-items: center; }
.split-row.three { grid-template-columns: minmax(140px, .35fr) 1fr 1fr; align-items: start; }
@media (max-width: 720px) { .split-row, .split-row.three { grid-template-columns: minmax(0, 1fr); gap: 8px; } }

/* ---------- Intro ---------- */
.intro-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 28px 0; }
.intro-split .card h3 { font-size: 24px; }
.intro-split .card.y h3 { color: var(--red); }
.intro-split .card.dark h3 { color: var(--yellow); }
.intro-split .card.dark strong { color: var(--yellow); }
.intro-photo { position: relative; margin-top: 32px; border-radius: var(--radius); overflow: hidden; }
.intro-photo img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.intro-photo .callout { position: absolute; left: 16px; right: 16px; bottom: 16px; margin: 0; border-top: 4px solid var(--yellow); }
@media (max-width: 720px) {
  .intro-split { grid-template-columns: minmax(0, 1fr); }
  .intro-photo img { aspect-ratio: 4/3; }
  .intro-photo .callout { position: static; border-radius: 0; }
}

/* ---------- Key messages (accordion) ---------- */
.km-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.km-toolbar p { margin: 0; color: var(--muted); font-size: 14px; }
.km { background: var(--white); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.km[open] { border-color: var(--yellow); box-shadow: var(--shadow); }
.km summary { list-style: none; display: flex; align-items: stretch; cursor: pointer; }
.km summary::-webkit-details-marker { display: none; }
.km .num { background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 26px; min-width: 72px; display: grid; place-items: center; }
.km .title { flex: 1; padding: 18px 18px; font-weight: 800; color: var(--red); font-size: 17px; line-height: 1.35; align-self: center; }
.km .chev { width: 48px; display: grid; place-items: center; color: var(--muted); }
.km .chev svg { width: 20px; height: 20px; transition: transform .2s; }
.km[open] .chev svg { transform: rotate(180deg); }
.km .body { padding: 4px 22px 20px 94px; }
.km .body ul { padding-left: 1.1em; }
.km .body li::marker { color: var(--yellow); }
.km .actions { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 600px) {
  .km .num { min-width: 54px; font-size: 20px; }
  .km .title { font-size: 15.5px; padding: 14px; }
  .km .body { padding: 2px 16px 18px 20px; }
}

/* ---------- Tool feature ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.tool-logo { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.tool-title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.tool-title span { font-weight: 500; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; margin: 16px 0; }
.step { background: var(--white); border: 1px solid var(--yellow); border-radius: var(--radius); padding: 20px; }
.step .lbl { font-size: 26px; font-weight: 900; color: var(--yellow); line-height: 1; letter-spacing: -.02em; }
.step h4 { font-size: 16px; font-weight: 800; margin: 8px 0 8px; }
.step p { font-size: 14.5px; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.phone-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.phone { border: 10px solid var(--ink); border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); max-width: 260px; }
.phone-split .steps { grid-template-columns: minmax(0, 1fr); margin: 0; }
@media (max-width: 760px) { .phone-split { grid-template-columns: minmax(0, 1fr); } .phone { max-width: 220px; margin: 0 auto; } }

/* ---------- Minute timeline (interactive) ---------- */
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 38px; height: 4px; background: var(--yellow); border-radius: 2px; z-index: 0; }
.timeline li { margin: 0; position: relative; z-index: 1; }
.timeline label { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; cursor: pointer; padding: 0 4px; font-size: 14px; line-height: 1.4; }
.timeline input { position: absolute; opacity: 0; pointer-events: none; }
.timeline .dot {
  width: 78px; height: 78px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; line-height: 1; font-weight: 900; font-size: 28px;
  border: 4px solid var(--card); box-shadow: 0 0 0 2px var(--yellow); transition: background .2s, color .2s;
}
.timeline .dot small { display: block; font-size: 11px; font-weight: 700; margin-top: -10px; }
.timeline input:checked + .dot { background: var(--ink); color: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.timeline input:focus-visible + .dot { outline: 3px solid var(--ink); outline-offset: 3px; }
.timeline input:checked ~ .txt { text-decoration: line-through; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; color: var(--muted); }
.timeline-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.meter { flex: 1; min-width: 120px; max-width: 260px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s; }
.done-msg { font-weight: 700; color: var(--ink); }
@media (max-width: 640px) {
  .timeline { grid-auto-flow: row; gap: 10px; }
  .timeline::before { left: 38px; right: auto; top: 20px; bottom: 20px; width: 4px; height: auto; }
  .timeline label { flex-direction: row; text-align: left; gap: 16px; }
  .timeline .dot { width: 64px; height: 64px; font-size: 22px; flex: none; }
}

/* ---------- Tabs ---------- */
.tabs { margin: 18px 0; }
.tablist { display: flex; gap: 6px; overflow-x: auto; padding: 4px; background: var(--card); border-radius: 999px; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--muted);
}
.tab img { width: 22px; height: 22px; }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.tabpanel { padding: 22px 4px 0; }
.tabpanel .intro-line { font-style: italic; font-size: 17px; margin-bottom: 14px; }
.tabpanel .intro-line strong { font-style: italic; }

/* ---------- Respond / don't ---------- */
.decide { background: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); margin: 32px 0; }
.decide h3 { color: var(--yellow); font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.decide .cols-2 { gap: 14px; }
.decide .card h4 { font-size: 17px; font-weight: 800; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.decide .card h4.no { color: var(--red); }
.ico-c { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: white; font-size: 14px; flex: none; }

/* ---------- Boycott ---------- */
.ask-box { border: 1px solid var(--yellow); border-radius: var(--radius); padding: 22px; background: var(--white); }
.ask-box .big { font-size: 22px; font-style: italic; font-weight: 800; margin: 6px 0 12px; }
.ask-box ul { list-style: none; padding: 0; }
.ask-box li { font-weight: 700; padding-left: 16px; position: relative; }
.ask-box li::before { content: "•"; position: absolute; left: 0; }
.ask-box li b { color: var(--red); }

.qr-card { display: flex; gap: 18px; align-items: center; }
.qr { width: 104px; height: 104px; flex: none; border-radius: 8px; background: white; padding: 6px; border: 1px solid var(--line); }
.app-icons { display: flex; flex-direction: column; gap: 8px; flex: none; }
.app-icons img { width: 48px; height: 48px; border-radius: 12px; }

.switch-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.switch-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding: 6px 6px 8px 0; }
.switch-table td { border-bottom: 1px solid var(--line); padding: 5px 6px 5px 0; vertical-align: middle; }
.switch-table input[type=text] { width: 100%; border: 0; background: var(--card); font: inherit; padding: 8px 4px; border-radius: 6px; min-width: 0; }
.switch-table input[type=text]:focus { background: var(--yellow-soft); outline: none; }
.switch-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.switch-table tr.is-done input[type=text] { text-decoration: line-through; color: var(--muted); }
.row-del { border: 0; background: transparent; color: var(--muted); font-size: 18px; width: 30px; height: 30px; border-radius: 6px; }
.row-del:hover { background: var(--card); color: var(--red); }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.saved-note { font-size: 12px; color: var(--muted); }

.five-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 16px 0; list-style: none; padding: 0; }
.five-steps li { border-top: 6px solid var(--yellow); padding-top: 10px; margin: 0; }
.five-steps .n { font-size: 30px; font-weight: 900; color: var(--yellow); line-height: 1; }
.five-steps b { display: block; margin: 6px 0 4px; font-size: 15px; }
.five-steps span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .five-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .five-steps { grid-template-columns: minmax(0, 1fr); } }

.download { display: flex; gap: 18px; align-items: center; background: var(--card); border-radius: var(--radius-sm); padding: 16px; margin-top: 18px; }
.download h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.download p { margin: 0 0 4px; font-size: 14.5px; }
.download a.link { font-weight: 800; color: #1f4fd1; }
@media (max-width: 520px) { .download .qr, .qr-card .qr { display: none; } }

.example-ask { background: var(--yellow); border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 800; font-size: 17px; }
.example-bad { background: var(--card); border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 800; font-style: italic; }

.weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.week { background: var(--card); border-radius: var(--radius-sm); padding: 16px; }
.week small { color: var(--red); font-weight: 800; letter-spacing: .08em; font-size: 11px; }
.week h4 { font-size: 20px; font-weight: 800; margin: 2px 0 6px; }
.week p { font-size: 14px; margin: 0; }
.concentrate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.concentrate .label { font-weight: 800; margin-right: 8px; }
.concentrate .pill { background: var(--ink); color: var(--white); border-radius: 10px; padding: 10px 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.concentrate .pill b { color: var(--yellow); font-size: 24px; font-weight: 900; }
@media (max-width: 720px) { .weeks { grid-template-columns: minmax(0, 1fr); } }

.brand-wall { background: var(--ink); color: var(--yellow); border-radius: var(--radius-sm); padding: 12px 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin: 28px 0 12px; }
.logos { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.logos img { width: 100%; }
.photo { border-radius: var(--radius); overflow: hidden; margin: 18px 0; }
.photo img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.impact { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; background: var(--card); border-radius: var(--radius); padding: 16px; }
.impact-cta { background: var(--ink); border-radius: var(--radius-sm); padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.impact-cta .qr { width: 130px; height: 130px; }
.track-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.track-grid .t { background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; line-height: 1.3; }
.track-grid .t i { font-style: normal; background: var(--yellow); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.track-label { font-weight: 800; font-size: 14px; grid-column: 1 / -1; }
.impact .callout { grid-column: 1 / -1; margin: 4px 0 0; font-size: 16px; }
@media (max-width: 720px) { .impact { grid-template-columns: minmax(0, 1fr); } .track-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Media techniques ---------- */
.tech { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tech .card { border-color: var(--yellow); padding: 18px; }
.tech h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.tech h4 span { color: var(--red); margin-right: 6px; }
.tech p { font-size: 14.5px; margin: 0; }
@media (max-width: 640px) { .tech { grid-template-columns: minmax(0, 1fr); } }

.warn { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px 24px; margin: 20px 0; }
.warn h4 { color: var(--yellow); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.warn p { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; margin: 16px 0; }
.feature-grid > div { border-top: 5px solid var(--yellow); padding-top: 12px; }
.feature-grid h4 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feature-grid p { font-size: 14.5px; margin: 0; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }

.compare { background: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); margin: 28px 0; color: var(--white); }
.compare h3 { color: var(--yellow); font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.compare .row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; background: var(--white); color: var(--ink); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 8px; align-items: center; }
.compare .row b { font-size: 18px; font-weight: 800; }
.compare .row p { margin: 0; font-size: 14.5px; }
.compare .foot { margin: 14px 0 0; }
.compare .foot strong { color: var(--yellow); }
@media (max-width: 560px) { .compare .row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.numbered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 14px 0; }
.numbered li { background: var(--card); border-radius: var(--radius); padding: 18px; margin: 0; }
.numbered .head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px; line-height: 1.2; margin-bottom: 8px; }
.numbered .head i { font-style: normal; background: var(--yellow); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; flex: none; }
.numbered p { margin: 0; font-size: 14.5px; }
@media (max-width: 760px) { .numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .numbered { grid-template-columns: minmax(0, 1fr); } }

.avenues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.avenues .card { border-color: var(--yellow); padding: 18px; }
.avenues h4 { color: var(--red); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.avenues p { font-size: 14.5px; margin: 0; }
@media (max-width: 760px) { .avenues { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .avenues { grid-template-columns: minmax(0, 1fr); } }

.checkgrid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.check { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 700; font-size: 14px; cursor: pointer; border: 1.5px solid transparent; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.check:has(input:checked) { border-color: var(--ink); }
.check.red { color: var(--red); }

/* ---------- Parliament ---------- */
.case { background: var(--yellow); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin: 28px 0; }
.case .tag { font-size: 12px; font-weight: 800; letter-spacing: .3em; }
.case h3 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 900; text-transform: uppercase; margin: 6px 0 18px; letter-spacing: -.02em; line-height: 1.05; }
.case h3 span { background: var(--ink); color: var(--yellow); padding: 0 .2em; border-radius: 8px; display: inline-block; }

.issues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.issue { border: 1px solid var(--yellow); background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.issue .n { font-size: 36px; font-weight: 900; color: var(--yellow); line-height: 1; }
.issue h4 { color: var(--red); font-size: 16px; font-weight: 800; text-transform: uppercase; margin: 8px 0 10px; line-height: 1.25; }
.issue p { font-size: 14.5px; }
.issue .ask { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; margin-top: auto; }
.issue .camp { margin-top: 12px; display: grid; gap: 8px; }
.issue .camp-box { background: var(--ink); color: var(--white); border-radius: var(--radius-sm); padding: 10px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 13.5px; line-height: 1.3; }
.issue .camp-box .qr { width: 70px; height: 70px; padding: 0; border: 0; }
.issue .camp-box b { color: var(--yellow); }
@media (max-width: 860px) { .issues { grid-template-columns: minmax(0, 1fr); } }

.ticklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0; }
.ticklist li { background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px 12px 38px; position: relative; margin: 0; font-size: 14.5px; }
.ticklist li::before { content: "✓"; position: absolute; left: 14px; top: 11px; color: var(--green); font-weight: 900; }
@media (max-width: 760px) { .ticklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .ticklist { grid-template-columns: minmax(0, 1fr); } }

.asks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.asks li { margin: 0; }
.asks label { display: flex; gap: 10px; height: 100%; background: var(--white); border-left: 4px solid var(--yellow); border-radius: 6px; padding: 12px; font-weight: 700; font-size: 14px; line-height: 1.3; cursor: pointer; }
.asks input { accent-color: var(--ink); width: 16px; height: 16px; flex: none; margin-top: 1px; }
.asks label:has(input:checked) { background: var(--ink); color: var(--white); }
@media (max-width: 860px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .asks { grid-template-columns: minmax(0, 1fr); } }
.ask-tray { display: none; background: var(--yellow-soft); border: 1px dashed var(--yellow); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin-top: 4px; align-items: center; gap: 12px; flex-wrap: wrap; }
.ask-tray.show { display: flex; }
.ask-tray span { flex: 1; min-width: 200px; }

.flow { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px); margin: 30px 0; border-top: 8px solid var(--yellow); }
.flow h3 { color: var(--yellow); text-align: center; font-size: clamp(22px, 3vw, 28px); font-weight: 800; margin-bottom: 26px; }
.flow ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow li { text-align: center; margin: 0; position: relative; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 26px; color: var(--yellow); font-size: 22px; font-weight: 700; }
.flow .circ { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid #555; display: grid; place-items: center; margin: 0 auto 12px; color: var(--yellow); }
.flow .circ svg { width: 30px; height: 30px; }
.flow b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.flow span { font-size: 13px; color: #bdbdbd; display: block; line-height: 1.4; }
@media (max-width: 760px) {
  .flow ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 14px; text-align: left; padding-bottom: 18px; }
  .flow li:not(:last-child)::after { content: ""; right: auto; left: 31px; top: 64px; bottom: 0; width: 2px; background: #444; }
  .flow .circ { width: 64px; height: 64px; margin: 0; grid-row: span 2; }
  .flow b { align-self: end; }
}

.prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.say-dont { background: var(--card); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; margin-bottom: 10px; }
.say { background: var(--yellow); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 800; font-size: 14.5px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.copy-mini { border: 0; background: rgba(0,0,0,.08); border-radius: 6px; font-size: 11px; font-weight: 700; padding: 4px 8px; flex: none; }
.copy-mini:hover { background: var(--ink); color: var(--yellow); }
@media (max-width: 720px) { .prep-grid { grid-template-columns: minmax(0, 1fr); } }

.advice { list-style: none; padding: 0; margin: 0; counter-reset: adv; }
.advice > li { position: relative; padding-left: 56px; margin: 0 0 20px; counter-increment: adv; }
.advice > li::before { content: counter(adv); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.advice .note { font-size: 13.5px; color: var(--ink-2); }

.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; margin: 20px 0; list-style: none; padding: 0; }
.ladder li { background: var(--card); border-radius: var(--radius-sm); padding: 14px 12px; border-top: 6px solid var(--yellow); margin: 0; font-size: 13.5px; line-height: 1.4; }
.ladder li:nth-child(1) { min-height: 190px; }
.ladder li:nth-child(2) { min-height: 220px; }
.ladder li:nth-child(3) { min-height: 250px; }
.ladder li:nth-child(4) { min-height: 280px; }
.ladder li:nth-child(5) { min-height: 310px; }
.ladder li:nth-child(6) { min-height: 340px; background: var(--ink); color: var(--white); }
.ladder small { color: var(--red); font-weight: 800; letter-spacing: .18em; font-size: 10.5px; display: block; }
.ladder b { display: block; font-size: 18px; font-weight: 800; margin: 2px 0 6px; }
.ladder li:nth-child(6) b { color: var(--yellow); }
@media (max-width: 860px) {
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .ladder li { min-height: 0 !important; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 0 12px; }
  .ladder li small, .ladder li b { grid-column: 1; }
  .ladder li span { grid-column: 2; grid-row: 1 / span 2; }
}

.tracker-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); }
.tracker { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tracker th { background: var(--ink); color: var(--yellow); text-align: left; font-size: 12.5px; font-weight: 700; padding: 10px; white-space: nowrap; }
.tracker td { border-top: 1px solid var(--line); padding: 2px; }
.tracker td + td { border-left: 1px solid var(--line); }
.tracker input { width: 100%; border: 0; font: inherit; padding: 9px 8px; background: transparent; border-radius: 4px; }
.tracker input:focus { outline: none; background: var(--yellow-soft); }
.tracker td:last-child { width: 36px; text-align: center; }

/* ---------- Movement ---------- */
.forms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.forms > div { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 22px; }
.forms svg { width: 34px; height: 34px; color: var(--yellow); }
.forms h4 { color: var(--yellow); font-size: 28px; font-weight: 900; margin: 10px 0 4px; letter-spacing: -.01em; }
.forms p { margin: 0; }
.forms p b { color: var(--yellow); }
@media (max-width: 720px) { .forms { grid-template-columns: minmax(0, 1fr); } }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.org-table { display: grid; gap: 8px; }
.org-row { display: grid; grid-template-columns: 1fr 1.2fr .9fr; gap: 16px; background: var(--white); border-left: 4px solid var(--yellow); border-radius: 6px; padding: 12px 16px; align-items: center; font-size: 14.5px; }
.org-row.head { background: transparent; border-left-color: transparent; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-bottom: 0; }
.org-row b { font-weight: 800; }
.org-row .ex { display: flex; flex-direction: column; gap: 2px; }
.org-row .ex a { color: #1f4fd1; font-weight: 700; }
.org-row[hidden] { display: none; }
@media (max-width: 640px) {
  .org-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .org-row.head { display: none; }
}
.org-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.org-cards .card { border-color: var(--yellow); }
.org-cards h4 { color: var(--red); font-size: 17px; font-weight: 800; }
.org-cards a.url { color: #1f4fd1; font-size: 14px; display: inline-block; margin-bottom: 8px; }
.org-cards p { font-size: 14.5px; margin: 0; }
@media (max-width: 640px) { .org-cards { grid-template-columns: minmax(0, 1fr); } }

.contrib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 12px 0; }
.contrib li { background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14.5px; margin: 0; line-height: 1.35; }
.contrib i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 800; flex: none; }
@media (max-width: 560px) { .contrib { grid-template-columns: minmax(0, 1fr); } }

.commit { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.commit > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; border: 1px solid var(--yellow); border-radius: var(--radius); padding: 16px; background: var(--white); margin: 0; }
.commit .n { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 18px; }
.commit h4 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.commit p { margin: 0; font-size: 14.5px; }
.review-q { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.review-q label { background: var(--yellow); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 800; font-size: 13.5px; display: flex; flex-direction: column; gap: 6px; }
.review-q textarea { font: inherit; font-weight: 400; font-size: 13px; border: 0; border-radius: 6px; padding: 6px 8px; min-height: 54px; resize: vertical; margin-top: auto; background: rgba(255,255,255,.75); }
.review-q textarea:focus { outline: 2px solid var(--ink); background: white; }
@media (max-width: 760px) { .review-q { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Resources ---------- */
.res-search { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 16px; margin: 14px 0 20px; max-width: 460px; }
.res-search:focus-within { border-color: var(--ink); }
.res-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.res-search input { border: 0; outline: none; font: inherit; flex: 1; padding: 8px 0; background: transparent; min-width: 0; }
.res-block { border: 1px solid var(--yellow); border-radius: var(--radius); background: var(--white); padding: clamp(18px, 3vw, 26px); margin-bottom: 16px; }
.res-block h3 { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.res-list li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.res-list li[hidden] { display: none; }
.res-list a { text-decoration: none; display: block; }
.res-list a:hover .t { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.res-list .t { font-weight: 600; }
.res-list .u { display: block; font-size: 12px; color: #1f4fd1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-list .by { color: var(--muted); }
.res-empty { color: var(--muted); font-size: 14px; display: none; }
.covers { border-radius: var(--radius-sm); overflow: hidden; margin-top: 18px; }
@media (max-width: 640px) { .res-list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Achieved ---------- */
.achieved { margin-top: 48px; }

/* ---------- Footer / donate ---------- */
.donate { background: var(--ink); color: var(--white); margin-top: 80px; }
.donate-inner { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 3vw, 32px); text-align: center; }
.donate img { width: 240px; margin: 0 auto 28px; }
.donate p { color: #e7e7e7; }
.donate h2 { color: var(--yellow); font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; margin: 26px 0 20px; letter-spacing: -.02em; }
.donate .url-box { display: inline-block; max-width: 100%; overflow-wrap: anywhere; border: 1.5px solid var(--yellow); border-radius: 12px; padding: 14px 26px; color: var(--white); text-decoration: underline; }
.donate .home { display: block; margin-top: 36px; color: var(--yellow); font-weight: 800; font-size: 20px; }
.footnote { border-top: 1px solid #222; padding: 18px; text-align: center; font-size: 12.5px; color: #8d8d8d; }
.footnote a { color: #cfcfcf; }

/* ---------- Mobile chapter bar ---------- */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; gap: 6px;
  background: var(--ink); color: var(--white); border-radius: 18px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(120%); transition: transform .25s;
}
.mbar.show { transform: none; }
.mbar button { background: transparent; border: 0; color: var(--white); height: 44px; border-radius: 12px; }
.mbar .nav-btn { width: 44px; display: grid; place-items: center; }
.mbar .nav-btn:disabled { opacity: .3; }
.mbar .nav-btn svg { width: 20px; height: 20px; }
.mbar .cur { flex: 1; text-align: left; padding: 0 10px; min-width: 0; display: flex; align-items: center; gap: 10px; background: #1d1d1d; }
.mbar .cur b { color: var(--yellow); font-weight: 900; }
.mbar .cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
@media (max-width: 1023px) { .mbar { display: flex; } body { padding-bottom: 80px; } }

.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--paper); border-radius: 22px 22px 0 0; max-height: 82vh; overflow-y: auto; transform: translateY(100%); transition: transform .25s; padding: 10px 16px 24px; }
.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
.sheet-open .sheet { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: #ccc; margin: 4px auto 14px; }
.sheet .side-nav ul { display: block; }
.sheet .side-nav li:not(.active) ul { display: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--ink); color: var(--yellow); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); border: 0; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 1023px) { .to-top { display: none; } }

@media print {
  .site-header, .sidebar, .mbar, .to-top, .hero-cta, .table-actions, .km-toolbar, .km .actions, .res-search { display: none !important; }
  .layout { display: block; }
  details.km > .body { display: block; }
  .chapter { break-before: page; }
}

@media (max-width: 560px) {
  .tool { grid-template-columns: minmax(0, 1fr); }
  .tool-logo { order: -1; width: 60px; height: 60px; border-radius: 14px; }
}
