/* Clear typography and consistent spacing for the public interface. */
:root { --page-text: #33465f; --page-muted: #596b82; }
body.sf-site .sf-main { display: flow-root; padding-bottom: 20px; }
body.sf-site .sf-main > :is(.sf-hero, .sf-editor-container, .sf-how, #sf-product-stage, .sf-faq, .sf-contact-band) {
    margin-top: 18px;
    margin-bottom: 0;
    border-radius: 18px;
}
body.sf-site .sf-main > .sf-hero { padding: 34px 28px 26px; }
body.sf-site .sf-main > .sf-how { padding: 32px clamp(24px, 4vw, 60px); }
body.sf-site .sf-main > .sf-faq { padding: 34px clamp(24px, 5vw, 72px); }
body.sf-site .sf-main > #sf-product-stage .sh-stage { padding: 36px 28px; }
body.sf-site .sf-contact-band { padding: 32px; }
.sf-hero > p { font-size: 16px; color: var(--page-text); max-width: 780px; line-height: 1.85; }
.sf-hero-proof, .sf-preview-callout, .sf-hero-badge { font-size: 13px; color: var(--page-muted); }
.sf-preview-callout { margin-top: 18px; }
.sf-hero h1 { margin: 18px auto; }
.sf-how p, .sf-how article p, .sf-section-heading > p, .sf-contact-band p,
.sf-faq details > p { font-size: 15px; color: var(--page-text); line-height: 1.8; }
.sf-how article h3, .sf-faq summary { font-size: 16px; color: #263a56; }
.sf-how article { padding: 18px 0; }
.sf-faq summary { padding: 19px 0; }
.sf-faq details { padding: 0 4px; }
.sf-faq details > p { margin-top: 0; padding-bottom: 18px; }
.sf-section-heading { margin-bottom: 26px; }
.sf-how > div > span, .sf-section-heading > span, .sf-contact-band > div > span { font-size: 11px; color: #4b6385; }
.sf-site .sf-primary.btn, .sf-site .sf-outline.btn { font-size: 14px; min-height: 42px; }

/* Header uses one consistent button height. */
.sf-site .sf-nav {
    height: 76px;
    gap: 22px;
    padding-inline: max(24px, calc((100vw - 1440px) / 2));
    background: #fffffffa;
    box-shadow: 0 3px 20px #283f6510;
}
.sf-nav .sf-brand { gap: 10px; }
.sf-nav .sf-brand img { width: 36px; height: 36px; border-radius: 11px; }
.sf-nav .sf-brand strong { font-size: 25px; color: #223957; }
.sf-nav .sf-brand > span { font-size: 12px; color: #5c6d84; }
.sf-site .sf-nav > nav { gap: 5px; }
.sf-site .sf-nav > nav button { padding: 11px 14px; font-size: 14px; line-height: 20px; border-radius: 10px; color: #42546c; }
.sf-site .sf-nav > nav button:hover { background: #f2f6fc; color: #1f63cf; }
.sf-site .sf-nav > nav .active { background: #eaf2ff; color: #175fce; font-weight: 650; }
.sf-site .sf-nav > nav .sh-navbuy { color: #1e64cd; }
.sf-nav > div { gap: 9px; }
.sf-site .sf-nav > div > .btn, .sf-site .sf-nav .fr-hint { min-height: 40px; font-size: 13px; border-radius: 10px; padding: 9px 12px; }
.sf-nav .sf-login { color: #354966; }
.sf-nav .fr-hint { background: #f4f7fb; border-color: #e7edf5; color: #51637b; }
.sf-nav .fr-hint kbd { font-size: 11px; }
.sf-site .sf-nav > div > .sf-primary { padding-inline: 16px; }

/* Page banners keep light text on their dark surface. */
body.sf-site #app .of-page-head h1 { color: #fff; font-size: clamp(28px, 3vw, 42px); }
body.sf-site #app .of-page-head p { color: #e1ecfa; font-size: 16px; line-height: 1.85; }
body.sf-site #app .of-page-head .of-eyebrow { color: #fff; font-size: 12px; }
body.of-site .of-page-head { padding: 40px; border-radius: 22px; margin: 22px 0; }
body.sf-site #app .of-contact-cta h2 { color: #fff; font-size: 25px; }
body.sf-site #app .of-contact-cta p { color: #e1ecfa; font-size: 15px; }
body.of-site .of-contact-cta { padding: 32px; border-radius: 20px; margin-bottom: 28px; }
.of-site .of-product-foot .btn { font-size: 13px; min-height: 36px; }
.of-site .of-card-bottom .btn { font-size: 13px; min-height: 36px; }
.of-site :is(.of-card-tags, .of-card-tags small, .of-card-bottom) { font-size: 13px; color: #50647e; }
.of-site .of-main :is(.of-product-top, .of-product-foot, .of-feature-pills, .of-detail-meta, .of-docs-grid li, .of-docs-grid p, .of-plan li, .of-flow p, .of-contact-grid p, .of-contact-grid li) { font-size: 14px; color: #49617e; }
.of-site .of-main :is(input, textarea, select, .form-help) { font-size: 14px; }
.of-site .of-main label.field > span { font-size: 14px; color: #3e5572; }
.of-site .of-filter button, .of-site .of-product-filters button { font-size: 14px; }
.of-site .of-product-body > p, .of-site .of-product-body li { font-size: 15px; color: var(--page-text); }
.of-site :is(.of-doc, .of-update, .of-license-card) p { color: var(--page-text); line-height: 1.8; }

/* Editor controls stay readable when the page width is reduced. */
.sf-editor-top { height: auto; min-height: 64px; flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
.sf-editor-top strong { font-size: 13px; color: #344b69; }
.sf-editor-tools { flex-wrap: wrap; gap: 5px; }
.sf-editor-top .sf-editor-tools > .btn, .sf-editor-devices button { font-size: 12px; min-height: 34px; padding: 7px 9px; }
.sf-editor-tools .sf-quiet { color: #445b78; }
.sf-library-head h3, .sf-library-grid > button, .sp-presets > button { font-size: 13px; }
.sf-library-grid > button { min-height: 42px; color: #3f5776; }
.sf-library-head span, .sf-inspector small, .sf-inspector p { font-size: 11px; color: #546981; }
.sf-inspector strong, .sf-inspector label { font-size: 13px; color: #3f5572; }
.sf-inspector input, .sf-inspector textarea { font-size: 14px; color: #263b59; }
.sf-stage-toolbar { flex-wrap: wrap; gap: 8px; }
.sf-stage-toolbar > span { font-size: 11px; color: #586b83; }
.sf-stage-toolbar button { font-size: 12px; min-height: 30px; }
.sf-stage-toolbar .sf-color-picks button { min-height: 16px; width: 16px; height: 16px; }
.sf-editor-status { height: auto; min-height: 38px; padding: 8px 14px; gap: 10px; flex-wrap: wrap; font-size: 11px; color: #536880; }
.sf-block-handle { height: 33px; }
.sf-block-handle > span { font-size: 11px; }
.sf-block-handle .btn { min-width: 25px; min-height: 27px; font-size: 12px; }
.sf-preview-main { min-width: 0; }
body.sf-site #app .sf-preview-heading h3 { font-size: 16px; }
.sf-preview-heading > span { font-size: 11px; color: #536880; }
body.sf-site #app .sf-preview-cards .card h3 { font-size: 14px; line-height: 1.6; min-height: 0; margin-bottom: 9px; }
.sf-preview-cards .card-body { padding: 13px; }
.sf-preview-cards .card p { font-size: 13px; line-height: 1.75; color: #506780; }
.sf-preview-cards .card-meta, .sf-preview-cards .card-meta * { font-size: 11px; color: #526982; }
.sf-preview-cards .cover { height: 112px; }
.sf-preview-cards .card-meta .avatar { width: 24px; height: 24px; }
.sf-preview-hero p, .sf-member-preview p { font-size: 13px; line-height: 1.8; color: #455e80; }
.sf-preview-hero button, .sf-member-preview button { font-size: 12px; min-height: 34px; }
.sf-member-preview h4 { font-size: 14px; }
body.sf-site #app .sf-member-preview h3 { font-size: 14px; line-height: 1.65; }
.sf-preview-site-nav strong { font-size: 13px; }
.sf-preview-site-nav > span, .sf-preview-address > span { font-size: 11px; }

/* Sticky sidebars scroll as a whole; individual cards keep their content height. */
.widget-stack > .sidebar-card { flex: 0 0 auto; }
.widget-zone .widget-stack { height: auto; max-height: none; }
.portal-sticky > .widget-zone { overscroll-behavior: contain; }
.widget-zone :is(.shortcut-label, .widget-reading-row strong, .widget-text-body, .member-card-body > p) { font-size: 14px; color: #435c79; }
.widget-zone :is(.member-card-note, .widget-reading-row small, .member-counts small) { font-size: 12px; color: #5a708a; }
.sidebar-card-heading small, .member-kicker, .member-cover-word { font-size: 10px; }
.qy-ad-art[hidden], .qy-ad-slide img[hidden] { display: none; }
.configurable-home .hero-v2 p { font-size: 15px !important; color: #465b76 !important; }
.configurable-home .card h3 { font-size: 17px; line-height: 1.6; }
.configurable-home .card p { font-size: 14px; color: #506780; line-height: 1.8; }
.configurable-home .card-meta, .configurable-home .card-meta * { font-size: 12px; color: #556d88; }
.configurable-home .section-head h2 { font-size: 22px; }
.configurable-home .section-head :is(p, small), .configurable-home .section-head .more { font-size: 12px; color: #536b87; }
.configurable-home .filters button { font-size: 13px; min-height: 36px; }
.configurable-home .announcement { font-size: 13px; }
.configurable-home .portal-main .st-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* A single row of creator cards with touch, keyboard and arrow navigation. */
.creator-carousel { position: relative; }
.creator-controls { display: flex; justify-content: flex-end; gap: 8px; margin: -8px 0 12px; }
.creator-controls button { border: 1px solid #d9e5f5; background: #fff; color: #2e64a6; width: 40px; height: 36px; border-radius: 10px; font-size: 19px; }
.creator-controls button:disabled { opacity: .4; cursor: default; }
.creator-track { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c4d7ee transparent; padding: 3px 2px 12px; }
.creator-track .island-card { flex: 0 0 310px; min-width: 0; padding: 22px; scroll-snap-align: start; text-align: left; }
.creator-track .island-card > div { min-width: 0; }
.creator-track .island-card strong { font-size: 17px; color: #263b59; }
.creator-track .island-card p { font-size: 14px; line-height: 1.75; color: #516983; min-height: 49px; }
.creator-track .island-card small { font-size: 12px; color: #5b708a; }
.creator-track:focus-visible { outline: 2px solid #2f7df4; outline-offset: 3px; }

/* Close controls remain reachable when a long dialog is scrolled. */
.modal .modal-close { position: sticky; top: 0; float: right; margin: -12px -12px 0 12px; width: 40px; height: 40px; display: grid; place-items: center; font: 25px/1 sans-serif; color: #3f5270; background: #f1f5fb; border: 1px solid #dbe5f1; z-index: 5; }
.modal .modal-close:hover { background: #e2ecfa; color: #1c5fc5; }
.modal .modal-close:focus-visible { outline: 2px solid #2f7df4; outline-offset: 2px; }

.sf-site .sf-footer { max-width: none; width: 100%; padding: 34px max(28px, calc((100vw - 1360px) / 2)); background: #fff; gap: 28px; }
.sf-footer p, .sf-footer nav > .btn, .sf-footer-note > p { font-size: 14px; color: #455b77; }
.sf-footer strong, .sf-footer-note > strong { font-size: 14px; color: #2d4463; font-weight: 650; }
.sf-footer small, .sf-footer-note > small { font-size: 12px; color: #5a6f88; }
.sf-footer .sf-brand > span { font-size: 11px; }
body.has-footer-color :is(.sf-footer, .footer, .bk-footer) { background: var(--footer-background); color: var(--footer-foreground); border-color: var(--footer-border); }
body.has-footer-color :is(.sf-footer, .footer, .bk-footer) :is(p, small, strong, span, button, a, nav) { color: inherit; }
body.has-footer-color .sf-footer :is(.sf-brand, .sf-footer-note) { color: inherit; border-color: var(--footer-border); }
.footer-color-fields { display: grid; grid-template-columns: 1fr 110px; gap: 14px; }
.footer-color-fields input[type=color] { width: 100%; height: 43px; padding: 5px; cursor: pointer; }

@media (max-width: 1250px) {
    .sf-site .sf-nav { padding-inline: 22px; gap: 12px; }
    .sf-site .sf-nav > nav button { padding-inline: 10px; font-size: 13px; }
    .sf-nav .fr-hint, .sf-nav .sf-brand > span { display: none; }
}
@media (max-width: 960px) {
    .sf-site .sf-nav { height: 68px; }
    .sf-site .sf-nav > nav { top: 68px; padding: 14px; }
    .sf-site .sf-nav > nav button { font-size: 15px; text-align: left; }
    .sf-preview-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-stage-toolbar > span { flex-basis: 100%; }
}
@media (max-width: 640px) {
    body.sf-site .sf-main > :is(.sf-hero, .sf-editor-container, .sf-how, #sf-product-stage, .sf-faq, .sf-contact-band) { margin-top: 14px; }
    body.sf-site .sf-main > :is(.sf-how, .sf-faq, .sf-contact-band) { padding: 24px 20px; }
    body.sf-site .sf-main > .sf-hero { padding: 28px 18px 24px; }
    .sf-hero > p { font-size: 15px; }
    .sf-hero-proof { flex-wrap: wrap; font-size: 12px; }
    body.sf-site .sf-main > #sf-product-stage .sh-stage { padding: 26px 18px; }
    .sf-site .sf-nav { padding-inline: 14px; gap: 8px; }
    .sf-nav .sf-brand img { width: 30px; height: 30px; }
    .sf-nav .sf-brand strong { font-size: 22px; }
    .sf-site .sf-nav > div { gap: 5px; }
    .sf-site .sf-nav > div > .sf-primary { display: none; }
    .sf-site .sf-nav > div > .btn { padding-inline: 9px; font-size: 12px; }
    .sf-site .sf-editor-top { padding: 12px; }
    .sf-editor-top > div:first-child { flex-basis: 100%; }
    .sf-editor-top .sf-editor-tools > .btn { display: inline-flex; font-size: 12px; }
    .sf-library-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .sf-library-grid > button { font-size: 12px; }
    .sf-inspector input, .sf-inspector textarea { font-size: 16px; }
    .sf-preview-cards { grid-template-columns: 1fr; }
    .sf-preview-cards .cover { height: 135px; }
    .sf-preview-hero p { font-size: 12px; }
    .sf-preview-address > span, .sf-preview-site-nav > span { font-size: 10px; }
    .sf-site .sf-footer { padding: 28px 22px; }
    .sf-footer > div:first-child > p { display: block; font-size: 14px; }
    .sf-footer-note { align-items: flex-start; flex-direction: column; gap: 8px; }
    .creator-track .island-card { flex-basis: min(290px, 85vw); padding: 18px; }
    .configurable-home .portal-main .st-resource-grid { grid-template-columns: 1fr; }
    body.of-site .of-page-head { padding: 28px 22px; border-radius: 18px; }
}
