/* Concept shell — shared structure for all three directions. Tokens come from each concept file. */
:root { --sc-head-h: 72px; --sc-top: 72px; --sc-top-quote: 140px; --sc-gutter: clamp(16px, 4vw, 48px); --sc-max: 1240px; }
html { scroll-padding-top: calc(var(--sc-top) + 16px); scroll-padding-bottom: 96px; }
body.sc { background: var(--sc-bg); color: var(--sc-ink); font-family: var(--sc-body); overflow-x: clip; }
body.sc h1, body.sc h2, body.sc h3, body.sc h4 { font-family: var(--sc-display); color: inherit; }
body.sc :target, body.sc h1[id], body.sc h2[id], body.sc h3[id], body.sc section[id] { scroll-margin-top: calc(var(--sc-top) + 16px); }
body.sc .sacraw-quote-steps h2, body.sc .sacraw-quote-steps h3 { scroll-margin-top: calc(var(--sc-top-quote) + 16px); }
.sc-wrap { width: 100%; max-width: var(--sc-max); margin: 0 auto; padding-left: var(--sc-gutter); padding-right: var(--sc-gutter); }
.sc-mono { font-family: var(--sc-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }
.sc-eyebrow { font-family: var(--sc-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; opacity: .85; }
.sc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img, video { max-width: 100%; }
[x-cloak] { display: none !important; }

/* ---------- header: sticky (not fixed) so the advisory ribbon and the header never overlap ---------- */
#site-header.sc-head { position: sticky; top: 0; z-index: 50; background: var(--sc-head-bg); color: var(--sc-head-ink); }
body.has-advisory #site-header.sc-head, body.sf-quote-checkout #site-header.sc-head { top: 0 !important; }
.sc-head a { color: inherit; text-decoration: none; }
.sc-head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.sc-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex-shrink: 0; }
.sc-brand-sym { width: 36px; height: 36px; border-radius: 6px; background: #fff; padding: 2px; }
.sc-brand-word { display: flex; flex-direction: column; line-height: 1; font-family: var(--sc-body); }
.sc-brand-word span { font-size: 19px; letter-spacing: .06em; font-weight: 500; }
.sc-brand-word small { font-family: var(--sc-mono); font-size: 9.5px; letter-spacing: .32em; margin-top: 5px; opacity: .8; }
/* SACRAW-only serif mark (header + landers, 2026-11-17). Deep navy #14254f = a darker shade of the symbol's blue #003399
   (owner ruling: not green, not harsh black). Tighter gap so the swoosh sits close to the symbol. Footer keeps .sc-brand-word. */
.sc-brand:has(> .sc-brand-mark) { gap: 6px; }
.sc-brand-mark { display: block; flex-shrink: 0; width: 135px; height: 22px; background-color: #14254f;
  -webkit-mask: url(../assets/img/sacraw-wordmark-mask.png) left center / contain no-repeat; mask: url(../assets/img/sacraw-wordmark-mask.png) left center / contain no-repeat; }
@media (max-width: 520px) { .sf-lp .sf-lp-brand .sc-brand-mark { width: 116px; height: 19px; } }
@media (forced-colors: active) { .sc-brand-mark { forced-color-adjust: none; background-color: CanvasText; } }
.sc-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: var(--sc-radius, 0); background: transparent; color: inherit; }
.sc-burger svg { width: 22px; height: 22px; }
#main-content.sc-main { padding-top: 0 !important; }
body.menu-open { overflow: hidden; }

/* mobile menu overlay (below the sticky header) */
.sc-mmenu { position: fixed; left: 0; right: 0; bottom: 0; top: var(--sc-top); z-index: 45; background: var(--sc-menu-bg, var(--sc-bg)); color: var(--sc-menu-ink, var(--sc-ink)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sc-mmenu-inner { padding: 20px var(--sc-gutter) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.sc-mmenu ul { list-style: none; margin: 0; padding: 0; }
.sc-mmenu li a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--sc-rule); color: inherit; text-decoration: none; font-size: 18px; }
.sc-mmenu .sc-code { font-family: var(--sc-mono); font-size: 11px; letter-spacing: .1em; opacity: .65; width: 34px; }
.sc-mmenu-cap { font-family: var(--sc-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin: 0; }
.sc-mmenu-cta { width: 100%; justify-content: center; }

/* ---------- sticky phone CTA: concept/common.js decides visibility; body padded while up ---------- */
.sc-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.sc-sticky.is-on { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.sc-sticky { background: var(--sc-sticky-bg, var(--sc-bg)); border-top: 1px solid var(--sc-rule); padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0,0,0,.08); }
.sc-sticky-line { margin: 0 0 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--sc-sticky-ink, var(--sc-ink)); }
.sc-sticky-btn { width: 100%; justify-content: center; min-height: 48px; padding-block: 10px !important; }
@media (max-width: 767px) { body.sc-sticky-on { padding-bottom: 104px; } body.sc-sticky-on .cookie-consent-banner { bottom: 104px; } }
@media (min-width: 768px) { .sc-sticky { display: none !important; } }

/* ---------- footer ---------- */
.sc-foot { background: var(--sc-foot-bg); color: var(--sc-foot-ink); padding: 64px 0 28px; }
.sc-foot a { color: inherit; }
.sc-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-bottom: 36px; border-bottom: 1px solid var(--sc-foot-rule); }
.sc-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-foot-col a { text-decoration: none; opacity: .82; font-size: 14px; display: inline-block; padding: 3px 0; }
.sc-foot-col a:hover { opacity: 1; text-decoration: underline; }
.sc-foot-reach { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.sc-foot-h { font-family: var(--sc-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; opacity: .7; }
.sc-foot-note { font-size: 12px; opacity: .7; margin: 0; }
.sc-nl { margin-top: 14px; max-width: 360px; }
.sc-nl-row { display: flex; gap: 6px; }
.sc-nl-row input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; font-size: 16px; background: transparent; color: inherit; border: 1px solid var(--sc-foot-rule); border-radius: var(--sc-radius, 0); }
.sc-nl-row button { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--sc-accent); color: var(--sc-accent-ink); border: 0; border-radius: var(--sc-radius, 0); }
.sc-nl-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.45; opacity: .78; margin-top: 8px; }
.sc-nl-consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.sacraw-nl-msg { font-size: 11px; min-height: 1em; margin: 6px 0 0; }
.sc-foot-compliance { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--sc-foot-rule); font-size: 12px; opacity: .85; }
.sc-foot-cards { display: inline-flex; gap: 8px; align-items: center; }
.sc-foot-cards img { height: 24px; width: auto; background: #fff; border-radius: 3px; padding: 2px; }
.sc-foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding-top: 18px; font-size: 13px; opacity: .8; }
.sc-foot-bottom p { margin: 0; }
.sc-foot-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; }
.sc-foot-bottom a { display: inline-block; padding: 8px 0; }
@media (min-width: 900px) { .sc-foot-cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .sc-foot-reach { grid-column: auto; } }

/* ---------- long-form content (product pages, articles, legal) ---------- */
.sc-prose { font-size: 17px; line-height: 1.7; }
.sc-prose :where(h2) { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; margin: 2.2em 0 .6em; }
.sc-prose :where(h3) { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; margin: 1.8em 0 .5em; }
.sc-prose :where(table) { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.sc-prose :where(pre, code) { white-space: pre-wrap; word-break: break-word; }
.sc-prose :where(img) { height: auto; }
.prose, .prose * { overflow-wrap: anywhere; }
.prose :where(table) { display: block; max-width: 100%; overflow-x: auto; }

/* quote page: the progress sub-bar sits under OUR header (parent hard-codes 129px) */
body.sc .sacraw-quote-subbar { top: var(--sc-head-h) !important; }
body.sc.sf-quote-checkout .sacraw-quote-subbar { top: var(--sc-head-h) !important; }
body.sc .sacraw-quote-steps { scroll-margin-top: var(--sc-top-quote); }

/* resume-quote pill: never collide with the sticky bar */
#resume-quote-banner { bottom: calc(120px + env(safe-area-inset-bottom)) !important; }
@media (min-width: 768px) { #resume-quote-banner { top: calc(var(--sc-top) + 12px) !important; bottom: auto !important; } }

@media (prefers-reduced-motion: reduce) { body.sc *, body.sc *::before, body.sc *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
:focus-visible { outline: 3px solid var(--sc-focus, #1a73e8); outline-offset: 2px; }
/* header breakpoint = 1024px: desktop nav from 1024 up, phone/tablet controls + menu below (never both) */
@media (min-width: 1024px) { .sc-head .sf-mobile-nav, #mobile-menu.sc-mmenu { display: none !important; } }
@media (max-width: 1023px) { .sc-head .sf-desktop-nav { display: none !important; } .sc-head .sf-mobile-nav { display: flex !important; align-items: center; gap: 8px; } }
.sc-head .sc-head-row > .sf-desktop-nav { display: flex; align-items: center; }
/* the header's sticky box is its Alpine wrapper (a sticky element only sticks within its parent) */
.sc-headwrap { position: sticky; top: 0; z-index: 50; }
#site-header.sc-head { position: relative; top: auto; }
.sc-sr { top: 0; left: 0; }

/* The document's scroll padding already reserves the sticky header on native anchor jumps. */
body.sc #main-content:target,
body.sc #main-content :target { scroll-margin-top: 0; }
body.sc #main-content .sacraw-quote-steps:target,
body.sc #main-content .sacraw-quote-steps :target {
  scroll-margin-top: max(0px, calc(var(--sc-top-quote) - var(--sc-top)));
}
body.menu-open #sacraw-chat-root .sacraw-chat-fab { visibility: hidden; }
.sc-mmenu { overscroll-behavior-y: contain; }
.sc-mmenu li a[aria-current="page"], .fr-plans-pop a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}
