/* ==========================================================================
   Syndio modules — shared base
   Everything is scoped under .syn so it doesn't leak into (or get broken by)
   the rest of the theme (Bootstrap, style.css, etc).
   ========================================================================== */
/* Selectors are prefixed with html:not(#syn#syn) (always matches <html>) to outrank
   the theme's ID-based rules like "#container .entry-content p". Sizes are in px
   because the theme sets html{font-size:10px}, which would shrink rem values. */

:root{
  --syn-ink:#161513;
  --syn-black:#0E0D0C;
  --syn-paper:#F3F0E8;
  --syn-paper-2:#E7E1D4;
  --syn-sheet:#FFFCF8;
  --syn-volt:#EDF91F;
  --syn-muted:#6A655C;
  --syn-line:rgba(22,21,19,.12);
  --syn-line-strong:rgba(22,21,19,.22);
  /* All fonts are already loaded by the site */
  --syn-serif:ivardisplay,'Times New Roman',Times,serif;
  --syn-sans:"Instrument Sans",sans-serif;
  --syn-mono:"DM Mono",monospace;
  --syn-gutter:clamp(20px,4.2vw,56px);
  --syn-ease:cubic-bezier(.22,1,.36,1);
  --syn-header-h:68px;
}

/* Let the modules run edge to edge inside Beaver Builder rows */
html:not(#syn#syn) .fl-module-content:has(> .syn){margin:0}
html:not(#syn#syn) .fl-row:has(.syn) > .fl-row-content-wrap{padding:0}
html:not(#syn#syn) .fl-row:has(.syn) .fl-row-content{max-width:none}
html:not(#syn#syn) .fl-row:has(.syn) .fl-col-content{padding:0}
/* Beaver Builder gives columns min-height:1px; with an empty-height module (e.g. the header
   when its spacer is hidden) that 1px shows as a line above the next section. */
html:not(#syn#syn) .fl-row:has(.syn) .fl-col{min-height:0}

/* The theme wraps the page in a Bootstrap .row (margin:0 -15px) without a .container, which pushes
   every module 15px past both screen edges and eats most of the side padding. */
html:not(#syn#syn) .row:has(.syn){margin-left:0;margin-right:0}

/* The theme sets "html, body{overflow-x:hidden !important}" and "#container{overflow:hidden}". That
   turns body/#container into scroll containers, which breaks position:sticky (pinned sections).
   overflow:clip looks the same but isn't a scroll container. */
html:not(#syn#syn) body:has(.syn){overflow-x:clip !important;overflow-y:visible !important}
/* overflow:hidden also made <body> wrap the theme's floated #container; clip doesn't, so <body> shrank
   to the HubSpot banner spacer and the whole page overflowed it. With the banner's inline
   "body{height:100%}", Safari then miscalculated the end of the page (scroll bouncing at the footer).
   flow-root makes <body> contain the float again without becoming a scroll container (sticky still works). */
html:not(#syn#syn) body:has(.syn){display:flow-root}
html:not(#syn#syn) body:has(.syn) #container{overflow:clip}

/* ---------- reset inside modules ---------- */
html:not(#syn#syn) .syn{position:relative;margin:0;padding:0;font-family:var(--syn-sans);font-size:17px;font-weight:400;line-height:1.55;letter-spacing:normal;color:var(--syn-ink);text-align:left;-webkit-font-smoothing:antialiased;overflow-x:clip}
html:not(#syn#syn) .syn,html:not(#syn#syn) .syn *,html:not(#syn#syn) .syn *::before,html:not(#syn#syn) .syn *::after{box-sizing:border-box}
/* Undo theme typography (e.g. "#container .entry-content p", "#container div")
   so every element inherits from .syn unless a module rule says otherwise. */
html:not(#syn#syn) :where(.syn) :where(div,p,span,a,li,h1,h2,h3,h4,blockquote,figure,cite,button,label){font-family:inherit;font-size:inherit;line-height:inherit;letter-spacing:inherit;text-transform:inherit}
/* The theme centers h1/h2 on mobile ("h1{text-align:center}"); headings follow their section instead. */
html:not(#syn#syn) :where(.syn) :where(h1,h2,h3,h4){text-align:inherit}
html:not(#syn#syn) .syn h1,html:not(#syn#syn) .syn h2,html:not(#syn#syn) .syn h3,html:not(#syn#syn) .syn h4,html:not(#syn#syn) .syn p,html:not(#syn#syn) .syn figure,html:not(#syn#syn) .syn blockquote,html:not(#syn#syn) .syn ol,html:not(#syn#syn) .syn ul{margin:0}
html:not(#syn#syn) .syn blockquote{padding:0;border:0;font-size:inherit}
html:not(#syn#syn) .syn cite{font-style:normal}
html:not(#syn#syn) .syn img,html:not(#syn#syn) .syn svg{display:block;max-width:100%}
html:not(#syn#syn) .syn a{color:inherit;text-decoration:none}
html:not(#syn#syn) .syn a:hover,html:not(#syn#syn) .syn a:focus{text-decoration:none}
html:not(#syn#syn) .syn button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;line-height:inherit;text-transform:none;letter-spacing:inherit}
html:not(#syn#syn) .syn em{font-style:italic}
html:not(#syn#syn) .syn ::selection{background:var(--syn-volt);color:var(--syn-ink)}
html:not(#syn#syn) .syn :focus-visible{outline:2px solid var(--syn-ink);outline-offset:3px}
html:not(#syn#syn) .syn-dark :focus-visible{outline-color:#fff}

/* ---------- layout + type ---------- */
html:not(#syn#syn) .syn-wrap{max-width:1440px;margin-inline:auto;padding-inline:var(--syn-gutter);width:100%}
html:not(#syn#syn) .syn-dark{background:var(--syn-black);color:#fff}
html:not(#syn#syn) .syn-eyebrow{font-family:var(--syn-mono);font-size:10.88px;letter-spacing:.16em;text-transform:uppercase;color:var(--syn-muted);line-height:1.55}
html:not(#syn#syn) .syn .syn-h1,html:not(#syn#syn) .syn .syn-h2,html:not(#syn#syn) .syn .syn-h3{font-family:var(--syn-serif);font-weight:400;color:inherit}
html:not(#syn#syn) .syn .syn-h1{font-size:clamp(44.8px,6.2vw,102.4px);line-height:.9;letter-spacing:-.03em}
html:not(#syn#syn) .syn .syn-h2{font-size:clamp(34.4px,4.2vw,66.4px);line-height:.98;letter-spacing:-.025em;text-wrap:balance}
html:not(#syn#syn) .syn .syn-h3{font-size:clamp(23.2px,2.2vw,32.8px);line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
html:not(#syn#syn) .syn .syn-lede{font-size:clamp(16.8px,1.25vw,19.2px);line-height:1.5;color:var(--syn-muted);max-width:544px;font-weight:430}
html:not(#syn#syn) .syn-dark .syn-lede{color:rgba(255,255,255,.78)}

/* ---------- buttons ---------- */
html:not(#syn#syn) .syn .syn-btn{display:inline-flex;align-items:center;gap:11.2px;height:50.4px;padding:0 21.6px;border-radius:999px;border:1px solid transparent;font-family:var(--syn-sans);font-weight:520;font-size:14.72px;letter-spacing:-.01em;line-height:1.55;white-space:nowrap;transition:background .3s var(--syn-ease),color .3s,border-color .3s,transform .3s var(--syn-ease)}
html:not(#syn#syn) .syn .syn-btn__icon{width:15px;height:15px;flex:none;transition:transform .35s var(--syn-ease)}
html:not(#syn#syn) .syn .syn-btn:hover .syn-btn__icon{transform:translateX(3px)}
html:not(#syn#syn) .syn-btn-row{display:flex;gap:9.6px;flex-wrap:wrap;align-items:center}

/* Primary — light backgrounds */
html:not(#syn#syn) .syn .syn-btn--primary{background:var(--syn-ink);color:var(--syn-paper);border-color:var(--syn-ink)}
html:not(#syn#syn) .syn .syn-btn--primary:hover{background:var(--syn-volt);color:var(--syn-ink);border-color:var(--syn-volt)}
/* Primary — dark backgrounds */
html:not(#syn#syn) .syn-dark .syn-btn--primary{background:var(--syn-paper);color:var(--syn-ink);border-color:var(--syn-paper)}
html:not(#syn#syn) .syn-dark .syn-btn--primary:hover{background:var(--syn-volt);color:var(--syn-ink);border-color:var(--syn-volt)}

/* Secondary — light backgrounds */
html:not(#syn#syn) .syn .syn-btn--secondary{background:transparent;color:var(--syn-ink);border-color:var(--syn-ink)}
html:not(#syn#syn) .syn .syn-btn--secondary:hover{background:var(--syn-ink);color:var(--syn-paper);border-color:var(--syn-ink)}
/* Secondary — dark backgrounds */
html:not(#syn#syn) .syn-dark .syn-btn--secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.42)}
html:not(#syn#syn) .syn-dark .syn-btn--secondary:hover{background:#fff;color:var(--syn-ink);border-color:#fff}

@media (max-width:560px){
  html:not(#syn#syn) .syn .syn-btn{width:100%;justify-content:space-between}
  html:not(#syn#syn) .syn-btn-row{width:100%}
}

/* ---------- reveal ---------- */
html:not(#syn#syn) .syn-rv{opacity:0;transform:translateY(22px);transition:opacity 1s var(--syn-ease),transform 1s var(--syn-ease)}
html:not(#syn#syn) .syn-rv.is-in{opacity:1;transform:none}
html:not(#syn#syn) .syn-mask{display:block;overflow:hidden;padding:.42em 0 .28em;margin:-.7em 0 -.28em}
html:not(#syn#syn) .syn-mask>span{display:block;transform:translateY(160%);transition:transform 1.15s var(--syn-ease)}
html:not(#syn#syn) .is-in .syn-mask>span{transform:none}
html:not(#syn#syn) .syn-mask:nth-child(2)>span{transition-delay:.08s}
html:not(#syn#syn) .syn-mask:nth-child(3)>span{transition-delay:.16s}
html:not(#syn#syn) .syn-mask:nth-child(4)>span{transition-delay:.24s}
html:not(#syn#syn) .syn-mask:nth-child(5)>span{transition-delay:.32s}

/* Always show content while editing in Beaver Builder */
html:not(#syn#syn) .fl-builder-edit .syn-rv{opacity:1;transform:none}
html:not(#syn#syn) .fl-builder-edit .syn-mask>span{transform:none}

/* ---------- editor-only notice ---------- */
html:not(#syn#syn) .syn-editor-notice{margin:16px var(--syn-gutter);padding:16px 20px;border:1px dashed var(--syn-line-strong);border-radius:10px;font-family:var(--syn-mono);font-size:12px;letter-spacing:.06em;color:var(--syn-muted);background:rgba(255,255,255,.6)}
html:not(#syn#syn) .syn-dark .syn-editor-notice{color:rgba(255,255,255,.7);border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.06)}

@media (prefers-reduced-motion:reduce){
  html:not(#syn#syn) .syn *,html:not(#syn#syn) .syn *::before,html:not(#syn#syn) .syn *::after{animation-duration:.001s !important;animation-iteration-count:1 !important;transition-duration:.001s !important}
}

/* ---------- header marker modules ("Header: ..." modules) ---------- */
html:not(#syn#syn) body:not(.fl-builder-edit) .fl-module:has(.syn-header-flag){display:none}
html:not(#syn#syn) .syn-header-flag{display:none}
html:not(#syn#syn) .fl-builder-edit .syn-header-flag{display:block;padding:8px 12px;border:1px dashed var(--syn-line-strong);border-radius:8px;background:rgba(255,255,255,.85);font-family:var(--syn-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--syn-muted)}
