/* ───────────────────────────────────────────────────────────────────────────
   Crumb — site stylesheet ("Midnight & crumbs")
   Colours come from the app icon: a navy night, a cookie moon, crumbs as stars.
   Paper is cool, never cream. Cookie is an accent for night surfaces and for
   space that has been found — never a background for chrome.
   Page-specific extras: /css/home.css (home only).
   ─────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F5F6F8;
  --paper-2: #ECEEF3;
  --card: #FFFFFF;
  --ink: #0E1122;
  --ink-2: #3D4257;
  --ink-3: #5F6479;
  --line: rgba(14, 17, 34, .10);
  --line-2: rgba(14, 17, 34, .06);
  --navy: #293385;
  --navy-2: #1E2766;
  --navy-soft: rgba(41, 51, 133, .07);
  --night: #0B1033;
  --night-2: #121A4D;
  --night-3: #1B2463;
  --on-night: #EEF0FA;
  --on-night-2: #B6BCDD;
  --night-line: rgba(255, 255, 255, .10);
  --cookie: #EBC382;
  --cookie-2: #F4D9A9;
  --chip: #3B2410;
  --safe: #1D7F3A;
  --danger: #D70015;

  --disp: "Bricolage Grotesque", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1180px;
  --gut: clamp(20px, 5vw, 40px);
  --nav-h: 64px;
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 24px;
  --lift: 0 1px 2px rgba(14, 17, 34, .05), 0 14px 34px -18px rgba(14, 17, 34, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .footer :focus-visible, .post-cta :focus-visible { outline-color: var(--cookie); }
::selection { background: rgba(41, 51, 133, .16); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap; border: 1px solid transparent;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-ink {
  background: linear-gradient(180deg, #1F2760, #121845); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(14, 17, 34, .2), 0 10px 24px -12px rgba(18, 24, 69, .6);
}
.btn-ink:hover { background: linear-gradient(180deg, #28316F, #161D52); }
.btn-cookie {
  background: linear-gradient(180deg, var(--cookie-2), var(--cookie)); color: var(--chip);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 12px 28px -12px rgba(235, 195, 130, .55);
}
.btn-cookie:hover { background: linear-gradient(180deg, #F8E2BA, #EFCB91); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 17, 34, .04); }
.btn-ghost:hover { border-color: rgba(14, 17, 34, .22); }
.btn-night { background: rgba(255, 255, 255, .06); border-color: var(--night-line); color: var(--on-night); }
.btn-night:hover { background: rgba(255, 255, 255, .1); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 10px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .chip {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  padding: 3px 7px; border-radius: 7px; background: var(--navy-soft); color: var(--navy);
}

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(245, 246, 248, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(245, 246, 248, .9); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand .word { font-family: var(--disp); font-weight: 700; font-size: 20px; letter-spacing: -.02em; font-variation-settings: "opsz" 48; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav-links .link { padding: 8px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s, background .15s; }
.nav-links .link:hover { color: var(--ink); background: var(--line-2); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:hover { background: var(--line-2); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-inner { gap: 12px; justify-content: space-between; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gut) 18px;
    background: rgba(245, 246, 248, .98); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(14, 17, 34, .4);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .link { padding: 13px 12px; font-size: 17px; color: var(--ink); }
}

/* ── footer (night) ──────────────────────────────────────────────────────── */
.footer {
  background: var(--night); color: var(--on-night-2);
  padding: 72px 0 40px; position: relative; overflow: hidden;
}
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 58% 18%, var(--cookie) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 91% 30%, #fff 50%, transparent 51%);
}
.footer .wrap { position: relative; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--night-line); }
.footer .brand { color: #fff; }
.footer-tagline { margin: 14px 0 20px; max-width: 34ch; font-size: 15px; line-height: 1.55; }
.footer .btn-ink { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--night-line); }
.footer .btn-ink:hover { background: rgba(255, 255, 255, .14); }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.footer-h { font-family: var(--disp); font-weight: 600; font-size: 15px; color: #fff; margin-bottom: 12px; }
.footer-col a { display: block; font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: 13.5px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.footer-bottom .small { max-width: 64ch; color: rgba(182, 188, 221, .8); }
@media (max-width: 980px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) { .footer-col a { padding: 9px 0; } }

/* ── shared headings ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--disp); font-weight: 800; letter-spacing: -.035em; line-height: .98;
  font-variation-settings: "opsz" 96;
}
.h-section {
  font-family: var(--disp); font-weight: 700; letter-spacing: -.028em; line-height: 1.04;
  font-size: clamp(32px, 4.6vw, 54px); font-variation-settings: "opsz" 96; text-wrap: balance;
}
.lede { font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }

/* ═══════════════════════════ BLOG POST ═══════════════════════════ */
/* Posts are full of long unbreakable paths (~/Library/Caches/com.example.App). Let them
   wrap anywhere in text containers, or a single path widens the whole page on a phone. */
.post-title, .post-dek, .crumbtrail, .toc a, .toc-m a, .post-faq summary, .post-faq .faq-a,
.post-extra, .rel-title, .hub-item b, .hub-item p, .post-row .t, .feature h3, .feature p,
.prose h2, .prose h3, .prose h4, .prose p, .prose li, .prose blockquote { overflow-wrap: anywhere; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--navy), #5865C9 70%, var(--cookie)); }

.post { padding: 36px 0 96px; }
.post-layout {
  display: grid; grid-template-columns: minmax(0, 720px) 244px; gap: 80px; justify-content: center; align-items: start;
}
.post-main { min-width: 0; }
.post-aside { position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 22px; padding-top: 4px; max-height: calc(100vh - var(--nav-h) - 48px); }

.crumbtrail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.crumbtrail a:hover { color: var(--navy); }
.crumbtrail span { color: rgba(14, 17, 34, .25); }

.post-head { padding-bottom: 32px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-kicker a {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--navy-soft);
  transition: background .15s;
}
.post-kicker a:hover { background: rgba(41, 51, 133, .12); }
.post-kicker svg { width: 16px; height: 16px; }
.post-title {
  font-family: var(--disp); font-weight: 800; font-size: clamp(34px, 5vw, 52px);
  line-height: 1.04; letter-spacing: -.032em; font-variation-settings: "opsz" 96; text-wrap: balance;
}
.post-dek { margin-top: 18px; font-size: clamp(18px, 1.7vw, 20.5px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 24px; font-size: 14.5px; color: var(--ink-3); }
.post-meta .by { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.post-meta .by img { width: 22px; height: 22px; border-radius: 6px; }

/* on-page contents */
.toc-h { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 10px; }
.toc ol { list-style: none; border-left: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 330px); scrollbar-width: thin; }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  font-size: 13.5px; line-height: 1.4; color: var(--ink-3); transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--navy); border-left-color: var(--navy); font-weight: 600; }
.toc-m { display: none; margin: -12px 0 30px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.toc-m summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.toc-m[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.toc-m ol { list-style: none; padding: 0 18px 12px; }
.toc-m a { display: block; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }

.aside-card { padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--lift); }
.aside-card img { width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px; }
.aside-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-bottom: 14px; }
.aside-card strong { color: var(--ink); }

/* prose */
.prose { font-size: 18.5px; line-height: 1.72; color: #262A3D; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose > p:first-child { font-size: 1.07em; color: var(--ink); }
.prose h2 {
  font-family: var(--disp); font-weight: 700; font-size: clamp(25px, 2.6vw, 30px); line-height: 1.16;
  letter-spacing: -.022em; color: var(--ink); margin-top: 2.1em; font-variation-settings: "opsz" 72; text-wrap: balance;
}
.prose h3 { font-family: var(--disp); font-weight: 650; font-size: 21px; line-height: 1.25; letter-spacing: -.012em; color: var(--ink); margin-top: 1.8em; }
.prose h4 { font-size: 17px; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: rgba(41, 51, 133, .3); transition: text-decoration-color .15s; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--navy); }
.prose ol > li::marker { font-family: var(--mono); font-size: .85em; font-weight: 600; }
.prose li > ul, .prose li > ol { margin-top: .45em; }
.prose blockquote { padding: 4px 0 4px 22px; border-left: 3px solid var(--cookie); color: var(--ink-2); font-style: italic; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); }
.prose code {
  font-family: var(--mono); font-size: .84em; padding: .12em .4em; border-radius: 6px;
  background: var(--paper-2); color: var(--ink); overflow-wrap: anywhere;
}
.prose pre {
  position: relative; margin-top: 1.4em; margin-bottom: 1.4em;
  padding: 52px 20px 20px; border-radius: 14px; overflow-x: auto;
  background: linear-gradient(180deg, #151B47, #0D1235); color: #E6E9F8;
  font-size: 14.5px; line-height: 1.65; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 40px -26px rgba(11, 16, 51, .7);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent;
}
.prose pre::before {
  content: ""; position: absolute; top: 17px; left: 18px; width: 11px; height: 11px; border-radius: 50%;
  background: #FF5F57; box-shadow: 18px 0 0 #FEBC2E, 36px 0 0 #28C840;
}
.prose pre::after {
  content: "Terminal"; position: absolute; top: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: rgba(230, 233, 248, .5);
}
.prose pre code { background: none; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; white-space: pre; }
.copy-btn {
  position: absolute; top: 9px; right: 10px; z-index: 1;
  font-size: 12.5px; font-weight: 600; color: rgba(230, 233, 248, .75);
  padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .07);
  transition: background .15s, color .15s;
}
.copy-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.copy-btn.done { color: #8BE3A8; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.prose th { background: var(--paper); font-weight: 650; color: var(--ink); font-size: 14.5px; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
@media (max-width: 720px) { .prose table { min-width: 560px; } }
.prose .hub-note {
  padding: 16px 18px 16px 50px; border-radius: var(--r); position: relative;
  background: var(--navy-soft); color: var(--ink-2); font-size: 16.5px; line-height: 1.55;
}
.prose .hub-note::before {
  content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 8h.01M12 12v5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.prose .hub-note em { font-style: normal; }

/* end-of-post CTA (night). Class name is load-bearing: offer-modal.js END_CTA. */
.post-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 20px; align-items: center;
  margin: 64px 0 8px; padding: 30px 32px; border-radius: var(--r-lg);
  background: radial-gradient(120% 140% at 100% 0%, #26307A 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--on-night-2);
  box-shadow: 0 30px 60px -36px rgba(11, 16, 51, .8);
}
.cta-sky { position: absolute; inset: 0; z-index: -1; }
.cta-sky i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .5; }
.cta-sky i:nth-child(1) { top: 18%; left: 62%; }
.cta-sky i:nth-child(2) { top: 72%; left: 88%; width: 4px; height: 4px; background: var(--cookie); opacity: .9; }
.cta-sky i:nth-child(3) { top: 30%; left: 94%; }
.cta-sky i:nth-child(4) { top: 84%; left: 54%; opacity: .3; }
.cta-sky i:nth-child(5) { top: 12%; left: 80%; width: 2px; height: 2px; }
.cta-icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.cta-title { font-family: var(--disp); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.cta-text { margin-top: 6px; font-size: 16px; line-height: 1.5; max-width: 52ch; }
.cta-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 6px; }
.cta-fine { font-size: 13.5px; color: rgba(182, 188, 221, .85); }

/* FAQ */
.post-faq { margin-top: 64px; }
.post-faq h2, .related h2 { font-family: var(--disp); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin-bottom: 14px; }
.post-faq details { border-bottom: 1px solid var(--line); }
.post-faq details:first-of-type { border-top: 1px solid var(--line); }
.post-faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: 18px 0; font-family: var(--disp); font-weight: 600; font-size: 18.5px; line-height: 1.35; letter-spacing: -.01em;
}
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1122' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform .2s var(--ease);
}
.post-faq details[open] summary::after { transform: rotate(45deg); }
.post-faq .faq-a { padding: 0 42px 22px 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

/* hand-built blocks carried over from a post (e.g. a pillar post's list of guides) */
.post-extra { margin-top: 64px; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.post-extra h2 { font-family: var(--disp); font-weight: 700; font-size: 26px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; }
.post-extra p { margin-bottom: 16px; }
.post-extra ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.post-extra li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-2); color: var(--navy); font-weight: 500; }
.post-extra li a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .post-extra ul { grid-template-columns: minmax(0, 1fr); } }

/* related */
.related { margin-top: 64px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.rel-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .2s;
}
.rel-card:hover { border-color: rgba(41, 51, 133, .35); box-shadow: var(--lift); }
.rel-card svg { display: none; }
.rel-topic { font-size: 13px; font-weight: 600; color: var(--navy); }
.rel-title { font-family: var(--disp); font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.rel-meta { order: 3; font-size: 13px; color: var(--ink-3); }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 720px); gap: 0; }
  .post-aside { display: none; }
  .toc-m { display: block; }
}
@media (max-width: 720px) {
  .post { padding-top: 24px; }
  .prose { font-size: 17.5px; }
  .prose pre { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); border-radius: 0; font-size: 13.5px; }
  .post-cta { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .cta-actions .btn { width: 100%; }
  .related-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ═══════════════════════════ BLOG INDEX + TOPIC HUBS ═══════════════════════════ */
.guides-hero { padding: 64px 0 40px; }
.guides-hero .crumbtrail { margin-bottom: 22px; }
.guides-hero h1 { font-size: clamp(42px, 6.4vw, 76px); }
.guides-hero .lede { margin-top: 18px; }
.guides-stats { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; font-size: 15px; color: var(--ink-3); }
.guides-stats b { color: var(--ink); font-weight: 650; margin-right: 4px; font-variant-numeric: tabular-nums; }
.search {
  position: relative; margin-top: 30px; max-width: 560px;
}
.search input {
  width: 100%; height: 54px; padding: 0 18px 0 50px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--lift);
  font: inherit; font-size: 16.5px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(41, 51, 133, .14); }
.search svg { position: absolute; left: 17px; top: 17px; width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-empty { display: none; margin-top: 24px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px dashed var(--line); color: var(--ink-2); }
.searching .search-empty.show { display: block; }

.block { padding: 40px 0; }
.block-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.block-hd h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.022em; }
.block-hd a { font-size: 15px; font-weight: 600; color: var(--navy); }
.block-hd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.features { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.feature {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px;
  min-height: 280px; padding: 26px; border-radius: var(--r-lg); color: var(--on-night-2);
  background: radial-gradient(130% 120% at 100% 0%, #28327D 0%, var(--night-2) 50%, var(--night) 100%);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.feature::after {
  content: ""; position: absolute; z-index: -1; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 78% 22%, var(--night-2) 0 34%, transparent 35%), radial-gradient(circle at 40% 45%, var(--chip) 0 6%, transparent 7%), radial-gradient(circle at 62% 70%, var(--chip) 0 6%, transparent 7%), var(--cookie);
  box-shadow: 0 0 40px rgba(235, 195, 130, .35); opacity: .9;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(11, 16, 51, .7); }
.feature .f-topic { font-size: 13.5px; font-weight: 600; color: var(--cookie); }
.feature h3 { font-family: var(--disp); font-weight: 700; font-size: 22px; line-height: 1.16; letter-spacing: -.02em; color: #fff; text-wrap: balance; padding-right: 40px; }
.feature:first-child h3 { font-size: clamp(26px, 2.8vw, 34px); }
.feature p { font-size: 15px; line-height: 1.5; }
.feature .f-meta { margin-top: auto; font-size: 13.5px; color: rgba(182, 188, 221, .8); }

.topic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.topic-tile {
  display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s, transform .2s var(--ease);
}
.topic-tile:hover { border-color: rgba(41, 51, 133, .35); transform: translateY(-2px); }
.topic-tile svg { width: 26px; height: 26px; color: var(--navy); margin-bottom: 12px; }
.topic-tile b { font-family: var(--disp); font-weight: 650; font-size: 17.5px; letter-spacing: -.012em; line-height: 1.25; }
.topic-tile span { font-size: 14px; color: var(--ink-3); }
.topic-tile.all { background: var(--night); border-color: var(--night); color: #fff; }
.topic-tile.all svg { color: var(--cookie); }
.topic-tile.all span { color: var(--on-night-2); }

.topic-group { padding: 34px 0; border-top: 1px solid var(--line); }
.topic-group > header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.topic-group > header svg { width: 24px; height: 24px; color: var(--navy); }
.topic-group > header h2 { font-family: var(--disp); font-weight: 700; font-size: 23px; letter-spacing: -.018em; }
.topic-group > header h2 a:hover { color: var(--navy); }
.topic-group > header .count { font-family: var(--mono); font-size: 13px; color: var(--ink-3); background: var(--paper-2); padding: 2px 8px; border-radius: 7px; }
.topic-group > header .more { margin-left: auto; font-size: 14.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.post-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; list-style: none; }
.post-row a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; line-height: 1.4; color: var(--ink);
}
.post-row a:hover .t { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(41, 51, 133, .35); }
.post-row .m { flex: none; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.post-row.hide, .topic-group.hide { display: none; }
.searching .hide-when-searching { display: none; }

.hub-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hub-item a {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); transition: border-color .15s, box-shadow .2s;
}
.hub-item a:hover { border-color: rgba(41, 51, 133, .35); box-shadow: var(--lift); }
.hub-item b { font-family: var(--disp); font-weight: 650; font-size: 18px; line-height: 1.28; letter-spacing: -.012em; }
.hub-item p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.hub-item .m { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.hub-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.hub-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--night); display: grid; place-items: center; box-shadow: var(--lift); }
.hub-icon svg { width: 28px; height: 28px; color: var(--cookie); }
.other-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.other-topics a { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.other-topics a:hover { border-color: rgba(41, 51, 133, .35); color: var(--navy); }

.band-cta {
  margin: 24px 0 72px; padding: 40px; border-radius: var(--r-lg); position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, #26307A 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--on-night-2); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.band-cta h2 { font-family: var(--disp); font-weight: 700; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.024em; color: #fff; line-height: 1.1; }
.band-cta p { margin-top: 8px; max-width: 56ch; }

@media (max-width: 980px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { min-height: 0; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .guides-hero { padding-top: 40px; }
  .post-rows, .hub-list { grid-template-columns: minmax(0, 1fr); }
  .topic-group > header { flex-wrap: wrap; }
  .topic-group > header .more { margin-left: 36px; width: 100%; }
  .band-cta { padding: 28px 22px; }
}
@media (max-width: 420px) { .topic-grid { grid-template-columns: minmax(0, 1fr); } }

/* ═══════════════════════════ LEGAL ═══════════════════════════ */
.legal { padding: 56px 0 96px; }
.legal .prose { max-width: 720px; margin: 0 auto; }
.legal .post-title { margin-bottom: 10px; }
.legal .updated { color: var(--ink-3); font-size: 15px; margin-bottom: 36px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; }
}
