/* Theme tokens: light by default, dark when the visitor picks it (html[data-theme="dark"]) */
:root {
  color-scheme: light;
  --bg: #ffffff; --ink: #0e1a2b; --text-strong: #1f2d40; --text: #344256; --muted: #4f5f74; --soft: #67768b;
  --accent: #0a6fc2; --accent-soft: rgba(10, 111, 194, .07); --on-accent: #ffffff;
  --card: #f4f7fb; --pop: #ffffff; --line: #dde5ef;
  --bar-bg: rgba(255, 255, 255, .92); --bar-line: #dde5ef; --bar-shadow: 0 8px 24px rgba(15, 35, 65, .06);
  --pop-shadow: 0 14px 34px rgba(15, 35, 65, .14);
  --btn-grad: linear-gradient(105deg, #009dc2 0%, #0445bd 62%, #3c0db5 100%);
  --ok: #17915a; --bad: #c2413b; --shade: rgba(5, 12, 24, .45);
  --bar-solid: rgba(255, 255, 255, .97); --bar-shadow-up: 0 10px 28px rgba(15, 35, 65, .12);
  --d-ax: #5f6f85; --d-line: #0a6fc2; --d-acc: #b8238f; --d-acc2: #0b8a57; --d-txt: #1f2d40; --d-warm: #a86400;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020914; --ink: #f8fbff; --text-strong: #e6edf6; --text: #c3cdda; --muted: #b5c0d0; --soft: #8796aa;
  --accent: #37d6fa; --accent-soft: rgba(55, 214, 250, .08); --on-accent: #04121c;
  --card: #0b1626; --pop: #0d1a2c; --line: rgba(139, 182, 224, .18);
  --bar-bg: linear-gradient(110deg, rgba(13, 31, 49, .78), rgba(3, 12, 26, .82)); --bar-line: rgba(195, 221, 255, .28);
  --bar-shadow: inset 0 1px rgba(255,255,255,.08), 0 14px 38px rgba(0,0,0,.26); --pop-shadow: 0 18px 40px rgba(0,0,0,.55);
  --btn-grad: linear-gradient(105deg, #00bde9 0%, #256ffa 62%, #8357f3 100%);
  --ok: #30e59b; --bad: #ff7d7d; --shade: rgba(0, 0, 0, .65);
  --bar-solid: linear-gradient(110deg, rgba(10, 24, 40, .96), rgba(3, 12, 26, .97)); --bar-shadow-up: inset 0 1px rgba(255,255,255,.08), 0 14px 38px rgba(0,0,0,.5);
  --d-ax: #8fa3bd; --d-line: #37d6fa; --d-acc: #ff8cf9; --d-acc2: #30e59b; --d-txt: #d6deea; --d-warm: #f5b545;
}
:root { color: var(--ink); background: var(--bg); }
body { background: var(--bg); color: var(--ink); }

/* Shared site chrome: matches the React site's navbar, buttons and footer */
/* The bar stays in reach while reading: it sticks 10px from the top and firms up once the page scrolls */
html { scroll-padding-top: 120px; }
.sb-wrap { position: sticky; top: -9px; z-index: 40; padding: 19px 30px 0; }
.sitebar { position: relative; width: min(1340px, 100%); min-height: 87px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 12px 18px 12px 20px; border: 1px solid var(--bar-line); border-radius: 23px; background: var(--bar-bg); box-shadow: var(--bar-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: box-shadow .2s, background .2s; }
.is-scrolled .sitebar { background: var(--bar-solid); box-shadow: var(--bar-shadow-up); }
.cta-short { display: none; }
.sitebar > .sb-cta { flex: none; white-space: nowrap; }
.menu-theme { display: none; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text-strong); font: inherit; cursor: pointer; text-align: left; }
.menu-theme svg { flex: none; }
.menu-theme .i-sun, .menu-theme .t-light { display: none; }
:root[data-theme="dark"] .menu-theme .i-sun, :root[data-theme="dark"] .menu-theme .t-light { display: inline; }
:root[data-theme="dark"] .menu-theme .i-moon, :root[data-theme="dark"] .menu-theme .t-dark { display: none; }
.sb-brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); text-decoration: none; }
.sb-mark { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 11px; color: #061523; background: linear-gradient(135deg, #00d7f6, #3279ff); box-shadow: 0 0 20px rgba(0, 203, 253, .3); }
.sb-copy { display: block; }
.sb-title { display: block; font-size: 20px; line-height: 1; font-weight: 800; letter-spacing: -.65px; color: var(--ink); }
.sb-title span { color: var(--accent); }
.sb-tag { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.sb-links { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 34px); margin-left: auto; }
.sb-links a { color: var(--ink); font-size: 16px; text-decoration: none; }
.sb-links a:hover { color: var(--accent); }
.sb-cta, .wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 14px; color: #fff !important; font-weight: 700; text-decoration: none; background: var(--btn-grad); box-shadow: 0 9px 24px rgba(37, 102, 255, .2), inset 0 1px rgba(255,255,255,.3); transition: transform .2s, box-shadow .2s; }
.sb-cta:hover, .wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37, 102, 255, .37), inset 0 1px rgba(255,255,255,.3); filter: none; }
.sb-cta { min-width: 0; padding: 14px 16px; font-size: 16px; }
.sb-menu { display: none; margin: 0; padding: 0; border: 0; background: none; }
.sb-menu summary { list-style: none; cursor: pointer; color: var(--ink); padding: 6px; }
.sb-menu summary::-webkit-details-marker { display: none; }
.sb-drop { position: absolute; right: 0; left: 0; top: calc(100% + 9px); z-index: 30; display: grid; gap: 13px; padding: 16px 20px; border: 1px solid var(--bar-line); border-radius: 16px; background: var(--pop); box-shadow: var(--pop-shadow); }
.sb-drop a { color: var(--text-strong); text-decoration: none; }
.sb-drop .sb-cta { width: 100%; }
.sitefoot { width: min(1180px, calc(100% - 32px)); margin: 56px auto 0; padding: 36px 0 40px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.ft-cols { display: grid; gap: 28px 24px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ft-col { display: grid; align-content: start; gap: 9px; }
.ft-h { margin: 0 0 4px; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sitefoot a { color: var(--muted); margin: 0; text-decoration: none; line-height: 1.4; }
.sitefoot a:hover { color: var(--accent); }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.ft-base nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 900px) { .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .sitefoot { padding-bottom: 96px; } }  /* room for the landing pages' bottom WhatsApp bar */
.cta-strip { border-color: var(--line) !important; background: var(--accent-soft) !important; }
/* Guide teaching elements */
.article h3 { margin: 28px 0 8px; color: var(--ink); font-size: 19px; letter-spacing: -.2px; }
.diagram { margin: 28px 0; }
.diagram svg { display: block; width: 100%; height: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.diagram figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.practice { display: grid; gap: 12px; }
.pq { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pq p { margin: 0; }
.pq details { margin-top: 10px; padding: 0; border: 0; background: none; }
.pq summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.pq details div { margin-top: 8px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--text-strong); line-height: 1.7; }
.article pre { margin: 18px 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.article pre code { color: var(--text-strong); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.6; }
.article p code, .article li code { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--text-strong); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
/* Guides dropdown: opens on hover or keyboard focus; "Guides" itself still links to /guides */
/* the panel hangs from the right edge of the bar so it never runs off screen; the bridge keeps it open while the pointer moves down */
.nav-dd { display: flex; align-items: center; }
.sb-links > a, .dd-top { white-space: nowrap; }
.dd-top { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.dd-top::after { content: ""; position: absolute; left: -14px; right: -14px; top: 100%; height: 44px; }
.dd-top svg { transition: transform .2s; }
.nav-dd:hover .dd-top svg, .nav-dd:focus-within .dd-top svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: 100%; right: 0; z-index: 50; display: none; padding-top: 8px; }
.nav-dd:hover .dd-panel, .nav-dd:focus-within .dd-panel { display: block; }
.dd-card { width: max-content; max-width: calc(100vw - 32px); display: grid; grid-template-columns: auto auto auto; gap: 10px 36px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--pop); box-shadow: var(--pop-shadow); text-align: left; }
.dd-col { display: grid; align-content: start; gap: 8px; }
.dd-h { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dd-grid { display: grid; grid-template-columns: auto auto; gap: 14px 28px; }
.dd-group { display: grid; align-content: start; gap: 6px; }
.dd-sub { margin: 0; color: var(--ink); font-size: 13px; font-weight: 800; }
.sb-links .dd-card a { color: var(--muted); font-size: 15px; line-height: 1.35; }
.sb-links .dd-card a:hover { color: var(--accent); }
.sb-links .dd-card .dd-all { grid-column: 1 / -1; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 700; }
/* phone menu: Guides opens a sub-list */
.drop-sub { margin: 0; padding: 0; border: 0; background: none; }
.drop-sub summary { display: flex; align-items: center; gap: 6px; color: var(--text-strong); font-weight: inherit; list-style: none; cursor: pointer; }
.drop-sub summary::-webkit-details-marker { display: none; }
.sb-menu .drop-sub summary { padding: 0; }
.drop-sub[open] summary svg { transform: rotate(180deg); }
.drop-sub > div { display: grid; gap: 9px; margin-top: 10px; padding: 2px 0 4px 14px; border-left: 2px solid var(--line); }
.drop-sub .dd-sub { margin-top: 6px; color: var(--soft); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* /guides: filter by exam and subject */
.guide-filters { display: grid; gap: 10px; margin: 18px 0 6px; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-label { min-width: 68px; color: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text-strong); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-filters[hidden], .guide-group[hidden], .no-match[hidden] { display: none; }
.guide-group h2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.guide-group h2 a { color: var(--ink); text-decoration: none; }
.guide-group h2 a:hover { color: var(--accent); }
.gg-count { color: var(--soft); font-size: 14px; font-weight: 600; }
.article .hub-links { color: var(--muted); font-size: 15px; }

/* Left sidebar on guides and past papers: sticky "On this page" that highlights the section being read */
.doc-layout { display: grid; grid-template-columns: 236px minmax(0, 760px); gap: 0 56px; justify-content: center; width: min(1110px, calc(100% - 32px)); margin: 0 auto; }
.doc-layout > .article { width: auto; margin: 0; }
.doc-side { position: sticky; top: 112px; align-self: start; max-height: calc(100vh - 128px); overflow-y: auto; padding: 30px 4px 24px 0; scrollbar-width: thin; }
.ds-h { margin: 0 0 8px; padding-left: 12px; color: var(--soft); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ds-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ds-list a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 10px; color: var(--text); font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.ds-list a:hover { background: var(--card); color: var(--ink); }
.ds-list a.active { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ds-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ds-list svg { width: 18px; height: 18px; flex: none; }
.ds-sep { height: 1px; margin: 14px 12px; background: var(--line); }
.doc-toc-m { display: none; }
@media (max-width: 1100px) {
  .doc-layout { display: block; width: auto; }
  .doc-side { display: none; }
  .doc-layout > .article { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
  .article .doc-toc-m { display: block; margin: 6px 0 22px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
  .doc-toc-m summary { padding: 12px 16px; color: var(--ink); font-weight: 700; cursor: pointer; }
  .doc-toc-m ol { margin: 0; padding: 0 16px 14px 36px; }
  .article .doc-toc-m li { margin: 0 0 6px; font-size: 15.5px; line-height: 1.5; }
}

/* Past papers */
.dd-card.dd-narrow { grid-template-columns: auto auto; }
/* small panels (Past papers) sit centred under their own link */
.nav-dd-narrow { position: relative; }
.nav-dd-narrow .dd-panel { right: auto; left: 50%; transform: translateX(-50%); }
.pp-jump { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 12px; font-size: 15px; font-weight: 600; }
.pp-year { margin: 18px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.article .pp-year h3 { margin: 0; padding: 12px 18px; background: var(--card); font-size: 18px; }
.pp-files { margin: 0; padding: 0; list-style: none; }
.article .pp-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; padding: 12px 18px; border-top: 1px solid var(--line); }
.pp-name { color: var(--ink); font-size: 16px; font-weight: 700; }
.pp-minor .pp-name { color: var(--text); font-size: 15px; font-weight: 600; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-btn { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--accent); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pp-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.pp-btn.pp-preview { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
/* on phones Preview already opens a new tab, so the second button is dropped to keep each row on one line */
@media (max-width: 760px), (pointer: coarse) { .pp-newtab { display: none; } }
.pp-q { min-width: 40px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.pp-q:hover { border-color: var(--accent); }
.pp-soon, .article .pp-source { color: var(--soft); font-size: 14px; }
.pp-table { overflow-x: auto; margin: 10px 0 18px; }
.pp-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pp-table th, .pp-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; vertical-align: top; line-height: 1.5; }
.pp-table thead th { color: var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pp-table tbody th { color: var(--ink); white-space: nowrap; }
.pp-table .pp-sub th { padding-left: 28px; font-weight: 500; }
.pp-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.mcq { margin: 16px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.article .mcq-q { margin: 0 0 12px; color: var(--ink); }
.mcq-opts { display: grid; gap: 8px; }
.mcq-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text-strong); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.mcq-opt:hover { border-color: var(--accent); }
.mcq.done .mcq-opt { cursor: default; }
.mcq-k { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 800; }
.mcq-opt.right { border-color: var(--ok); }
.mcq-opt.right .mcq-k { background: var(--ok); color: var(--bg); }
.mcq-opt.wrong { border-color: var(--bad); }
.mcq-opt.wrong .mcq-k { background: var(--bad); color: var(--bg); }
.article .mcq-ans { margin: 12px 0 0; padding: 0; border: 0; background: none; }
.mcq-ans summary { color: var(--accent); font-size: 15px; }
.article .mcq-ans p { margin: 8px 0 0; font-size: 16px; }
.article .mcq-score { color: var(--muted); font-weight: 600; }
.mcq-score[hidden] { display: none; }
.pdf-viewer { width: min(1100px, 94vw); height: 90vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--pop); color: var(--ink); overflow: hidden; }
.pdf-viewer[open] { display: flex; flex-direction: column; }
.pdf-viewer::backdrop { background: var(--shade); }
.pv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pv-title { flex: 1 1 240px; margin: 0; color: var(--ink); font-weight: 700; }
.pdf-viewer iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.pv-src { margin: 0; padding: 6px 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }

.pp-series { margin: 14px 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: none; overflow: hidden; }
.pp-series > summary { padding: 12px 18px; background: var(--card); color: var(--ink); font-size: 17px; font-weight: 700; cursor: pointer; }
.article .pp-tier { margin: 0; padding: 10px 18px 2px; border-top: 1px solid var(--line); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article .pp-tier + .pp-file { border-top: 0; }
.pp-chip { display: inline-flex; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; }
.pp-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.pp-chip:first-child { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

/* Author box on guides */
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; }
.author-box img { width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover; }
.article .author-box p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.article .author-box .ab-label { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article .author-box .ab-name { margin: 2px 0 6px; color: var(--ink); font-size: 17px; font-weight: 700; }
.article .author-box .ab-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.ab-links a { font-weight: 700; font-size: 14px; }
@media (max-width: 480px) { .author-box { flex-direction: column; } }

/* Theme toggle */
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--bar-line); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.theme-toggle { margin-left: auto; }
.sb-links + .theme-toggle { margin-left: 0; }

/* Diagrams follow the theme: the SVGs carry the dark palette, CSS swaps it */
.diagram svg [fill="#d6deea"] { fill: var(--d-txt); }
.diagram svg [stroke="#d6deea"] { stroke: var(--d-txt); }
.diagram svg [fill="#8fa3bd"] { fill: var(--d-ax); }
.diagram svg [stroke="#8fa3bd"] { stroke: var(--d-ax); }
.diagram svg [fill="#37d6fa"] { fill: var(--d-line); }
.diagram svg [stroke="#37d6fa"] { stroke: var(--d-line); }
.diagram svg [fill="#ff8cf9"] { fill: var(--d-acc); }
.diagram svg [stroke="#ff8cf9"] { stroke: var(--d-acc); }
.diagram svg [fill="#30e59b"] { fill: var(--d-acc2); }
.diagram svg [stroke="#30e59b"] { stroke: var(--d-acc2); }
.diagram svg [fill="#f5b545"] { fill: var(--d-warm); }
.diagram svg [stroke="#f5b545"] { stroke: var(--d-warm); }
.diagram svg [fill="#0b1626"] { fill: var(--card); }

/* Guides: a quiet note mid-article and a calm card at the end */
.help-note { margin: 32px 0; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); }
.article .help-note p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.help-note a { font-weight: 700; white-space: nowrap; }
.help-card { margin-top: 48px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.article .help-card h2 { margin: 0 0 6px; font-size: 20px; }
.article .help-card p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.article .help-card .help-fine { margin: 12px 0 0; color: var(--soft); font-size: 14px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none; }
.ghost-btn:hover { background: var(--accent-soft); }
.ghost-btn svg { width: 18px; height: 18px; flex: none; }
.help-card .more { margin-left: 14px; font-size: 15px; font-weight: 600; }
@media (max-width: 1260px) {
  .sb-links { display: none; }
  .sitebar .sb-cta:not(.sb-drop .sb-cta) { margin-left: auto; }
  .sb-menu { display: block; }
  .sb-links + .theme-toggle { margin-left: auto; }
  .sitebar .theme-toggle + .sb-cta:not(.sb-drop .sb-cta) { margin-left: 0; }
}
@media (max-width: 820px) {
  .sb-wrap { padding: 14px 16px 0; }
  .sitebar { min-height: 70px; padding: 10px 15px; }
  .sb-wrap { top: -4px; }
  .sitebar > .sb-cta { min-width: 0; padding: 11px 14px; font-size: 15px; gap: 8px; }
  .sitebar { gap: 12px; }
  .theme-toggle { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .sitebar { gap: 10px; }
  .sitebar:has(.sb-menu) > .theme-toggle { display: none; }
  .sitebar:has(.sb-menu) .theme-toggle + .sb-cta:not(.sb-drop .sb-cta) { margin-left: auto; }
  .menu-theme { display: flex; }
  .sitebar > .sb-cta .cta-long { display: none; }
  .sitebar > .sb-cta .cta-short { display: inline; }
  .sitebar > .sb-cta svg { width: 17px; height: 17px; }
  .sb-tag { display: none; }
}
@media (max-width: 420px) {
  .sitebar:not(:has(.sb-menu)) { gap: 8px; padding-inline: 12px; }
  .sitebar:not(:has(.sb-menu)) .sb-title { font-size: 16px; }
  .sitebar:not(:has(.sb-menu)) .sb-mark { width: 38px; height: 38px; }
  .sitebar:not(:has(.sb-menu)) .theme-toggle { width: 36px; height: 36px; }
  .sitebar:not(:has(.sb-menu)) > .sb-cta { padding: 10px 12px; }
}
@media (max-width: 360px) {
  .sb-copy { display: none; }
}
@media (max-width: 500px) {
  .sb-title { font-size: 18px; }
  .sb-tag { font-size: 10px; }
  .sb-mark { width: 42px; height: 42px; }
}
