/* Catalogue controls; specimens retain the blog's native styles. */
.sg-catalog{--sg-line:var(--color-border,#64666c);padding-bottom:4rem}
.sg-reading{width:calc(100% - 48px);max-width:800px;margin-inline:auto}
.sg-reading p{line-height:1.65;margin:0 0 1rem}
.sg-reading h2,.sg-reading h3{font-family:var(--font-family-headings);font-weight:600;line-height:1.25}
.sg-reading h2{font-size:clamp(28px,3vw,40px);margin:0 0 1rem}
.sg-reading h3{font-size:clamp(21px,2.2vw,27px);margin:.75rem 0}
.sg-intro{padding-block:1rem 2rem}
.sg-audit,.sg-status,.sg-count{font-family:var(--font-family-mono);font-size:13px;line-height:1.6;opacity:.72}
.sg-search-label{display:block;font-weight:600;margin:1.5rem 0 .5rem}
#sg-search{font:inherit;color:inherit;background:transparent;border:1px solid var(--sg-line);border-radius:5px;width:100%;min-height:48px;padding:10px 14px;box-sizing:border-box}
.sg-tools{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin:1rem 0}
.sg-tools a,.sg-evidence a,.sg-end a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.sg-control,.sg-copy{color:inherit;font:inherit;background:transparent;border:1px solid var(--sg-line);border-radius:5px;padding:9px 14px;min-height:44px;cursor:pointer}
.sg-control:hover,.sg-copy:hover{background:var(--color-background-secondary,rgba(128,128,128,.12))}
.sg-control:focus-visible,.sg-copy:focus-visible,.sg-catalog a:focus-visible,#sg-search:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.sg-nav{display:flex;flex-wrap:wrap;gap:10px 22px;max-width:1000px;margin:0 auto;padding:18px 24px;border-block:1px solid var(--sg-line)}
.sg-nav a{font-family:var(--font-family-mono);font-size:14px;color:inherit;text-underline-offset:4px}
.sg-group{padding-top:5rem;scroll-margin-top:90px}
.sg-group-heading{margin-bottom:3.5rem}
.sg-specimen{padding:0 0 4rem;scroll-margin-top:90px}
.sg-specimen+[class=sg-specimen]{padding-top:2rem}
.sg-code-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sg-code-row>code{font-family:var(--font-family-mono);font-size:13px;overflow-wrap:anywhere;letter-spacing:.025em}
.sg-copy{font-family:var(--font-family-mono);font-size:12px;min-width:116px}
.sg-specimen-header{margin-bottom:1.5rem;padding-top:1.5rem;border-top:1px solid var(--sg-line)}
.sg-specimen-header p{margin-bottom:.5rem}
.sg-example{margin-block:0 1rem!important;min-width:0}
.sg-example>:first-child{margin-top:0!important}
.sg-example>:last-child{margin-bottom:0!important}
.sg-example img{opacity:1!important}
.sg-example .sg-ratio-example{max-width:440px}
.sg-example .sg-ratio-example img{max-height:560px;object-fit:contain}
.sg-example .kg-video-container video{display:block;position:static;width:100%;height:auto;max-height:720px;object-fit:contain;background:#44464b}
.sg-example .kg-video-container{position:relative;aspect-ratio:auto}
.sg-example video[height="1280"]{max-width:360px;margin-inline:auto}
.sg-example video[width="560"]{max-width:560px;margin-inline:auto}
.sg-example .kg-toggle-content{display:block;visibility:visible;height:auto;opacity:1}
.sg-example details:not([open]) .kg-toggle-content{display:none}
.sg-example details summary{cursor:pointer;min-height:44px}
.sg-example .kg-product-card-container{max-width:640px}
.sg-example audio{width:100%;min-height:54px}
.sg-evidence{font-size:13px;line-height:1.6}
.sg-evidence summary{cursor:pointer;padding:8px 0}
.sg-evidence ul{padding-left:1.4rem}
.sg-evidence li{margin-block:.5rem}
.sg-embed-shell{width:100%;background:#44464b;color:#fff;border-radius:8px;overflow:hidden}
.sg-embed-fallback{padding:32px;display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.sg-embed-fallback p{flex-basis:100%;margin:0}
.sg-embed-name{font-family:var(--font-family-mono);font-size:20px}
.sg-embed-fallback a{color:#fff}
.sg-embed-shell iframe{display:block;width:100%;border:0;aspect-ratio:16/9;min-height:220px;background:#fff}
.sg-embed-shell[data-platform=instagram]{max-width:540px;margin-inline:auto}
.sg-embed-shell[data-platform=instagram] iframe{aspect-ratio:auto;height:740px}
.sg-card-demo{max-width:650px;margin-inline:auto}
.sg-header-demo{padding:24px!important;margin:0!important;min-height:0!important}
.sg-header-demo .section-image img{max-height:520px;object-fit:contain;background:#44464b}
.sg-header-demo.section-hero .section-image{max-width:480px;margin:24px auto 0}
.sg-header-demo h3{font-weight:550}
.sg-end{padding-top:4rem;border-top:1px solid var(--sg-line)}
.sg-end h3{margin-top:2.5rem}
.sg-end ul{padding-left:1.4rem}
.sg-end li{margin-block:.5rem;overflow-wrap:anywhere}
.sg-end details{margin-block:1.5rem}
.sg-live{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#fff;color:#151515;border:1px solid #888;border-radius:6px;padding:12px 18px;z-index:200;max-width:calc(100% - 40px);font-size:14px;box-sizing:border-box}
.sg-live:empty{display:none}
.sg-catalog [hidden]{display:none!important}
@media(max-width:600px){.sg-reading{width:calc(100% - 32px)}.sg-group{padding-top:3rem}.sg-specimen{padding-bottom:2.5rem}.sg-nav{padding-inline:16px;gap:12px 18px}.sg-embed-fallback{padding:22px}.sg-example .sg-type-sample{overflow-wrap:anywhere}.sg-header-demo{padding:16px!important}.sg-example table{display:block;overflow:auto}.sg-example .kg-header-card h2{overflow-wrap:anywhere}.sg-copy{min-width:108px}.sg-code-row{gap:8px}}
@media(prefers-reduced-motion:reduce){.sg-catalog *{scroll-behavior:auto!important}}
/* Native cards.js normally sizes this wrapper; the catalogue uses browser controls. */
.sg-example .kg-video-container{height:auto!important;padding:0;overflow:hidden}
.sg-example .kg-video-container video{transform:none;inset:auto;min-width:0}
.sg-example .kg-signup-card{background:var(--color-background-200);position:relative}
.sg-example .kg-signup-card-text{padding:clamp(24px,4vw,64px)!important}
.sg-example .kg-signup-card-fields{position:relative;max-width:420px;margin-inline:auto}
.sg-example .kg-signup-card-input{box-sizing:border-box;width:100%;padding:16px 140px 16px 18px}
html:has(.sg-catalog){scroll-behavior:auto!important}
.sg-header-demo h3{font-size:clamp(32px,25.8929px + 1.6071vw,50px);line-height:1.2;overflow-wrap:anywhere}
/* Contain the native banner's absolute overlay inside its own specimen. */
.sg-example .kg-header-card{position:relative;isolation:isolate}
/* Owner review: catalogue furniture is borderless; native examples remain native. */
.style-guide-preview #content>.section-hero>h1{font-weight:700}
.sg-specimen-header,.sg-end,.sg-nav{border:0}
.sg-code-row>code{font:400 10px/1.5 var(--font-family-mono)!important;background:none;border:0;border-radius:0;padding:0;letter-spacing:.035em}
.sg-control,.sg-copy{border:0;border-radius:var(--radius-2,8px);background:var(--color-background-200,#7c8b9a21);text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.sg-control:hover,.sg-copy:hover{background:var(--color-background-300,#7c8b9a33);color:var(--color-contrast)}
#sg-search{border:0;background:var(--color-background-100,#7c8b9a21);border-radius:var(--radius-2,8px)}
.sg-nav{max-width:1100px;display:flex;flex-wrap:wrap;gap:8px;padding:12px 24px}
.sg-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:var(--radius-2,8px);background:var(--color-background-100,#7c8b9a21);color:var(--color-foreground);font:500 13px/1.3 var(--font-family-mono);padding:12px 16px;min-height:44px;cursor:pointer}
.sg-tab[aria-selected=true]{background:var(--color-contrast);color:var(--color-background)}
.sg-tab:hover:not([aria-selected=true]){background:var(--color-background-300,#7c8b9a33)}
.sg-tab:focus-visible{outline:2px solid var(--color-contrast);outline-offset:3px}
.sg-tab svg,.sg-code-copy svg,.sg-toggle-icon svg{width:20px;height:20px;fill:currentColor;flex:none}
.sg-group-heading blockquote{border-inline-start:2px solid var(--color-contrast);padding-inline-start:16px;margin:0 0 24px;font:400 16px/1.65 var(--font-family-mono);color:var(--color-contrast)}
.sg-evidence{margin-top:24px;font-size:12px}
.sg-evidence>p{font:400 11px/1.5 var(--font-family-mono);color:var(--color-secondary);margin-bottom:8px}
.sg-evidence ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.sg-evidence li{margin:0;max-width:100%}
.sg-evidence a{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;border-radius:var(--radius-2,8px);text-decoration:none;background:var(--color-background-100,#7c8b9a21);font:400 11px/1.5 var(--font-family-mono);overflow-wrap:anywhere}
.sg-evidence a:hover{background:var(--color-background-200,#7c8b9a33)}
.sg-evidence [data-more]{margin-top:12px;font-size:12px}
.sg-code-block{position:relative;width:100%;max-width:var(--post--content-width,800px);margin-inline:auto}
.sg-code-block pre{padding-inline-end:64px}
.sg-code-copy{position:absolute;inset-block-start:8px;inset-inline-end:8px;width:44px;height:44px;padding:10px;z-index:1}
.sg-example figcaption em{font-style:italic!important;font-synthesis:style}
.sg-example .kg-header-card-heading{font-weight:700!important}
.sg-example .kg-toggle-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;list-style:none;border:0;padding:16px 0}
.sg-example .kg-toggle-heading::-webkit-details-marker{display:none}
.sg-example .kg-toggle-heading>svg{display:block;flex:none;width:24px;height:24px;fill:currentColor;background:none;mask:none;-webkit-mask:none;transition:transform .15s ease}
.sg-example details[open]>.kg-toggle-heading>svg{transform:rotate(180deg)}
.sg-example .kg-toggle-card{border:0}
.sg-example .kg-callout-card-white{box-shadow:none;background:var(--color-background-100)}
.sg-native-demo{display:block;width:100%;border:0;height:700px;background:transparent;overflow:hidden;color-scheme:normal}
.sg-layout-example{width:100%;max-width:none;padding:0;margin-inline:0}
.sg-embed-source{margin-block:16px}
.sg-example .kg-gallery-image{position:relative}
.sg-zoom{position:absolute;top:12px;right:12px;z-index:2;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:#202124cc;color:white;cursor:pointer}
.sg-zoom svg{width:22px;height:22px;fill:currentColor}
.sg-example .kg-gallery-image img{cursor:zoom-in}
.sg-lightbox{padding:64px 64px 36px;border:0;background:#17181b;color:#fff;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;box-sizing:border-box;overflow:hidden}
.sg-lightbox::backdrop{background:#17181b}
.sg-lightbox[open]{display:flex;align-items:center;justify-content:center}
.sg-lightbox img{display:block;max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;object-fit:contain}
.sg-lightbox button{position:absolute;width:44px;height:44px;display:grid;place-items:center;background:#35373d;color:#fff;border:0;border-radius:8px;cursor:pointer}
.sg-lightbox button svg{width:24px;height:24px;fill:currentColor}
.sg-lightbox-close{top:12px;right:16px}.sg-lightbox-prev{left:12px;top:50%}.sg-lightbox-next{right:12px;top:50%}
.sg-lightbox-count{position:absolute;left:24px;top:24px;font:12px/1.5 var(--font-family-mono)}
.sg-lightbox-caption{position:absolute;bottom:12px;left:64px;right:64px;text-align:center;font:12px/1.5 var(--font-family-mono)}
@media(max-width:600px){.sg-nav{padding-inline:16px;gap:6px}.sg-tab{padding:10px;font-size:11px;gap:6px}.sg-tab svg{width:17px;height:17px}.sg-evidence a{max-width:100%;box-sizing:border-box}.sg-lightbox{padding:64px 44px 40px}.sg-native-demo{height:600px}.sg-lightbox-caption{left:44px;right:44px}}
.sg-code-row>code{box-shadow:none!important;outline:0}
/* The native route owns the page shell and the content query container. */
.post-style-guide>.section-hero-split h1{font-weight:700}
.sg-layout-example{container-type:inline-size;padding-inline:var(--layout--padding);box-sizing:border-box}
.sg-layout-example .section:first-child{margin-top:24px}
.sg-layout-example .section{margin-bottom:24px}
.sg-layout-example .section h1{font-weight:700}
.sg-layout-example .post-card{content-visibility:visible}
.sg-layout-example .sg-single-card .section-list{display:block}
.sg-layout-example .sg-single-vertical{max-width:560px}
.sg-layout-example .sg-single-horizontal{max-width:1000px}
.sg-layout-example .post-card-style-horizontal .post-featured-image img{aspect-ratio:1/1;object-fit:contain}
.sg-embed-shell.sg-instagram{max-width:540px;margin-inline:auto}
.sg-embed-shell.sg-instagram iframe{aspect-ratio:auto;height:740px}
.sg-layout-example .section-hero>h2,.sg-layout-example .section-hero-split-content>h2{font:700 clamp(32px,25.8929px + 1.6071vw,50px)/1.2 var(--font-family-headings);margin-bottom:-.05lh;letter-spacing:0}

/* Keep specimens discoverable while deferring offscreen rendering. */
.sg-specimen{content-visibility:auto;contain-intrinsic-block-size:auto 640px}
@media print{.sg-specimen{content-visibility:visible;contain-intrinsic-block-size:none}}
