/* Knowledge and editorial page family, sharing V16 surfaces and typography. */
html[data-theme] body.sm-v16.smaug-route-docs {
  --docs-accent: var(--smv-accent);
  --docs-action: var(--smv-accent);
  --docs-warm: var(--smv-accent);
  --docs-gradient: var(--smv-accent);
  --docs-paper: var(--smv-bg);
  --docs-cream: var(--smv-surface-alt);
  --docs-ink: var(--smv-ink);
  --docs-muted: var(--smv-muted);
  --docs-border: var(--smv-line);
  --docs-soft: var(--smv-surface-alt);
  --docs-surface: var(--smv-surface);
  --docs-surface-strong: var(--smv-surface);
  --docs-surface-soft: var(--smv-surface-alt);
  --docs-shadow: none;
  --docs-code-bg: var(--smv-forest);
  --docs-code-text: var(--smv-forest-ink);
  --docs-radius: 8px;
  --docs-radius-sm: 4px;
  background: var(--smv-bg);
}
.sm-v16 :is(.sm-docs-page, .sm-updates-page, .sm-news-page, .smaugbrain-growth-page) { padding-top: 0; }
.sm-v16 .sm-docs-hero { min-height: 0; padding: 0 0 40px; align-items: start; }
.sm-v16 .sm-docs-title::after { content: none; display: none; }
.sm-v16 .sm-docs-title :is(span, em) { background: none; color: var(--smv-ink); -webkit-text-fill-color: currentColor; }
html[data-theme] body.sm-v16 .sm-docs-toc { --docs-sticky-top: calc(var(--smv-header-height) + var(--smv-toolbar-height) + 24px); top: var(--docs-sticky-top); }
/* Keep legacy docs selectors inside the shared content palette in either theme. */
html[data-theme] body.sm-v16.smaug-route-docs .sm-surface-main { padding: var(--smv-page-top) var(--smv-page-gutter) 64px; }
html[data-theme] body.sm-v16.smaug-route-docs .sm-surface-shell::before, html[data-theme] body.sm-v16.smaug-route-docs .sm-surface-shell::after { content: none; display: none; }
html[data-theme] body.sm-v16.smaug-route-docs :is(.sm-docs-pill, .sm-docs-stats span) { background: var(--smv-surface-alt); color: var(--smv-muted); border-color: var(--smv-line); box-shadow: none; }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-pill { border-radius: 4px; text-transform: none; }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-pill > span { background: var(--smv-accent); color: var(--smv-on-accent); border-radius: 2px; }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-button { border-radius: 4px; box-shadow: none; transform: none; }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-button.is-primary { background: var(--smv-accent); color: var(--smv-on-accent); border-color: var(--smv-accent); }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-button.is-secondary { background: var(--smv-surface); color: var(--smv-ink); border-color: var(--smv-line); }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-button:hover { border-color: var(--smv-ink); }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-button.is-secondary:hover { background: var(--smv-surface-alt); }
html[data-theme] body.sm-v16.smaug-route-docs :is(.sm-docs-card-kicker, .sm-docs-step, .sm-docs-audit-strip span) { background: var(--smv-surface-alt); color: var(--smv-muted); border-radius: 4px; }
html[data-theme] body.sm-v16.smaug-route-docs .sm-docs-note a { color: var(--smv-accent); }
@media (max-width: 767px) {
  html[data-theme] body.sm-v16.smaug-route-docs .sm-surface-main { padding-block: 32px 64px; }
}

html[data-theme] body.sm-v16.smaug-route-news {
  --sm-news-paper: var(--smv-bg);
  --sm-news-paper-soft: var(--smv-bg);
  --sm-news-ink: var(--smv-ink);
  --sm-news-muted: var(--smv-muted);
  --sm-news-rule: var(--smv-line);
  --sm-news-accent: var(--smv-accent);
  --sm-news-highlight: var(--smv-surface-alt);
  --sm-news-serif: var(--smh-font);
  background: var(--smv-bg);
}
.sm-v16.smaug-route-news :is(.sm-surface-shell, .sm-surface-main) { background: var(--smv-bg); }
.sm-v16.smaug-route-news .sm-surface-main { padding-top: var(--smv-page-top); }
.sm-v16.smaug-route-news .sm-news-masthead-title { font-size: var(--smv-title-size); line-height: 1.15; font-weight: 500; letter-spacing: 0; }
.sm-v16.smaug-route-news :is(.sm-surface-kicker, .sm-surface-panel-eyebrow, .sm-news-editorial-label) { border-radius: 2px; background: var(--smv-surface-alt); color: var(--smv-muted); letter-spacing: 0; box-shadow: none; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-editorial-cta { padding: 32px; border: 1px solid var(--smv-line); border-radius: 0; color: var(--smv-ink); background: var(--smv-surface-alt); box-shadow: none; backdrop-filter: none; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-editorial-cta::after { content: none; display: none; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-editorial-cta .sm-surface-button { box-shadow: none; transform: none; }
.sm-v16.smaug-route-news .sm-news-editorial-card h3 { font-family: var(--smh-font); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; font-weight: 500; letter-spacing: 0; }
.sm-v16.smaug-route-news :is(.sm-news-card-excerpt, .sm-news-masthead-body, .sm-news-editorial-cta p) { color: var(--smv-muted); }
.sm-v16.smaug-route-news .sm-news-empty { padding: 28px 0; border-block: 1px solid var(--smv-line); }
.sm-v16.smaug-route-news .sm-news-empty h2 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.sm-v16.smaug-route-news .sm-news-empty p { margin: 0; color: var(--smv-muted); font-size: 14px; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace {
  --geo-ink: var(--smv-ink); --geo-muted: var(--smv-muted); --geo-line: var(--smv-line);
  --geo-soft: var(--smv-surface-alt); --geo-accent: var(--smv-accent);
  --geo-panel: var(--smv-surface); --geo-card: var(--smv-surface); --geo-hover: var(--smv-surface-alt); --geo-cta: var(--smv-surface-alt);
  background: transparent;
}
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(.smaugbrain-growth-hero, .smaugbrain-growth-panel, .smaugbrain-growth-section, .smaugbrain-growth-cta, .smaugbrain-growth-hero__meta) { background: var(--smv-surface); border: 1px solid var(--smv-line); box-shadow: none; color: var(--smv-ink); border-radius: 6px; }
html[data-theme] body.sm-v16.smaug-translation-pending .smaugbrain-growth-page--workspace .smaugbrain-growth-hero { grid-template-columns: 1fr; padding: 32px; background: var(--smv-surface); border: 1px solid var(--smv-line); box-shadow: none; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(h1, h2, h3) { color: var(--smv-ink); font-family: var(--smh-font); }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(p, li, .smaugbrain-growth-kicker) { color: var(--smv-muted); }
.sm-v16 :is(.sm-docs-page, .sm-news-page, .sm-updates-page, .smaugbrain-growth-page, .smaugbrain-about, .sm-legal-page) { color: var(--smv-ink); background: transparent; }
.sm-v16 :is(.sm-docs-hero, .sm-news-intro, .sm-updates-intro, .smaugbrain-growth-hero) { background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid var(--smv-line); border-radius: 0; }
.sm-v16 :is(.sm-docs-title, .sm-news-title, .sm-news-detail-title, .sm-updates-intro h1, .smaugbrain-growth-hero h1) { color: var(--smv-ink); font-family: var(--smh-font); font-size: var(--smv-title-size); line-height: 1.15; font-weight: 500; letter-spacing: 0; font-style: normal; overflow-wrap: break-word; }
.sm-v16 :is(.sm-docs-lede, .sm-news-lede, .sm-news-intro p, .sm-updates-intro p, .smaugbrain-growth-hero p) { color: var(--smv-muted); font-size: 16px; line-height: 1.75; }
.sm-v16 :is(.sm-docs-pill, .sm-docs-card-kicker, .sm-docs-mini-label, .sm-news-eyebrow, .sm-news-card-meta, .sm-updates-kicker, .sm-updates-date, .smaugbrain-growth-kicker, .sm-surface-panel-eyebrow) { background: transparent; color: var(--smv-muted); border-color: var(--smv-line); box-shadow: none; font-size: 12px; letter-spacing: 0; }
.sm-v16 :is(.sm-docs-index-card, .sm-docs-mini-panel, .sm-docs-toc, .sm-docs-note, .sm-docs-task-card, .sm-docs-upload-card, .sm-docs-code-card, .sm-docs-result-card, .sm-news-card, .sm-news-pagination a, .sm-news-detail-content, .sm-updates-item, .sm-updates-content-box, .smaugbrain-growth-card, .smaugbrain-growth-hero__meta, .smaugbrain-growth-faq article, .sm-legal-card) { border: 1px solid var(--smv-line); border-radius: 6px; background: var(--smv-surface); color: var(--smv-ink); box-shadow: none; backdrop-filter: none; }
.sm-v16 :is(.sm-docs-section, .sm-docs-section h2, .sm-docs-section h3, .sm-docs-toc a, .sm-docs-route-list a, .sm-news-card h2, .sm-news-detail-content h2, .sm-news-detail-content h3, .sm-updates-copy h2, .sm-updates-copy h3, .smaugbrain-growth-card h2, .smaugbrain-growth-card h3) { color: var(--smv-ink); font-style: normal; letter-spacing: 0; }
.sm-v16 :is(.sm-docs-section p, .sm-docs-section li, .sm-docs-mini-row, .sm-docs-route-list, .sm-news-card p, .sm-news-card-meta, .sm-news-detail-content p, .sm-news-detail-content li, .sm-updates-copy p, .sm-updates-copy li, .smaugbrain-growth-card p, .smaugbrain-growth-card li, .smaugbrain-growth-faq p) { color: var(--smv-muted); }
.sm-v16 :is(.sm-docs-section h2, .sm-news-detail-content h2) { font-size: var(--smv-section-title-size); line-height: 1.4; }
.sm-v16 :is(.sm-docs-section h3, .sm-news-detail-content h3) { font-size: 20px; line-height: 1.4; }
.sm-v16 :is(.sm-docs-button, .smaugbrain-growth-button) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border: 1px solid var(--smv-line); border-radius: 4px; background: var(--smv-surface); color: var(--smv-ink); box-shadow: none; text-decoration: none; font-size: 14px; }
.sm-v16 :is(.sm-docs-button.is-primary, .smaugbrain-growth-button--primary) { background: var(--smv-accent); color: var(--smv-on-accent); border-color: var(--smv-accent); }
.sm-v16 :is(.sm-docs-button, .smaugbrain-growth-button):hover { transform: none; border-color: var(--smv-muted); }
.sm-v16 .sm-docs-section { scroll-margin-top: 0; }
.sm-v16 .sm-docs-section + .sm-docs-section { border-top-color: var(--smv-line); }
.sm-v16 .sm-docs-screenshot { border-color: var(--smv-line); border-radius: 4px; box-shadow: none; }
.sm-v16 .sm-docs-screenshot-caption { background: var(--smv-surface-alt); color: var(--smv-muted); }
.sm-v16 .sm-docs-toc a.is-active { background: var(--smv-surface-alt); color: var(--smv-ink); border-color: var(--smv-line); }
.sm-v16 .sm-news-detail-content { line-height: 1.85; }
.sm-v16 .sm-news-detail-content pre { max-width: 100%; overflow-x: auto; background: var(--smv-forest); color: var(--smv-forest-ink); border-radius: 4px; padding: 20px; }
.sm-v16 .sm-news-detail-content a { color: var(--smv-accent); text-underline-offset: 3px; }
.sm-v16 :is(.sm-news-detail-header, .sm-news-detail-body) { background: transparent; border-color: var(--smv-line); }

.sm-v16 :is(.smaugbrain-about h1, .smaugbrain-about h2, .smaugbrain-about h3) { color: var(--smv-ink); }
.sm-v16 :is(.smaugbrain-about p, .smaugbrain-about li, .smaugbrain-about dd) { color: var(--smv-muted); }
@media (max-width: 767px) {
  .sm-v16 :is(.sm-docs-title, .sm-news-title, .sm-news-detail-title, .sm-updates-intro h1, .smaugbrain-growth-hero h1) { font-size: var(--smv-title-size); }
  .sm-v16 .sm-updates-item { padding: 20px; }
}

/* Menu review: editorial layouts use one outer gutter and one surface layer. */
html[data-theme] body.sm-v16.smaug-route-product-updates {
  --updates-ink: var(--smv-ink);
  --updates-muted: var(--smv-muted);
  --updates-paper: var(--smv-surface);
  --updates-soft: var(--smv-surface-alt);
  --updates-content: var(--smv-surface);
  --updates-content-border: var(--smv-line);
  --updates-border: var(--smv-line);
  --updates-accent: var(--smv-accent);
}
html[data-theme] body.sm-v16 .sm-updates-page { padding: 0; }
html[data-theme] body.sm-v16 .sm-updates-intro { padding-bottom: 32px; }
html[data-theme] body.sm-v16 .sm-updates-intro p { font-weight: 400; }
html[data-theme] body.sm-v16 .sm-updates-kicker { border-radius: 4px; font-weight: 500; }
html[data-theme] body.sm-v16 .sm-updates-board { border-radius: 6px; box-shadow: none; }
html[data-theme] body.sm-v16 .sm-updates-item { padding: 28px; border: 0; border-bottom: 1px solid var(--smv-line); border-radius: 0; background: transparent; }
html[data-theme] body.sm-v16 .sm-updates-item:last-child { border-bottom: 0; }
html[data-theme] body.sm-v16 .sm-updates-copy > h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
html[data-theme] body.sm-v16 .sm-updates-date { color: var(--smv-muted); }
html[data-theme] body.sm-v16 .sm-updates-date strong { font-size: 40px; font-weight: 500; line-height: 1; }
html[data-theme] body.sm-v16 .sm-updates-date em { color: var(--smv-accent); font-weight: 500; }
html[data-theme] body.sm-v16 .sm-updates-content-box { --w-e-textarea-color: var(--smv-ink); padding: 0; border: 0; border-radius: 0; background: transparent; }
html[data-theme] body.sm-v16 .sm-updates-content-box [data-slate-editor] { padding-inline: 0; }
html[data-theme] body.sm-v16 .sm-updates-content-box .w-e-text-container { font-family: var(--smh-font); line-height: 1.75; }
html[data-theme] body.sm-v16 .sm-updates-content-box [data-slate-editor] p { margin-block: 0 16px; }
html[data-theme] body.sm-v16 .sm-updates-content-box [data-slate-editor] p:last-child { margin-bottom: 0; }
html[data-theme] body.sm-v16 .sm-updates-page [data-updates-reveal] { opacity: 1; transform: none; }

/* Legal documents: the document precedes reference navigation on narrow screens. */
html[data-theme] body.sm-v16.smaug-route-legal {
  --legal-ink: var(--smv-ink);
  --legal-muted: var(--smv-muted);
  --legal-paper: var(--smv-surface);
  --legal-soft: var(--smv-surface-alt);
  --legal-border: var(--smv-line);
  --legal-accent: var(--smv-accent);
}
html[data-theme] body.sm-v16 .sm-legal-page { padding: 0; }
html[data-theme] body.sm-v16 .sm-legal-layout { grid-template-areas: "index document"; }
html[data-theme] body.sm-v16 .sm-legal-sidebar { grid-area: index; top: calc(var(--smv-header-height) + var(--smv-toolbar-height) + 24px); }
html[data-theme] body.sm-v16 .sm-legal-board { grid-area: document; min-width: 0; }
html[data-theme] body.sm-v16 :is(.sm-legal-sidebar, .sm-legal-board) { border-radius: 6px; box-shadow: none; }
html[data-theme] body.sm-v16 .sm-legal-kicker { border-radius: 4px; font-weight: 500; }
html[data-theme] body.sm-v16 .sm-legal-hero h1 { font-size: var(--smv-title-size); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
html[data-theme] body.sm-v16 :is(.sm-legal-hero p, .sm-legal-document-head p) { font-size: 16px; font-weight: 400; line-height: 1.75; }
html[data-theme] body.sm-v16 .sm-legal-index a { display: flex; align-items: center; min-height: 44px; font-weight: 500; line-height: 1.6; }
html[data-theme] body.sm-v16 :is(.sm-legal-index strong, .sm-legal-meta strong, .sm-legal-document-head h2) { font-weight: 500; }
html[data-theme] body.sm-v16 .sm-legal-document-head { background: var(--smv-surface-alt); }
html[data-theme] body.sm-v16 .sm-legal-document-head h2 { font-size: 24px; line-height: 1.35; }
html[data-theme] body.sm-v16 .sm-legal-document-content { overflow-wrap: anywhere; }
html[data-theme] body.sm-v16 .sm-legal-document-content > * { max-width: 72ch; }
html[data-theme] body.sm-v16 .sm-legal-document-content :is(table, pre) { display: block; max-width: 100%; overflow-x: auto; }
html[data-theme] body.sm-v16 .sm-legal-page [data-legal-reveal] { opacity: 1; transform: none; }

/* The existing company and solution layouts inherit the shared palette in both themes. */
html[data-theme] body.sm-v16 .smaugbrain-about {
  --about-bg: var(--smv-bg);
  --about-surface: var(--smv-surface);
  --about-surface-soft: var(--smv-surface-alt);
  --about-text: var(--smv-ink);
  --about-muted: var(--smv-muted);
  --about-line: var(--smv-line);
  --about-accent: var(--smv-accent);
  --about-accent-soft: var(--smv-surface-alt);
}
html[data-theme] body.sm-v16 .smaugbrain-about-hero h1 { font-size: var(--smv-title-size); font-weight: 500; line-height: 1.2; }
html[data-theme] body.sm-v16 .smaugbrain-about-hero__copy { padding: 40px; }
html[data-theme] body.sm-v16 .smaugbrain-about-button { min-height: 44px; font-weight: 500; white-space: normal; line-height: 1.5; }
html[data-theme] body.sm-v16 .smaugbrain-about-button--primary { background: var(--smv-accent); border-color: var(--smv-accent); color: var(--smv-on-accent); }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace { padding: 0; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero { padding: 32px; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero h1 { font-size: var(--smv-title-size); font-weight: 500; line-height: 1.2; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero .smaugbrain-growth-kicker { margin-bottom: 12px; color: var(--smv-muted); font-size: 13px; font-weight: 400; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero__meta { background: var(--smv-surface-alt); }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero__meta :is(span, p) { color: var(--smv-muted); }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(.smaugbrain-growth-button, .smaugbrain-growth-anchor-nav a) { min-height: 44px; font-weight: 500; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-button { background: var(--smv-surface); border-color: var(--smv-line); color: var(--smv-ink); }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-button--primary { background: var(--smv-accent); border-color: var(--smv-accent); color: var(--smv-on-accent); }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(a, summary):focus-visible { outline: 2px solid var(--smv-focus); outline-offset: 4px; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(.smaugbrain-growth-hero, .smaugbrain-growth-section, .smaugbrain-growth-grid) { animation: none; }
@media (max-width: 980px) {
  html[data-theme] body.sm-v16 .sm-legal-layout { grid-template-areas: "document" "index"; }
}
@media (max-width: 767px) {
  html[data-theme] body.sm-v16 .sm-updates-item { padding: 20px; }
  html[data-theme] body.sm-v16 .sm-updates-intro { padding-bottom: 24px; }
  html[data-theme] body.sm-v16 .smaugbrain-about-hero__copy { padding: 28px 20px; }
  html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero { padding: 24px 20px; }
}

/* Article details keep readable insets and the same navigation colors as the index. */
html[data-theme] body.sm-v16.smaug-route-news .sm-news-back-link { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; color: var(--smv-accent); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
html[data-theme] body.sm-v16.smaug-route-news :is(.sm-surface-kicker, .sm-surface-panel-eyebrow, .sm-news-editorial-label) { border-color: var(--smv-line); border-radius: 4px; background: var(--smv-surface-alt); color: var(--smv-muted); box-shadow: none; font-size: 12px; font-weight: 500; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-detail-title { color: var(--smv-ink); }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-meta span { border-radius: 4px; color: var(--smv-muted); background: var(--smv-surface-alt); box-shadow: inset 0 0 0 1px var(--smv-line); }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-detail-content { padding: clamp(20px, 3vw, 36px); overflow-wrap: anywhere; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-detail-content > :first-child { margin-top: 0; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-detail-content > :last-child { margin-bottom: 0; }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-detail-content a { color: var(--smv-accent); }
html[data-theme] body.sm-v16.smaug-route-news .sm-news-detail-pagination-link strong { color: var(--smv-ink); font-weight: 500; line-height: 1.35; }

html[data-theme] body.sm-v16.smaug-route-news [data-news-avatar] { position: relative; flex-shrink: 0; background: var(--smv-surface-alt); }
html[data-theme] body.sm-v16.smaug-route-news [data-news-avatar] .sm-news-byline-avatar-fallback { width: 100%; height: 100%; color: var(--smv-muted); }
html[data-theme] body.sm-v16.smaug-route-news [data-news-avatar] img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
html[data-theme] body.sm-v16.smaug-route-news [data-news-avatar][data-avatar-ready='true'] img { opacity: 1; }

/* Native FAQ disclosures retain the same controls with or without JavaScript. */
html[data-theme] body.sm-v16 .sm-docs-faq-item { border-radius: 6px; }
html[data-theme] body.sm-v16 .sm-docs-faq-item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 16px 20px; color: var(--smv-ink); font-size: 16px; font-weight: 500; line-height: 1.5; list-style: none; }
html[data-theme] body.sm-v16 .sm-docs-faq-item > summary::-webkit-details-marker { display: none; }
html[data-theme] body.sm-v16 .sm-docs-faq-item > summary::after { content: '+'; flex: 0 0 24px; text-align: center; color: var(--smv-muted); font-size: 22px; }
html[data-theme] body.sm-v16 .sm-docs-faq-item[open] > summary::after { content: '−'; }
html[data-theme] body.sm-v16 .sm-docs-screenshot img { border-color: var(--smv-line); border-radius: 6px; box-shadow: none; }
html[data-theme] body.sm-v16 .sm-docs-screenshot:is(:hover, :focus-visible) img { border-color: var(--smv-accent); box-shadow: none; transform: none; }
html[data-theme] body.sm-v16 .sm-docs-screenshot:focus-visible { outline: 2px solid var(--smv-focus); outline-offset: 4px; }
html[data-theme] body.sm-v16 .sm-image-preview { z-index: var(--smv-layer-dialog); background: color-mix(in srgb, var(--smv-forest) 96%, transparent); }
html[data-theme] body.sm-v16 .sm-image-preview-stage { width: min(1200px, 100%); min-width: 0; }
html[data-theme] body.sm-v16 .sm-image-preview-stage img { border-color: var(--smv-line); border-radius: 6px; background: var(--smv-forest); box-shadow: none; }
html[data-theme] body.sm-v16 .sm-image-preview-stage p { color: var(--smv-forest-ink); }
html[data-theme] body.sm-v16 .sm-image-preview-close { border-color: var(--smv-line); border-radius: 4px; background: var(--smv-forest); color: var(--smv-forest-ink); }

/* Long-form solution articles: one reading surface, with content-led section types. */
html[data-theme] body.sm-v16 .smaugbrain-solution-article { width: 100%; margin-inline: auto; color: var(--smv-ink); }
.smaugbrain-solution-hero { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--smv-line); }
.smaugbrain-solution-kicker { margin: 0 0 20px; color: var(--smv-muted); font-size: 14px; }
.smaugbrain-solution-hero h1 { max-width: 980px; margin: 0; font-family: var(--smh-font); font-size: var(--smv-title-size); font-weight: 500; line-height: 1.2; letter-spacing: 0; overflow-wrap: break-word; }
.smaugbrain-solution-intro { max-width: 70ch; margin: 24px 0 0; color: var(--smv-muted); font-size: var(--smv-body-size); line-height: 1.8; }
.smaugbrain-solution-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: var(--smv-content-gap); align-items: start; }
.smaugbrain-solution-toc { position: sticky; top: calc(var(--smv-header-height) + var(--smv-toolbar-height) + 24px); display: grid; gap: 4px; max-height: calc(100dvh - var(--smv-header-height) - var(--smv-toolbar-height) - 48px); overflow-y: auto; padding-right: 16px; }
.smaugbrain-solution-toc-mobile { display: none; }
.smaugbrain-solution-toc strong { margin-bottom: 12px; color: var(--smv-muted); font-size: 13px; font-weight: 500; }
.smaugbrain-solution-toc a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--smv-muted); font-size: 13px; line-height: 1.65; text-decoration: none; }
.smaugbrain-solution-toc a:hover { color: var(--smv-ink); text-decoration: underline; text-underline-offset: 4px; }
.smaugbrain-solution-prose { width: 100%; max-width: 74ch; min-width: 0; }
.smaugbrain-solution-section { min-width: 0; padding: 0 0 40px; margin: 0 0 40px; border-bottom: 1px solid var(--smv-line); }
.smaugbrain-solution-section h2, .smaugbrain-solution-cta h2 { margin: 0 0 20px; color: var(--smv-ink); font-size: 28px; font-weight: 500; line-height: 1.4; overflow-wrap: break-word; }
.smaugbrain-solution-section p, .smaugbrain-solution-cta p { margin: 0 0 20px; color: var(--smv-muted); font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.smaugbrain-solution-section p:last-child { margin-bottom: 0; }
.smaugbrain-solution-section.is-note { padding: 24px; background: var(--smv-surface-alt); border: 1px solid var(--smv-line); border-radius: 6px; }
.smaugbrain-solution-section.is-note h2 { font-size: 20px; }
.smaugbrain-solution-items { display: grid; gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; }
.smaugbrain-solution-items h3 { margin: 0 0 8px; color: var(--smv-ink); font-size: 17px; font-weight: 500; line-height: 1.55; }
.smaugbrain-solution-items p { margin: 0; }
.smaugbrain-solution-items.is-ordered { padding-left: 28px; list-style: decimal; }
.smaugbrain-solution-items.is-ordered li { padding-left: 8px; }
.smaugbrain-solution-items.is-ordered li::marker { color: var(--smv-accent); font-variant-numeric: tabular-nums; }
.smaugbrain-solution-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; margin-top: 24px; }
.smaugbrain-solution-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.smaugbrain-solution-table th, .smaugbrain-solution-table td { min-width: 144px; padding: 16px; border: 1px solid var(--smv-line); vertical-align: top; line-height: 1.8; overflow-wrap: break-word; }
.smaugbrain-solution-table th { background: var(--smv-surface-alt); color: var(--smv-ink); font-weight: 500; }
.smaugbrain-solution-table td { background: var(--smv-surface); color: var(--smv-muted); }
.smaugbrain-solution-example { max-width: 100%; margin: 24px 0 0; padding: 24px; border: 1px solid var(--smv-line); border-radius: 6px; background: var(--smv-surface); color: var(--smv-ink); font-family: var(--smh-font); font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.smaugbrain-solution-faq details { border-top: 1px solid var(--smv-line); }
.smaugbrain-solution-faq details:last-child { border-bottom: 1px solid var(--smv-line); }
.smaugbrain-solution-faq summary { min-height: 48px; padding: 16px 0; color: var(--smv-ink); font-size: 16px; line-height: 1.7; }
.smaugbrain-solution-faq details > p { padding-bottom: 20px; }
.smaugbrain-solution-related { display: grid; gap: 0; }
.smaugbrain-solution-related a { display: grid; gap: 8px; padding: 20px 0; border-top: 1px solid var(--smv-line); text-decoration: none; }
.smaugbrain-solution-related strong { color: var(--smv-ink); font-size: 16px; font-weight: 500; }
.smaugbrain-solution-related span { color: var(--smv-muted); font-size: 14px; line-height: 1.8; }
.smaugbrain-solution-related a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.smaugbrain-solution-cta { padding: 0 0 24px; }
.smaugbrain-solution-cta .sm-surface-button { margin-top: 4px; }
@media (max-width: 980px) {
  .smaugbrain-solution-layout { grid-template-columns: 1fr; gap: 32px; }
  .smaugbrain-solution-toc { display: none; }
  .smaugbrain-solution-toc-mobile { display: block; border-block: 1px solid var(--smv-line); }
  .smaugbrain-solution-toc-mobile summary { min-height: 48px; padding: 12px 0; color: var(--smv-ink); font-size: 14px; line-height: 1.7; }
  .smaugbrain-solution-toc-mobile nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; max-height: 60dvh; overflow-y: auto; padding: 0 0 16px; }
  .smaugbrain-solution-toc-mobile a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--smv-muted); font-size: 14px; line-height: 1.7; text-decoration: none; }
  .smaugbrain-solution-toc strong { grid-column: 1 / -1; margin-bottom: 8px; }
  .smaugbrain-solution-prose { max-width: 100%; }
}
@media (max-width: 767px) {
  .smaugbrain-solution-hero { padding-bottom: 28px; margin-bottom: 28px; }
  .smaugbrain-solution-intro { font-size: 16px; }
  .smaugbrain-solution-section { margin-bottom: 32px; padding-bottom: 32px; }
  .smaugbrain-solution-section h2, .smaugbrain-solution-cta h2 { font-size: 24px; }
  .smaugbrain-solution-toc a { font-size: 14px; }
  .smaugbrain-solution-section.is-note, .smaugbrain-solution-example { padding: 20px; }
}
@media (max-width: 420px) {
  .smaugbrain-solution-toc-mobile nav { grid-template-columns: 1fr; }
}

/* Public resource and sample-report reading surfaces. */
.sm-public-content-heading { margin-bottom: 48px; border-bottom: 1px solid var(--smv-line); padding-bottom: 36px; }
.sm-public-content-heading h1 { font-size: var(--smv-title-size); line-height: 1.12; font-weight: 500; margin: 0 0 24px; }
.sm-public-content-heading p { color: var(--smv-muted); max-width: 72ch; line-height: 1.9; }
.sm-example-library { min-width: 0; color: var(--smv-ink); }
.sm-example-library [hidden] { display: none !important; }
.sm-example-library-intro { max-width: 85ch; margin-bottom: 28px; }
.sm-example-library-intro h2 { font-size: var(--smv-section-title-size); font-weight: 500; }
.sm-example-library-intro p { line-height: 1.85; color: var(--smv-muted); }
.sm-example-index { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-block: 28px; padding-block: 20px; border-block: 1px solid var(--smv-line); }
.sm-example-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.sm-example-tools { display: grid; grid-template-columns: minmax(0,2fr) minmax(180px,1fr) auto; align-items: end; gap: 20px; padding: 24px; background: var(--smv-surface-alt); margin-block: 28px; }
.sm-example-tools label { display: grid; gap: 8px; font-size: 14px; }
.sm-example-tools :is(input,select) { min-width: 0; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--smv-line); background: var(--smv-surface); color: var(--smv-ink); border-radius: 2px; font: inherit; }
.sm-example-library button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--smv-line); border-radius: 2px; color: var(--smv-ink); background: var(--smv-surface); font: inherit; font-size: 14px; cursor: pointer; }
.sm-example-library button:hover { background: var(--smv-surface-alt); border-color: var(--smv-accent); }
.sm-example-results, .sm-example-feedback { color: var(--smv-muted); font-size: 14px; line-height: 1.8; }
.sm-example-workflow { border-top: 1px solid var(--smv-line); margin-block: 28px; min-width: 0; }
.sm-example-workflow > summary { list-style: none; cursor: pointer; padding-block: 24px; }
.sm-example-workflow > summary h3 { display: inline; margin: 0; font-size: clamp(22px,2.2vw,28px); font-weight: 500; line-height: 1.4; }
.sm-example-workflow > summary :is(p,small) { color: var(--smv-muted); font-size: 13px; margin: 8px 0 0; }
.sm-example-workflow-body { padding-bottom: 24px; }
.sm-example-workflow-body > p { max-width: 85ch; line-height: 1.85; }
.sm-example-context { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--smv-line); gap: 32px; padding-block: 28px; margin-block: 28px; }
.sm-example-context section { min-width: 0; }
.sm-example-context h4 { font-size: 15px; margin: 0 0 16px; }
.sm-example-context :is(p,li) { line-height: 1.9; font-size: 14px; color: var(--smv-muted); }
.sm-example-context :is(ul,ol) { padding-left: 20px; }
.sm-example-context li + li { margin-top: 8px; }
.sm-example-review { background: var(--smv-surface-alt); padding: 20px; line-height: 1.8; }
.sm-example-review strong { display: block; margin-bottom: 6px; }
.sm-example-report { border: 1px solid var(--smv-line); margin-top: 20px; background: var(--smv-surface); }
.sm-example-report > summary { list-style: none; min-height: 58px; padding: 20px 24px; cursor: pointer; }
.sm-example-report > summary h4 { display: flex; align-items: start; justify-content: space-between; gap: 16px; font-size: 17px; margin: 0; line-height: 1.6; font-weight: 600; }
.sm-example-workflow > summary::-webkit-details-marker, .sm-example-report > summary::-webkit-details-marker { display: none; }
.sm-example-report > summary [data-example-report-title] { min-width: 0; overflow-wrap: anywhere; }
.sm-example-disclosure { float: right; flex-shrink: 0; padding-inline: 12px; font-size: 0; }
.sm-example-disclosure::after { content: '+'; font-size: 20px; font-weight: 400; line-height: 1; }
.sm-example-workflow[open] > summary .sm-example-disclosure::after, .sm-example-report[open] > summary .sm-example-disclosure::after { content: '−'; }
.sm-example-report[open] > summary { border-bottom: 1px solid var(--smv-line); }
.sm-example-report-body { max-width: 90ch; margin-inline: auto; padding: clamp(20px,3vw,32px); }
.sm-example-report-label { color: var(--smv-muted); font-size: 13px; margin: 0 0 16px; }
.sm-example-report-body h5 { font-size: var(--smv-section-title-size); line-height: 1.4; font-weight: 500; margin: 0 0 20px; }
.sm-example-report-body :is(p,li) { line-height: 1.95; overflow-wrap: anywhere; }
.sm-example-report-section { margin-block: 28px; }
.sm-example-report-section h6, .sm-example-report-sources h6 { margin: 0 0 12px; font-size: 17px; line-height: 1.6; font-weight: 600; }
.sm-example-report-sources { border-top: 1px solid var(--smv-line); padding-top: 24px; margin-top: 32px; color: var(--smv-muted); font-size: 14px; }
.sm-example-report-sources a { overflow-wrap: anywhere; }
.sm-example-download { margin-top: 24px; }
.sm-example-library :focus-visible { outline: 3px solid var(--smv-accent); outline-offset: 4px; }
@media(max-width:767px) {
 .sm-public-content-heading { margin-bottom: 28px; padding-bottom: 28px; }
 .sm-example-tools { grid-template-columns: minmax(0,1fr); padding: 20px; gap: 16px; }
 .sm-example-context { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .sm-example-index { gap: 8px 20px; }
 .sm-example-report > summary { padding: 16px; }
 .sm-example-report > summary h4 { font-size: 16px; }
}

.sm-about-principles { margin-block: var(--smv-section-space); border-block: 1px solid var(--smv-line); padding-block: 36px; }
.sm-about-principles h2 { font-size: var(--smv-section-title-size); font-weight: 500; }
.sm-about-principles > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin-block: 28px; }
.sm-about-principles h3 { font-size: 19px; line-height: 1.6; }
.sm-about-principles p { color: var(--smv-muted); line-height: 1.9; }
.sm-about-principles > a { display: inline-flex; align-items: center; min-height: 44px; }
@media(max-width:767px) { .sm-about-principles > div { grid-template-columns: minmax(0,1fr); gap: 20px; } }

/* Resource directory: three source-led groups with eleven real local routes. */
.sm-resource-page { width: min(100%, var(--smv-max)); margin-inline: auto; padding-block: 0; color: var(--smv-ink); }
.sm-resource-hero { max-width: 75ch; margin-bottom: 40px; }
.sm-resource-hero h1 { margin: 0 0 20px; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.08; text-wrap: balance; }
.sm-resource-hero p, .sm-resource-help p { color: var(--smv-muted); font-size: 1.125rem; line-height: 1.7; }
.sm-resource-index { display: flex; flex-wrap: wrap; gap: 0 28px; padding-block: 12px; border-block: 1px solid var(--smv-line); }
.sm-resource-index a { flex: 1 1 240px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--smv-ink); text-decoration: none; }
.sm-resource-group { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr); gap: 40px; margin-top: 48px; }
.sm-resource-group h2 { margin: 20px 0; font-size: 1.5rem; line-height: 1.3; text-wrap: balance; }
.sm-resource-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--smv-line); color: var(--smv-ink); text-decoration: none; }
.sm-resource-link h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.35; }
.sm-resource-link p { margin: 0; max-width: 65ch; color: var(--smv-muted); line-height: 1.65; }
.sm-resource-link > span { color: var(--smv-accent); font-size: 1.5rem; }
.sm-resource-link:hover { background: var(--smv-surface-alt); }
.sm-resource-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--smv-line); }
.sm-resource-help h2 { margin: 0; font-size: 1.5rem; }
.sm-resource-help > div:last-child { display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.sm-resource-page a:focus-visible { outline: 2px solid var(--smv-accent); outline-offset: 4px; }

@media(max-width:760px) {
  .sm-resource-page { width: 100%; padding-block: 0; }
  .sm-resource-group { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 32px; }
  .sm-resource-group h2 { margin-bottom: 4px; }
  .sm-resource-link { gap: 16px; }
}
.sm-example-category { display: block; margin-bottom: 8px; color: var(--smv-muted); font-size: 13px; font-weight: 400; }
.sm-example-workflow > summary h3 { display: block; }
.sm-example-tools input::placeholder { color: var(--smv-muted); opacity: 1; }
.sm-example-context ol { list-style: decimal; }
.sm-example-context ul { list-style: disc; }

/* Public resource and company pages follow the V16 open editorial rhythm. */
.sm-resource-page .sm-resource-hero { max-width: none; margin-bottom: 0; }
.sm-resource-page .sm-resource-hero h1 { font-size: var(--smv-title-size); line-height: 1.25; margin-bottom: 0; }
.sm-resource-page .sm-resource-hero p { font-size: var(--smv-body-size); }
.sm-resource-page .sm-resource-hero .sm-editorial-kicker { font-size: 12px; }
.sm-resource-index a + a { padding-left: 24px; border-left: 1px solid var(--smv-line); }
.sm-resource-index a { padding-right: 24px; }
.sm-resource-group { border-top: 1px solid var(--smv-line); padding-top: 28px; grid-template-columns: minmax(180px,1fr) minmax(0,1.9fr); }
.sm-resource-group h2 { font-size: 14px; color: var(--smv-muted); }
.sm-resource-link { padding-block: 20px; }
.smaugbrain-about .smaugbrain-about-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--smv-content-gap); align-items: end; padding: var(--smv-hero-space) 0; }
.smaugbrain-about .smaugbrain-about-hero h1 { font-size: var(--smv-title-size); max-width: 24ch; line-height: 1.2; font-weight: 500; }
.smaugbrain-about .smaugbrain-about-visual { border-radius: 0; box-shadow: none; background: var(--smv-surface-alt); border: 1px solid var(--smv-line); }
.smaugbrain-about .smaugbrain-about-identity { border-radius: 0; }
@media(max-width:760px) {
 .sm-resource-page .sm-resource-hero h1 { font-size: var(--smv-title-size); }
 .sm-resource-index { display: grid; grid-template-columns: 1fr; gap: 0; }
 .sm-resource-index a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--smv-line); }
 .sm-resource-group { grid-template-columns: minmax(0,1fr); padding-top: 16px; }
 .smaugbrain-about .smaugbrain-about-hero { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: var(--smv-hero-space); }
 .smaugbrain-about .smaugbrain-about-hero h1 { font-size: var(--smv-title-size); }
}

html[data-theme] body.sm-v16 .smaugbrain-about-hero { padding: var(--smv-hero-space) 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
html[data-theme] body.sm-v16 .smaugbrain-about-hero__copy { padding: 0; }
html[data-theme] body.sm-v16 .smaugbrain-about-visual { border-radius: 0; box-shadow: none; background: var(--smv-surface-alt); color: var(--smv-ink); }
html[data-theme] body.sm-v16 .smaugbrain-about-identity { border-radius: 0; box-shadow: none; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero { padding: var(--smv-hero-space) 0; background: transparent; border: 0; border-bottom: 1px solid var(--smv-line); border-radius: 0; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace :is(.smaugbrain-growth-section,.smaugbrain-growth-panel) { border-radius: 0; box-shadow: none; }
@media(max-width:760px) {
 html[data-theme] body.sm-v16 .smaugbrain-about-hero { padding-block: var(--smv-hero-space); }
 html[data-theme] body.sm-v16 .smaugbrain-about-hero__copy { padding: 0; }
 html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace .smaugbrain-growth-hero { padding: var(--smv-hero-space) 0; }
}

/* Content summaries use the same scale as the product overview. */
.sm-resource-group { margin-top: var(--smv-section-space); column-gap: var(--smv-content-gap); }
.sm-resource-link h3 { font-size: 18px; }
html[data-theme] body.sm-v16 :is(.smaugbrain-about-intro, .smaugbrain-growth-hero p, .sm-legal-hero p, .sm-updates-intro p) { font-size: var(--smv-body-size); line-height: 1.8; }
html[data-theme] body.sm-v16 .smaugbrain-growth-page--workspace { width: 100%; }
html[data-theme] body.sm-v16 :is(.smaugbrain-about-workflow-section > h2, .smaugbrain-about-capabilities h2, .smaugbrain-about-resources h2) { font-size: var(--smv-section-title-size); line-height: 1.4; }
.sm-public-content-heading { margin-bottom: var(--smv-section-space); }
@media(max-width:980px) {
 .smaugbrain-about .smaugbrain-about-hero { grid-template-columns: minmax(0,1fr); gap: 24px; }
}

/* WordPress owns the page-numbers/current markup; this family owns its states. */
.sm-v16.smaug-route-news .sm-news-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.sm-v16.smaug-route-news .sm-news-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--smv-line); border-radius: 4px; background: var(--smv-surface); color: var(--smv-ink); font-size: 14px; line-height: 1.4; text-decoration: none; box-shadow: none; }
.sm-v16.smaug-route-news .sm-news-pagination a.page-numbers:hover { background: var(--smv-surface-alt); border-color: var(--smv-accent); color: var(--smv-ink); }
.sm-v16.smaug-route-news .sm-news-pagination .page-numbers.current { background: var(--smv-accent); border-color: var(--smv-accent); color: var(--smv-on-accent); }
.sm-v16.smaug-route-news .sm-news-pagination .page-numbers.dots { min-width: 28px; padding-inline: 4px; background: transparent; border-color: transparent; color: var(--smv-muted); }
.sm-v16.smaug-route-news .sm-news-pagination a:focus-visible { outline: 2px solid var(--smv-focus); outline-offset: 3px; }
