/* SloopStack 2.7: complete previews, readable questions, measured navigation. */
:root { --ss-toolbar-visible: 0px; --ss-header-height: 84px; --ss-subnav-height: 64px; }
body.admin-bar { --ss-toolbar-visible: 32px; }
body .ss-header { top: var(--ss-toolbar-visible); }
body .ss-cfs-product-first .ss-cfs-subnav { top: calc(var(--ss-toolbar-visible) + var(--ss-header-height)); }
.ss-cfs-product-first section[id] { scroll-margin-top: calc(var(--ss-toolbar-visible) + var(--ss-header-height) + var(--ss-subnav-height) + 18px); }
.ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 22px; }
.ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap > div { display: flex; gap: 24px; min-width: 0; overflow-x: auto; scrollbar-width: thin; justify-content: center; }
.ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap > div a { flex: 0 0 auto; padding: 18px 0; white-space: nowrap; }
.ss-cfs-product-first .ss-cfs-subnav a.is-active { color: var(--ss-teal); text-decoration: underline; text-underline-offset: 8px; }
.ss-cfs-product-first .ss-cfs-subnav a.ss-cfs-subnav__cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: #2855c7; white-space: nowrap; }
.ss-cfs-product-first .ss-cfs-subnav a.ss-cfs-subnav__cta:hover { color: #fff; background: #2045a2; }
.ss-cfs-subnav a:focus-visible, .ss-preview-link:focus-visible, .ss-preview-dialog button:focus-visible { outline: 3px solid #0d9488; outline-offset: 4px; }
/* The question is a flexible column, never the icon column. Native details stays usable without JS. */
.ss-cfs-product-first .ss-cfs-faq__grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(28px,5vw,80px); }
.ss-cfs-product-first .ss-cfs-faq__list { min-width: 0; border-top: 1px solid #dfe4e6; }
.ss-cfs-product-first .ss-cfs-faq summary { display: grid; grid-template-columns: minmax(0,1fr) 24px; align-items: center; gap: 18px; padding: 24px 0; width: 100%; }
.ss-cfs-product-first .ss-cfs-faq summary .ss-faq-question { display: block; min-width: 0; font-size: 1rem; font-weight: 700; line-height: 1.45; }
.ss-cfs-product-first .ss-cfs-faq summary > svg { width: 22px; height: 22px; color: #47616d; transition: transform .18s ease; }
.ss-cfs-product-first .ss-cfs-faq details[open] summary > svg { transform: rotate(180deg); }
.ss-cfs-product-first .ss-cfs-faq details > p { max-width: none; margin: 0; padding: 0 40px 26px 0; font-size: .95rem; line-height: 1.75; }
.ss-cfs-product-first .ss-cfs-faq .ss-cfs-heading { top: calc(var(--ss-toolbar-visible) + var(--ss-header-height) + var(--ss-subnav-height) + 24px); }
/* Scale the whole software screen, not a cover-crop. These rules do not affect uploaded photography. */
body a.ss-preview-link { display: block; position: relative; width: 100%; min-width: 0; height: auto; max-height: none; text-decoration: none; background: #f5f8f8; overflow: visible; }
body a.ss-preview-link > img { display: block; position: static; width: 100% !important; max-width: 100% !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; object-fit: contain !important; object-position: center; margin: 0; transform: none; }
body .ss-preview-link__hint { display: grid; place-items: center; position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; margin: 0; padding: 0; color: #163b49; background: rgba(255,255,255,.97); border: 1px solid #cbdadc; border-radius: 6px; box-shadow: 0 2px 8px #071a2b12; opacity: 0; transition: opacity .15s; }
body .ss-preview-link:hover .ss-preview-link__hint, body .ss-preview-link:focus-visible .ss-preview-link__hint { opacity: 1; }
.ss-marketing-site .ss-v2-examples-grid { align-items: start; }
.ss-marketing-site .ss-v2-example__head { grid-template-columns: auto minmax(0,1fr); }
.ss-marketing-site .ss-v2-example__head em { grid-column: 2; font-size: .6rem; }
.ss-marketing-site .ss-library-card__image { height: auto; min-height: 0; }
.ss-marketing-site .ss-mp-product-card__visual { height: auto; min-height: 0; padding: 26px; display: flex; align-items: center; }
.ss-marketing-site .ss-mp-product-card__visual img { border: 1px solid #d8e3e5; border-radius: 8px; }
.ss-marketing-site .ss-mp-hero__grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); min-height: 0; gap: clamp(30px,4vw,64px); padding-block: 76px; }
.ss-marketing-site .ss-mp-hero__visual { display: grid; gap: 22px; width: 100%; min-height: 0; margin: 0; transform: none; perspective: none; }
.ss-marketing-site .ss-mp-window { position: relative; inset: auto; width: 100%; height: auto; transform: none; box-shadow: 0 16px 44px #0002; border-radius: 10px; }
.ss-marketing-site .ss-mp-window figcaption { height: auto; min-height: 34px; padding: 8px 12px; }
.ss-marketing-site .ss-mp-window figcaption em { font-size: .55rem; }
.ss-marketing-site .ss-mp-orbit, .ss-marketing-site .ss-mp-float { display: none; }
.ss-marketing-site .ss-mp-hero__visual > .ss-mp-window--product { margin-top: 0; }
.ss-marketing-site .ss-mp-platform__screen { padding: 32px 0 0 20px; }
.ss-marketing-site .ss-mp-platform__screen > a { position: relative; z-index: 2; }
.ss-marketing-site .ss-mp-platform__screen > .ss-mp-screen-label { position: relative; z-index: 2; }
.ss-ui-icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; vertical-align: middle; }
.ss-mp-grow__cards article > span { display: flex; align-items: center; }
.ss-mp-flow__icon .ss-ui-icon, .ss-mp-grow__cards article > span .ss-ui-icon { width: 26px; height: 26px; }
/* Native modal: a real link is the fallback when scripting/dialog support is absent. */
.ss-preview-dialog { position: fixed; inset: 0; width: min(96vw,1800px); height: min(94dvh,1200px); max-width: 96vw; max-height: 94dvh; margin: auto; padding: 0; border: 1px solid #ccdadd; border-radius: 12px; background: #f2f6f6; color: #102433; box-shadow: 0 30px 100px #0005; }
.ss-preview-dialog::backdrop { background: #03121de0; }
.ss-preview-dialog[open] { display: flex; flex-direction: column; }
.ss-preview-dialog__bar { display: flex; align-items: center; flex: 0 0 auto; gap: 12px; padding: 14px 18px; background: #fff; border-bottom: 1px solid #d3dfe1; }
.ss-preview-dialog__bar h2 { flex: 1 1 auto; margin: 0; min-width: 0; font-size: 1rem; line-height: 1.4; letter-spacing: normal; }
.ss-preview-dialog__controls { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.ss-preview-dialog button { cursor: pointer; padding: 8px 12px; border: 1px solid #c7d7d9; border-radius: 6px; background: #fff; color: #16313f; font-size: .84rem; }
.ss-preview-dialog button[aria-pressed="true"] { background: #071a2b; color: #fff; border-color: #071a2b; }
.ss-preview-dialog button[data-preview-close] { display: flex; align-items: center; gap: 5px; }
.ss-preview-dialog__canvas { flex: 1 1 auto; min-width: 0; min-height: 0; overflow: auto; padding: 20px; overscroll-behavior: contain; }
.ss-preview-dialog__canvas img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; }
.ss-preview-dialog[data-size="actual"] .ss-preview-dialog__canvas img { width: auto; max-width: none; margin: 0; }
.ss-preview-dialog__error { margin: 0; padding: 18px; color: #8c2727; }
html.ss-preview-open { overflow: hidden; }
/* Detailed About page; retain the approved type, whitespace, navy and mint palette. */
.ss-about-story { max-width: 1160px; margin-inline: auto; }
.ss-about-story p { color: #48616e; font-size: 1rem; line-height: 1.9; }
.ss-about-story h2 { font-size: clamp(2rem,3.5vw,3.3rem); line-height: 1.12; }
.ss-about-story .ss-kicker { margin-bottom: 24px; }
.ss-about-story__intro { max-width: 880px; margin-bottom: 80px; }
.ss-about-story__intro h2 { font-size: clamp(2.5rem,4.5vw,4rem); }
.ss-about-story__split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; border-top: 1px solid #dbe5e7; padding-top: 70px; margin-bottom: 70px; }
.ss-about-story__products { background: #eef8f6; border: 1px solid #d4e8e4; border-radius: 18px; padding: clamp(28px,4vw,58px); margin-bottom: 80px; }
.ss-about-story__product-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.ss-about-story__product-links a { display: grid; grid-template-columns: 24px minmax(0,1fr) 22px; align-items: start; gap: 14px; background: #fff; border: 1px solid #cbdedd; border-radius: 10px; padding: 22px; text-decoration: none; }
.ss-about-story__product-links strong, .ss-about-story__product-links small { display: block; }
.ss-about-story__product-links small { margin-top: 7px; color: #48616e; line-height: 1.7; }
.ss-about-story__product-links a > svg:first-child { color: #087f76; }
.ss-about-story__principles { margin-bottom: 80px; }
.ss-about-story__principles > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; margin-top: 34px; }
.ss-about-story__principles article { border-top: 1px solid #dbe5e7; padding-top: 26px; }
.ss-about-story__principles article > svg { color: #087f76; margin-bottom: 16px; }
.ss-about-story__principles h3 { font-size: 1.2rem; }
.ss-about-story__contact { display: flex; align-items: center; gap: 40px; justify-content: space-between; padding: 40px; border-radius: 16px; background: #071a2b; }
.ss-about-story__contact h2 { color: #fff; font-size: clamp(1.65rem,2.6vw,2.6rem); }
.ss-about-story__contact p { color: #cedde0; max-width: 680px; margin-bottom: 0; }
.ss-about-story__contact a { flex-shrink: 0; }
@media(max-width:1100px) {
 .ss-marketing-site .ss-mp-hero__grid { grid-template-columns: 1fr; }
 .ss-marketing-site .ss-mp-hero__visual { max-width: 820px; margin-inline: auto; }
 .ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap { grid-template-columns: minmax(0,1fr) auto; padding-block: 10px; gap: 4px 12px; }
 .ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap > div { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
 .ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap > .ss-cfs-subnav__cta { grid-row: 1; grid-column: 2; }
}
@media(max-width:782px) { body.admin-bar { --ss-toolbar-visible: 46px; } }
@media(max-width:700px) {
 .ss-cfs-product-first .ss-cfs-faq__grid { grid-template-columns: 1fr; }
 .ss-cfs-product-first .ss-cfs-faq .ss-cfs-heading { position: static; }
 .ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap > div { gap: 22px; }
 .ss-cfs-product-first .ss-cfs-subnav > .ss-cfs-wrap > div a { font-size: .74rem; padding-block: 12px; }
 .ss-cfs-product-first .ss-cfs-faq details > p { padding-right: 0; }
 .ss-marketing-site .ss-mp-hero__grid { padding-block: 50px; }
 .ss-marketing-site .ss-mp-product-card__visual { padding: 16px; }
 .ss-preview-link__hint { opacity: 1 !important; }
 .ss-about-story__split, .ss-about-story__product-links, .ss-about-story__principles > div { grid-template-columns: 1fr; gap: 24px; }
 .ss-about-story__split { padding-top: 36px; }
 .ss-about-story__intro, .ss-about-story__products, .ss-about-story__principles { margin-bottom: 48px; }
 .ss-about-story__contact { flex-direction: column; align-items: flex-start; padding: 28px; gap: 24px; }
 .ss-preview-dialog__bar { flex-wrap: wrap; padding: 10px; gap: 8px; }
 .ss-preview-dialog__bar h2 { flex-basis: 100%; }
 .ss-preview-dialog__canvas { padding: 10px; }
}
@media(prefers-reduced-motion:reduce) {
 html { scroll-behavior: auto !important; }
 .ss-preview-link__hint, .ss-cfs-product-first .ss-cfs-faq summary > svg { transition: none; }
}
.ss-marketing-site .ss-mp-platform__screen > .ss-mp-screen-label { inset: auto; width: max-content; max-width: 100%; margin-bottom: 12px; }
.ss-about-story .ss-kicker + h2 { margin-top: 0; }
.ss-cfs-product-first .ss-cfs-faq summary:focus-visible { outline: 2px solid #0d9488; outline-offset: 4px; }
.ss-preview-dialog [hidden] { display: none !important; }
/* The Examples gallery must not depend on product-page-only styles. */
.ss-plugin-examples-page .ss-examples-designs { margin-top: 64px; padding: 64px 0; border-top: 1px solid #dbe5e7; }
.ss-plugin-examples-page .ss-examples-designs > header { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.ss-plugin-examples-page .ss-cfs-design-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: start; }
.ss-plugin-examples-page .ss-cfs-design-grid > article { min-width: 0; border: 1px solid #d5e2e3; border-radius: 14px; overflow: hidden; background: #f8fbfb; }
.ss-plugin-examples-page .ss-cfs-design-grid figure { margin: 0; padding: 10px; background: #071a2b; }
.ss-plugin-examples-page .ss-cfs-design-grid > article > div { padding: 22px; }
.ss-plugin-examples-page .ss-cfs-design-grid > article > div > span { font-size: .65rem; letter-spacing: .08em; color: #087f76; font-weight: 700; }
.ss-plugin-examples-page .ss-cfs-design-grid h3 { margin: 10px 0 18px; font-size: 1.5rem; }
.ss-plugin-examples-page .ss-cfs-design-grid > article > div > a { color: #087f76; text-decoration: none; font-weight: 700; }
@media(max-width:900px) { .ss-plugin-examples-page .ss-cfs-design-grid { grid-template-columns: 1fr; max-width: 700px; margin-inline: auto; } }
