/* Gram Shop portal layer — light-theme token mapping and page utilities.
   Every value comes from Nocturne's ramps; nothing new is invented. */
body { margin: 0; }

[data-theme="light"] {
  --color-bg: #f3f5fe;
  --color-surface: #e4e7f5;
  --color-text: #292b31;
  --color-divider: color-mix(in srgb, #292b31 16%, transparent);
  --shadow-sm: 0 0 0 1px #cfd3e5;
  --shadow-md: 0 0 0 1px #cfd3e5, 0 6px 18px rgba(41,43,49,.10);
  --shadow-lg: 0 0 0 1px #b2b6ca, 0 16px 40px rgba(41,43,49,.16);
}
[data-theme="light"] .tag-accent { background: var(--color-accent-200); color: var(--color-accent-800); }
[data-theme="light"] .tag-neutral { background: var(--color-neutral-300); color: var(--color-neutral-900); }
[data-theme="light"] a { color: var(--color-accent-600); }
[data-theme="light"] .gs-solid { color: var(--color-neutral-100); }

.btn, .tag, .gs-pill, .seg-opt { white-space: nowrap; }
.tag { line-height: 1.6; }
.gs-shell { min-height: 100vh; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); }
.gs-sec { padding: 72px 48px; max-width: 1180px; }
.gs-h6 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 14px; font-family: var(--font-heading); }
.gs-lead { font-size: 17px; opacity: .78; max-width: 60ch; text-wrap: pretty; }
.gs-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 10px; border-radius: 6px; }
.gs-mark { border-radius: 9px 9px 9px 2px; border: 1.5px solid var(--color-accent); display: grid; place-items: center; font-family: var(--font-heading); font-weight: 500; color: var(--color-accent); }
/* The "Bubble G" brand mark (public/template/brand/logo), painted through its
   silhouette so the theme decides the colour. */
.gs-logo { display: inline-block; flex-shrink: 0; background-color: var(--color-accent); -webkit-mask: url("../../../brand/logo/svg/gramshop-mark-white.svg") center / contain no-repeat; mask: url("../../../brand/logo/svg/gramshop-mark-white.svg") center / contain no-repeat; }
.gs-band { background: var(--color-section); color: var(--color-neutral-100); }
.gs-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.gs-link { color: var(--color-accent); text-decoration: none; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; }
.gs-link:hover { text-decoration: underline; }

/* placeholder imagery — striped fields with a monospace explainer */
.gs-ph {
  display: grid; place-items: center; border-radius: var(--radius-md);
  background-image: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--color-text) 6%, transparent) 0 6px,
    transparent 6px 12px);
  box-shadow: inset 0 0 0 1px var(--color-divider);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
  text-align: center; padding: 16px;
}

/* disclosure rows (FAQ, docs) */
.gs-dl { border-top: 1px solid var(--color-divider); }
.gs-dl summary {
  list-style: none; cursor: pointer; padding: 16.8px 0;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-heading); font-weight: 500; font-size: 16px;
}
.gs-dl summary::-webkit-details-marker { display: none; }
.gs-dl summary::after {
  content: ''; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .5;
}
.gs-dl[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.gs-dl summary:hover { color: var(--color-accent); }
.gs-dl p { font-size: 14px; opacity: .75; max-width: 72ch; margin: 0 0 16.8px; }

@media (max-width: 720px) {
  .gs-sec { padding: 48px 24px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Portal Nav — extracted from the former "Portal Nav" component.
   ══════════════════════════════════════════════════════════════════════ */
.pn-wrap { display: flex; align-items: center; gap: 22.4px; padding: 18px 48px; font-family: var(--font-body); color: var(--color-text); }
.pn-wrap a { color: inherit; text-decoration: none; font-size: 13.5px; opacity: .72; }
.pn-wrap a:hover { opacity: 1; color: var(--color-accent); }
.pn-wrap a.pn-on { opacity: 1; color: var(--color-accent); }
.pn-wrap .btn, .pn-wrap a { white-space: nowrap; }
.pn-wrap a.pn-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; opacity: 1; }
.pn-mark { width: 26px; height: 26px; font-size: 14px; line-height: 1; }
.pn-logo { width: 26px; height: 26px; }
.pn-name { font: 500 16px/1 var(--font-heading); letter-spacing: -.01em; opacity: 1; }
.pn-links { display: flex; align-items: center; gap: 22.4px; }

@media (max-width: 1100px) { .pn-wrap { gap: 16.8px; padding: 18px 28px; } }
@media (max-width: 900px) { .pn-links { display: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   Portal Footer — extracted from the former "Portal Footer" component.
   ══════════════════════════════════════════════════════════════════════ */
.pf { padding: 56px 48px 40px; font-family: var(--font-body); color: var(--color-text); }
.pf a { color: inherit; text-decoration: none; font-size: 13px; opacity: .7; }
.pf a:hover { opacity: 1; color: var(--color-accent); }
.pf-grid { display: flex; flex-wrap: wrap; gap: 44.8px; max-width: 1180px; }
.pf-brand { flex: 1 1 240px; }
.pf-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11.2px; }
.pf-mark { width: 24px; height: 24px; border-radius: 8px 8px 8px 2px; font-size: 13px; line-height: 1; }
.pf-logo { width: 24px; height: 24px; }
.pf-name { font: 500 15px/1 var(--font-heading); }
.pf-about { font-size: 12.5px; opacity: .6; margin: 0 0 14px; max-width: 34ch; }
.pf-status {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px;
  padding: 3px 10px; border-radius: 6px;
  background: color-mix(in srgb, oklch(0.66 0.125 155) 22%, transparent);
  color: oklch(0.82 0.09 155);
}
.pf-col { flex: 1 1 130px; }
.pf-heading { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .45; margin-bottom: 11.2px; }
.pf-links { display: flex; flex-direction: column; gap: 7px; }
.pf-rule { margin: 33.6px 0 16.8px; max-width: 1180px; }
.pf-bottom { display: flex; flex-wrap: wrap; gap: 11.2px; font-size: 12px; opacity: .5; max-width: 1180px; }
.pf-locale { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-locale a { font-size: inherit; }
.pf-locale a.pf-on { opacity: 1; font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════════
   Homepage — extracted from the inline styles of "Portal Home".
   Section modifiers first, then the blocks each section owns.
   ══════════════════════════════════════════════════════════════════════ */
.gs-sec-tight { padding-top: 33.6px; }
.gs-h2 { font-size: 36px; margin-bottom: 33.6px; }
.gs-btn-lg { font-size: 15px; padding: 11.2px 22.4px; }
.gs-hr { margin: 0 48px; }

/* — hero — */
.gs-hero { padding-top: 56px; padding-bottom: 40px; }
.gs-hero-badge { margin-bottom: 22.4px; display: inline-flex; }
.gs-hero-badge i { margin-right: 5px; }
.gs-hero-title { font-size: 64px; line-height: 1.04; max-width: 19ch; letter-spacing: -.025em; margin: 14px 0 22.4px; }
.gs-hero-lead { max-width: 56ch; }
.gs-hero-actions { display: flex; flex-wrap: wrap; gap: 11.2px; margin-top: 33.6px; align-items: center; }
.gs-hero-note { font-size: 12.5px; margin-left: 11.2px; }
.gs-hero-media { display: flex; flex-wrap: wrap; gap: 16.8px; margin-top: 56px; }
.gs-hero-shot { flex: 2 1 520px; aspect-ratio: 8 / 5; height: auto; object-fit: contain; }
.gs-hero-aside { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16.8px; }
.gs-hero-shot-chat { flex: 0 0 auto; aspect-ratio: 8 / 5; height: auto; object-fit: contain; }
.gs-hero-stat { gap: 5.6px; }
.gs-hero-stat-value { font-size: 26px; font-weight: 500; }
.gs-hero-stat .card-body { flex: none; }

/* — journey — */
.gs-journey h2 { max-width: 24ch; }
.gs-journey-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16.8px; list-style: none; margin: 0; padding: 0;
}
.gs-step { display: flex; flex-direction: column; gap: 8.4px; }
.gs-step-head { display: flex; align-items: center; gap: 8px; }
.gs-step-n { font-size: 11px; color: var(--color-accent); }
.gs-step-rule { height: 1px; flex: 1; background: var(--color-divider); }
.gs-step-icon { font-size: 20px; color: var(--color-accent); }
.gs-step-title { font: 500 16px/1.2 var(--font-heading); }
.gs-step-body { font-size: 13px; opacity: .7; margin: 0; }

/* — stat band — */
.gs-stats { padding: 56px 48px; margin-top: 33.6px; }
.gs-stats-grid { max-width: 1180px; display: flex; flex-wrap: wrap; gap: 44.8px; }
.gs-stat { flex: 1 1 230px; }
.gs-stat-value { font-size: 44px; line-height: 1; font-weight: 500; }
.gs-stat-label { font-size: 13px; opacity: .72; margin-top: 8px; max-width: 24ch; }

/* — features — */
.gs-features h2 { max-width: 26ch; }
.gs-features-grid { display: flex; flex-wrap: wrap; gap: 16.8px; }
.gs-feature { flex: 1 1 300px; max-width: 360px; padding: 22.4px; gap: 8.4px; }
.gs-feature-icon { font-size: 22px; color: var(--color-accent); }
.gs-more { margin-top: 22.4px; }

/* — audience — */
.gs-audience-grid { display: flex; flex-wrap: wrap; gap: 33.6px; margin-top: 22.4px; }
.gs-audience-item { flex: 1 1 280px; }
.gs-audience-title { font: 500 22px/1.2 var(--font-heading); margin-bottom: 8.4px; }
.gs-audience-body { font-size: 14px; opacity: .75; max-width: 38ch; }

/* — plans teaser — */
.gs-plans h2 { margin-bottom: 22.4px; }
.gs-plans-grid { display: flex; flex-wrap: wrap; gap: 11.2px; }
.gs-plan { flex: 1 1 200px; max-width: 250px; padding: 22.4px; gap: 5.6px; }
.gs-plan-price { font-size: 24px; font-weight: 500; }

/* — closing call to action — */
.gs-cta { padding-bottom: 80px; }
.gs-cta-card { padding: 44.8px; gap: 14px; align-items: flex-start; }
.gs-cta-title { font-size: 32px; max-width: 22ch; margin: 0; }
.gs-cta-body { font-size: 15px; opacity: .75; max-width: 52ch; margin: 0; }
.gs-cta-actions { display: flex; gap: 11.2px; flex-wrap: wrap; margin-top: 8.4px; }

@media (max-width: 720px) {
  .gs-hero-title { font-size: 44px; }
  .gs-stats { padding: 48px 24px; }
  .gs-hr { margin: 0 24px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   About — extracted from the inline styles of "Portal About".
   ══════════════════════════════════════════════════════════════════════ */
.gs-sec-tight-22 { padding-top: 22.4px; }
.gs-h2-30 { font-size: 30px; margin-bottom: 14px; }

.gs-about-intro { padding-top: 48px; padding-bottom: 33.6px; }
.gs-about-title { font-size: 52px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-about-band { padding: 48px; }
.gs-about-band-inner { max-width: 1180px; }
.gs-about-band-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin-bottom: 14px; }
.gs-about-band-line { font-size: 26px; line-height: 1.35; max-width: 38ch; margin: 0; font-family: var(--font-heading); font-weight: 500; }
.gs-about-story-grid { display: flex; flex-wrap: wrap; gap: 44.8px; }
.gs-about-story-text { flex: 1 1 380px; max-width: 600px; }
.gs-about-story-media { flex: 1 1 280px; max-width: 380px; }
.gs-about-para { font-size: 15px; opacity: .78; max-width: 58ch; text-wrap: pretty; }
.gs-about-para-next { margin-top: 11.2px; }
.gs-about-photo { min-height: 280px; }
.gs-about-principles-title { margin-bottom: 33.6px; }
.gs-about-principles-grid { display: flex; flex-wrap: wrap; gap: 16.8px; }
.gs-principle { flex: 1 1 260px; max-width: 280px; padding: 22.4px; gap: 8.4px; }
.gs-principle-icon { font-size: 22px; color: var(--color-accent); }
.gs-about-stage-grid { display: flex; flex-wrap: wrap; gap: 33.6px; margin-top: 14px; max-width: 960px; }
.gs-about-stage-item { flex: 1 1 260px; }
.gs-about-stage-title { font: 500 20px/1.2 var(--font-heading); margin-bottom: 8.4px; }
.gs-about-stage-body { font-size: 13.5px; opacity: .75; }
.gs-about-note { font-size: 12.5px; margin-top: 22.4px; max-width: 60ch; }
.gs-cta-title-30 { font-size: 30px; max-width: 24ch; margin: 0; }
.gs-cta-btn { margin-top: 8.4px; }

/* ══════════════════════════════════════════════════════════════════════════
   Blog — extracted from the inline styles of "Portal Blog".
   ══════════════════════════════════════════════════════════════════════ */
.gs-blog-intro { padding-top: 48px; padding-bottom: 22.4px; }
.gs-blog-title { font-size: 48px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-blog-featured { padding-top: 0; padding-bottom: 22.4px; }
.gs-blog-feature { padding: 0; overflow: hidden; flex-direction: row; flex-wrap: wrap; gap: 0; }
.gs-blog-feature-shot { flex: 1 1 340px; min-height: 280px; border-radius: 0; }
.gs-blog-feature-body { flex: 1 1 340px; padding: 33.6px; display: flex; flex-direction: column; gap: 11.2px; justify-content: center; }
.gs-blog-meta-row { display: flex; gap: 8px; align-items: center; }
.gs-blog-read { font-size: 12px; }
.gs-blog-feature-title { font-size: 30px; max-width: 24ch; margin: 0; }
.gs-blog-feature-dek { font-size: 14px; opacity: .75; max-width: 52ch; margin: 0; }
.gs-blog-feature-link { margin-top: 5.6px; }
.gs-blog-filters { padding-top: 11.2px; padding-bottom: 16.8px; }
.gs-blog-tags { display: flex; gap: 8.4px; flex-wrap: wrap; }
.gs-blog-list { padding-top: 0; padding-bottom: 33.6px; }
.gs-blog-grid { display: flex; flex-wrap: wrap; gap: 16.8px; }
.gs-post { flex: 1 1 300px; max-width: 360px; padding: 0; overflow: hidden; }
.gs-post-shot { height: 150px; border-radius: 0; }
.gs-post-body { padding: 22.4px; display: flex; flex-direction: column; gap: 8.4px; }
.gs-post-read { font-size: 11.5px; }
.gs-blog-pager { display: flex; align-items: center; gap: 11.2px; margin-top: 33.6px; }
.gs-blog-count { font-size: 12.5px; margin-right: auto; }
.gs-blog-signup { padding-top: 0; padding-bottom: 80px; }
.gs-signup-card { padding: 33.6px; gap: 14px; align-items: flex-start; max-width: 640px; }
.gs-signup-title { font-size: 24px; margin: 0; max-width: 26ch; }
.gs-signup-row { display: flex; gap: 8.4px; flex-wrap: wrap; width: 100%; max-width: 420px; }
.gs-signup-input { flex: 1 1 220px; }
.gs-signup-note { font-size: 12px; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   Changelog — extracted from the inline styles of "Portal Changelog".
   The pill tones replace the component's tone(kind) helper: one class per
   entry kind, same OKLCH hues (Shipped 155, Fixed 75, Breaking 25).
   ══════════════════════════════════════════════════════════════════════ */
.gs-pill-shipped { background: color-mix(in srgb, oklch(0.66 0.125 155) 22%, transparent); color: oklch(0.82 0.09 155); }
.gs-pill-fixed { background: color-mix(in srgb, oklch(0.66 0.125 75) 22%, transparent); color: oklch(0.82 0.09 75); }
.gs-pill-breaking { background: color-mix(in srgb, oklch(0.66 0.125 25) 22%, transparent); color: oklch(0.82 0.09 25); }
.gs-pill-neutral { background: var(--color-accent-800); color: var(--color-accent-100); }

.gs-cl-intro { padding-top: 48px; padding-bottom: 33.6px; }
.gs-cl-title { font-size: 48px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-cl-filters { display: flex; gap: 8.4px; flex-wrap: wrap; margin-top: 22.4px; }
.gs-cl-list { padding-top: 0; padding-bottom: 80px; }
.gs-cl-stream { max-width: 840px; }
.gs-cl-entry { display: flex; gap: 22.4px; padding-bottom: 33.6px; }
.gs-cl-when { flex: none; width: 110px; padding-top: 2px; }
.gs-cl-date { font-size: 12.5px; opacity: .7; }
.gs-cl-version { font-size: 11px; color: var(--color-accent); margin-top: 3px; }
.gs-cl-body { flex: 1; border-left: 1px solid var(--color-divider); padding-left: 22.4px; }
.gs-cl-labels { display: flex; gap: 8.4px; align-items: center; flex-wrap: wrap; margin-bottom: 8.4px; }
.gs-cl-headline { font-size: 22px; margin: 0 0 8.4px; max-width: 30ch; }
.gs-cl-summary { font-size: 14px; opacity: .78; max-width: 60ch; margin: 0 0 11.2px; text-wrap: pretty; }
.gs-cl-points { display: flex; flex-direction: column; gap: 6px; }
.gs-cl-point { display: flex; gap: 8px; font-size: 13px; align-items: flex-start; }
.gs-cl-dash { color: var(--color-accent); margin-top: 1px; }
.gs-cl-point-text { opacity: .72; max-width: 56ch; }
.gs-cl-more { display: flex; justify-content: center; padding-top: 11.2px; }

/* ══════════════════════════════════════════════════════════════════════════
   Contact — extracted from the inline styles of "Portal Contact".
   `hidden` needs the !important: the panels it hides are flex cards.
   ══════════════════════════════════════════════════════════════════════ */
[hidden] { display: none !important; }

.gs-ct-intro { padding-top: 48px; padding-bottom: 33.6px; }
.gs-ct-title { font-size: 48px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-ct-main { padding-top: 0; padding-bottom: 33.6px; }
.gs-ct-grid { display: flex; flex-wrap: wrap; gap: 44.8px; align-items: flex-start; }
.gs-ct-formcol { flex: 1 1 460px; max-width: 560px; }
.gs-ct-card { padding: 33.6px; gap: 16.8px; }
.gs-ct-card-title { font: 500 22px/1.2 var(--font-heading); margin-top: 5.6px; }
.gs-ct-row { display: flex; gap: 11.2px; flex-wrap: wrap; }
.gs-ct-half { flex: 1 1 200px; }
.gs-ct-radios { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.gs-ct-submit { display: flex; align-items: center; gap: 11.2px; flex-wrap: wrap; }
.gs-ct-submit-note { font-size: 12px; }
.gs-ct-done { padding: 33.6px; gap: 14px; align-items: flex-start; }
.gs-ct-done-icon { font-size: 28px; color: oklch(0.80 0.10 155); }
.gs-ct-done-title { margin-top: 0; }
.gs-ct-done-body { font-size: 14px; opacity: .78; max-width: 44ch; margin: 0; }
.gs-ct-routes { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 11.2px; }
.gs-route { padding: 16.8px; gap: 5.6px; }
.gs-route-head { display: flex; align-items: center; gap: 8px; }
.gs-route-icon { font-size: 17px; color: var(--color-accent); }
.gs-route-title { font: 500 15px/1.2 var(--font-heading); }
.gs-route-body { flex: none; }
.gs-route-address { font-size: 12.5px; color: var(--color-accent); }

/* ══════════════════════════════════════════════════════════════════════════
   Docs — the page's own <style> block plus its extracted inline styles.
   ══════════════════════════════════════════════════════════════════════ */
.dk-code {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 16.8px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.7;
  overflow-x: auto; box-shadow: var(--shadow-sm);
}
.dk-code .k { color: var(--color-accent); }
.dk-code .c { opacity: .45; }
.dk-side a { display: block; font-size: 13.5px; color: inherit; text-decoration: none; opacity: .7; padding: 4px 0; }
.dk-side a:hover { opacity: 1; color: var(--color-accent); }

.gs-dk-intro { padding-top: 48px; padding-bottom: 22.4px; }
.gs-dk-title { font-size: 48px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.dk-search { position: relative; max-width: 460px; margin-top: 22.4px; }
.dk-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); opacity: .5; font-size: 15px; }
.dk-search-input { padding-left: 34px; min-height: 42px; }
.gs-dk-starts { padding-top: 11.2px; padding-bottom: 33.6px; }
.gs-dk-starts-grid { display: flex; flex-wrap: wrap; gap: 16.8px; }
.gs-dk-start { flex: 1 1 280px; max-width: 340px; padding: 22.4px; gap: 8.4px; }
.gs-dk-start-icon { font-size: 22px; color: var(--color-accent); }
.gs-dk-ref { padding-top: 44.8px; padding-bottom: 33.6px; }
.gs-dk-ref-grid { display: flex; flex-wrap: wrap; gap: 44.8px; align-items: flex-start; }
.dk-side { flex: 1 1 200px; max-width: 230px; position: sticky; top: 24px; }
.dk-side-group { margin-bottom: 16.8px; }
.dk-side-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .45; margin-bottom: 7px; }
.gs-dk-content { flex: 1 1 520px; max-width: 720px; }
.gs-dk-h2 { font-size: 30px; margin-bottom: 11.2px; }
.gs-dk-h3 { font-size: 20px; margin-bottom: 11.2px; }
.gs-dk-lede { font-size: 15px; opacity: .78; margin-bottom: 22.4px; }
.gs-dk-endpoint { display: flex; gap: 8.4px; align-items: center; margin-bottom: 11.2px; }
.gs-dk-path { font-size: 13.5px; }
.gs-dk-block { margin-bottom: 22.4px; }
.gs-dk-table { margin-bottom: 22.4px; }
.gs-dk-cell { font-size: 13px; }
.gs-dk-callout {
  display: flex; gap: 11.2px; padding: 14px; border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 45%, transparent);
  background: color-mix(in srgb, var(--color-accent) 8%, transparent);
}
.gs-dk-callout-icon { color: var(--color-accent); font-size: 18px; margin-top: 1px; }
.gs-dk-callout-title { font: 500 14px/1.3 var(--font-heading); margin-bottom: 2px; }
.gs-dk-callout-body { font-size: 13px; opacity: .78; }
.gs-dk-pager { display: flex; gap: 16.8px; flex-wrap: wrap; }
.gs-dk-pager-next { margin-left: auto; }
.gs-dk-gap { padding-top: 0; padding-bottom: 80px; }
.gs-dk-gap-card { padding: 33.6px; gap: 11.2px; align-items: flex-start; max-width: 640px; }
.gs-dk-gap-title { font-size: 24px; margin: 0; max-width: 28ch; }

/* ══════════════════════════════════════════════════════════════════════════
   FAQ — extracted from the inline styles of "Portal FAQ".
   ══════════════════════════════════════════════════════════════════════ */
.gs-fq-intro { padding-top: 48px; padding-bottom: 22.4px; }
.gs-fq-title { font-size: 48px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-fq-main { padding-top: 0; padding-bottom: 80px; }
.gs-fq-grid { display: flex; flex-wrap: wrap; gap: 44.8px; align-items: flex-start; }
.gs-fq-toc { flex: 1 1 200px; max-width: 220px; position: sticky; top: 24px; }
.gs-fq-toc-links { display: flex; flex-direction: column; gap: 8px; }
.gs-fq-toc-links a { font-size: 13.5px; color: inherit; text-decoration: none; opacity: .7; display: flex; gap: 8px; }
.gs-fq-toc-links a:hover { opacity: 1; color: var(--color-accent); }
.gs-fq-toc-n { color: var(--color-accent); font-size: 11px; }
.gs-fq-stuck { font-size: 12.5px; opacity: .6; margin: 0; }
.gs-fq-stuck-link { margin-top: 5.6px; }
.gs-fq-answers { flex: 1 1 520px; max-width: 800px; }
.gs-fq-group { margin-bottom: 33.6px; scroll-margin-top: 24px; }
.gs-fq-group-head { display: flex; align-items: baseline; gap: 11.2px; margin-bottom: 5.6px; }
.gs-fq-group-n { font-size: 11px; color: var(--color-accent); }
.gs-fq-group-title { font-size: 24px; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   Features — extracted from the inline styles of "Portal Features".
   ══════════════════════════════════════════════════════════════════════ */
.gs-ft-intro { padding-top: 48px; padding-bottom: 22.4px; }
.gs-ft-title { font-size: 52px; max-width: 22ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-ft-index { padding-top: 0; padding-bottom: 22.4px; }
.gs-ft-index-list { display: flex; flex-wrap: wrap; gap: 8.4px; }
.gs-ft-chip { text-decoration: none; }
.gs-ft-module { padding-top: 44.8px; padding-bottom: 22.4px; scroll-margin-top: 24px; }
.gs-ft-grid { display: flex; flex-wrap: wrap; gap: 44.8px; }
.gs-ft-text { flex: 1 1 380px; max-width: 560px; }
.gs-ft-marks { display: flex; align-items: center; gap: 11.2px; margin-bottom: 11.2px; }
.gs-ft-n { font-size: 11px; color: var(--color-accent); }
.gs-ft-icon { font-size: 18px; color: var(--color-accent); }
.gs-ft-heading { font-size: 30px; max-width: 22ch; margin-bottom: 11.2px; }
.gs-ft-body { font-size: 15px; opacity: .78; max-width: 56ch; text-wrap: pretty; }
.gs-ft-points { display: flex; flex-direction: column; gap: 8.4px; margin-top: 16.8px; }
.gs-ft-point { display: flex; gap: 10px; font-size: 13.5px; align-items: flex-start; }
.gs-ft-check { color: var(--color-accent); font-size: 14px; margin-top: 3px; }
.gs-ft-point-text { opacity: .78; max-width: 52ch; }
.gs-ft-aside { flex: 1 1 300px; max-width: 420px; display: flex; flex-direction: column; gap: 11.2px; }
.gs-ft-shot { min-height: 200px; }
.gs-ft-invariant { gap: 5.6px; padding: 16.8px; }
.gs-ft-invariant-body { flex: none; }
.gs-ft-scope { padding-top: 44.8px; padding-bottom: 80px; }
.gs-ft-scope-body { font-size: 15px; opacity: .75; max-width: 56ch; margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   Legal — the page's own <style> block plus its extracted inline styles.
   ══════════════════════════════════════════════════════════════════════ */
.lg-body h2 { font-size: 22px; margin: 33.6px 0 11.2px; }
.lg-body h3 { font-size: 16px; margin: 22.4px 0 8.4px; }
.lg-body p, .lg-body li { font-size: 14px; opacity: .8; max-width: 70ch; }
.lg-body ul { padding-left: 18px; margin: 0 0 11.2px; }
.lg-body li { margin-bottom: 6px; }
.lg-side a { display: block; font-size: 13.5px; color: inherit; text-decoration: none; opacity: .7; padding: 5px 0; }
.lg-side a:hover { opacity: 1; color: var(--color-accent); }
.lg-side a.on { opacity: 1; color: var(--color-accent); }

.gs-lg-intro { padding-top: 48px; padding-bottom: 22.4px; }
.gs-lg-title { font-size: 44px; max-width: 22ch; letter-spacing: -.02em; margin-bottom: 14px; }
.gs-lg-meta { display: flex; gap: 11.2px; align-items: center; flex-wrap: wrap; }
.gs-lg-effective { font-size: 12.5px; }
.gs-lg-actions { display: flex; gap: 11.2px; margin-top: 22.4px; flex-wrap: wrap; }
.gs-lg-main { padding-top: 11.2px; padding-bottom: 80px; }
.gs-lg-grid { display: flex; flex-wrap: wrap; gap: 44.8px; align-items: flex-start; }
.lg-side { flex: 1 1 200px; max-width: 240px; position: sticky; top: 24px; }
.lg-side-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .45; margin-bottom: 8px; }
.lg-body { flex: 1 1 520px; max-width: 760px; }
.gs-lg-callout { margin-bottom: 22.4px; }
.gs-lg-callout-body { font-size: 13px; opacity: .85; }
.gs-lg-section { scroll-margin-top: 24px; }
.gs-lg-footnote { font-size: 12.5px; }

/* ══════════════════════════════════════════════════════════════════════════
   Pricing — the page's own <style> block plus its extracted inline styles.
   ══════════════════════════════════════════════════════════════════════ */
.pr-yes { color: oklch(0.80 0.10 155); }
.pr-no { opacity: .3; }
.pr-tbl td, .pr-tbl th { white-space: nowrap; }
.pr-tbl td:first-child, .pr-tbl th:first-child { white-space: normal; min-width: 220px; }

.gs-pr-intro { padding-top: 48px; padding-bottom: 22.4px; }
.gs-pr-title { font-size: 52px; max-width: 20ch; letter-spacing: -.02em; margin-bottom: 16.8px; }
.gs-pr-controls { display: flex; flex-wrap: wrap; gap: 16.8px; align-items: center; margin-top: 33.6px; }
.gs-pr-rate { font-size: 12.5px; }
.gs-pr-plans { padding-top: 0; padding-bottom: 33.6px; }
.gs-pr-plans-grid { display: flex; flex-wrap: wrap; gap: 16.8px; }
.gs-pr-plan { flex: 1 1 250px; max-width: 290px; padding: 22.4px; gap: 11.2px; }
.gs-pr-plan-head { display: flex; align-items: center; gap: 8px; }
.gs-pr-plan-name { font-size: 11px; }
.gs-pr-badge { margin-left: auto; display: inline-flex; }
.gs-pr-price { font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.gs-pr-per { font-size: 12.5px; }
.gs-pr-who { flex: none; }
.gs-pr-rule { margin: 5.6px 0; }
.gs-pr-items { display: flex; flex-direction: column; gap: 7px; }
.gs-pr-item { display: flex; gap: 8px; font-size: 13px; align-items: flex-start; }
.gs-pr-check { color: var(--color-accent); font-size: 14px; margin-top: 3px; }
.gs-pr-item-text { opacity: .8; }
.gs-pr-caveat { font-size: 12px; margin-top: 16.8px; max-width: 70ch; }
.gs-pr-compare-title { font-size: 32px; margin-bottom: 22.4px; }
.gs-pr-tblwrap { overflow-x: auto; }
.gs-pr-rownote { font-size: 11.5px; }
.gs-pr-cell { font-size: 13px; }
.gs-pr-fees-grid { display: flex; flex-wrap: wrap; gap: 22.4px; margin-top: 14px; }
.gs-pr-fee { flex: 1 1 280px; max-width: 340px; padding: 22.4px; gap: 8.4px; }
.gs-pr-fee-icon { font-size: 22px; color: var(--color-accent); }
.gs-pr-faq { padding-bottom: 80px; }
.gs-pr-faq-list { max-width: 860px; margin-top: 14px; }

/* Field-level validation message. The approved design has no error state and
   Nocturne carries no danger ramp, so the token below is the one colour added
   on top of the design system. It is only ever visible after a rejected
   submission. */
:root { --color-danger: #e08a90; }
[data-theme="light"] { --color-danger: #a33742; }
.gs-ct-err { display: block; margin-top: 5px; font-size: 12px; color: var(--color-danger); }

/* ══════════════════════════════════════════════════════════════════════════
   Design-system sheets — shared chrome for "Gram Shop Brand" and
   "Gram Shop Components". Both sheets retune .gs-sec and .gs-h6, so those
   overrides are scoped to the sheet page class and never reach a portal page.
   ══════════════════════════════════════════════════════════════════════ */
.gs-doc-bar {
  display: flex; align-items: center; gap: 16.8px; padding: 20px 64px;
  position: sticky; top: 0; z-index: 5; background: var(--color-bg);
}
.gs-doc-brandrow { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.gs-doc-mark-26 { width: 26px; height: 26px; font-size: 14px; line-height: 1; }
.gs-doc-mark-24 { width: 24px; height: 24px; border-radius: 8px 8px 8px 2px; font-size: 13px; line-height: 1; }
.gs-doc-name { font: 500 16px/1 var(--font-heading); }
.gs-doc-tag { margin-left: 6px; }
.gs-doc-link { font-size: 13px; color: inherit; text-decoration: none; opacity: .65; }
.gs-doc-hr { margin: 0 64px; }
.gs-swatch { height: 64px; border-radius: var(--radius-sm); }
.gs-grid-ramp { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; }
[data-theme="light"] .gs-mark-solid { color: var(--color-neutral-100); }

.gs-doc-brand .gs-sec { padding: 56px 64px; max-width: 1180px; }
.gs-doc-brand .gs-h6 { margin: 0 0 20px; }
.gs-doc-kit .gs-sec { padding: 44px 64px; max-width: 1180px; }
.gs-doc-kit .gs-h6 { margin: 0 0 6px; }
.gs-doc-kit .gs-sec.gs-sec-tight-22 { padding-top: 22.4px; }

/* — brand sheet — */
.gs-doc-brand .gs-sec.bd-brief { padding-top: 24px; }
.bd-title { font-size: 52px; max-width: 16ch; margin-bottom: 16.8px; }
.bd-lead { font-size: 17px; max-width: 62ch; opacity: .8; text-wrap: pretty; }
.bd-brief-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22.4px; margin-top: 33.6px; max-width: 900px; }
.gs-doc-brand .gs-h6.bd-h6-8 { margin-bottom: 8.4px; }
.gs-doc-brand .gs-h6.bd-h6-11 { margin-bottom: 11.2px; }
.bd-note { font-size: 13px; opacity: .75; margin: 0; }
.bd-section-note { font-size: 14px; opacity: .75; max-width: 64ch; margin-bottom: 22.4px; }

.bd-logos { display: flex; flex-wrap: wrap; gap: 22.4px; }
.bd-logo-col { flex: 1 1 320px; min-width: 300px; }
.bd-logo-card { padding: 0; overflow: hidden; }
.bd-logo-stage { height: 200px; display: grid; place-items: center; background: var(--color-bg); }
.bd-lockup { display: flex; align-items: center; gap: 12px; }
.bd-lockup-h { display: flex; align-items: center; gap: 10px; }
.bd-strong { font-weight: 600; }
.bd-stage-left { text-align: left; }
.bd-mark-44 { width: 44px; height: 44px; border-radius: 15px 15px 15px 3px; border: 2px solid var(--color-accent); display: grid; place-items: center; font: 500 24px/1 var(--font-heading); color: var(--color-accent); }
.bd-wordmark { font: 500 26px/1 var(--font-heading); letter-spacing: -.02em; }
.bd-wordmark-34 { font: 500 34px/1 var(--font-heading); letter-spacing: -.03em; }
.bd-dot { color: var(--color-accent); }
.bd-rule { height: 2px; width: 56px; background: var(--color-accent); margin-top: 10px; }
.bd-bubbles { position: relative; width: 46px; height: 44px; }
.bd-bubble-outline { position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 11px; border: 2px solid var(--color-accent); }
.bd-bubble-solid { position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; border-radius: 11px 11px 11px 3px; background: var(--color-accent); opacity: .9; }
.bd-logo-meta { padding: 16.8px; border-top: 1px solid var(--color-divider); }
.bd-logo-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.bd-logo-name { font: 500 16px/1.2 var(--font-heading); }
.bd-logo-badge { margin-left: auto; }
.bd-logo-desc { font-size: 13px; opacity: .75; margin: 0; }

.bd-lockups { margin-top: 33.6px; }
.bd-lockup-grid { display: flex; flex-wrap: wrap; gap: 11.2px; }
.bd-lockup-card { flex: 1 1 200px; align-items: center; justify-content: center; min-height: 150px; gap: 11.2px; }
.bd-lockup-stack { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bd-mark-32 { width: 32px; height: 32px; border-radius: 11px 11px 11px 2px; border: 1.5px solid var(--color-accent); display: grid; place-items: center; font: 500 17px/1 var(--font-heading); color: var(--color-accent); }
.bd-mark-38 { width: 38px; height: 38px; border-radius: 13px 13px 13px 3px; border: 1.5px solid var(--color-accent); display: grid; place-items: center; font: 500 20px/1 var(--font-heading); color: var(--color-accent); }
.bd-mark-solid { width: 38px; height: 38px; border-radius: 13px 13px 13px 3px; background: var(--color-accent); display: grid; place-items: center; font: 600 20px/1 var(--font-heading); color: var(--color-neutral-900); }
.bd-wordmark-19 { font: 500 19px/1 var(--font-heading); }
.bd-wordmark-15 { font: 500 15px/1 var(--font-heading); letter-spacing: .02em; }
.bd-sizes { display: flex; align-items: flex-end; gap: 14px; }
.bd-size-16 { width: 16px; height: 16px; border-radius: 5px 5px 5px 1px; border: 1px solid var(--color-accent); }
.bd-size-24 { width: 24px; height: 24px; border-radius: 8px 8px 8px 2px; border: 1.2px solid var(--color-accent); }
.bd-size-38 { width: 38px; height: 38px; border-radius: 13px 13px 13px 3px; border: 1.5px solid var(--color-accent); }

.bd-guides { display: flex; flex-wrap: wrap; gap: 22.4px; margin-top: 22.4px; }
.bd-guide { flex: 1 1 340px; }
.bd-guide-p { font-size: 13px; opacity: .75; margin: 0 0 8px; }
.bd-misuse { display: flex; flex-direction: column; gap: 6px; font-size: 13px; opacity: .75; }
.bd-code { font-size: 12px; }

.bd-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 11.2px; margin-bottom: 22.4px; }
.bd-sw-label { font-size: 12px; margin-top: 6px; }
.bd-sw-bg { background: var(--color-bg); box-shadow: var(--shadow-sm); }
.bd-sw-surface { background: var(--color-surface); box-shadow: var(--shadow-sm); }
.bd-sw-accent { background: var(--color-accent); }
.bd-sw-section { background: var(--color-section); }
.bd-sw-text { background: var(--color-text); }
.bd-sw-success { background: oklch(0.66 0.125 155); }
.bd-sw-pending { background: oklch(0.66 0.125 75); }
.bd-sw-failed { background: oklch(0.66 0.125 25); }

.bd-ramps { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.bd-ramp-label { font-size: 12px; margin-bottom: 5px; }
.bd-ramp-cell { height: 34px; }
.bd-n-100 { background: var(--color-neutral-100); }
.bd-n-200 { background: var(--color-neutral-200); }
.bd-n-300 { background: var(--color-neutral-300); }
.bd-n-400 { background: var(--color-neutral-400); }
.bd-n-500 { background: var(--color-neutral-500); }
.bd-n-600 { background: var(--color-neutral-600); }
.bd-n-700 { background: var(--color-neutral-700); }
.bd-n-800 { background: var(--color-neutral-800); }
.bd-n-900 { background: var(--color-neutral-900); }
.bd-a-100 { background: var(--color-accent-100); }
.bd-a-200 { background: var(--color-accent-200); }
.bd-a-300 { background: var(--color-accent-300); }
.bd-a-400 { background: var(--color-accent-400); }
.bd-a-500 { background: var(--color-accent-500); }
.bd-a-600 { background: var(--color-accent-600); }
.bd-a-700 { background: var(--color-accent-700); }
.bd-a-800 { background: var(--color-accent-800); }
.bd-a-900 { background: var(--color-accent-900); }

.bd-status { margin-top: 22.4px; }
.bd-status-note { font-size: 13px; opacity: .75; max-width: 64ch; margin-bottom: 11.2px; }
.bd-status-row { display: flex; gap: 11.2px; flex-wrap: wrap; }
.bd-status-item { flex: 1 1 150px; }

.bd-type-list { display: flex; flex-direction: column; gap: 16.8px; max-width: 860px; }
.bd-type-row { display: flex; gap: 22.4px; align-items: baseline; }
.bd-type-row-top { display: flex; gap: 22.4px; }
.bd-type-label { font-size: 11px; width: 110px; flex: none; }
.bd-type-h1 { font: 500 42px/1.12 var(--font-heading); letter-spacing: -.015em; }
.bd-type-h2 { font: 500 32px/1.12 var(--font-heading); letter-spacing: -.015em; }
.bd-type-h3 { font: 500 25px/1.12 var(--font-heading); }
.bd-type-h6 { font: 500 11px/1.2 var(--font-heading); letter-spacing: .1em; text-transform: uppercase; }
.bd-type-body { font-size: 15px; max-width: 58ch; opacity: .85; }
.bd-type-mono { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

.gs-doc-brand .gs-sec.bd-voice { padding-bottom: 80px; }
.bd-voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22.4px; max-width: 1000px; }
.bd-voice-title { font: 500 17px/1.2 var(--font-heading); margin-bottom: 8px; }
.bd-next { margin-top: 33.6px; max-width: 1000px; padding: 22.4px; }
.bd-next-body { font-size: 14px; opacity: .85; margin: 0; }

/* — component kit sheet — */
.gs-note { font-size: 12.5px; opacity: .6; margin: 0 0 20px; max-width: 66ch; }
.gs-row { display: flex; flex-wrap: wrap; gap: 11.2px; align-items: center; }
.gs-tab {
  padding: 9px 2px; font-size: 14px; font-family: var(--font-heading); font-weight: 500;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  border-bottom: 2px solid transparent; cursor: pointer; background: none;
  border-top: 0; border-left: 0; border-right: 0;
}
.gs-tab:hover { color: var(--color-text); }
.gs-tab[aria-selected="true"] { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.gs-page {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: var(--radius-md); font-size: 13px; cursor: pointer;
  border: 1px solid transparent; background: none; color: inherit; font-family: var(--font-body);
}
.gs-page:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.gs-page[aria-current="page"] { color: var(--color-accent); border-color: var(--color-accent); }
.gs-toast {
  display: flex; gap: 11.2px; align-items: flex-start; padding: 11.2px 14px;
  border-radius: var(--radius-md); background: var(--color-surface);
  box-shadow: var(--shadow-md); width: min(400px, 100%);
}

/* Status pill tones — the kit component's pill(kind) helper as classes.
   Pending sits at L 0.84 so the yellow keeps the same apparent weight. */
.gs-pill-ok { background: color-mix(in srgb, oklch(0.66 0.125 155) 22%, transparent); color: oklch(0.82 0.09 155); }
.gs-pill-wait { background: color-mix(in srgb, oklch(0.66 0.125 75) 22%, transparent); color: oklch(0.84 0.09 75); }
.gs-pill-bad { background: color-mix(in srgb, oklch(0.66 0.125 25) 22%, transparent); color: oklch(0.82 0.09 25); }
.gs-pill-muted { background: var(--color-neutral-800); color: var(--color-neutral-200); }

.gs-doc-kit .gs-sec.kt-intro { padding-top: 16px; padding-bottom: 16px; }
.kt-title { font-size: 40px; margin-bottom: 11.2px; }
.kt-lead { font-size: 15px; opacity: .75; max-width: 62ch; }
.kt-row-16 { margin-bottom: 16.8px; }
.kt-row-14 { margin-bottom: 14px; }
.kt-btn-sm { font-size: 12px; padding: 4px 9px; }
.kt-label { font-size: 12px; }
.kt-label-far { font-size: 12px; margin-left: 22.4px; }

.kt-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22.4px; max-width: 940px; }
.kt-form-col { display: flex; flex-direction: column; gap: 16.8px; }
.kt-help { font-size: 11.5px; opacity: .55; margin-top: 5px; }
.kt-label-error { color: oklch(0.66 0.125 25); }
.kt-input-error { border-color: oklch(0.66 0.125 25); }
.kt-error { font-size: 11.5px; margin-top: 5px; color: oklch(0.72 0.11 25); display: flex; gap: 5px; align-items: center; }
.kt-amount-row { display: flex; gap: 8px; }
.kt-money { font-family: ui-monospace, Menlo, monospace; text-align: right; }
.kt-currency { width: 96px; }
.kt-radios { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.kt-search { position: relative; }
.kt-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .5; font-size: 15px; }
.kt-search-input { padding-left: 32px; }

.kt-cards { display: flex; flex-wrap: wrap; gap: 16.8px; }
.kt-card { flex: 1 1 260px; max-width: 300px; }
.kt-card-outline { background: transparent; box-shadow: inset 0 0 0 1px var(--color-divider); }
.kt-card-stat { flex: 1 1 200px; max-width: 230px; gap: 5.6px; }
.kt-stat-value { font: 500 30px/1 var(--font-heading); font-family: ui-monospace, Menlo, monospace; }
.kt-stat-body { flex: none; }
.kt-stat-meta { color: oklch(0.82 0.09 155); }

.kt-tabs { display: flex; gap: 22.4px; border-bottom: 1px solid var(--color-divider); margin-bottom: 11.2px; }
.kt-mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.kt-num { text-align: right; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.table th.kt-th-right, .table td.kt-th-right { text-align: right; } /* .table th sets left */
.kt-ref { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.kt-pager { display: flex; align-items: center; gap: 11.2px; margin-top: 16.8px; }
.kt-pager-count { font-size: 12.5px; margin-right: auto; }
.kt-pager-gap { font-size: 13px; }
.kt-note-11 { margin-top: 11.2px; }
.kt-note-56 { margin: 5.6px 0 0; }

.kt-empty { display: grid; place-items: center; text-align: center; padding: 56px 22.4px; gap: 11.2px; }
.kt-empty-mark { width: 52px; height: 52px; border-radius: 18px 18px 18px 4px; border: 1.5px solid var(--color-divider); display: grid; place-items: center; color: var(--color-accent); font-size: 22px; }
.kt-empty-title { font: 500 20px/1.2 var(--font-heading); }
.kt-empty-body { font-size: 13.5px; opacity: .7; max-width: 44ch; margin: 0; }
.kt-empty-btn { margin-top: 5.6px; }
.kt-empty-card { flex: 1 1 280px; max-width: 330px; align-items: flex-start; padding: 22.4px; gap: 8.4px; }
.kt-empty-icon { font-size: 24px; color: var(--color-accent); }
.kt-empty-name { font: 500 17px/1.2 var(--font-heading); }
.kt-btn-row { display: flex; gap: 8px; }

.kt-toast-grid { display: flex; flex-wrap: wrap; gap: 16.8px; }
.kt-toast-col { display: flex; flex-direction: column; gap: 11.2px; flex: 1 1 380px; }
.kt-toast-icon { font-size: 18px; margin-top: 1px; }
.kt-icon-ok { color: oklch(0.78 0.11 155); }
.kt-icon-wait { color: oklch(0.80 0.11 75); }
.kt-icon-bad { color: oklch(0.78 0.11 25); }
.kt-toast-body { flex: 1; }
.kt-toast-title { font: 500 14px/1.3 var(--font-heading); }
.kt-toast-text { font-size: 12.5px; opacity: .7; }
.kt-toast-action { margin-top: 5.6px; }
.kt-alert-col { flex: 1 1 320px; display: flex; flex-direction: column; gap: 11.2px; }
.kt-alert-danger {
  display: flex; gap: 11.2px; padding: 14px; border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, oklch(0.66 0.125 25) 45%, transparent);
  background: color-mix(in srgb, oklch(0.66 0.125 25) 9%, transparent);
}
.kt-alert-title { font: 500 14px/1.3 var(--font-heading); margin-bottom: 2px; }
.kt-alert-body { font-size: 12.5px; opacity: .75; }

.kt-dialog-grid { display: flex; flex-wrap: wrap; gap: 22.4px; align-items: flex-start; }
.kt-stage { flex: 1 1 420px; position: relative; min-height: 330px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.kt-stage-behind { position: absolute; inset: 0; background: var(--color-bg); padding: 16.8px; opacity: .5; font-size: 13px; }
.kt-stage-overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16.8px; background: color-mix(in srgb, var(--color-neutral-900) 55%, transparent); }
.kt-dialog { width: min(380px, 100%); }
.kt-dialog-head { display: flex; align-items: flex-start; gap: 11.2px; }
.kt-dialog-title { flex: 1; }
.kt-field-row { display: flex; gap: 11.2px; }
.kt-field-grow { flex: 1; }
.kt-field-100 { width: 100px; }
.kt-confirm-head { display: flex; gap: 11.2px; align-items: flex-start; }
.kt-confirm-icon { font-size: 20px; color: oklch(0.78 0.11 25); margin-top: 3px; }
.kt-btn-danger { color: oklch(0.80 0.10 25); border-color: oklch(0.66 0.125 25); }

.gs-doc-kit .gs-sec.kt-navfoot { padding-bottom: 80px; }
.kt-nav-card { padding: 0; overflow: hidden; margin-bottom: 22.4px; }
.kt-nav { padding: 14px 22.4px; }
.kt-nav-brand { display: flex; align-items: center; gap: 10px; }
.kt-foot-card { padding: 33.6px 22.4px; }
.kt-foot-grid { display: flex; flex-wrap: wrap; gap: 33.6px; }
.kt-foot-brand { flex: 1 1 220px; }
.kt-foot-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11.2px; }
.kt-foot-name { font: 500 15px/1 var(--font-heading); }
.kt-foot-about { font-size: 12.5px; opacity: .6; margin: 0 0 11.2px; max-width: 34ch; }
.kt-foot-col { flex: 1 1 130px; }
.kt-foot-heading { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; margin-bottom: 11.2px; }
.kt-foot-links { display: flex; flex-direction: column; gap: 7px; }
.kt-foot-link { font-size: 13px; color: inherit; text-decoration: none; opacity: .75; }
.kt-foot-rule { margin: 22.4px 0; }
.kt-foot-bottom { display: flex; flex-wrap: wrap; gap: 11.2px; font-size: 12px; opacity: .55; }
.kt-foot-right { margin-left: auto; }

/* ══════════════════════════════════════════════════════════════════════════
   UI/UX refinement layer
   ──────────────────────────────────────────────────────────────────────────
   Appended after the extracted artboard styles so every rule here is an
   override, and the ported design above stays readable as the record of what
   the canvas said. Nothing in this layer changes markup: the portal's Blade
   views are pinned to the artboards by PortalArtboardFidelityTest, so all of
   the following is CSS, plus one progressive-enhancement script for the
   mobile menu.

   What it fixes, in order:
     1. layout   - the page had a 1180px cap but no centring, so every screen
                   wider than 1180px pinned the whole site to the left edge;
     2. rhythm   - one shared gutter and measure, fluid type, and consistent
                   vertical spacing instead of a fixed 48px/72px grid;
     3. grids    - card rows were `flex: 1 1 Npx` plus `max-width`, which
                   leaves ragged part-filled rows; they become auto-fit grids;
     4. surface  - hero glow, a solid primary CTA, card hover states, and
                   placeholder fields that read as intentional;
     5. mobile   - a working nav under 900px (there was none), touch targets,
                   scrollable tables, and stacked layouts under 720px.
   ══════════════════════════════════════════════════════════════════════ */

/* - 1. shared measure ---------------------------------------------------
   --gs-gutter is the page edge inset; --gs-content is the text measure, which
   equals the original 1180px cap minus its 2x48px padding. The padding-inline
   formula centres content inside that measure without a wrapper element, so
   full-bleed grounds (the stat band, the nav's blurred bar) stay full width
   while their contents line up with every other section. */
:root {
  --gs-gutter: clamp(20px, 4vw, 48px);
  --gs-content: 1084px;
  --gs-nav-h: 68px;
  --gs-ease: cubic-bezier(.2, .7, .3, 1);
}

.gs-sec,
.gs-stats,
.gs-about-band,
.pn-wrap,
.pf {
  width: 100%;
  max-width: none;
  padding-inline: max(var(--gs-gutter), calc((100% - var(--gs-content)) / 2));
}

/* Only the inline padding is restated. Vertical padding stays with the rules
   above, because a dozen sections tighten it per page (.gs-sec-tight, the
   `padding-top: 0` on every second section of a stacked page); overriding
   padding-block here would flatten all of them back to one value and open a
   gap wherever the design meant two sections to read as one block. */
.gs-stats { padding-block: clamp(44px, 5vw, 64px); }
.gs-about-band { padding-block: clamp(36px, 4.5vw, 56px); }

/* Inner caps the parent now enforces. */
.gs-stats-grid,
.gs-about-band-inner,
.pf-grid,
.pf-rule,
.pf-bottom { max-width: none; }

/* Freestanding rules: full-width element, gradient painted only across the
   content box, so the fade lines up with the text above and below it. */
.gs-hr {
  width: 100%;
  margin: 0;
  padding-inline: max(var(--gs-gutter), calc((100% - var(--gs-content)) / 2));
  background-clip: content-box;
}

/* The design-system sheets keep their own wider padding, but gain centring. */
.gs-doc-brand .gs-sec,
.gs-doc-kit .gs-sec {
  max-width: none;
  padding-inline: max(var(--gs-gutter), calc((100% - 1180px) / 2));
}
.gs-doc-bar { padding-inline: max(var(--gs-gutter), calc((100% - 1180px) / 2)); }
.gs-doc-hr {
  margin: 0;
  padding-inline: max(var(--gs-gutter), calc((100% - 1180px) / 2));
  background-clip: content-box;
}

/* - 2. type -------------------------------------------------------------
   The artboard sizes were authored at one width. Each display size becomes a
   clamp with the artboard value as its ceiling, so nothing gets larger than
   the approved design and everything stays readable at 360px. */
.gs-hero-title { font-size: clamp(36px, 5.6vw, 64px); margin-block: 16px 24px; }
.gs-h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: clamp(24px, 3vw, 34px); }
.gs-h2-30, .gs-dk-h2, .gs-ft-heading, .gs-pr-compare-title { font-size: clamp(24px, 2.7vw, 30px); }
.gs-about-title, .gs-ft-title, .gs-pr-title { font-size: clamp(34px, 4.6vw, 52px); }
.gs-blog-title, .gs-cl-title, .gs-ct-title, .gs-dk-title, .gs-fq-title { font-size: clamp(32px, 4.2vw, 48px); }
.gs-lg-title { font-size: clamp(30px, 3.8vw, 44px); }
.gs-stat-value { font-size: clamp(32px, 3.4vw, 44px); }
.gs-cta-title { font-size: clamp(24px, 2.9vw, 32px); }
.gs-cta-title-30 { font-size: clamp(23px, 2.6vw, 30px); }
.gs-about-band-line { font-size: clamp(20px, 2.3vw, 26px); }
.gs-blog-feature-title { font-size: clamp(23px, 2.5vw, 30px); }
.gs-cl-headline { font-size: clamp(19px, 2vw, 22px); }
.gs-signup-title, .gs-dk-gap-title { font-size: clamp(20px, 2.2vw, 24px); }
.gs-pr-price { font-size: clamp(28px, 2.9vw, 32px); }
.gs-lead { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.62; }

/* Anchor targets have to clear the sticky bar. */
.gs-ft-module, .gs-fq-group, .gs-lg-section { scroll-margin-top: calc(var(--gs-nav-h) + 20px); }
html { scroll-behavior: smooth; }

/* - 3. card grids -------------------------------------------------------
   `flex: 1 1 N` plus `max-width` stretches a two-card final row to two odd
   widths and leaves a gap. auto-fit grids keep every card on the same column
   track whatever the row holds. */
.gs-features-grid,
.gs-audience-grid,
.gs-plans-grid,
.gs-about-principles-grid,
.gs-blog-grid,
.gs-dk-starts-grid,
.gs-pr-plans-grid,
.gs-pr-fees-grid,
.gs-about-stage-grid,
.gs-journey-steps {
  display: grid;
  gap: 18px;
}
.gs-features-grid { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.gs-audience-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px, 3vw, 36px); }
.gs-plans-grid { grid-template-columns: repeat(auto-fit, minmax(206px, 1fr)); gap: 14px; }
.gs-about-principles-grid { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
.gs-blog-grid { grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.gs-dk-starts-grid { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.gs-pr-plans-grid { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.gs-pr-fees-grid { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 20px; }
.gs-about-stage-grid { grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: clamp(24px, 3vw, 34px); max-width: none; }
/* 230px caps the row at four tracks on a full-width page, so the seven steps
   break 4 + 3 rather than 5 + 2. */
.gs-journey-steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(18px, 2.2vw, 26px); }

/* Grid items must drop the flex sizing the artboard gave them. */
.gs-feature, .gs-audience-item, .gs-plan, .gs-principle,
.gs-post, .gs-dk-start, .gs-pr-plan, .gs-pr-fee, .gs-about-stage-item {
  flex: initial;
  max-width: none;
  width: auto;
}
.gs-audience-body, .gs-about-stage-body { max-width: 42ch; }

/* - 4. surfaces --------------------------------------------------------- */

/* Cards: rounder, and a small lift so a grid of them reads as a set of
   objects rather than a set of grey rectangles. */
.card {
  border-radius: var(--radius-lg);
  transition: transform .2s var(--gs-ease), box-shadow .2s var(--gs-ease), background-color .2s var(--gs-ease);
}
.gs-feature, .gs-plan, .gs-principle, .gs-post,
.gs-dk-start, .gs-pr-plan, .gs-pr-fee, .gs-route, .gs-ft-invariant {
  padding: clamp(18px, 2vw, 24px);
}
.gs-post { padding: 0; }
.gs-feature:hover, .gs-plan:hover, .gs-principle:hover, .gs-post:hover,
.gs-dk-start:hover, .gs-pr-plan:hover, .gs-pr-fee:hover, .gs-route:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Feature and step icons get a tinted plate so they stop floating loose above
   the title, and so the accent appears at a consistent size across pages. */
.gs-feature-icon, .gs-principle-icon, .gs-dk-start-icon,
.gs-pr-fee-icon, .gs-step-icon, .gs-ft-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 13px 4px;
  font-size: 19px;
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 26%, transparent);
}
.gs-ft-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 11px 11px 11px 3px; }

/* Primary calls to action are solid. The outline .btn-primary stays for
   secondary placements; the marketing CTAs are the one place on the site that
   should be the loudest thing on the screen. */
.gs-btn-lg.btn-primary,
.pn-wrap .btn-primary,
.btn-primary.btn-block {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-neutral-900);
  font-weight: 600;
}
.gs-btn-lg.btn-primary:hover,
.pn-wrap .btn-primary:hover,
.btn-primary.btn-block:hover {
  background: var(--color-accent-400);
  border-color: var(--color-accent-400);
}
.gs-btn-lg.btn-primary:active,
.pn-wrap .btn-primary:active,
.btn-primary.btn-block:active {
  background: var(--color-accent-500);
  border-color: var(--color-accent-500);
}
.btn { transition: background-color .16s var(--gs-ease), border-color .16s var(--gs-ease), color .16s var(--gs-ease), transform .16s var(--gs-ease); }
.btn:active { transform: translateY(1px); }
.gs-btn-lg { padding: 12px 22px; border-radius: 10px; }

/* Placeholder fields. The artboard's raw 135deg stripe reads as a broken
   image; this keeps the same "not a real screenshot" signal but paints it as
   a deliberate surface - recessed ground, accent-tinted glow, framed caption. */
.gs-ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: color-mix(in srgb, var(--color-surface) 55%, transparent);
  background-image:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--color-accent) 11%, transparent), transparent 70%),
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--color-text) 4%, transparent) 0 8px,
      transparent 8px 16px);
  line-height: 1.7;
  letter-spacing: .02em;
}
.gs-ph::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px dashed color-mix(in srgb, var(--color-text) 14%, transparent);
  pointer-events: none;
}

/* Hero: an ambient accent bloom behind the headline, which is what carries
   the "infrastructure" tone the copy is going for. */
.gs-hero { position: relative; isolation: isolate; padding-top: clamp(36px, 5vw, 60px); }
.gs-hero > * { position: relative; z-index: 1; }
.gs-hero::before {
  content: '';
  position: absolute;
  inset: -160px 0 auto;
  height: 620px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 52% at 22% 26%, color-mix(in srgb, var(--color-accent) 20%, transparent), transparent 68%),
    radial-gradient(46% 44% at 82% 8%, color-mix(in srgb, var(--color-section-ghost) 22%, transparent), transparent 70%);
  filter: blur(6px);
}
.gs-hero-media { margin-top: clamp(32px, 4.5vw, 56px); }
.gs-hero-actions { align-items: center; }

/* Stat band: a gradient ground rather than a flat block, and the numbers go
   to full white so they read before the labels do. */
.gs-band {
  background-image: linear-gradient(135deg,
    var(--color-section) 0%,
    color-mix(in srgb, var(--color-section-glow) 62%, var(--color-section)) 100%);
}
.gs-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.gs-stat { flex: initial; }
.gs-stat-value { color: #fff; letter-spacing: -.02em; }
.gs-stat-label { opacity: .8; }

/* Closing CTA: the one card on the page that gets the accent edge. */
.gs-cta-card {
  padding: clamp(26px, 3.6vw, 44px);
  border-radius: 18px;
  background-image: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--color-accent) 12%, transparent), transparent 62%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 30%, transparent), 0 16px 40px var(--gs-ambient);
}

/* Section eyebrows sit closer to the heading they label. */
.gs-h6 { margin-bottom: 10px; }

/* Disclosure rows get a hover ground so the whole row reads as the hit area. */
.gs-dl summary {
  padding-inline: 10px;
  margin-inline: -10px;
  border-radius: var(--radius-md);
  transition: background-color .15s var(--gs-ease);
}
.gs-dl summary:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }

/* - 5. chrome ----------------------------------------------------------- */

/* Sticky nav. The bar is already full-bleed (width 100%, contents centred by
   padding-inline), so the ground goes on the header itself.

   Deliberately no backdrop-filter. A blurred sticky bar is the obvious thing
   to reach for here, and it was the first thing tried, but Chromium then skips
   repainting the region the bar scrolls over: the page goes blank from the top
   of the viewport down to the bar's last painted position. An opaque ground
   costs nothing visually at this scale and scrolls correctly. */
.pn-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--gs-nav-h);
  padding-block: 14px;
  gap: clamp(14px, 1.6vw, 22px);
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--gs-ease), box-shadow .2s var(--gs-ease);
}
.pn-wrap.pn-scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: 0 8px 24px var(--gs-ambient-soft);
}
.pn-links { gap: clamp(14px, 1.8vw, 22px); }
.pn-wrap a { transition: color .15s var(--gs-ease), opacity .15s var(--gs-ease); }
.pn-wrap .pn-links a.pn-on { position: relative; }
.pn-wrap .pn-links a.pn-on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
}

/* Footer: the brand column gets room, the link columns line up on a grid. */
.pf { padding-block: clamp(40px, 5vw, 56px) 36px; }
.pf-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(128px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.pf-brand, .pf-col { flex: initial; }
.pf-links a { display: inline-block; }
.pf-bottom { align-items: center; }

/* - 6. mobile ----------------------------------------------------------- */

/* The menu button and drawer are created by app.js; both are inert until it
   runs, and the button is hidden above the breakpoint where .pn-links shows. */
.pn-menu { display: none; }
.pn-drawer {
  position: fixed;
  inset: var(--gs-nav-h) 0 auto;
  z-index: 55;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px var(--gs-gutter) 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
  box-shadow: 0 18px 40px var(--gs-ambient);
}
.pn-drawer.pn-open { display: flex; }
.pn-drawer a {
  padding: 12px 10px;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: inherit;
  text-decoration: none;
  opacity: .82;
}
.pn-drawer a:hover, .pn-drawer a.pn-on {
  opacity: 1;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}
.pn-drawer-cta { display: flex; gap: 10px; margin-top: 12px; }
.pn-drawer-cta .btn { flex: 1; }

@media (max-width: 900px) {
  .pn-menu { display: inline-flex; }
  /* The sign-in link moves into the drawer; the trial button stays in the bar. */
  .pn-wrap > a.btn-ghost { display: none; }
}

@media (max-width: 720px) {
  .gs-hero-title { font-size: clamp(32px, 8.4vw, 44px); }
  .gs-hr { margin: 0; }
  .gs-stats { padding-block: 40px; }

  /* Tables become their own scroll region rather than forcing the page wide. */
  .gs-pr-tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pr-tbl { min-width: 560px; }

  /* Sidebars stop being sticky rails and become normal leading blocks. */
  .dk-side, .gs-fq-toc, .lg-side { position: static; max-width: none; width: 100%; }

  .gs-cl-entry { flex-direction: column; gap: 10px; }
  .gs-cl-when { width: auto; display: flex; gap: 10px; align-items: baseline; }
  .gs-cl-version { margin-top: 0; }
  .gs-cl-body { border-left: 0; padding-left: 0; }

  .gs-blog-feature-body, .gs-ct-card, .gs-signup-card, .gs-dk-gap-card, .gs-ct-done { padding: 22px; }
  .gs-hero-actions .btn, .gs-cta-actions .btn { flex: 1 1 auto; }
  .gs-hero-note { margin-left: 0; }

  /* Comfortable touch targets. 16px on inputs stops iOS zooming on focus. */
  .btn { min-height: 40px; }
  .input { min-height: 42px; font-size: 16px; }
}

@media (max-width: 480px) {
  .gs-hero-shot { height: 220px; }
  .gs-plans-grid { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* Sticky rails clear the nav bar. */
.dk-side, .gs-fq-toc, .lg-side { top: calc(var(--gs-nav-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .gs-feature:hover, .gs-plan:hover, .gs-principle:hover, .gs-post:hover,
  .gs-dk-start:hover, .gs-pr-plan:hover, .gs-pr-fee:hover, .gs-route:hover { transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   UI/UX refinement — round 2
   ──────────────────────────────────────────────────────────────────────────
   Round 1 (above) fixed layout, rhythm, grids and the missing mobile nav on
   the dark theme. This round covers what that pass left:

     7.  corrections - two rules in the ported sheet that do not do what they
                       say: code blocks lose their line breaks, and the docs
                       parameter table's mobile rule targets a descendant
                       .table that does not exist, so /docs was the one page
                       that scrolled sideways on a phone;
     8.  tables      - the two reference tables get row hover, a sticky first
                       column while they scroll, and a stacked reading order
                       on phones instead of three squeezed columns;
     9.  pricing     - plan cards align their price, blurb and CTA across the
                       row, and the recommended plan is marked as such;
     10. light theme - the mapping inherits the dark theme's opacities and
                       accent-as-text, most of which fall under 4.5:1 on a
                       near-white ground. This retunes them from the same
                       Nocturne ramps;
     11. touch       - link rows in the footer and the three page indexes were
                       20px tall.

   Still CSS only, for the same reason as round 1: the Blade views are pinned
   to the artboards by PortalArtboardFidelityTest.
   ══════════════════════════════════════════════════════════════════════ */

/* - 7. corrections ------------------------------------------------------ */

/* The docs code samples are authored as hand-indented multi-line text inside
   a <div>, and the ported sheet never set white-space, so every sample
   rendered as one collapsed paragraph - the curl example ran its headers
   together and the JSON response lost its shape. `pre` restores the authored
   lines; the block already scrolls, which is the right behaviour for lines
   ending in a continuation backslash. */
.dk-code {
  white-space: pre;
  tab-size: 2;
  max-width: 100%;
  overscroll-behavior-x: contain;
}

/* With real line lengths restored, the reference column has to be allowed to
   be narrower than its content. It is a flex item, so its automatic minimum
   size is its min-content width, and without this the longest curl line - not
   the viewport - decides the page width, which is what put /docs 200px past
   the right edge on a phone. The code block scrolls inside itself instead. */
.gs-dk-content { min-width: 0; }

/* Theme-aware ambient depth. Round 1 wrote its shadows as rgba(0,0,0,.3x),
   which is correct on the dark ground and a grey smear on the light one. */
:root {
  --gs-ambient: rgba(0, 0, 0, .35);
  --gs-ambient-soft: rgba(0, 0, 0, .28);
}
[data-theme="light"] {
  --gs-ambient: rgba(41, 43, 49, .14);
  --gs-ambient-soft: rgba(41, 43, 49, .09);
}

/* - 8. reference tables ------------------------------------------------- */

/* Both tables are read across a row - "what does Business give me", "what
   type is this field" - so the row is the unit that should light up. */
.pr-tbl tbody tr,
.gs-dk-table tbody tr { transition: background-color .15s var(--gs-ease); }

@media (hover: hover) {
  .pr-tbl tbody tr:hover,
  .gs-dk-table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }
}

/* While the comparison table scrolls, the entitlement name has to stay on
   screen or the numbers mean nothing. The cell needs an opaque ground of its
   own once it overlaps the columns behind it. */
.gs-pr-tblwrap { position: relative; }
.pr-tbl th:first-child,
.pr-tbl td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--color-bg);
}

@media (max-width: 720px) {
  /* 168px is enough for the two-line entitlement names and still leaves two
     plan columns visible, which is what makes the sideways scroll obvious. */
  .pr-tbl th:first-child,
  .pr-tbl td:first-child {
    min-width: 168px;
    box-shadow: 1px 0 0 var(--color-divider);
  }
  .pr-tbl { min-width: 620px; }

  /* The parameter table is three columns of prose in ~335px, and its columns
     describe themselves - a mono field name, a muted type, then the note - so
     on a phone each row reads better stacked than squeezed. This is also the
     fix for the page's horizontal overflow: nothing forces a min-width now. */
  .gs-dk-table,
  .gs-dk-table tbody,
  .gs-dk-table tr,
  .gs-dk-table td { display: block; }
  .gs-dk-table thead { display: none; }
  .gs-dk-table tr {
    padding: 14px 0;
    border-top: 1px solid var(--color-divider);
  }
  .gs-dk-table tr:first-child { border-top: 0; padding-top: 0; }
  .gs-dk-table td {
    border: 0;
    padding: 0;
    max-width: none;
  }
  .gs-dk-table td:first-child {
    color: var(--gs-accent-text);
    overflow-wrap: anywhere;
  }
  .gs-dk-table td.text-muted { font-size: 12px; margin: 2px 0 6px; }
}

/* - 9. pricing plan cards ----------------------------------------------- */

/* The four cards carry different amounts of copy, so the price, the blurb and
   the CTA all landed at different heights and the row read as four unrelated
   boxes. Each card has the same six blocks in the same order, so once the row
   is a fixed four-column grid the cards can subgrid onto shared rows: every
   price sits on one line, every button on another, and the blurb row (1fr)
   absorbs the difference. Below this width the cards wrap, so they keep their
   own flex flow and this never applies.

   Where subgrid is unsupported the declaration is dropped and the cards fall
   back to independent auto rows - the round-1 appearance, not a broken one. */
@media (min-width: 1040px) {
  .gs-pr-plans-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr auto auto auto;
    row-gap: 12px;
  }
  .gs-pr-plan {
    grid-row: 1 / -1;
    display: grid;
    grid-template-rows: subgrid;
    align-content: start;
  }
}

/* The plan the page recommends is the only card on the row with .elev-md, so
   that class is the hook for marking it - an accent edge and a real lift,
   rather than a badge doing the work alone. */
.gs-pr-plan.elev-md {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 52%, transparent),
    0 12px 32px var(--gs-ambient);
}
.gs-pr-plan.elev-md:hover {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 70%, transparent),
    0 16px 38px var(--gs-ambient);
}

/* - 10. light theme ----------------------------------------------------- */

/* The accent is a mid-lightness blurple. It carries text on the dark ground
   and fails on the light one, so light-theme text switches to the same hue
   further down the ramp. Backgrounds keep the base accent. */
:root { --gs-accent-text: var(--color-accent); }
[data-theme="light"] { --gs-accent-text: var(--color-accent-700); }

.gs-h6,
.card-kicker,
.gs-route-address,
.gs-dk-callout-icon,
.gs-about-band-kicker,
.dk-code .k { color: var(--gs-accent-text); }

[data-theme="light"] .tag-outline { border-color: var(--gs-accent-text); color: var(--gs-accent-text); }
[data-theme="light"] .gs-mark { border-color: var(--gs-accent-text); color: var(--gs-accent-text); }
[data-theme="light"] .gs-logo { background-color: var(--gs-accent-text); }
[data-theme="light"] .dk-side a:hover,
[data-theme="light"] .pn-wrap .pn-links a:hover,
[data-theme="light"] .pn-drawer a:hover,
[data-theme="light"] .pn-drawer a.pn-on { color: var(--gs-accent-text); }

/* Every muted value in the ported sheet is an opacity on --color-text, and
   each was chosen against #161826. Re-inked against #f3f5fe: the .45-.6 band
   was landing near 3:1, so it moves up to clear 4.5:1 at these sizes while
   keeping the same order of emphasis between them. */
[data-theme="light"] .pf-heading,
[data-theme="light"] .dk-side-title { opacity: .66; }
[data-theme="light"] .pf-bottom,
[data-theme="light"] .dk-search-icon { opacity: .7; }
[data-theme="light"] .pf-about,
[data-theme="light"] .dk-code .c { opacity: .78; }
[data-theme="light"] .pf a,
[data-theme="light"] .dk-side a,
[data-theme="light"] .gs-step-body,
[data-theme="light"] .gs-cl-date,
[data-theme="light"] .gs-cl-point-text,
[data-theme="light"] .gs-stat-label,
[data-theme="light"] .gs-audience-body,
[data-theme="light"] .gs-about-stage-body { opacity: .82; }
[data-theme="light"] .pn-wrap a { opacity: .84; }
[data-theme="light"] .gs-lead,
[data-theme="light"] .gs-dl p,
[data-theme="light"] .gs-cta-body,
[data-theme="light"] .gs-about-para,
[data-theme="light"] .gs-blog-feature-dek,
[data-theme="light"] .gs-cl-summary,
[data-theme="light"] .gs-ct-done-body,
[data-theme="light"] .gs-dk-lede { opacity: .88; }
[data-theme="light"] .card-body { opacity: .9; }
[data-theme="light"] .text-muted,
[data-theme="light"] .card-meta { color: color-mix(in srgb, var(--color-text) 72%, transparent); }

/* Accent tints computed for a dark ground nearly vanish on a light one: the
   icon plates, the placeholder hatching and the hero bloom all need more
   pigment to hold the same weight. */
[data-theme="light"] .gs-feature-icon,
[data-theme="light"] .gs-principle-icon,
[data-theme="light"] .gs-dk-start-icon,
[data-theme="light"] .gs-pr-fee-icon,
[data-theme="light"] .gs-step-icon,
[data-theme="light"] .gs-ft-icon {
  color: var(--gs-accent-text);
  background: color-mix(in srgb, var(--color-accent) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 40%, transparent);
}

[data-theme="light"] .gs-ph {
  background-color: color-mix(in srgb, var(--color-surface) 70%, transparent);
  background-image:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--color-accent) 14%, transparent), transparent 70%),
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--color-text) 8%, transparent) 0 8px,
      transparent 8px 16px);
}
[data-theme="light"] .gs-ph::after { border-color: color-mix(in srgb, var(--color-text) 22%, transparent); }

/* The hero bloom is an additive glow; on white it only muddies, so it drops
   to a hint and lets the headline carry the section. */
[data-theme="light"] .gs-hero::before {
  background:
    radial-gradient(58% 52% at 22% 26%, color-mix(in srgb, var(--color-accent) 13%, transparent), transparent 68%),
    radial-gradient(46% 44% at 82% 8%, color-mix(in srgb, var(--color-accent-2) 10%, transparent), transparent 70%);
}

/* The status pills invert on a light ground: pale tint, pale text. Same hues,
   darkened to text weight. */
[data-theme="light"] .gs-pill-shipped { background: color-mix(in srgb, oklch(0.66 0.125 155) 20%, transparent); color: oklch(0.42 0.10 155); }
[data-theme="light"] .gs-pill-fixed { background: color-mix(in srgb, oklch(0.66 0.125 75) 22%, transparent); color: oklch(0.40 0.09 75); }
[data-theme="light"] .gs-pill-breaking { background: color-mix(in srgb, oklch(0.66 0.125 25) 18%, transparent); color: oklch(0.44 0.13 25); }
[data-theme="light"] .gs-pill-neutral { background: var(--color-accent-200); color: var(--color-accent-800); }

/* Cards are a tint *above* the ground in this mapping (neutral-200 on
   neutral-100), which reads as a panel rather than a lifted object, so the
   hover lift needs an edge to stay legible. */
[data-theme="light"] .gs-feature:hover,
[data-theme="light"] .gs-plan:hover,
[data-theme="light"] .gs-principle:hover,
[data-theme="light"] .gs-post:hover,
[data-theme="light"] .gs-dk-start:hover,
[data-theme="light"] .gs-pr-fee:hover,
[data-theme="light"] .gs-route:hover { box-shadow: 0 0 0 1px var(--color-neutral-300), 0 8px 22px var(--gs-ambient-soft); }

/* The CTA card's dark radial reads as a stain on the light ground. */
[data-theme="light"] .gs-cta-card {
  background-image: radial-gradient(90% 140% at 0% 0%, color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 62%);
}

/* The stat band keeps its deep navy ground in both themes, so its contents
   stay light - but the sections around it are now near-white, and the band
   needs a defined edge rather than bleeding into the page. */
[data-theme="light"] .gs-band { box-shadow: inset 0 1px 0 var(--color-accent-900), inset 0 -1px 0 var(--color-accent-900); }

/* - 11. touch targets and page indexes ---------------------------------- */

@media (max-width: 720px) {
  /* Footer columns and the three page indexes were 20px link rows, well under
     a comfortable target. Padding is the only thing that changes; the rows
     stay visually a list. */
  .pf-links a,
  .dk-side a,
  .gs-fq-toc a,
  .lg-side a {
    padding-block: 7px;
    line-height: 1.35;
  }
  .gs-link.gs-more { display: inline-block; padding-block: 6px; }

  /* Stacked, the docs index is ~30 links the reader has to scroll past before
     reaching the reference, so it gets an edge that marks it as an index. */
  .dk-side { border-top: 1px solid var(--color-divider); padding-top: 18px; }
}

/* Two columns halve the stacked index. 360px is the threshold because the
   common phone widths (390-430) all sit above it, and that is exactly where
   a 30-row single column costs the most scrolling; the longest label wraps to
   two lines in a ~168px column, which an index tolerates. */
@media (min-width: 360px) and (max-width: 720px) {
  .dk-side { columns: 2; column-gap: 26px; }
  .dk-side-group { break-inside: avoid; }
}

/* The light mapping put the lightest ramp step on the page (neutral-100) and
   the next one down on cards (neutral-200), so every card read as a grey slab
   pressed into a white page - the opposite of the dark theme, where surface
   sits above the ground. Swapping the two keeps both values exactly as chosen
   and restores the intended order: a softly tinted page with near-white
   panels, inputs and code blocks lifted off it.

   This is the one deliberately opinionated change in this pass. To go back to
   the original arrangement, delete this block; nothing else depends on it. */
[data-theme="light"] {
  --color-bg: #e4e7f5;
  --color-surface: #f3f5fe;
  --shadow-sm: 0 0 0 1px #cfd3e5, 0 1px 2px rgba(41, 43, 49, .04);
  --shadow-md: 0 0 0 1px #cfd3e5, 0 6px 18px rgba(41, 43, 49, .08);
}

/* The comparison table sized its columns from content, which gave the
   entitlement names close to half the table and squeezed the four plans into
   the right-hand side. Declaring the widths on the header row turns it back
   into an even matrix: one wider label column, four equal plan columns. */
@media (min-width: 721px) {
  .pr-tbl th:first-child { width: 36%; }
  .pr-tbl th:not(:first-child) { width: 16%; }
}

/* Round 1 made .btn-primary solid only in the three marketing placements it
   listed, which left the same class rendering two different ways - and the
   contact form's submit, the one action on that page, came out as an outline.
   Every .btn-primary in the portal is a genuine primary action (Start free,
   Send request, Subscribe, Report a docs gap), so the variant is solid
   wherever it appears; .btn-secondary and .btn-ghost stay outline. */
.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-neutral-900);
  font-weight: 600;
}
.btn-primary:hover { background: var(--color-accent-400); border-color: var(--color-accent-400); }
.btn-primary:active { background: var(--color-accent-500); border-color: var(--color-accent-500); }

/* On the light theme the mid-tone accent needs light text, not the ink used
   on the dark theme, to clear 4.5:1 against the fill. */
[data-theme="light"] .btn-primary {
  background: var(--color-accent-600);
  border-color: var(--color-accent-600);
  color: var(--color-neutral-100);
}
[data-theme="light"] .btn-primary:hover { background: var(--color-accent-700); border-color: var(--color-accent-700); }
[data-theme="light"] .btn-primary:active { background: var(--color-accent-800); border-color: var(--color-accent-800); }

/* - 7. locale switcher --------------------------------------------------- */

/* A <details> disclosure rather than a scripted menu, so the three languages
   stay reachable if app.js never runs. The marker is dropped because the
   summary is painted as one of the design system's buttons. */
.pn-locale { position: relative; }
.pn-locale > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}
.pn-locale > summary::-webkit-details-marker { display: none; }
.pn-locale-btn { padding-inline: 12px; font-size: 13px; }

.pn-locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 172px;
  padding: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px var(--gs-ambient);
}
.pn-locale-menu a {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  opacity: .82;
}
.pn-locale-menu a:hover,
.pn-locale-menu a.pn-on {
  opacity: 1;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

/* At drawer widths the bar has no room to spare, so the switcher drops to its
   icon; the language names are still spelled out inside the menu. */
@media (max-width: 900px) {
  .pn-locale-code { display: none; }
  .pn-locale-btn { padding-inline: 10px; }
}

/* The menu is anchored to the bar, which the drawer covers from the left, so at
   the narrowest widths it opens flush to the viewport edge instead of off it. */
@media (max-width: 480px) {
  .pn-locale-menu { right: auto; left: 0; }
}

/* Production-ready media replaces the striped design placeholders. */
.gs-product-shot {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top left;
  overflow: hidden;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.gs-product-shot.gs-hero-shot,
.gs-product-shot.gs-hero-shot-chat { object-fit: contain; }
.gs-hero-shot-chat { object-position: center; }
.gs-blog-feature-shot { align-self: stretch; min-height: 300px; }
.gs-ft-shot.gs-product-shot {
  font-size: 0;
  color: transparent;
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
}
#m-tenancy .gs-ft-shot, #m-billing .gs-ft-shot, #m-store .gs-ft-shot,
#m-control .gs-ft-shot, #m-api .gs-ft-shot { background-image: url('../images/panel-dashboard.png'); }
#m-catalog .gs-ft-shot, #m-orders .gs-ft-shot, #m-fulfillment .gs-ft-shot { background-image: url('../images/orders-workspace.png'); }
#m-payments .gs-ft-shot { background-image: url('../images/payment-operations.png'); }

.gs-about-proof { min-height: 260px; padding: 32px; justify-content: flex-end; gap: 10px; }
.gs-about-proof i { color: var(--color-accent); font-size: 34px; }
.gs-about-proof strong { font: 500 24px/1.2 var(--font-heading); }
.gs-about-proof span { max-width: 42ch; opacity: .72; }

.dk-preview-link {
  display: block;
  padding: 5px 0;
  color: var(--color-text);
  cursor: default;
  opacity: .46;
}
.gs-ct-fieldset, .gs-pr-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.gs-ct-fieldset legend, .gs-pr-choice legend { margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.gs-ct-intents { flex-wrap: wrap; }
.gs-ct-privacy { margin: 0; font-size: 12px; line-height: 1.55; }

.gs-pr-choice { display: flex; flex-direction: column; }
.gs-pr-compare-hint { display: none; margin: -12px 0 14px; font-size: 12px; }
.gs-pr-compare-hint i { margin-right: 5px; color: var(--color-accent); }
.gs-cl-filters button { font: inherit; cursor: pointer; }
.gs-cl-headline a { color: inherit; }
.gs-cl-entry { scroll-margin-top: calc(var(--gs-nav-h) + 18px); }

/* Modal navigation drawer with a protected focus and scrolling context. */
.pn-backdrop {
  position: fixed;
  inset: var(--gs-nav-h) 0 0;
  z-index: 80;
  display: none;
  padding: 0;
  border: 0;
  background: rgba(5, 6, 12, .72);
  backdrop-filter: blur(3px);
}
.pn-backdrop.pn-open { display: block; }
.pn-drawer { z-index: 81; }
body.pn-menu-open { overflow: hidden; }

@media (max-width: 1040px) {
  .pn-wrap .pn-links { display: none; }
  .pn-menu { display: inline-flex; }
  .pn-wrap > a.btn-ghost,
  .pn-wrap > a.btn-primary { display: none; }
  .pn-locale-code { display: none; }
  .pn-locale-btn { padding-inline: 10px; }
}

@media (max-width: 720px) {
  [data-compare-instruction] { display: block; }
  .gs-pr-tblwrap {
    border-right: 2px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
    scrollbar-color: var(--color-accent) transparent;
  }
  .pr-tbl thead th { position: sticky; top: 0; z-index: 2; background: var(--color-bg); }
  .pr-tbl thead th:first-child { z-index: 3; }
}

@media (min-width: 1041px) {
  .pn-drawer, .pn-backdrop { display: none !important; }
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--color-accent) 72%, white);
  outline-offset: 3px;
}
[data-theme="light"] {
  --color-divider: #b6bdd3;
}

/* A 1084px canvas is comfortable on laptops but leaves the portal looking
   undersized on 2K and ultrawide displays. Grow the shared measure only once
   there is enough room to preserve generous gutters. This rule intentionally
   follows the fluid-type defaults so its larger ceilings win the cascade. */
@media (min-width: 1600px) {
  :root { --gs-content: clamp(1320px, 76vw, 1520px); }
  .gs-hero-title { font-size: clamp(68px, 4vw, 76px); max-width: 18ch; }
  .gs-hero-lead { font-size: 19px; }
  .gs-hero-note { font-size: 14px; }
  .gs-h2 { font-size: 40px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Blog — list, tag, search and post pages (docs/features/specs/
   2026-10-26-001-portal-blog-design.md). Built on the artboard's gs-blog-*
   and gs-post rules above; blog.html, blog-states.html and blog-post.html
   are the reference markup for the Blade views.
   ══════════════════════════════════════════════════════════════════════ */
.gs-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* - list ---------------------------------------------------------------- */
.gs-blog-intro .gs-lead { margin-bottom: 0; }
.gs-blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.gs-blog-toolbar .gs-blog-tags { flex: 1 1 420px; }
.gs-blog-search { flex: 0 1 340px; margin-top: 0; }
.gs-blog-search .dk-search-input { min-height: 40px; }
.gs-blog-chip {
  text-decoration: none; min-height: 32px; padding-inline: 12px;
  border: 1px solid var(--color-divider); background: transparent; color: inherit;
  transition: background-color .15s var(--gs-ease), border-color .15s var(--gs-ease), color .15s var(--gs-ease);
}
.gs-blog-chip:hover { border-color: var(--color-accent); color: var(--gs-accent-text); }
.gs-blog-chip[aria-current="page"] {
  background: var(--color-accent-800); border-color: var(--color-accent-800); color: var(--color-accent-100);
}
[data-theme="light"] .gs-blog-chip[aria-current="page"] {
  background: var(--color-accent-200); border-color: var(--color-accent-300); color: var(--color-accent-800);
}
.gs-blog-results { margin: 18px 0 0; font-size: 14px; }
.gs-blog-results strong { font-weight: 600; }
.gs-blog-message { margin: 18px 0 0; font-size: 14px; color: oklch(0.80 0.10 75); }
[data-theme="light"] .gs-blog-message { color: oklch(0.48 0.12 60); }

/* The whole card opens the post: one real link in the title, stretched over
   the card, so the card has a single tab stop and a sensible link name. */
.gs-post, .gs-blog-feature { position: relative; }
.gs-post-link { color: inherit; text-decoration: none; }
.gs-post-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.gs-post:hover, .gs-blog-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gs-post:hover .gs-post-link, .gs-blog-feature:hover .gs-post-link { color: var(--gs-accent-text); }
.gs-post:has(.gs-post-link:focus-visible),
.gs-blog-feature:has(.gs-post-link:focus-visible) { outline: 3px solid color-mix(in srgb, var(--color-accent) 72%, white); outline-offset: 3px; }
.gs-post-link:focus-visible { outline: none; }
.gs-post { display: flex; flex-direction: column; }
.gs-post-shot {
  display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630;
  object-fit: cover; background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
}
.gs-post-fallback {
  display: flex; align-items: flex-end; gap: 10px; aspect-ratio: 1200 / 630; padding: 18px;
  border-bottom: 1px solid var(--color-divider);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--color-accent) 26%, transparent), transparent 62%),
    var(--color-section);
  color: var(--color-neutral-100);
  font: 500 15px/1.2 var(--font-heading);
}
.gs-post-fallback i { font-size: 22px; color: var(--color-accent-300); }
.gs-post-body { flex: 1; }
.gs-post-title { font: 500 19px/1.3 var(--font-heading); margin: 0; text-wrap: balance; }
.gs-post-excerpt { margin: 0; font-size: 14px; line-height: 1.55; opacity: .78; flex: 1; }
.gs-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; }
.gs-blog-meta-row { flex-wrap: wrap; }
.gs-blog-feature { flex-direction: row; }
.gs-blog-feature-shot { flex: 1 1 380px; width: 100%; height: auto; min-height: 0; aspect-ratio: 1200 / 630; object-fit: cover; border: 0; }
.gs-blog-feature .gs-post-fallback { flex: 1 1 380px; border-bottom: 0; }
/* Review fixes (browser pass, 2026-10-26):
   - the light theme inks every <a> with the accent; card titles and the
     breadcrumb keep the text colour and take the accent only on hover;
   - auto-fill keeps a lone search result or related post at card width
     instead of stretching it across the row;
   - the featured card is a two-column grid from 900px, and its image never
     forces a wrap (a flex <img> keeps its intrinsic min-width);
   - headings balance their lines, which also stops CJK titles leaving one
     or two characters on the last line. */
[data-theme="light"] .gs-post-link,
[data-theme="light"] .gs-bp-crumbs a { color: inherit; }
[data-theme="light"] .gs-post:hover .gs-post-link,
[data-theme="light"] .gs-blog-feature:hover .gs-post-link,
[data-theme="light"] .gs-bp-crumbs a:hover { color: var(--gs-accent-text); }
.gs-blog-grid { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.gs-blog-feature-shot, .gs-blog-feature .gs-post-fallback { min-width: 0; min-height: 0; align-self: stretch; }
@media (min-width: 900px) {
  .gs-blog-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .gs-blog-feature-shot { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 899px) {
  .gs-blog-feature { display: flex; flex-direction: column; }
  .gs-blog-feature-shot, .gs-blog-feature .gs-post-fallback { flex: none; width: 100%; aspect-ratio: 1200 / 630; }
  /* The artboard's flex-basis is a width in a row; in a column it would fix
     the body's height and centre a short body inside it. */
  .gs-blog-feature-body { flex: none; }
}
.gs-blog-title, .gs-bp-title, .gs-blog-feature-title { text-wrap: balance; }
.gs-blog-pager { justify-content: space-between; flex-wrap: wrap; }
.gs-blog-pager .gs-blog-count { margin: 0; }
.gs-pill-draft { background: color-mix(in srgb, oklch(0.66 0.125 75) 22%, transparent); color: oklch(0.82 0.09 75); }
[data-theme="light"] .gs-pill-draft { background: color-mix(in srgb, oklch(0.66 0.125 75) 18%, white); color: oklch(0.42 0.11 65); }

.gs-blog-empty { padding: clamp(24px, 4vw, 40px); gap: 12px; align-items: flex-start; max-width: 680px; }
.gs-blog-empty-icon { font-size: 28px; color: var(--gs-accent-text); }
.gs-blog-empty-title { font-size: clamp(20px, 2.2vw, 24px); margin: 0; }
.gs-blog-empty p { margin: 0; opacity: .8; max-width: 52ch; }
.gs-blog-empty-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* - post ---------------------------------------------------------------- */
.gs-bp-head { padding-top: 40px; padding-bottom: 24px; }
.gs-bp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; }
.gs-bp-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .45; }
.gs-bp-crumbs a { color: inherit; opacity: .75; text-decoration: none; }
.gs-bp-crumbs a:hover { opacity: 1; color: var(--gs-accent-text); text-decoration: underline; }
.gs-bp-labels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gs-bp-labels a.tag, .gs-bp-footer-inner a.tag { text-decoration: none; }
.gs-bp-title { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.02em; max-width: 24ch; margin: 0 0 16px; text-wrap: balance; }
.gs-bp-lead { max-width: 64ch; margin-bottom: 20px; }
.gs-bp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; }
.gs-bp-meta i { color: var(--gs-accent-text); margin-right: 4px; }
.gs-bp-cover-sec { padding-top: 0; padding-bottom: 8px; }
.gs-bp-cover, .gs-bp-figure { margin: 0; }
.gs-bp-cover img, .gs-bp-figure img {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider); background: var(--color-surface);
}
.gs-bp-cover figcaption, .gs-bp-figure figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; opacity: .75; max-width: 72ch; }
.gs-bp-main { padding-top: 32px; padding-bottom: 48px; }
.gs-bp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1024px) {
  .gs-bp-grid.gs-bp-has-toc { grid-template-columns: 220px minmax(0, 720px); gap: 56px; }
  .gs-bp-toc { position: sticky; top: calc(var(--gs-nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--gs-nav-h) - 48px); overflow: auto; }
}
.gs-bp-grid:not(.gs-bp-has-toc) .gs-prose { max-width: 760px; }
.gs-bp-toc { font-size: 13.5px; }
.gs-bp-toc summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; padding: 6px 0; min-height: 32px;
}
.gs-bp-toc summary::-webkit-details-marker { display: none; }
.gs-bp-toc summary::after { content: "+"; font-size: 16px; letter-spacing: 0; }
.gs-bp-toc[open] summary::after { content: "\2013"; }
.gs-bp-toc ol { list-style: none; margin: 6px 0 0; padding: 0; border-left: 1px solid var(--color-divider); }
.gs-bp-toc li a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent;
  color: inherit; text-decoration: none; opacity: .75; line-height: 1.4;
}
.gs-bp-toc li a:hover { opacity: 1; color: var(--gs-accent-text); }
.gs-bp-toc li a[aria-current="true"] { opacity: 1; color: var(--gs-accent-text); border-left-color: var(--color-accent); }
@media (max-width: 1023px) {
  .gs-bp-toc { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: 6px 16px 10px; background: var(--color-surface); }
}

/* Long-form text. The measure stays near 70ch whatever the column width. */
.gs-prose { font-size: 16.5px; line-height: 1.75; min-width: 0; }
.gs-prose > :first-child { margin-top: 0; }
.gs-prose p, .gs-prose ul, .gs-prose ol { margin: 0 0 1.1em; max-width: 70ch; }
.gs-prose ul, .gs-prose ol { padding-left: 1.3em; }
.gs-prose li { margin-bottom: .4em; }
.gs-prose li::marker { color: var(--gs-accent-text); }
.gs-prose h2 { font-size: clamp(23px, 2.4vw, 28px); line-height: 1.25; margin: 1.9em 0 .6em; scroll-margin-top: calc(var(--gs-nav-h) + 20px); text-wrap: balance; }
.gs-prose h3 { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.3; margin: 1.5em 0 .5em; scroll-margin-top: calc(var(--gs-nav-h) + 20px); }
.gs-prose a { color: var(--gs-accent-text); text-decoration: underline; text-decoration-thickness: 1px; }
.gs-prose a:hover { text-decoration-thickness: 2px; }
.gs-prose strong { font-weight: 600; }
.gs-prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--color-accent); }
.gs-prose :not(pre) > code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88em; padding: 2px 6px;
  border-radius: 6px; background: color-mix(in srgb, var(--color-text) 9%, transparent);
}
.gs-prose table { display: block; overflow-x: auto; width: 100%; max-width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.gs-prose th, .gs-prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-divider); }
.gs-prose th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; white-space: nowrap; }

.gs-code { position: relative; margin: 0 0 1.4em; }
.gs-code pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-bg) 70%, black); border: 1px solid var(--color-divider);
  font: 13.5px/1.65 ui-monospace, Menlo, Consolas, monospace; color: var(--color-neutral-200);
}
[data-theme="light"] .gs-code pre { background: var(--color-neutral-900); color: var(--color-neutral-100); }
.gs-code-copy {
  position: absolute; top: 8px; right: 8px; min-height: 32px; padding: 4px 10px; font-size: 12px;
  color: var(--color-neutral-100); background: color-mix(in srgb, var(--color-neutral-900) 80%, transparent);
  border-color: color-mix(in srgb, var(--color-neutral-100) 22%, transparent);
}
.gs-code-copy:hover { background: var(--color-neutral-800); }

.gs-callout {
  display: flex; gap: 12px; align-items: flex-start; margin: 1.4em 0; padding: 16px 18px;
  border-radius: var(--radius-lg); border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-accent); background: var(--color-surface);
}
.gs-callout > i { font-size: 20px; margin-top: 3px; color: var(--gs-accent-text); flex: none; }
.gs-callout-body { font-size: 15px; line-height: 1.65; }
.gs-callout-body > :last-child { margin-bottom: 0; }
.gs-callout-title { display: block; font: 600 14px/1.4 var(--font-heading); margin-bottom: 2px; }
.gs-callout-tip { border-left-color: oklch(0.66 0.125 155); }
.gs-callout-tip > i { color: oklch(0.72 0.12 155); }
.gs-callout-warning { border-left-color: oklch(0.70 0.14 70); }
.gs-callout-warning > i { color: oklch(0.76 0.13 70); }
[data-theme="light"] .gs-callout-tip > i { color: oklch(0.48 0.12 155); }
[data-theme="light"] .gs-callout-warning > i { color: oklch(0.52 0.13 60); }
.gs-prose .gs-bp-figure { margin: 1.8em 0; }

.gs-bp-footer { padding-top: 0; padding-bottom: 40px; }
.gs-bp-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 22px; border-top: 1px solid var(--color-divider); font-size: 13.5px; }
.gs-bp-related { padding-top: 16px; padding-bottom: 32px; }
.gs-bp-related-title { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 20px; }

@media (max-width: 720px) {
  .gs-blog-search { flex: 1 1 100%; max-width: none; }
  .gs-blog-feature { flex-direction: column; }
  .gs-blog-feature-body { padding: 22px; }
  .gs-prose { font-size: 16px; }
  .gs-code pre { padding: 16px; font-size: 13px; }
  .gs-bp-meta { font-size: 12.5px; }
  .gs-blog-chip { min-height: 44px; }
  .gs-bp-toc li a { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-post:hover, .gs-blog-feature:hover { transform: none; }
}
@media print {
  .pn-wrap, .pf, .gs-bp-toc, .gs-bp-related, .gs-cta, .gs-code-copy { display: none !important; }
}
