/* Track & Split — blog: index, category and article pages.
   Builds on the tokens in style.css. Body copy uses --ink-2 rather than
   --muted: #888 on white is 3.5:1, which is fine for a label but too faint
   to read paragraphs in. */

:root {
  --ink-2: #5A5A5A;
  --split-soft: #F1EBFA;
  --split-strong: #5B2FA6;
  --tip-bg: #EEF7EF;
  --tip-line: #4CAF50;
  --warn-bg: #FFF7E0;
  --warn-line: #D69A12;
  --read: 700px;
}
:root[data-theme="dark"] {
  --ink-2: #AEB9C8;
  --split-soft: #231B36;
  --split-strong: #C4B0FB;
  --tip-bg: #15261B;
  --warn-bg: #2A2312;
}

[hidden] { display: none !important; }

.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;
}

/* ---------- labels ---------- */

.tag {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: .07em; text-transform: uppercase; color: var(--brand-strong);
  text-decoration: none;
}
.tag--split { color: var(--split-strong); }
a.tag:hover { text-decoration: underline; }

.pill-cat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 6px 13px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.pill-cat--split { background: var(--split-soft); color: var(--split-strong); }
.pill-cat:hover { filter: brightness(.97); }

/* ---------- breadcrumbs ---------- */

.crumbs { font-size: 13.5px; color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before {
  content: ""; width: 6px; height: 6px; margin: 0 10px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .45; flex: 0 0 auto;
}
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--text); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .crumbs [aria-current] { display: none; } .crumbs li:nth-last-child(2)::after { content: none; } }

/* ---------- article header ---------- */

.a-head { padding: 30px 0 0; }
.a-head .crumbs { margin-bottom: 26px; }
.a-head h1 {
  font-size: clamp(30px, 4.7vw, 48px); line-height: 1.13; letter-spacing: -.032em;
  margin: 16px 0 16px; max-width: 24ch;
}
.dek { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 40em; margin: 0 0 24px; }

.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.byline img { border-radius: 10px; flex: 0 0 auto; display: block; }
.byline .who { display: flex; flex-direction: column; line-height: 1.45; }
.byline .who b { color: var(--text); font-weight: 600; }
.byline .when { display: flex; flex-wrap: wrap; gap: 0 14px; }

.a-hero { margin: 32px 0 0; }
.a-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 40 / 21;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2);
}

/* ---------- article body layout ---------- */

.a-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 64px;
  align-items: start; padding: 40px 0 8px;
}
.a-main { max-width: var(--read); min-width: 0; }
.a-side { position: sticky; top: 92px; display: grid; gap: 18px; }
@media (max-width: 1020px) {
  .a-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .a-main { max-width: none; }
  .a-side { display: none; }
}

/* table of contents */
.toc { font-size: 14px; }
.toc .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li { margin: 0; }
.toc a {
  display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; line-height: 1.45;
}
.toc a:hover { color: var(--text); border-left-color: var(--line); }
.toc a.on { color: var(--brand-strong); border-left-color: var(--brand); font-weight: 500; }

.toc-m {
  display: none; margin: 0 0 30px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2);
}
.toc-m summary { padding: 14px 0; font-size: 15px; }
.toc-m ol { margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.toc-m li { margin: 7px 0; }
.toc-m a { color: var(--text); text-decoration: none; }
.toc-m a:hover { color: var(--brand); }
@media (max-width: 1020px) { .toc-m { display: block; } }

/* sidebar card */
.side-cta {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
  background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%);
}
.side-cta--split { background: linear-gradient(160deg, var(--split-soft), var(--surface) 70%); }
.side-cta p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin: 6px 0 14px; }
.side-cta .h { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--text); margin: 8px 0 0; letter-spacing: -.01em; }
.side-cta .play-badge { padding: 7px 14px 7px 12px; }
.side-cta .play-badge .t b { font-size: 15px; }

/* ---------- prose ---------- */

.prose { font-size: 17px; line-height: 1.8; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose > p:first-child { font-size: 18.5px; line-height: 1.75; }
.prose h2 {
  font-size: clamp(24px, 3vw, 30px); line-height: 1.25; letter-spacing: -.025em;
  margin: 2.1em 0 .6em; scroll-margin-top: 90px;
}
.prose h3 { font-size: 20px; line-height: 1.35; margin: 1.7em 0 .45em; scroll-margin-top: 90px; }
.prose h2 + h3 { margin-top: .9em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .45em 0; padding-left: .15em; }
.prose li::marker { color: var(--brand); font-weight: 600; }
.prose strong { font-weight: 600; }
.prose p a, .prose li a, .prose td a, .prose figcaption a, .faq .body a {
  color: var(--brand-strong); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
}
.prose p a:hover, .prose li a:hover, .prose td a:hover, .faq .body a:hover { text-decoration-color: var(--brand); }
.prose code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.prose blockquote {
  margin: 1.9em 0; padding: 2px 0 2px 24px; border-left: 3px solid var(--brand);
  font-size: 20px; line-height: 1.55; font-weight: 500; letter-spacing: -.01em; color: var(--text);
}
.prose blockquote p { margin: 0; }

/* quick answer */
.answer {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 24px 8px; margin: 0 0 2em;
}
.answer .k { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 6px; }
.answer p { font-size: 16.5px !important; }
.answer ul { font-size: 16px; }

/* notes */
.note {
  border-radius: 14px; padding: 16px 20px 2px; margin: 1.8em 0;
  background: var(--brand-soft); border-left: 3px solid var(--brand);
}
.note .t { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.note p, .note ul { font-size: 16px; margin-bottom: .9em; }
.note--tip { background: var(--tip-bg); border-left-color: var(--tip-line); }
.note--warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.note--split { background: var(--split-soft); border-left-color: var(--split); }
.note--plain { background: var(--surface-2); border-left-color: var(--line); }

/* numbered steps */
ol.steps { list-style: none; padding: 0; margin: 1.6em 0; counter-reset: st; }
ol.steps > li { counter-increment: st; position: relative; padding: 0 0 6px 54px; margin: 0 0 16px; }
ol.steps > li::before {
  content: counter(st); position: absolute; left: 0; top: 2px;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-weight: 700; font-size: 15px; line-height: 36px; text-align: center;
}
ol.steps > li::after {
  content: ""; position: absolute; left: 18px; top: 46px; bottom: -8px; width: 1px; background: var(--line);
}
ol.steps > li:last-child::after { display: none; }
ol.steps > li::marker { content: none; }
ol.steps h3 { margin: 4px 0 4px; font-size: 18.5px; }
ol.steps p { margin: 0 0 .6em; }
ol.steps--split > li::before { background: var(--split-soft); color: var(--split-strong); }

/* ticks and crosses */
ul.checks, ul.crosses { list-style: none; padding: 0; }
ul.checks li, ul.crosses li { position: relative; padding-left: 34px; }
ul.checks li::before, ul.crosses li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--tip-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E8B45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
ul.crosses li::before {
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D14733' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* worked example */
.worked { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin: 1.8em 0; background: var(--surface); }
.worked-h {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 15px; line-height: 1.4;
}
.worked-h::before {
  content: "₹"; width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  background: var(--brand-soft); color: var(--brand-strong); font-size: 14px; line-height: 26px; text-align: center;
}
.worked--split .worked-h::before { background: var(--split-soft); color: var(--split-strong); }
.worked-b { padding: 6px 20px 12px; }
.worked .line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5;
}
.worked .line span { color: var(--ink-2); }
.worked .line b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.worked .line:last-child { border-bottom: 0; }
.worked .line.total span, .worked .line.total b { color: var(--text); font-weight: 700; }
.worked .foot { font-size: 14.5px; color: var(--ink-2); padding: 10px 0 2px; margin: 0; line-height: 1.6; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.6em 0; }
.tiles > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 14px; background: var(--surface); }
.tiles b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.tiles span { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 4px; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tiles > div { display: flex; align-items: baseline; gap: 12px; } .tiles span { margin: 0; } }

/* side-by-side */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6em 0; }
.vs > div { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 6px; background: var(--surface); }
.vs h3 { margin: 0 0 6px; font-size: 17.5px; }
.vs p, .vs ul { font-size: 15.5px; }
@media (max-width: 620px) { .vs { grid-template-columns: 1fr; } }

/* tables */
.prose .table-scroll { border: 1px solid var(--line); border-radius: var(--radius); margin: 1.6em 0; }
.prose table { font-size: 15px; line-height: 1.55; }
.prose th { font-size: 14px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.n, .prose th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line); }
.table-note { font-size: 14px; color: var(--ink-2); margin: -.6em 0 1.4em !important; }

/* figures */
.fig { margin: 2em 0; }
.fig img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.fig figcaption { font-size: 14px; line-height: 1.6; color: var(--ink-2); margin-top: 10px; }
:root[data-theme="dark"] .fig img, :root[data-theme="dark"] .a-hero img, :root[data-theme="dark"] .bcard-img img { filter: brightness(.93); }

/* in-article CTA */
.cta-in {
  display: grid; grid-template-columns: minmax(0, 1fr) 208px; gap: 26px; align-items: center;
  margin: 2.4em 0; padding: 24px 26px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), var(--surface) 90%);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
}
.cta-in--split {
  background: linear-gradient(135deg, var(--split-soft), var(--surface) 90%);
  border-color: color-mix(in srgb, var(--split) 24%, var(--line));
}
.cta-in .tag { margin-bottom: 4px; }
.cta-in .h { font-size: 21px !important; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 8px !important; color: var(--text); }
.cta-in p { font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; }
.cta-in .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cta-in .more { font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--brand-strong); }
.cta-in--split .more { color: var(--split-strong); }
.cta-in .more:hover { text-decoration: underline; }
@media (max-width: 640px) { .cta-in { grid-template-columns: 1fr; padding: 22px 20px; } .cta-in .mini { display: none; } }

/* the small app surface inside a CTA */
.mini { display: grid; gap: 8px; font-size: 12px; line-height: 1.4; }
.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 12px; box-shadow: var(--shadow);
}
.mini-grad { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff; border: 0; }
.mini-grad.split { background: linear-gradient(135deg, #673AB7, #9A6BE0); }
.mini-grad .l { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; opacity: .88; }
.mini-grad b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 1px 0; }
.mini-grad .s { font-size: 11px; opacity: .92; }
.mini-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .32); margin: 7px 0 5px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; background: #fff; }
.mini-row { display: flex; align-items: center; gap: 9px; }
.mini-row .ic {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; font-size: 11.5px;
}
.mini-row .ic.p { background: var(--split-soft); color: var(--split-strong); }
.mini-row .tx { flex: 1; min-width: 0; }
.mini-row .tx b { display: block; font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row .tx span { color: var(--ink-2); font-size: 10.5px; }
.mini-row .v { font-weight: 600; font-size: 12px; white-space: nowrap; color: var(--brand-strong); }
.mini-row .v.g { color: #2E8B45; }
:root[data-theme="dark"] .mini-row .v.g { color: #6FCF7F; }

/* calculators */
.calc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; margin: 1.9em 0; background: var(--surface); }
.calc .h { font-weight: 600; font-size: 17px; margin: 0 0 4px !important; }
.calc .sub { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px !important; }
.calc-in { display: flex; flex-wrap: wrap; gap: 14px; }
.calc-in label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; flex: 1 1 150px; }
.calc-in input {
  font: inherit; font-size: 17px; color: var(--text); width: 100%;
  padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.calc-in input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; border-color: var(--brand); }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 16px; }
.calc-out > div { border-radius: 12px; padding: 12px 14px; background: var(--surface-2); }
.calc-out b { display: block; font-size: 21px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.calc-out span { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.calc .fine { font-size: 13px; color: var(--ink-2); margin: 12px 0 0 !important; }

/* faq */
.faq { margin-top: 2.6em; }
.faq details { background: var(--surface); }
.faq summary { align-items: center; }
.faq summary h3 { font-size: 16.5px; line-height: 1.45; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.faq .body { color: var(--text); font-size: 16px; line-height: 1.75; }
.faq .body p { margin: 0 0 .8em; }

/* about box and disclaimer */
.about {
  display: flex; gap: 16px; align-items: flex-start; margin: 2.6em 0 0; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-2);
}
.about img { border-radius: 11px; flex: 0 0 auto; }
.about p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.about p b { color: var(--text); font-weight: 600; }
.about a { color: var(--brand-strong); }

/* prev / next */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 0; }
.pn a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; text-decoration: none; color: inherit; background: var(--surface);
}
.pn a:hover { border-color: var(--brand); }
.pn span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 2px; }
.pn b { display: block; font-weight: 600; font-size: 15px; line-height: 1.4; }
.pn .next { grid-column: 2; text-align: right; }
@media (max-width: 620px) { .pn { grid-template-columns: 1fr; } .pn .next { grid-column: auto; } }

/* end-of-article CTA band */
.a-cta { padding: 34px 0 10px; }
.cta-band--split { background: linear-gradient(135deg, #673AB7, #9A6BE0); }
.cta-band .sub-link { display: block; margin-top: 16px; color: #fff; font-size: 14.5px; font-weight: 500; opacity: .92; }
.cta-band .sub-link:hover { opacity: 1; }

/* ---------- cards ---------- */

.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 920px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bgrid { grid-template-columns: minmax(0, 1fr); } }

.bcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), border-color .22s ease, box-shadow .22s ease;
}
.bcard-img { aspect-ratio: 40 / 21; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.bcard h3 { font-size: 17.5px; line-height: 1.38; margin: 0; letter-spacing: -.015em; }
.bcard p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.bcard .meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-2); }
.bcard:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.bcard:hover h3 { color: var(--brand-strong); }
@media (prefers-reduced-motion: no-preference) { .bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }

.bcard--lead { display: grid; grid-template-columns: 1.15fr 1fr; }
.bcard--lead .bcard-img { aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
.bcard--lead .bcard-body { padding: 30px 32px; justify-content: center; gap: 12px; }
.bcard--lead h3 { font-size: clamp(21px, 2.5vw, 27px); line-height: 1.25; letter-spacing: -.025em; }
.bcard--lead p { font-size: 15.5px; }
.bcard--lead .meta { margin-top: 4px; }
@media (max-width: 820px) {
  .bcard--lead { grid-template-columns: 1fr; }
  .bcard--lead .bcard-img { aspect-ratio: 40 / 21; border-right: 0; border-bottom: 1px solid var(--line); }
  .bcard--lead .bcard-body { padding: 20px 22px 22px; }
}

/* ---------- blog index & category pages ---------- */

.b-hero { padding: 54px 0 12px; }
.b-hero h1 { font-size: clamp(34px, 5.2vw, 54px); max-width: 17ch; margin-bottom: 16px; }
.b-hero .lead { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 38em; margin: 0; }
.b-hero .crumbs { margin-bottom: 22px; }

.b-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.b-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.b-search input {
  width: 100%; font: inherit; font-size: 15.5px; color: var(--text);
  padding: 12px 16px 12px 44px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  -webkit-appearance: none; appearance: none;
}
.b-search input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; border-color: var(--brand); }
.b-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.chips a {
  font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
}
.chips a:hover { border-color: var(--brand); color: var(--brand-strong); }
.chips a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }

.b-sec { padding: 40px 0; }
.b-sec + .b-sec { padding-top: 12px; }
.b-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.b-sec-h h2 { font-size: clamp(22px, 2.8vw, 28px); margin: 0; }
.b-sec-h p { color: var(--ink-2); margin: 6px 0 0; font-size: 15.5px; max-width: 42em; }
.b-sec-h .all { white-space: nowrap; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--brand-strong); }
.b-sec-h .all:hover { text-decoration: underline; }
@media (max-width: 600px) { .b-sec-h { flex-direction: column; align-items: flex-start; gap: 8px; } }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }
.path {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 18px;
  background: linear-gradient(160deg, var(--brand-soft), var(--surface) 62%);
}
.path--split { background: linear-gradient(160deg, var(--split-soft), var(--surface) 62%); }
.path h3 { font-size: 21px; letter-spacing: -.02em; margin: 8px 0 6px; }
.path > p { color: var(--ink-2); font-size: 15px; margin: 0 0 16px; }
.path ol { list-style: none; margin: 0; padding: 0; counter-reset: pth; }
.path li { counter-increment: pth; border-top: 1px solid var(--line); }
.path li a {
  display: flex; gap: 14px; align-items: baseline; padding: 11px 0; text-decoration: none;
  color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.45;
}
.path li a::before { content: counter(pth, decimal-leading-zero); font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .04em; min-width: 20px; }
.path--split li a::before { color: var(--split); }
.path li a:hover { color: var(--brand-strong); }
.path--split li a:hover { color: var(--split-strong); }

.b-empty { display: none; padding: 30px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.b-empty.on { display: block; }

.cat-intro { max-width: 720px; }
.cat-intro p { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.cat-intro a { color: var(--brand-strong); }
.topic-list { padding-left: 20px; color: var(--ink-2); }
.topic-list li { margin: 8px 0; }
.topic-list a { font-weight: 600; }

.bgrid .bcard--lead { grid-column: 1 / -1; }
.related-sec { padding: 44px 0 70px; }
.faq { padding: 0; }
article.article { padding: 0; }
