/* Marketing-site layer on top of the brand tokens and components (brand.css). */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light dark; scroll-padding-top: calc(var(--site-header-height) + var(--space-4)); }
:root[data-theme="light"] { color-scheme: light; }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
img, svg { max-width: 100%; }
a:where(:not(.ct-btn, [class^="w-"], [class*=" w-"])) { color: var(--moss); text-underline-offset: 3px; }
a:where(:not(.ct-btn, [class^="w-"], [class*=" w-"])):hover { color: var(--moss-hover); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 8px 12px; background: var(--paper-raised); border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Grid container: 20px margins on mobile, 32px from tablet, 1200px max. */
.ct-container { padding: 0 var(--space-5); }
@media (min-width: 640px) { .ct-container { padding: 0 var(--space-8); } }

/* Bands: 96 / 64 / 48 px. */
.ct-band { padding: var(--space-12) 0; }
@media (min-width: 640px) { .ct-band { padding: var(--space-16) 0; } }
@media (min-width: 1024px) { .ct-band { padding: var(--space-24) 0; } }

.heading { display: flex; flex-direction: column; margin-bottom: var(--space-12); }
.heading .ct-h2 { margin-top: var(--space-3); }
.heading .ct-lede { margin-top: var(--space-4); max-width: 600px; }
.heading--center { align-items: center; text-align: center; }
.heading--center .ct-lede { margin-left: auto; margin-right: auto; }

/* Type scales down on small screens. */
@media (max-width: 767px) {
  .ct-display-xl { font-size: 44px; line-height: 48px; }
  .ct-display-l { font-size: 36px; line-height: 42px; }
  .ct-h1 { font-size: 32px; line-height: 38px; }
  .ct-h2 { font-size: 28px; line-height: 34px; }
}

/* Header */
.ct-site-header { border-bottom-color: transparent; transition: border-color 120ms; }
.ct-site-header.is-scrolled { border-bottom-color: var(--line); }
.ct-site-header__inner { padding: 0 var(--space-5); }
@media (min-width: 640px) { .ct-site-header__inner { padding: 0 var(--space-8); } }
@media (max-width: 767px) { .ct-site-header__inner { height: 60px; } }
.ct-logo { text-decoration: none; }
.ct-logo__word { font-size: 25px; }
.lockup-word { display: inline; }
@media (max-width: 767px) { .lockup-word { display: none; } }
.ct-site-header__actions { align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: var(--paper-sunken); }
@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .ct-site-header__actions .soon-group { display: none; }
}
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; padding: var(--space-5); background: var(--paper); overflow-y: auto; }
.sheet[hidden] { display: none; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; height: 40px; margin-bottom: var(--space-6); }
.sheet__nav { display: flex; flex-direction: column; }
.sheet__nav a { display: flex; align-items: center; height: 56px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); text-decoration: none; }
.sheet__actions { margin-top: auto; padding-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-2); }

/* "Coming soon": disabled actions with a small badge. */
.soon { display: inline-flex; align-items: center; gap: var(--space-2); }
.soon .ct-btn:disabled { opacity: 0.55; }
.soon-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-full); background: var(--hearth-soft); color: var(--hearth-ink); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; }
.soon--block { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); }
.soon--block .soon-badge { align-self: center; }
.soon-group { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Notice strip above the header */
.notice { background: var(--moss); color: var(--on-moss); font-size: 14px; line-height: 20px; }
.notice__inner { max-width: var(--container-max); margin: 0 auto; padding: var(--space-2) var(--space-5); text-align: center; }
.notice a { color: var(--on-moss); font-weight: 600; }

/* Footer */
.footer { background: var(--paper-sunken); padding: var(--space-16) 0 var(--space-8); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
.footer__brand { grid-column: span 4; display: flex; flex-direction: column; gap: var(--space-4); }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col h2 { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.footer__col a, .footer__brand a { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__desc { font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 300px; }
.footer__status { display: inline-flex; align-items: center; gap: var(--space-2); }
.dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--success); flex: none; }
.footer__bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); }
.footer__bottom a { color: var(--ink-subtle); text-decoration: none; }
.footer__bottom a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1023px) {
  .footer__brand { grid-column: span 12; }
  .footer__col { grid-column: span 3; }
}
@media (max-width: 639px) { .footer__col { grid-column: span 6; } }

/* Grids */
.grid { display: grid; gap: var(--space-6); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* App icon sizes */
.ct-appicon { border-radius: var(--radius-md); }
.ct-appicon svg { width: 100%; height: 100%; display: block; }
.ct-appicon--40 { width: 40px; height: 40px; }
.ct-appicon--64 { width: 64px; height: 64px; border-radius: var(--radius-lg); }
.ct-appcard { border-radius: var(--radius-md); }
.ct-appcard__price { white-space: nowrap; }
/* The foot is always one line, so a badge never makes one card's divider and text sit higher
   than its neighbours'. Narrow cards switch the badge to its short label; at worst it truncates. */
.ct-appcard { container-type: inline-size; }
.ct-appcard__foot { flex-wrap: nowrap; gap: var(--space-2); }
.ct-appcard__price { flex: none; }
.ct-appcard__foot .ct-badge { min-width: 0; overflow: hidden; margin-block: -1px; }
.ct-appcard__foot .ct-badge__text { overflow: hidden; text-overflow: ellipsis; }
.ct-badge__short { display: none; }
@container (max-width: 340px) {
  .ct-appcard__foot .ct-badge__long { display: none; }
  .ct-appcard__foot .ct-badge__short { display: inline; }
}

/* Cards */
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.card h3 { font-size: 18px; line-height: 26px; font-family: var(--font-sans); font-weight: 600; }
.card p { margin-top: var(--space-2); color: var(--ink-muted); }

/* Hero */
.hero { padding: var(--space-16) 0 var(--space-12); }
@media (min-width: 1024px) { .hero { padding: var(--space-24) 0 var(--space-20); } }
.hero__text { max-width: 880px; }
.hero__pods { margin-bottom: var(--space-6); }
.hero .ct-display-xl { margin-top: var(--space-3); }
.hero .ct-lede { margin-top: var(--space-5); max-width: 640px; }
.hero__ctas { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__trust { margin-top: var(--space-4); }

/* Apps you can run: rows that drift sideways (two copies of each row make the loop seamless). */
.marquee { padding: var(--space-10) 0 var(--space-12); overflow: hidden; }
.marquee__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); }
.marquee__label { font-size: 14px; line-height: 20px; color: var(--ink-subtle); font-weight: 600; margin: 0; }
.marquee__all { font-size: 14px; font-weight: 600; }
.marquee__rows { display: flex; flex-direction: column; gap: var(--space-4);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee var(--marquee-duration, 120s) linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee__rows:hover .marquee__track, .marquee__rows:focus-within .marquee__track { animation-play-state: paused; }
.marquee__track > li { flex: none; padding-right: var(--space-3); }
.marquee__item { display: inline-flex; align-items: center; gap: var(--space-3); height: 56px; padding: 0 var(--space-5) 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-full); background: var(--paper-raised); color: var(--ink-muted); font-weight: 600; white-space: nowrap; text-decoration: none; transition: color 120ms, border-color 120ms; }
.marquee__item:hover { color: var(--ink); border-color: var(--line-strong); }
.marquee__item .ct-appicon { width: 40px; height: 40px; border-radius: var(--radius-full); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__row { overflow-x: auto; scrollbar-width: thin; }
  .marquee__copy { display: none; }
}

/* Steps */
.step__num { font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 600; color: var(--hearth-ink); font-variation-settings: 'opsz' 48; }
.step h3 { margin-top: var(--space-4); }
.step p { margin-top: var(--space-2); color: var(--ink-muted); }

/* Ledger band */
.ledger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); align-items: center; }
.ledger__text { grid-column: span 6; }
.ledger__figures { grid-column: span 6; }
@media (max-width: 1023px) { .ledger__text, .ledger__figures { grid-column: span 12; } }
.ct-band--moss .ct-eyebrow, .ct-band--moss .ct-h2, .ct-band--moss .ct-lede, .ct-band--moss h2, .ct-band--moss p { color: var(--on-moss); }
.ct-band--moss .ct-lede { opacity: 0.88; }
.ledger__big { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; font-variation-settings: 'opsz' 72; }
.ledger__rows { margin-top: var(--space-6); border-top: 1px solid color-mix(in srgb, var(--on-moss) 30%, transparent); }
.ledger__row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid color-mix(in srgb, var(--on-moss) 30%, transparent); font-size: 15px; }
.ledger__row span:last-child { font-family: var(--font-mono); }
.ledger__steps { list-style: none; padding: 0; }
.ledger__big + p + .ledger__rows { margin-top: var(--space-8); }
.ledger__note { margin-top: var(--space-4); font-size: 14px; line-height: 20px; opacity: 0.88; }
.ledger-wait { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-muted); }
.ledger-wait p { max-width: 560px; }
@media (max-width: 479px) { .ledger-wait { flex-direction: column; align-items: flex-start; } }
.eligible-list { margin-top: var(--space-3); padding-left: 1.2em; color: var(--ink-muted); }
.eligible-list li + li { margin-top: var(--space-2); }
.honeybox--reserved { background: var(--paper-sunken, var(--honey-soft)); color: var(--ink-muted); }

/* Split layouts */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); align-items: start; }
.split__7 { grid-column: span 7; }
.split__5 { grid-column: span 5; }
.split__8 { grid-column: span 8; }
.split__4 { grid-column: span 4; }
@media (max-width: 1023px) { .split__7, .split__5, .split__8, .split__4 { grid-column: span 12; } }

.included { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.included li { display: flex; gap: var(--space-3); align-items: flex-start; }
.included svg { flex: none; color: var(--moss); margin-top: 2px; }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { height: 56px; padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.compare thead th { font-weight: 600; }
.compare .us { background: var(--paper-raised); }
.compare thead .us { border-top: 2px solid var(--moss); border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm); }
.compare td .mark { display: inline-flex; align-items: center; gap: var(--space-2); }
.compare .yes svg { color: var(--success); }
.compare .no svg { color: var(--ink-subtle); }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 64px; padding: var(--space-3) 0; cursor: pointer; list-style: none; font-size: 18px; line-height: 26px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 150ms; color: var(--ink-muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 0 var(--space-4); color: var(--ink-muted); max-width: 680px; }
.faq .answer p + p { margin-top: var(--space-3); }

/* Final CTA */
.final { padding: var(--space-32) 0 var(--space-24); text-align: center; }
.final .ct-lede { margin: var(--space-4) auto 0; max-width: 560px; }
.final__cta { margin-top: var(--space-8); display: flex; justify-content: center; }

/* Page header (inner pages) */
.page-head { padding: var(--space-16) 0 var(--space-8); }
.page-head .ct-lede { margin-top: var(--space-4); max-width: 640px; }
.crumbs { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-subtle); margin-bottom: var(--space-6); }
.crumbs a { color: var(--ink-subtle); }

/* Catalog: the filter bar is catalog-filter.css */
.page-head--catalog { padding-bottom: var(--space-6); }
.catalog { padding-bottom: var(--space-16); }
.catalog__grid .cf-cell { display: flex; }
.catalog__grid .cf-cell > .ct-appcard { flex: 1; }
.catalog__empty { padding: var(--space-12) var(--space-6); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); text-align: center; color: var(--ink-muted); }
.catalog__empty .ct-h3 { color: var(--ink); margin-bottom: var(--space-2); }
.request { text-align: center; }
.request p { margin: var(--space-2) auto var(--space-6); max-width: 520px; color: var(--ink-muted); }

/* App page */
.app { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); padding-bottom: var(--space-24); }
.app__head { grid-column: span 12; }
.app__main { grid-column: span 8; min-width: 0; }
.app__side { grid-column: span 4; }
@media (max-width: 1023px) { .app__main, .app__side { grid-column: span 12; } .app__side { order: -1; } .app__head { order: -2; } }
.app__title { display: flex; gap: var(--space-5); align-items: flex-start; }
.app__title p { margin-top: var(--space-2); }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.deploy { position: sticky; top: 96px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: var(--space-6); }
@media (max-width: 1023px) { .deploy { position: static; } }
.deploy__price { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 44px; font-variation-settings: 'opsz' 48; margin-top: var(--space-1); }
.deploy__price span { font-family: var(--font-sans); font-size: 16px; font-weight: 400; color: var(--ink-muted); }
.deploy__rows { margin: var(--space-5) 0; }
.deploy__row { display: flex; justify-content: space-between; align-items: center; height: 36px; border-bottom: 1px solid var(--line); font-size: 14px; }
.deploy__row:last-child { border-bottom: 0; }
.deploy__row span:last-child { font-family: var(--font-mono); }
.honeybox { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-5); padding: var(--space-3); border-radius: var(--radius-md); background: var(--honey-soft); color: var(--honey-ink); font-size: 14px; line-height: 20px; }
.honeybox .ct-badge__dot { margin-top: 6px; flex: none; }
.section { margin-top: var(--space-12); }
.section > h2 { margin-bottom: var(--space-4); }

/* Long-form text (legal, docs, app readmes) */
.prose { max-width: var(--prose-max); font-size: 16px; line-height: 26px; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 600; margin-top: var(--space-10); font-variation-settings: 'opsz' 30; }
.prose h3 { font-size: 18px; line-height: 26px; font-weight: 600; margin-top: var(--space-8); }
.prose ul, .prose ol { padding-left: var(--space-6); }
.prose li + li { margin-top: var(--space-2); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--paper-sunken); padding: 1px 5px; border-radius: var(--radius-xs); }
.prose pre { background: var(--paper-sunken); border-radius: var(--radius-md); padding: var(--space-4); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-sunken); font-weight: 600; }
.prose blockquote { margin-left: 0; padding-left: var(--space-4); border-left: 3px solid var(--line-strong); color: var(--ink-muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-10) 0; }
.prose strong { font-weight: 600; }
.legal-wrap { padding-top: var(--space-16); padding-bottom: var(--space-24); }
.legal-wrap .ct-caption { display: block; margin-top: var(--space-3); }
.legal-wrap .ct-lede { margin-top: var(--space-4); max-width: var(--prose-max); }
.legal-body { margin-top: var(--space-10); }
.toc { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }

/* Pricing */
.formula { display: inline-flex; margin-top: var(--space-6); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); background: var(--paper-sunken); font-family: var(--font-mono); font-size: 14px; line-height: 20px; color: var(--ink); max-width: 100%; overflow-x: auto; white-space: nowrap; }
.rate-table td.ct-num, .rate-table th.ct-num { font-family: var(--font-mono); }
.ct-table tbody tr:hover td { background: transparent; cursor: default; }
.ct-table td a { font-weight: 600; text-decoration: none; }

/* Stats */
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: 48px; line-height: 52px; color: var(--honey-ink); font-variation-settings: 'opsz' 72; }
.stat__label { margin-top: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.band--honey { background: var(--honey-soft); }
dl.terms { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; margin: 0; border-top: 1px solid var(--line); }
dl.terms dt, dl.terms dd { margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
dl.terms dt { font-weight: 600; padding-right: var(--space-6); }
dl.terms dd { color: var(--ink-muted); }
@media (max-width: 639px) { dl.terms { grid-template-columns: 1fr; } dl.terms dt { border-bottom: 0; padding-bottom: 0; } }

.contact-card { display: flex; flex-direction: column; gap: var(--space-2); }
.contact-card .ct-mono { font-size: 15px; }
address { font-style: normal; line-height: 24px; }
.not-found { padding-top: var(--space-32); padding-bottom: var(--space-32); text-align: center; }
.not-found .ct-lede { margin: var(--space-4) auto var(--space-8); max-width: 520px; }
.not-found .actions { display: flex; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.center { text-align: center; }
.mt-8 { margin-top: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-12 { margin-top: var(--space-12); }

.app__main > .section:first-child { margin-top: 0; }

/* ---- Hearth port ---- */
.site .ct-site-header .ct-logo__word { display: inline; }
@media (max-width: 767px) { .site .ct-site-header .ct-logo__word { display: none; } }
.ct-appicon img { width: 100%; height: 100%; display: block; }
.strip__item .ct-appicon { width: 32px; height: 32px; }
.crumbs--app { padding-top: var(--space-16); }
.related__title { margin-bottom: var(--space-8); }
.ct-band--tight { padding-top: var(--space-8); }
.split--spaced { margin-top: var(--space-16); }
.eyebrow--honey { color: var(--honey-ink); }
.lede--narrow { max-width: 620px; }
.card--link { text-decoration: none; color: inherit; display: block; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.final__rule { margin: -64px 0 96px; }

/* ---- Docs ------------------------------------------------------------------------------------
   One layout for every docs page: the menu on the left, the page in the middle, and from 1280px
   an aside with the app's box and "On this page". Below 1280 the aside folds into the page;
   below 1024 the menu folds behind "Browse the docs". */
.docs { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--space-12); padding-top: var(--space-10); padding-bottom: var(--space-24); }
.docs__main { min-width: 0; max-width: var(--prose-max); }
.docs__aside { display: none; }
@media (min-width: 1280px) {
  .docs--aside { grid-template-columns: 232px minmax(0, 1fr) 232px; }
  .docs__aside { display: flex; flex-direction: column; gap: var(--space-8); position: sticky; top: calc(var(--site-header-height) + var(--space-6)); align-self: start; max-height: calc(100vh - var(--site-header-height) - var(--space-10)); overflow-y: auto; }
  .docs--aside .docs-toc-inline, .docs--aside .docs__deploy-inline { display: none; }
}
@media (max-width: 1023px) { .docs { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-6); } }

/* The menu */
.docs-nav { position: sticky; top: calc(var(--site-header-height) + var(--space-6)); align-self: start; max-height: calc(100vh - var(--site-header-height) - var(--space-10)); overflow-y: auto; padding-right: var(--space-2); }
.docs-nav__list { display: flex; flex-direction: column; gap: var(--space-8); }
.docs-nav__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); margin-bottom: var(--space-2); }
.docs-nav ul { list-style: none; margin: 0; padding: 0; }
.docs-nav li a { display: flex; align-items: center; gap: var(--space-2); padding: 5px 0 5px var(--space-3); margin-left: -1px; border-left: 2px solid var(--line); font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none; }
.docs-nav li a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.docs-nav li a[aria-current="page"] { color: var(--moss); font-weight: 600; border-left-color: var(--moss); }
.docs-nav li img { flex: none; border-radius: 5px; }
.docs-nav__sub { margin: var(--space-4) 0 var(--space-1); font-size: 13px; line-height: 18px; color: var(--ink-subtle); }
.docs-nav__find { width: 100%; height: 34px; margin-top: var(--space-3); padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 14px; }
.docs-nav__found { margin-top: var(--space-2) !important; }
.docs-nav__none { padding: 5px var(--space-3); font-size: 14px; color: var(--ink-subtle); }
.docs-nav__toggle { display: none; }
@media (max-width: 1023px) {
  .docs-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .docs-nav__toggle:not([hidden]) { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
  .docs-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .docs-nav.is-collapsed .docs-nav__list { display: none; }
  .docs-nav:not(.is-collapsed) .docs-nav__list { margin-top: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
}

/* Search */
.docs-search { position: relative; }
.docs-search__icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-subtle); pointer-events: none; }
.docs-search input { width: 100%; height: 40px; padding: 0 var(--space-3) 0 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); font: inherit; font-size: 15px; }
.docs-search input::placeholder { color: var(--ink-subtle); }
.docs-search input:focus-visible, .docs-nav__find:focus-visible, .docs-dir__filter input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.docs-search--large .docs-search__icon { left: 20px; width: 22px; height: 22px; }
@media (max-width: 559px) { .docs-search--large input { font-size: 16px !important; height: 52px !important; } }
.docs-search--large input { height: 60px; padding-left: 54px; border-color: var(--line-strong); border-radius: var(--radius-md); font-size: 18px; box-shadow: var(--shadow-sm); }
.docs-search__results { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: var(--space-1); list-style: none; max-height: min(60vh, 440px); overflow-y: auto; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.docs-search__results li a, .docs-search__results li.docs-search__empty { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.docs-search__results li.docs-search__empty { color: var(--ink-muted); font-size: 14px; }
.docs-search__results li[aria-selected="true"] a, .docs-search__results li a:hover { background: var(--moss-soft); }
.docs-search__results img, .docs-results img { flex: none; margin-top: 1px; border-radius: 5px; }
.docs-search__t { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.docs-search__w { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.docs-search__dot, .docs-results__dot { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; background: var(--moss-soft); box-shadow: inset 0 0 0 5px var(--moss-soft), inset 0 0 0 10px var(--moss); }

/* Front page */
.docs-home { padding-top: var(--space-16); padding-bottom: var(--space-24); }
.docs-home__head { max-width: 720px; }
.docs-home__head .ct-lede { margin-top: var(--space-4); }
.docs-home__head .docs-search { margin-top: var(--space-8); }
.docs-home__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); margin-top: var(--space-16); padding-top: var(--space-12); border-top: 1px solid var(--line); }
.docs-home__cols--one { grid-template-columns: minmax(0, 720px); }
@media (max-width: 899px) { .docs-home__cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); } .docs-home { padding-top: var(--space-10); } }
.docs-home__title { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 600; font-variation-settings: 'opsz' 36; }
.docs-home__desc { margin-top: var(--space-2); color: var(--ink-muted); }
.docs-home__more { margin-top: var(--space-5); font-weight: 600; }
.docs-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; border-top: 1px solid var(--line); }
.docs-list li { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.docs-list a { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.docs-list a:hover { color: var(--moss); text-decoration: underline; }
.docs-list p { margin-top: var(--space-1); font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.docs-cats { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); border-top: 1px solid var(--line); }
@media (max-width: 479px) { .docs-cats { grid-template-columns: minmax(0, 1fr); } }
.docs-cats a { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.docs-cats a:hover .docs-cats__name { color: var(--moss); text-decoration: underline; }
.docs-cats__icons { display: inline-flex; flex: none; width: 48px; }
.docs-cats__icons img { border-radius: 5px; box-shadow: 0 0 0 2px var(--paper); }
.docs-cats__icons img + img { margin-left: -6px; }
.docs-cats__name { flex: 1; font-weight: 600; font-size: 15px; }
.docs-cats__count { font-size: 13px; color: var(--ink-subtle); white-space: nowrap; }

/* Still stuck? */
.docs-help { margin-top: var(--space-16); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--paper-sunken); }
.docs-help h2 { font-family: var(--font-display); font-size: 21px; line-height: 28px; font-weight: 600; }
.docs-help p { margin-top: var(--space-2); color: var(--ink-muted); max-width: 640px; }

/* Articles */
.docs .crumbs { margin-bottom: var(--space-4); }
.docs__apphead { display: flex; align-items: center; gap: var(--space-4); }
.docs__apphead img { flex: none; border-radius: 12px; }
.docs__lede { margin-top: var(--space-3); }
.docs__updated { margin-top: var(--space-3); font-size: 13px; color: var(--ink-subtle); }
.docs__deploy-inline { margin-top: var(--space-5); }
.docs__body { margin-top: var(--space-8); }
.docs__body h2 { padding-top: var(--space-2); }
.docs-toc-inline { margin-top: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper-raised); }
.docs-toc-inline summary { padding: var(--space-3) var(--space-4); font-weight: 600; cursor: pointer; }
.docs-toc-inline .docs-toc { padding: 0 var(--space-4) var(--space-4); }
.docs-toc, .docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc ul { margin: 2px 0 var(--space-2); padding-left: var(--space-3); }
.docs-toc a { display: block; padding: 3px 0 3px var(--space-3); border-left: 2px solid transparent; font-size: 13px; line-height: 18px; color: var(--ink-muted); text-decoration: none; }
.docs-toc > li > a { font-weight: 600; color: var(--ink); }
.docs-toc a:hover { color: var(--moss); }
.docs-toc a.is-active { color: var(--moss); border-left-color: var(--moss); }
.docs-aside__title { margin-bottom: var(--space-2); font-size: 14px; line-height: 20px; font-weight: 600; }
.docs-appbox { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper-raised); display: flex; flex-direction: column; gap: var(--space-4); }
.docs-appbox__head { display: flex; align-items: center; gap: var(--space-3); }
.docs-appbox__head img { flex: none; border-radius: 10px; }
.docs-appbox__name { font-weight: 600; }
.docs-appbox__cat { font-size: 13px; color: var(--ink-subtle); }
.docs-appbox__tagline { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.docs-appbox__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); font-size: 14px; }
.ct-btn--block { width: 100%; justify-content: center; }
.docs-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-16); }
.docs-pager a { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); font-weight: 600; text-decoration: none; }
.docs-pager a:hover { border-color: var(--moss); }
.docs-pager span { font-size: 13px; font-weight: 400; color: var(--ink-subtle); }
.docs-pager__next { grid-column: 2; text-align: right; }
@media (max-width: 559px) { .docs-pager { grid-template-columns: minmax(0, 1fr); } .docs-pager__next { grid-column: 1; } }
.docs-siblings { margin-top: var(--space-16); }
.docs-siblings h2 { font-size: 15px; font-weight: 600; }
.docs-siblings ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.docs-siblings a { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3) 0 6px; border: 1px solid var(--line); border-radius: var(--radius-full); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.docs-siblings a:hover { border-color: var(--moss); }
.docs-siblings img { border-radius: 6px; }

/* App guide directory */
.docs-dir__filter { margin-top: var(--space-8); max-width: 360px; }
.docs-dir__filter input { width: 100%; height: 40px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-raised); color: var(--ink); font: inherit; }
.docs-dir__group { margin-top: var(--space-10); scroll-margin-top: calc(var(--site-header-height) + var(--space-6)); }
.docs-dir__title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 600; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.docs-dir__desc { margin-top: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.docs-dir__apps { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-1) var(--space-4); }
.docs-dir__apps a { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); margin: 0 calc(-1 * var(--space-3)); border-radius: var(--radius-md); color: inherit; text-decoration: none; }
.docs-dir__apps a:hover { background: var(--paper-sunken); }
.docs-dir__apps img { flex: none; border-radius: 9px; }
.docs-dir__name { display: block; font-weight: 600; }
.docs-dir__tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.docs-dir__empty { margin-top: var(--space-10); color: var(--ink-muted); }

/* Search results page */
.docs-search-page { margin-top: var(--space-6); }
.docs-results__count, .docs-results__none { margin-top: var(--space-8); color: var(--ink-muted); }
.docs-results { list-style: none; margin: var(--space-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.docs-results a { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.docs-results a:hover .docs-results__title { color: var(--moss); text-decoration: underline; }
.docs-results__title { display: block; font-weight: 600; }
.docs-results__where { display: block; font-size: 14px; color: var(--ink-muted); }
