/* User guide: alternating rows of explanation and a phone screenshot. */

.guide-hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--outline-soft);
}
.guide-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.guide-hero .lede {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 62ch;
  margin: 0;
}

/* Jump list, so a 15-step page is navigable without scrolling it all. */
.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}
.guide-toc a {
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.guide-toc a:hover {
  border-color: var(--brand);
  color: var(--text);
}

.guide-section {
  padding: 64px 0 8px;
  scroll-margin-top: 90px;
}
.guide-section > h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.guide-section > .section-sub {
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 0 8px;
}

.step {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--outline-soft);
}
.step:first-of-type {
  border-top: none;
}
/* Mirrored rows keep a long page from reading as one column of pictures. */
.step.flip {
  grid-template-columns: 300px 1fr;
}
.step.flip .step-body {
  order: 2;
}
.step.flip .shot {
  order: 1;
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.step-body h3 {
  font-size: 20px;
  margin: 8px 0 10px;
  letter-spacing: -0.01em;
}
.step-body p {
  color: var(--text-muted);
  margin: 0 0 12px;
  font-size: 15px;
}
.step-body p:last-child {
  margin-bottom: 0;
}
.step-body strong {
  color: var(--text);
  font-weight: 600;
}

/* Screenshots are tall; clip from the top so trailing empty space never shows. */
.shot {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  max-height: 560px;
  display: block;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.note {
  border: 1px solid var(--outline);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 20px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: 14.5px;
}
.note strong {
  color: var(--text);
}

.guide-end {
  border-top: 1px solid var(--outline-soft);
  margin-top: 56px;
  padding: 48px 0 72px;
  text-align: center;
}
.guide-end h2 {
  margin: 0 0 10px;
}
.guide-end p {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 22px;
}

@media (max-width: 860px) {
  .step,
  .step.flip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .step.flip .step-body,
  .step.flip .shot {
    order: unset;
  }
  .shot {
    max-width: 320px;
    max-height: none;
  }
}

/* ── Guides layout: sidebar + content ─────────────────────────────── */
.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.guide-main {
  min-width: 0;
  max-width: 900px;
  padding-bottom: 40px;
}
.guide-main .guide-hero {
  padding: 36px 0 28px;
}
.guide-main .guide-hero .lede a {
  color: var(--brand);
}

.guide-side {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 28px 0 24px;
  font-size: 14.5px;
}
.side-menu summary {
  display: none;
}
.guide-side nav {
  display: flex;
  flex-direction: column;
}
.guide-side a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.guide-side a:hover {
  color: var(--text);
}
.side-home {
  font-weight: 600;
  padding: 6px 12px;
  margin: 0 0 6px -12px;
}
.side-home.current {
  color: var(--text);
}
.side-group {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 20px 0 6px;
}
.side-link {
  padding: 6px 12px;
  margin-left: -12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
}
.side-link.current {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--brand);
  background: var(--surface);
}
.side-sub {
  display: flex;
  flex-direction: column;
  margin: 2px 0 8px 2px;
  border-left: 1px solid var(--outline-soft);
}
.side-sub a {
  font-size: 13.5px;
  padding: 4px 12px;
}

.crumbs {
  padding: 28px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}
.crumbs a {
  color: var(--text-muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs span {
  margin: 0 8px;
}

.guide-main .guide-section {
  padding: 40px 0 8px;
}
.guide-main .step {
  grid-template-columns: 1fr 260px;
  gap: 36px;
}
.guide-main .step.flip {
  grid-template-columns: 260px 1fr;
}
.guide-main .step:first-of-type {
  border-top: none;
}

.sub-h {
  font-size: 16px;
  margin: 28px 0 10px;
  letter-spacing: -0.005em;
}
.prose p {
  color: var(--text-muted);
  font-size: 15px;
  margin: 14px 0;
  max-width: 70ch;
}
.prose strong,
.table-wrap strong,
.plain strong,
.faq strong {
  color: var(--text);
  font-weight: 600;
}
.prose a,
.table-wrap a,
.plain a,
.faq a,
.note a,
.step-body a {
  color: var(--brand);
}
ul.plain {
  color: var(--text-muted);
  font-size: 15px;
  padding-left: 20px;
  margin: 14px 0;
  max-width: 70ch;
}
ul.plain li {
  margin: 7px 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 14px 0 6px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
}
table.kv {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.kv th,
table.kv td {
  text-align: left;
  vertical-align: top;
  padding: 11px 16px;
  border-bottom: 1px solid var(--outline-soft);
}
table.kv th {
  background: var(--surface);
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
table.kv td {
  color: var(--text-muted);
}
table.kv td:first-child {
  white-space: nowrap;
}
table.kv tr:last-child td {
  border-bottom: none;
}
@media (max-width: 700px) {
  table.kv td:first-child {
    white-space: normal;
  }
}

.note.warn {
  border-left-color: var(--blocking);
}

.faq {
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
}
.faq[open] summary::after {
  content: "\2212";
}
.faq > div {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 56px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--outline-soft);
}
.pager a {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.pager a:hover {
  border-color: var(--brand);
}
.pager a span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.pager .next {
  text-align: right;
}

/* Hub */
.hub-section {
  padding: 8px 0 8px;
}
.hub-group {
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
  margin: 36px 0 14px;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.task-list a {
  display: block;
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.task-list a::after {
  content: " \2192";
  color: var(--brand);
}
.task-list a:hover {
  border-color: var(--brand);
  color: var(--text);
}
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.hub-card:hover {
  border-color: var(--brand);
}
.hub-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.hub-card p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14.5px;
  flex: 1;
}
.hub-card span {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--brand);
  letter-spacing: 0.04em;
}

/* Narrow screens: sidebar becomes a collapsible menu above the content */
@media (max-width: 960px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .guide-side {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 16px 0 0;
  }
  .side-menu {
    border: 1px solid var(--outline);
    border-radius: var(--radius-sm);
    background: var(--surface);
  }
  .side-menu summary {
    display: block;
    cursor: pointer;
    padding: 12px 16px;
    font-weight: 600;
  }
  .guide-side nav {
    padding: 0 16px 14px;
  }
  .guide-main .step,
  .guide-main .step.flip {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .pager {
    grid-template-columns: 1fr;
  }
  .pager .next {
    text-align: left;
  }
}

/* header.css styles every `nav a` (large, indented); undo that inside the guides. */
.guide-layout nav a {
  margin-left: 0;
  font-size: inherit;
}
.guide-side .side-link,
.guide-side .side-home {
  margin-left: -12px;
}
.guide-side .side-sub a {
  font-size: 13.5px;
}
.guide-side .side-link,
.guide-side .side-home {
  font-size: 14.5px;
}

/* ── Category colours: Start here (green), Understand (blue),
   Block and control (indigo), Account and help (amber) ───────────── */
.hub-section + .hub-section .hub-group:nth-of-type(1),
.hub-section + .hub-section .hub-grid:nth-of-type(1),
.side-group:nth-of-type(1) ~ *,
.task-list li:nth-child(1) {
  --c: #35d6a0;
  --c-text: #35d6a0;
  --c-bg: rgba(53, 214, 160, 0.06);
  --c-line: rgba(53, 214, 160, 0.28);
  --c-tile: rgba(53, 214, 160, 0.12);
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%2335d6a0'%20stroke-width%3D'2'%3E%3Cpath%20d%3D'M8%205v14l11-7z'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="light"] .hub-section + .hub-section .hub-group:nth-of-type(1),
:root[data-theme="light"] .hub-section + .hub-section .hub-grid:nth-of-type(1),
:root[data-theme="light"] .side-group:nth-of-type(1) ~ *,
:root[data-theme="light"] .task-list li:nth-child(1) {
  --c: #059669;
  --c-text: #047857;
  --c-bg: #e3f5f0;
  --c-line: #bfe9e1;
  --c-tile: #d6f3ed;
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23059669'%20stroke-width%3D'2'%3E%3Cpath%20d%3D'M8%205v14l11-7z'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E");
}
.hub-section + .hub-section .hub-group:nth-of-type(2),
.hub-section + .hub-section .hub-grid:nth-of-type(2),
.side-group:nth-of-type(2) ~ *,
.task-list li:nth-child(9),
.task-list li:nth-child(10) {
  --c: #4ea1ff;
  --c-text: #4ea1ff;
  --c-bg: rgba(78, 161, 255, 0.06);
  --c-line: rgba(78, 161, 255, 0.28);
  --c-tile: rgba(78, 161, 255, 0.12);
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%234ea1ff'%20stroke-width%3D'2'%3E%3Cpath%20d%3D'M2%2012s3.5-7%2010-7%2010%207%2010%207-3.5%207-10%207S2%2012%202%2012Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'3'%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="light"] .hub-section + .hub-section .hub-group:nth-of-type(2),
:root[data-theme="light"] .hub-section + .hub-section .hub-grid:nth-of-type(2),
:root[data-theme="light"] .side-group:nth-of-type(2) ~ *,
:root[data-theme="light"] .task-list li:nth-child(9),
:root[data-theme="light"] .task-list li:nth-child(10) {
  --c: #2563eb;
  --c-text: #1d4ed8;
  --c-bg: #e5effd;
  --c-line: #c8dcfb;
  --c-tile: #dce9ff;
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%232563eb'%20stroke-width%3D'2'%3E%3Cpath%20d%3D'M2%2012s3.5-7%2010-7%2010%207%2010%207-3.5%207-10%207S2%2012%202%2012Z'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'3'%2F%3E%3C%2Fsvg%3E");
}
.hub-section + .hub-section .hub-group:nth-of-type(3),
.hub-section + .hub-section .hub-grid:nth-of-type(3),
.side-group:nth-of-type(3) ~ *,
.task-list li:nth-child(2),
.task-list li:nth-child(3),
.task-list li:nth-child(4),
.task-list li:nth-child(5),
.task-list li:nth-child(6),
.task-list li:nth-child(7),
.task-list li:nth-child(8) {
  --c: #7c78ff;
  --c-text: #8f8bff;
  --c-bg: rgba(124, 120, 255, 0.06);
  --c-line: rgba(124, 120, 255, 0.28);
  --c-tile: rgba(124, 120, 255, 0.12);
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%237c78ff'%20stroke-width%3D'2'%3E%3Cpath%20d%3D'M12%203%204%206v6c0%204.5%203.4%208.3%208%209%204.6-.7%208-4.5%208-9V6z'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="light"] .hub-section + .hub-section .hub-group:nth-of-type(3),
:root[data-theme="light"] .hub-section + .hub-section .hub-grid:nth-of-type(3),
:root[data-theme="light"] .side-group:nth-of-type(3) ~ *,
:root[data-theme="light"] .task-list li:nth-child(2),
:root[data-theme="light"] .task-list li:nth-child(3),
:root[data-theme="light"] .task-list li:nth-child(4),
:root[data-theme="light"] .task-list li:nth-child(5),
:root[data-theme="light"] .task-list li:nth-child(6),
:root[data-theme="light"] .task-list li:nth-child(7),
:root[data-theme="light"] .task-list li:nth-child(8) {
  --c: #5b4fe0;
  --c-text: #4a3fd0;
  --c-bg: #eceafd;
  --c-line: #d9d5fb;
  --c-tile: #e6e3ff;
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%235b4fe0'%20stroke-width%3D'2'%3E%3Cpath%20d%3D'M12%203%204%206v6c0%204.5%203.4%208.3%208%209%204.6-.7%208-4.5%208-9V6z'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E");
}
.hub-section + .hub-section .hub-group:nth-of-type(4),
.hub-section + .hub-section .hub-grid:nth-of-type(4),
.side-group:nth-of-type(4) ~ *,
.task-list li:nth-child(11),
.task-list li:nth-child(12) {
  --c: #ffb454;
  --c-text: #ffb454;
  --c-bg: rgba(255, 180, 84, 0.06);
  --c-line: rgba(255, 180, 84, 0.28);
  --c-tile: rgba(255, 180, 84, 0.12);
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23ffb454'%20stroke-width%3D'2'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M9.5%209.5a2.5%202.5%200%201%201%203.5%202.3c-.6.3-1%20.9-1%201.6V14M12%2017.5v.01'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E");
}
:root[data-theme="light"] .hub-section + .hub-section .hub-group:nth-of-type(4),
:root[data-theme="light"] .hub-section + .hub-section .hub-grid:nth-of-type(4),
:root[data-theme="light"] .side-group:nth-of-type(4) ~ *,
:root[data-theme="light"] .task-list li:nth-child(11),
:root[data-theme="light"] .task-list li:nth-child(12) {
  --c: #d97706;
  --c-text: #b45309;
  --c-bg: #fcf0de;
  --c-line: #f7dcb4;
  --c-tile: #ffecd2;
  --c-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23d97706'%20stroke-width%3D'2'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M9.5%209.5a2.5%202.5%200%201%201%203.5%202.3c-.6.3-1%20.9-1%201.6V14M12%2017.5v.01'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E");
}

/* hub: section headings get their category's icon tile */
.hub-section + .hub-section .hub-group {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
}
.hub-section + .hub-section .hub-group::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background:
    var(--c-icon) center / 16px no-repeat,
    var(--c-tile);
  border: 1.5px solid var(--c-line);
}

/* hub cards: tinted surface, icon tile, coloured count */
.hub-section + .hub-section .hub-card {
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.hub-section + .hub-section .hub-card:hover {
  border-color: var(--c);
  transform: translateY(-2px);
}
.hub-section + .hub-section .hub-card::before {
  content: "";
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 16px;
  background:
    var(--c-icon) center / 22px no-repeat,
    var(--c-tile);
  border: 1.5px solid var(--c-line);
}
.hub-section + .hub-section .hub-card span {
  color: var(--c-text);
}

/* "I want to…": a coloured dot per task, arrow in the category colour */
.task-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
}
.task-list a::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
}
.task-list a::after {
  content: none;
}
.task-list a:hover {
  border-color: var(--c);
}

/* sidebar: coloured group labels, a coloured rail beside each group's links */
.side-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text);
}
.side-group::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.guide-side .side-link {
  border-left-color: var(--c-line);
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}
.guide-side .side-link:hover {
  background: var(--c-bg);
  border-left-color: var(--c);
}
.guide-side .side-link.current {
  color: var(--text);
  background: var(--c-tile);
  border-left-color: var(--c);
}
.side-sub {
  border-left-color: var(--c-line);
}
.side-group:nth-of-type(1) {
  --c-text: #35d6a0;
}
.side-group:nth-of-type(2) {
  --c-text: #4ea1ff;
}
.side-group:nth-of-type(3) {
  --c-text: #8f8bff;
}
.side-group:nth-of-type(4) {
  --c-text: #ffb454;
}
:root[data-theme="light"] .side-group:nth-of-type(1) {
  --c-text: #047857;
}
:root[data-theme="light"] .side-group:nth-of-type(2) {
  --c-text: #1d4ed8;
}
:root[data-theme="light"] .side-group:nth-of-type(3) {
  --c-text: #4a3fd0;
}
:root[data-theme="light"] .side-group:nth-of-type(4) {
  --c-text: #b45309;
}

/* Guide pages: category colour picked from the current sidebar link
   (Start here green, Understand blue, Block indigo, Help amber). */
.guide-main {
  --c: #7c78ff;
  --c-text: #8f8bff;
  --c-bg: rgba(124, 120, 255, 0.06);
  --c-line: rgba(124, 120, 255, 0.28);
  --c-tile: rgba(124, 120, 255, 0.12);
}
:root[data-theme="light"] .guide-main {
  --c: #5b4fe0;
  --c-text: #4a3fd0;
  --c-bg: #eceafd;
  --c-line: #d9d5fb;
  --c-tile: #e6e3ff;
}
.guide-layout:has(.side-group:nth-of-type(1) ~ .side-link.current) .guide-main {
  --c: #35d6a0;
  --c-text: #35d6a0;
  --c-bg: rgba(53, 214, 160, 0.06);
  --c-line: rgba(53, 214, 160, 0.28);
  --c-tile: rgba(53, 214, 160, 0.12);
}
:root[data-theme="light"]
  .guide-layout:has(.side-group:nth-of-type(1) ~ .side-link.current)
  .guide-main {
  --c: #059669;
  --c-text: #047857;
  --c-bg: #e3f5f0;
  --c-line: #bfe9e1;
  --c-tile: #d6f3ed;
}
.guide-layout:has(.side-group:nth-of-type(2) ~ .side-link.current) .guide-main {
  --c: #4ea1ff;
  --c-text: #4ea1ff;
  --c-bg: rgba(78, 161, 255, 0.06);
  --c-line: rgba(78, 161, 255, 0.28);
  --c-tile: rgba(78, 161, 255, 0.12);
}
:root[data-theme="light"]
  .guide-layout:has(.side-group:nth-of-type(2) ~ .side-link.current)
  .guide-main {
  --c: #2563eb;
  --c-text: #1d4ed8;
  --c-bg: #e5effd;
  --c-line: #c8dcfb;
  --c-tile: #dce9ff;
}
.guide-layout:has(.side-group:nth-of-type(3) ~ .side-link.current) .guide-main {
  --c: #7c78ff;
  --c-text: #8f8bff;
  --c-bg: rgba(124, 120, 255, 0.06);
  --c-line: rgba(124, 120, 255, 0.28);
  --c-tile: rgba(124, 120, 255, 0.12);
}
:root[data-theme="light"]
  .guide-layout:has(.side-group:nth-of-type(3) ~ .side-link.current)
  .guide-main {
  --c: #5b4fe0;
  --c-text: #4a3fd0;
  --c-bg: #eceafd;
  --c-line: #d9d5fb;
  --c-tile: #e6e3ff;
}
.guide-layout:has(.side-group:nth-of-type(4) ~ .side-link.current) .guide-main {
  --c: #ffb454;
  --c-text: #ffb454;
  --c-bg: rgba(255, 180, 84, 0.06);
  --c-line: rgba(255, 180, 84, 0.28);
  --c-tile: rgba(255, 180, 84, 0.12);
}
:root[data-theme="light"]
  .guide-layout:has(.side-group:nth-of-type(4) ~ .side-link.current)
  .guide-main {
  --c: #d97706;
  --c-text: #b45309;
  --c-bg: #fcf0de;
  --c-line: #f7dcb4;
  --c-tile: #ffecd2;
}

/* hero eyebrow + crumbs in the category colour */
.guide-main .guide-hero .eyebrow {
  color: var(--c-text);
}
.guide-main .guide-hero .eyebrow::before {
  background: var(--c);
  box-shadow: 0 0 8px var(--c);
}
.guide-main .crumbs a {
  color: var(--c-text);
}

/* 1. step numbers as tiles */
.guide-main .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 10px;
  margin: 0 0 6px;
  border-radius: 9px;
  background: var(--c-tile);
  border: 1.5px solid var(--c-line);
  color: var(--c-text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* 4. pager: tinted cards with hover lift */
.guide-main .pager a {
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.guide-main .pager a:hover {
  border-color: var(--c);
  transform: translateY(-2px);
}
.guide-main .pager a span {
  color: var(--c-text);
}

/* notes, tables, FAQ: calm neutral surfaces (no category colour) */
.guide-main .note {
  border: 1px solid var(--outline);
  border-left: 3px solid var(--outline);
  background: var(--surface);
}
.guide-main .note.warn {
  border-left-color: var(--blocking);
}
.guide-main table.kv th {
  background: var(--surface-variant);
}
