/* ═══════════════════════════════════════════════════════════════
   Credentik — subpages (features, audiences, guides, data, pricing)
   Loaded after home.css and reuses its tokens and components.
   Generated pages come from _tools/build.py.
   ═══════════════════════════════════════════════════════════════ */

.nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.mnav a[aria-current="page"] { color: var(--brand-ink); }
.muted { color: var(--muted); }

/* ── Page hero ───────────────────────────────────────────────── */
.phero { position: relative; overflow: hidden; padding: 20px 0 44px; }
.phero::before {
  content: ""; position: absolute; right: -220px; top: -260px; width: 680px; height: 680px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .14), rgba(99, 102, 241, 0));
}
.phero .wrap { position: relative; }
.phero-in { max-width: 820px; }
.phero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.phero .lede { margin-top: 18px; font-size: clamp(17px, 2.2vw, 19.5px); line-height: 1.6; max-width: 720px; }
.phero .eyebrow { margin-bottom: 12px; }
.pmeta { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .phero { padding: 28px 0 64px; } }

.crumbs { margin-bottom: 26px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.crumbs li { display: inline-flex; align-items: center; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--faint); }
.crumbs a { color: var(--body); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 500; }

/* ── Content sections on feature / audience pages ────────────── */
.fsec { padding: 56px 0; }
.fsec + .fsec { padding-top: 0; }
.fsec.sec-white { padding: 64px 0; }
.fsec.sec-white + .fsec { padding-top: 64px; }
.split { display: grid; gap: 28px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }
.split h2 { font-size: clamp(26px, 3.6vw, 36px); }
.split .copy > p { margin-top: 14px; font-size: 17px; }
.split .copy > p + p { margin-top: 12px; }
.split .tick { display: grid; gap: 12px; }
.kicker { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.panel h3 { font-size: 18px; letter-spacing: -.01em; }
.panel p { margin-top: 6px; font-size: 15px; }
.panel + .panel { margin-top: 14px; }
.panel .tick { margin-top: 14px; }

.cards3 { display: grid; gap: 16px; }
@media (min-width: 700px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards3 .fcard { display: block; }
@media (max-width: 600px) { .cards3 .fcard { display: grid; } }
a.fcard { color: inherit; }
a.fcard:hover { text-decoration: none; }
a.fcard h3 { color: var(--ink); }
a.fcard .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; font-size: 14.5px; color: var(--brand-ink); grid-column: 2; }

.sec-head.left { text-align: left; margin-left: 0; }

.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); color: var(--ink-2); font-size: 15.5px; }
.callout > .ic { flex: none; font-size: 20px; color: var(--brand-ink); margin-top: 2px; }
.callout.warn { background: var(--warn-bg); border-color: #fde68a; }
.callout.warn > .ic { color: var(--warn-ink); }
.callout b { color: var(--ink); }

/* ── Guides ──────────────────────────────────────────────────── */
.g-sec { padding: 8px 0 56px; }
.g-grid { display: grid; gap: 40px; }
@media (min-width: 1040px) { .g-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; } }
.g-aside { display: grid; gap: 18px; align-content: start; }
@media (min-width: 1040px) { .g-aside { position: sticky; top: 92px; } }
@media (max-width: 1039px) { .g-aside .toc { display: none; } }
.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.toc-h { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; }
.toc a { color: var(--ink-2); }
.g-cta { background: var(--navy); color: #cbd5e1; border-radius: var(--r-lg); padding: 22px; font-size: 14.5px; }
.g-cta-h { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.g-cta .btn { margin-top: 16px; }
.g-cta-l { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #c7d2fe; font-weight: 600; }
.g-cta-l:hover { color: #fff; }

.prose { max-width: 740px; font-size: 17px; line-height: 1.75; color: #334155; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(25px, 3.4vw, 32px); margin-top: 48px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin-top: 32px; letter-spacing: -.01em; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul, .prose h2 + ol, .prose h3 + ol { margin-top: 12px; }
.prose a { color: var(--brand-ink); text-decoration: underline; text-decoration-color: rgba(67, 56, 202, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 19px; color: var(--ink-2); }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink-2); }
.prose .callout { font-size: 15.5px; line-height: 1.6; }
.prose .callout p + p { margin-top: 8px; }
.prose .src { font-size: 14px; color: var(--muted); }
.prose .src a { color: var(--muted); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
.prose ol.steps-list { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 14px; }
.prose ol.steps-list > li { counter-increment: st; position: relative; padding: 18px 20px 18px 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
.prose ol.steps-list > li::before { content: counter(st); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-family: var(--f-display); font-weight: 800; font-size: 16px; }
.prose ol.steps-list > li > b:first-child { display: block; color: var(--ink); font-size: 17px; }
.prose ol.steps-list ul { margin-top: 8px; }
.prose .checklist { list-style: none; padding: 0; }
.prose .checklist li { position: relative; padding-left: 30px; }
.prose .checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 5px; border: 2px solid #a5b4fc; background: #fff; }
.prose .sources { font-size: 14.5px; line-height: 1.6; color: var(--body); }
.prose .sources li + li { margin-top: 6px; }
.prose .sources a { word-break: break-word; }

.tbl { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.tbl thead th { border-top: 0; background: var(--bg-2); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: #475569; font-weight: 600; white-space: nowrap; }
.tbl tbody th { color: var(--ink); font-weight: 600; }
.prose .tbl table { min-width: 560px; }

/* ── Data assets (state tables) ──────────────────────────────── */
.dwrap { margin-top: 8px; }
.dtools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dtools[hidden] { display: none; }
.dfilter { position: relative; flex: 1 1 260px; max-width: 380px; }
.dfilter input { width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.dfilter input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.dfilter .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.dcount { font-size: 14px; color: var(--muted); }
.dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.dtable table { min-width: 860px; font-size: 14.5px; }
.dtable thead th { position: sticky; top: 0; z-index: 1; }
.dtable tbody th { white-space: nowrap; }
.dtable .code { display: inline-block; margin-left: 4px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); font-weight: 500; }
.dtable .cyc { white-space: nowrap; }
.dtable .cyc b { font-family: var(--f-display); font-size: 20px; color: var(--ink); }
.dtable .cyc span { color: var(--muted); font-size: 13px; }
.dtable .cyc small { display: block; color: var(--muted); font-size: 12.5px; }
.dtable .cyc.short b { color: var(--brand-ink); }
.dtable td a { word-break: break-word; }
.dtable td small { display: block; color: var(--muted); font-size: 12px; }
.dtable .lname { display: block; color: var(--ink); font-weight: 600; }
.dtable .lnote { display: block; margin-top: 4px; color: var(--body); }
.dtable tr:target th, .dtable tr:target td { background: var(--brand-soft); }
.dtable .pill { white-space: nowrap; }
.dtable tr[hidden] { display: none; }
.dnote { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.wide { max-width: none; }
.prose.wide { max-width: none; }

/* Data pages use a wider article and put the aside underneath */
.k-data .g-grid { grid-template-columns: minmax(0, 1fr); }
.k-data .g-aside { position: static; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .k-data .g-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .k-data .g-aside .toc { display: block; } }
.k-data .prose { max-width: none; }
.k-data .prose > p, .k-data .prose > h2, .k-data .prose > h3, .k-data .prose > ul, .k-data .prose > ol, .k-data .prose > .callout { max-width: 780px; }

/* ── Related cards ───────────────────────────────────────────── */
.related { padding: 56px 0 24px; }
.rel-h { font-size: clamp(24px, 3.2vw, 30px); margin-bottom: 22px; }
.rgrid { display: grid; gap: 16px; }
@media (min-width: 700px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; color: var(--body); transition: transform .2s, box-shadow .2s, border-color .2s; }
.rcard:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.rcard .k { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.rcard b { font-family: var(--f-display); color: var(--ink); font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.rcard .d { font-size: 14.5px; line-height: 1.55; }
.rcard .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--brand-ink); }
@media (prefers-reduced-motion: reduce) { .rcard:hover { transform: none; } }

/* ── Pricing page extras ─────────────────────────────────────── */
.cmp table { min-width: 640px; }
.cmp td, .cmp th { text-align: center; }
.cmp td:first-child, .cmp th:first-child { text-align: left; }
.cmp .yes { color: var(--ok-ink); font-weight: 600; }
.cmp .no { color: var(--faint); }
.cmp tbody tr.grp th { background: var(--bg); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ── Footer with five columns ────────────────────────────────── */
@media (min-width: 640px) { .ftr-grid.x5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ftr-grid.x5 { grid-template-columns: 1.3fr 1.2fr 1fr 1.2fr 1fr; gap: 32px; } .ftr-grid.x5 .ftr-brand { grid-column: auto; } }
.ftr-grid.x5 a { overflow-wrap: anywhere; }

/* ── 404 ─────────────────────────────────────────────────────── */
.nf { padding: 64px 0 40px; text-align: center; }
.nf .big { font-family: var(--f-display); font-weight: 800; font-size: clamp(72px, 16vw, 140px); line-height: 1; color: var(--brand-soft-2); letter-spacing: -.05em; }
.nf h1 { margin-top: 8px; font-size: clamp(30px, 5vw, 44px); }
.nf p { margin: 14px auto 0; max-width: 560px; font-size: 17px; }
.nf .hero-cta { justify-content: center; }
.nf-links { display: grid; gap: 12px; max-width: 760px; margin: 40px auto 0; text-align: left; }
@media (min-width: 640px) { .nf-links { grid-template-columns: repeat(2, 1fr); } }

/* print: keep content readable */
@media print {
  .hdr, .ftr, .cta-wrap, .g-aside, .related, .skip { display: none !important; }
  .dtable table { min-width: 0; font-size: 11px; }
}

/* ── Home page: links added for internal linking ─────────────── */
.fcard { position: relative; }
.fcard h3 a.stretch { color: inherit; }
.fcard h3 a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fcard h3 a.stretch:hover { text-decoration: none; }
.aud-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-weight: 600; font-size: 15px; }
.spot-more { margin-top: 18px; font-weight: 600; }
#resources .rgrid { max-width: 1080px; margin: 0 auto; }
.copy a .ic, .callout a .ic, .panel a .ic, .prose a .ic, .dl .ic { display: inline-block; vertical-align: -2px; margin-left: 2px; }
.copy p > a { font-weight: 600; }
.ftr h2.fh { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; line-height: 1.4; }
.sec-head p a, .copy p a, .faq .ans a, .plans-note a, .panel p a, .callout a, .dnote a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(67, 56, 202, .4); }
.cta .fine a { text-decoration: underline; text-underline-offset: 3px; }

/* State tables become stacked cards on phones */
@media (max-width: 720px) {
  .dtable { overflow: visible; border: 0; background: none; }
  .dtable table, .prose .tbl.dtable table { min-width: 0; width: 100%; }
  .dtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dtable tbody, .dtable tr, .dtable th, .dtable td { display: block; }
  .dtable tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
  .dtable tr[hidden] { display: none; }
  .dtable tbody th { border: 0; padding: 0 0 6px; font-size: 17px; white-space: normal; }
  .dtable td { border: 0; padding: 6px 0 0; }
  .dtable td[data-label]::before { content: attr(data-label); display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .dtable .cyc small { display: inline; margin-left: 6px; }
}

/* Header menu sheet: its trial button keeps the button look (.mnav a would make it a dark, left-aligned row). */
.mnav a.btn { display: flex; justify-content: center; color: #fff; border-bottom: 0; padding: 12px 18px; }
.mnav a.btn:hover { color: #fff; }

/* mbar:start */
/* Mobile bottom tab bar (phones, < 768px). Mirrors the membermd.io landing tab bar:
   four destinations plus the trial CTA in the last slot, frosted white, safe-area aware.
   Markup: mbar() in _tools/build.py. The build copies this block into legal/styles.css,
   so it uses literal colors instead of the home.css tokens. */
.mbar { display: none; }
@media (max-width: 767px) {
  :root { --mbar-h: 64px; }
  /* Room to scroll clear of the bar; focused/anchored content stops above it. */
  html { scroll-padding-bottom: calc(var(--mbar-h) + 12px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom)); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    box-sizing: border-box; height: calc(var(--mbar-h) + env(safe-area-inset-bottom));
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -10px 24px -20px rgba(15, 23, 42, .4);
    font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  .mbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 0; min-height: 48px; padding: 4px 2px; border-radius: 12px;
    color: #64748b; font-size: 11px; font-weight: 600; line-height: 1.15; letter-spacing: .01em;
    text-decoration: none; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .mbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mbar svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mbar a:hover { color: #0f172a; text-decoration: none; }
  .mbar a:focus-visible { outline: 3px solid #4f46e5; outline-offset: 1px; }
  /* Current section, like membermd's highlighted tab. */
  .mbar a[aria-current="page"] { color: #4338ca; background: #eef2ff; }
  .mbar a.mbar-cta { color: #fff; background: #4f46e5; box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .8); }
  .mbar a.mbar-cta:hover { color: #fff; background: #4338ca; }
  /* The header menu sheet owns the screen while it is open. */
  body:has(.mnav.open) .mbar { display: none; }
  /* The bar carries the trial CTA, so the phone header keeps just the logo and the menu. */
  .hdr-cta .btn-trial { display: none; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .mbar a { transition: transform .12s ease, color .15s ease, background-color .15s ease; }
  .mbar a:active { transform: scale(.92); }
}
@media print { .mbar { display: none !important; } body { padding-bottom: 0; } }
/* mbar:end */

/* help center (generated by _tools/help_pages.py) */
.hsearch { padding-bottom: 0; }
.hs-label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.hs-box { display: flex; align-items: center; gap: 10px; max-width: 640px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hs-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hs-box .ic { flex: none; color: var(--muted); }
.hs-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.hs-none { margin-top: 12px; color: var(--body); }
.hcard .hk { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand-ink); margin-bottom: 6px; }
.hcard[hidden], .hsec[hidden] { display: none; }
.prose pre { overflow-x: auto; background: var(--bg-2); padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }

/* ── Ebook: /book/ and /book/thanks/ ─────────────────────────── */
.bk-hero { position: relative; overflow: hidden; padding: 20px 0 56px; color: #cbd5e1;
  background: radial-gradient(900px 520px at 85% -10%, rgba(99, 102, 241, .45), rgba(99, 102, 241, 0) 70%),
              radial-gradient(700px 500px at 0% 110%, rgba(16, 185, 129, .18), rgba(16, 185, 129, 0) 70%), var(--navy); }
.bk-hero .crumbs a, .bk-hero .crumbs li { color: #94a3b8; }
.bk-hero .crumbs [aria-current] { color: #e2e8f0; }
.bk-hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .bk-hero { padding: 28px 0 80px; } .bk-hero-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 64px; } }
.bk-cover-wrap { display: flex; justify-content: center; }
.bk-cover { display: block; width: min(62vw, 360px); height: auto; border-radius: 6px 14px 14px 6px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, .06) inset, -6px 0 0 rgba(15, 23, 42, .55) inset, 0 40px 80px -30px rgba(0, 0, 0, .75), 0 18px 36px -18px rgba(79, 70, 229, .55);
  transform: perspective(1400px) rotateY(-7deg); transition: transform .4s ease; }
.bk-cover:hover { transform: perspective(1400px) rotateY(-2deg); }
@media (prefers-reduced-motion: reduce) { .bk-cover, .bk-cover:hover { transform: none; transition: none; } }
.bk-copy h1 { color: #fff; font-size: clamp(34px, 5.6vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.04; margin-top: 10px; }
.bk-sub { margin-top: 16px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45; color: #e2e8f0; font-weight: 500; max-width: 640px; }
.bk-lede { margin-top: 14px; font-size: 16.5px; line-height: 1.65; color: #cbd5e1; max-width: 620px; }
.bk-buy { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.bk-price { display: flex; flex-direction: column; }
.bk-price .amt { font-family: var(--f-display); font-size: 44px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.bk-price .per { margin-top: 6px; font-size: 13.5px; color: #94a3b8; }
.bk-buy-btn[disabled], .cta [data-book-buy][disabled] { opacity: .7; cursor: progress; }
.bk-msg { margin-top: 12px; min-height: 1.4em; font-size: 14.5px; color: #fcd34d; }
.bk-msg a { color: #fff; text-decoration: underline; }
.bk-trust { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: #cbd5e1; }
.bk-trust li { display: inline-flex; align-items: center; gap: 8px; }
.bk-trust .ic { color: #6ee7b7; font-size: 16px; }
.bk-stats { background: #fff; border-bottom: 1px solid var(--line); }
.bk-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
@media (min-width: 760px) { .bk-nums { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.bk-nums li { padding: 22px 8px; text-align: center; }
.bk-nums b { display: block; font-family: var(--f-display); font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: var(--brand-ink); line-height: 1; }
.bk-nums span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bk-parts { display: grid; gap: 16px; }
@media (min-width: 760px) { .bk-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-part { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.bk-part-n { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.bk-part h3 { margin-top: 6px; font-size: 20px; letter-spacing: -.01em; }
.bk-part > p { margin-top: 8px; font-size: 15px; }
.bk-part ol { margin-top: 14px; padding-left: 26px; list-style: decimal; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.bk-part ol li::marker { color: var(--brand); font-weight: 600; }
.bk-apps { margin-top: 16px; display: grid; gap: 16px; }
@media (min-width: 900px) { .bk-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bk-apps .panel + .panel { margin-top: 0; }
.bk-apps h3 { display: flex; align-items: center; gap: 8px; }
.bk-apps h3 .ic { color: var(--brand-ink); }
.bk-toc { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 24px 18px; box-shadow: var(--shadow-sm); }
.bk-toc li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; color: var(--ink-2); }
.bk-toc li.pt { font-weight: 700; color: var(--ink); padding-top: 16px; }
.bk-toc .pg { font-family: var(--f-mono); font-size: 13.5px; color: var(--muted); flex: none; }
.bk-toc-note { margin-top: 12px; font-size: 13px; }
.bk-sample { margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); max-width: 780px; }
.bk-sample-k { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--brand-ink); }
.bk-formula { padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); color: var(--ink); font-size: 16px; }
.bk-example { padding: 18px 20px; border-radius: 12px; background: var(--ok-bg); border: 1px solid #a7f3d0; }
.bk-example p { font-size: 15.5px; }
.bk-example p + p { margin-top: 10px; }
.bk-example-h { font-weight: 700; color: var(--ok-ink); }
.bk-sample-more { font-style: italic; color: var(--muted); }
.bk-thanks { padding: 20px 0 72px; }
.bt-card { display: grid; gap: 28px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); max-width: 900px; }
@media (min-width: 760px) { .bt-card { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; } }
.bt-cover { width: 160px; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .6); }
@media (min-width: 760px) { .bt-cover { width: 200px; } }
.bt-body h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.bt-status p { margin-top: 12px; font-size: 16.5px; }
.bt-body[data-state="loading"] .bt-status p::before, .bt-body[data-state="pending"] .bt-status p::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px; border-radius: 50%;
  border: 2px solid var(--brand-soft-2); border-top-color: var(--brand); animation: bt-spin .9s linear infinite; }
@keyframes bt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bt-body .bt-status p::before { animation: none; } }
.bt-body[data-state="invalid"] h1, .bt-body[data-state="expired"] h1, .bt-body[data-state="limit"] h1, .bt-body[data-state="error"] h1 { color: var(--bad-ink); }
.bt-files { margin-top: 22px; display: grid; gap: 12px; }
.bt-files[hidden], .bt-meta[hidden] { display: none; }
@media (min-width: 560px) { .bt-files { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bt-file { display: flex; flex-direction: column; gap: 6px; }
.bt-file .btn { justify-content: center; }
.bt-fmt { font-size: 13px; color: var(--muted); }
.bt-meta { margin-top: 16px; font-size: 14px; color: var(--body); }
.bt-help { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.bt-help p + p { margin-top: 6px; }
.bt-err { margin-top: 14px; color: var(--bad-ink); }

/* Books: /books/ catalog + /books/np-practice-consultancy/ (product, thanks) */
[data-np-buy][hidden], [data-pm-buy][hidden], .bk-notify[hidden], .bk-soon[hidden], .bk-clamp-more[hidden], .bks-badge[hidden] { display: none; }
.bk-soon { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 700; font-size: 16px; }
.bk-notify { margin-top: 10px; max-width: 520px; }
.bk-notify > p { color: #e2e8f0; font-size: 15.5px; line-height: 1.6; }
.bk-notify .nl-form { margin-top: 12px; max-width: 460px; }
.cta .bk-notify { margin: 22px auto 0; text-align: left; }
.cta .bk-notify .nl-form { margin: 0 auto; }
.cta .bk-notify .nl-consent { margin: 0; max-width: none; font-size: 12.5px; color: #cbd5e1; }
.bk-learn { display: grid; gap: 14px 40px; }
@media (min-width: 900px) { .bk-learn { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-learn .tick { display: grid; gap: 16px; align-content: start; }
.bk-learn .tick b { color: var(--ink); }
.bk-part ol.bk-chlist { gap: 12px; }
.bk-chlist li b { display: block; color: var(--ink); font-weight: 600; }
.bk-chlist li span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.bk-appx { margin-top: 16px; max-width: none; }
.bk-appx ol { padding-left: 0; }
@media (min-width: 760px) { .bk-kit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-kit ol { margin-top: 10px; padding-left: 24px; list-style: decimal; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.bk-kit ol li::marker { color: var(--brand); font-weight: 600; }
.bk-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 0 auto; }
@media (min-width: 760px) { .bk-pages { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bk-pages a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.bk-pages a:hover { transform: translateY(-2px); }
.bk-pages img { display: block; width: 100%; height: auto; }
.bk-sample-dl { margin: 22px 0 28px; text-align: center; }
.bk-chapter { position: relative; }
.bk-chapter.is-clamped { max-height: 1150px; overflow: hidden; }
.bk-chapter.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
.bk-chapter > h3:first-child { margin-top: 0; font-size: clamp(24px, 3vw, 30px); }
.bk-chapter h4 { margin-top: 22px; font-size: 18px; }
.bk-chapter .tbl { margin-top: 16px; }
.bk-chapter .callout { margin-top: 18px; }
.bk-chapter .sources { font-size: 13.5px; overflow-wrap: anywhere; }
.bk-chapter .sources li + li { margin-top: 6px; }
.bk-clamp-more { margin-top: 18px; text-align: center; }
.bk-legal { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); font-size: 14.5px; line-height: 1.6; color: var(--body); }
.bk-legal p + p { margin-top: 10px; }
.bk-legal b { color: var(--ink); }
.bk-legal a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.bk-xsell { display: grid; gap: 22px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); max-width: 900px; margin: 0 auto; }
@media (min-width: 640px) { .bk-xsell { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; } }
.bk-xsell img { width: 120px; height: auto; border-radius: 3px 8px 8px 3px; box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .6); }
.bk-xsell h2 { margin-top: 6px; font-size: clamp(20px, 2.6vw, 24px); line-height: 1.2; letter-spacing: -.01em; }
.bk-xsell p { margin-top: 8px; font-size: 15.5px; }
.bk-xsell .btn { margin-top: 14px; max-width: 100%; white-space: normal; text-align: center; }
.bks-grid { display: grid; gap: 20px; }
@media (min-width: 960px) { .bks-grid { max-width: 920px; } }
.bks-card { display: grid; gap: 20px; align-items: start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
@media (min-width: 560px) { .bks-card { grid-template-columns: 160px minmax(0, 1fr); gap: 26px; padding: 26px; } }
.bks-card img { display: block; width: 120px; height: auto; border-radius: 3px 8px 8px 3px; box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .6); }
.bks-card h2 { margin-top: 6px; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.2; letter-spacing: -.01em; }
.bks-card h2 a { color: inherit; }
.bks-sub { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.bks-meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.bks-meta b { font-family: var(--f-display); font-size: 20px; font-weight: 800; color: var(--ink); margin-right: 6px; }
@media (min-width: 560px) { .bks-card img { width: 100%; } }
.bks-card .btn { margin-top: 16px; max-width: 100%; white-space: normal; text-align: center; }
.bks-badge { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }

/* Lead magnet: "Get the free Credentialing Checklist" ({{LEAD_MAGNET}} in _tools/build.py) */
.lm { display: grid; gap: 22px; align-items: center; padding: 28px; border: 1px solid var(--brand-soft-2); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--brand-soft), #fff); box-shadow: var(--shadow); }
@media (min-width: 900px) { .lm { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding: 36px 40px; } }
.lm-copy h2 { margin-top: 8px; font-family: var(--f-display); font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.lm-copy p { margin-top: 10px; color: var(--body); font-size: 16px; line-height: 1.6; }
.lm-form { display: flex; flex-direction: column; gap: 10px; }
.lm-form input[type=email], .lm-form input[type=text] { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.lm-form input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.lm-form .btn { justify-content: center; }
.lm-form .btn[disabled] { opacity: .7; cursor: progress; }
.lm-consent { font-size: 13px; color: var(--muted); }
.lm-msg { min-height: 1.3em; font-size: 14.5px; color: var(--brand-ink); font-weight: 600; }
.lm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer newsletter sign-up */
.nl-form { margin-top: 22px; max-width: 380px; display: flex; flex-direction: column; gap: 8px; }
.nl-form .fh { margin: 0; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input[type=email] { flex: 1 1 190px; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; font: inherit; font-size: 16px; background: rgba(255,255,255,.08); color: #fff; }
.nl-row input[type=email]::placeholder { color: rgba(255,255,255,.6); }
.nl-row input:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.nl-row .btn { min-height: 44px; justify-content: center; }
.nl-row .btn[disabled] { opacity: .7; cursor: progress; }
.nl-consent { font-size: 12.5px; line-height: 1.5; opacity: .8; margin: 0; }
.nl-msg { min-height: 1.3em; font-size: 14px; font-weight: 600; margin: 0; }
.nl-persona { border: 0; margin: 0; padding: 0; min-width: 0; }
.nl-persona legend { padding: 0; margin-bottom: 4px; font-size: 13px; color: #cbd5e1; }
.nl-persona .nl-opts { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nl-persona label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 14px; color: #e2e8f0; cursor: pointer; }
.nl-persona input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: #a5b4fc; }
.nl-persona input[type=radio]:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* What's new (/whats-new/, built from _tools/data/whats_new.json) */
.wn { max-width: 780px; }
.wn-note { font-size: 15px; color: var(--body); margin: 0 0 8px; }
.wn-note a { text-decoration: underline; text-underline-offset: 3px; }
.wn-day { margin-top: 36px; }
.wn-day > h2 { font-family: var(--f-mono); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 14px; }
.wn-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.wn-item + .wn-item { margin-top: 14px; }
.wn-item h3 { margin-top: 8px; font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
.wn-item h3 a { color: var(--ink); }
.wn-item h3 a:hover { color: var(--brand-ink); }
.wn-item p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: #334155; }
.wn-item ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; font-size: 15.5px; line-height: 1.6; color: #334155; }
.wn-item li + li { margin-top: 6px; }
.wn-item:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft-2, #e0e7ff); }
.wn-tag { display: inline-block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 600px) { .wn-item { padding: 18px 16px; } }
