/* First-party cookie consent: bar + Customize dialog (Nov 7 2026). Injected on every website page by routes/consent.
   Look: the centred white bar with a gold outline AK liked, rebuilt in our brand. Phones: a bottom sheet.
   Brand only: gold #FFC61E, gold 300 #FFE8A5, ink #110A33, lavender #DDD6FF, mist #F6F4FF, slate #5B6478, white. No green.
   Motion: transform + opacity only, ease-out (cubic-bezier(.23,1,.32,1)); reduced motion = opacity only. */

/* ---- 1. The third-party consent UIs never show (GTM cookieconsent bar + its "Cookie Policy" tab, HubSpot banner, Klaro).
   Their old theme rules (css/cookie-consent-theme.css, shell.css) use !important with html body + id specificity;
   :not(#hai-x) lifts these above them. consent.js also hides them inline as a safety net. ---- */
html body .cc-window:not(#hai-x),html body .cc-revoke:not(#hai-x),html body #hs-eu-cookie-confirmation:not(#hai-x),html body #hs-banner-parent:not(#hai-x),
html body #klaro:not(#hai-x),html body .klaro:not(#hai-x),html body #klaro-cookie-notice:not(#hai-x),html body .klaro .cookie-modal:not(#hai-x),html body .klaro .cookie-notice:not(#hai-x){display:none !important;visibility:hidden !important;pointer-events:none !important}
/* the room the old banners reserved above the footer is not needed for them any more */
html body:has(.cc-window,#klaro-cookie-notice,.cc-revoke) .hx-foot-stage:not(#hai-x){padding-bottom:0}
/* while our bar is up on a V2 page, the end of the page keeps room so no footer link is ever under it (height set by consent.js) */
html.hai-cc-open body .hx-foot-stage:not(#hai-x){padding-bottom:calc(var(--hai-cc-h,120px) + 8px)}
/* and keyboard focus never scrolls under it (WCAG 2.4.11) */
html.hai-cc-open:not(#hai-x){scroll-padding-bottom:var(--hai-cc-h,120px)}

/* ---- 2. Tokens ---- */
.hc-bar,.hcd,.hc-live{--hc-gold:#ffc61e;--hc-gold3:#ffe8a5;--hc-ink:#110a33;--hc-lav:#ddd6ff;--hc-mist:#f6f4ff;--hc-slate:#5b6478;--hc-white:#fff;--hc-ease:cubic-bezier(.23,1,.32,1);--hc-sheet:cubic-bezier(.32,.72,0,1);--hc-body:Manrope,"Manrope Fallback",Arial,sans-serif;--hc-head:"Cabinet Grotesk","Cabinet Fallback",Manrope,"Manrope Fallback",Arial,sans-serif}
.hc-bar *,.hcd *{box-sizing:border-box}
.hc-live{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- 3. Buttons (shared by bar and dialog): pill, Manrope ExtraBold, 44px hit area. Scoped by id: legacy Webflow CSS
   ([type=button]{border:0}, loaded after this file) would otherwise strip the outline button. ---- */
:is(#hai-consent,#hai-consent-dialog) .hc-btn{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:0 20px;border:2px solid transparent;border-radius:999px;background:none;color:var(--hc-ink);font:800 14px/1 var(--hc-body);letter-spacing:0;white-space:nowrap;text-decoration:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition-property:transform,background-color,border-color;transition-duration:120ms,150ms,150ms;transition-timing-function:var(--hc-ease)}
:is(#hai-consent,#hai-consent-dialog) .hc-btn:active{transform:scale(.96)}
:is(#hai-consent,#hai-consent-dialog) .hc-btn:focus-visible{outline:2px solid var(--hc-ink);outline-offset:2px}
:is(#hai-consent,#hai-consent-dialog) .hc-gold{background:var(--hc-gold);border-color:var(--hc-gold)}
:is(#hai-consent,#hai-consent-dialog) .hc-line{background:var(--hc-white);border-color:var(--hc-ink)}
:is(#hai-consent,#hai-consent-dialog) .hc-text{padding:0 12px;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
@media (hover:hover) and (pointer:fine){
  :is(#hai-consent,#hai-consent-dialog) .hc-gold:hover{background:var(--hc-gold3);border-color:var(--hc-gold3)}
  :is(#hai-consent,#hai-consent-dialog) .hc-line:hover,:is(#hai-consent,#hai-consent-dialog) .hc-text:hover{background:var(--hc-mist)}
}

/* ---- 4. The bar ---- */
.hc-bar{position:fixed;z-index:999999;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:min(1040px,calc(100% - 48px));margin:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:12px 12px 12px 24px;background:var(--hc-white);color:var(--hc-ink);border:2px solid var(--hc-gold);border-radius:24px;box-shadow:0 12px 32px -12px rgba(17,10,51,.22);font:400 14px/20px var(--hc-body);text-align:left;
  opacity:0;transform:translate(-50%,16px);transition:opacity 320ms var(--hc-ease),transform 320ms var(--hc-ease)}
.hc-bar.is-in{opacity:1;transform:translate(-50%,0)}
.hc-bar.is-out{opacity:0;transform:translate(-50%,8px);transition-duration:180ms;pointer-events:none}
.hc-msg{margin:0;max-width:72ch;font:inherit;color:var(--hc-ink);text-wrap:pretty}
.hc-msg a{color:var(--hc-ink);font-weight:700;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.hc-msg a:hover{text-decoration-color:var(--hc-gold)}
.hc-msg a:focus-visible{outline:2px solid var(--hc-ink);outline-offset:2px;border-radius:4px}
.hc-acts{display:flex;align-items:center;gap:8px}
/* narrow laptops and tablets: words above, buttons below */
@media (max-width:860px){
  .hc-bar{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 16px 12px}
  .hc-msg{max-width:none}
}
/* phones: a bottom sheet, full width, rounded top, clear of the home indicator (at 320 x 568 it takes about 38% of the screen) */
@media (max-width:640px){
  .hc-bar{left:0;right:0;bottom:0;width:auto;gap:12px;padding:16px 16px calc(12px + env(safe-area-inset-bottom,0px));border-width:2px 0 0;border-radius:24px 24px 0 0;box-shadow:0 -12px 32px -12px rgba(17,10,51,.28);font-size:13px;line-height:19px;
    transform:translateY(100%);transition:opacity 200ms var(--hc-ease),transform 360ms var(--hc-sheet)}
  .hc-bar.is-in{transform:translateY(0)}
  .hc-bar.is-out{transform:translateY(24px)}
  .hc-acts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}
  #hai-consent .hc-acts .hc-btn{padding:0 12px}
  #hai-consent .hc-acts .hc-text{padding:0 8px}
}

/* ---- 5. The Customize dialog (native <dialog>, opened with showModal) ---- */
dialog.hcd{position:fixed;inset:0;margin:auto;padding:0;border:0;width:min(560px,calc(100% - 32px));max-width:none;max-height:min(720px,calc(100dvh - 48px));background:var(--hc-white);color:var(--hc-ink);border-radius:24px;box-shadow:0 32px 64px -24px rgba(17,10,51,.35);font:400 14px/20px var(--hc-body);text-align:left;overflow:hidden;
  opacity:0;transform:translateY(8px) scale(.98);transition:opacity 200ms var(--hc-ease),transform 200ms var(--hc-ease)}
dialog.hcd[open]{display:flex;flex-direction:column}
dialog.hcd.is-in{opacity:1;transform:none}
dialog.hcd.is-out{opacity:0;transform:translateY(4px) scale(.99);transition-duration:150ms}
dialog.hcd::backdrop{background:rgba(17,10,51,.48);opacity:0;transition:opacity 200ms var(--hc-ease)}
dialog.hcd.is-in::backdrop{opacity:1}
dialog.hcd:focus{outline:none}
.hcd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px 24px 0}
.hcd-title{margin:0;font:700 24px/1.15 var(--hc-head);letter-spacing:-.01em;color:var(--hc-ink);text-wrap:balance}
.hcd-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-8px -8px 0 0;padding:0;border:0;border-radius:50%;background:var(--hc-mist);color:var(--hc-ink);cursor:pointer;transition:background-color 150ms var(--hc-ease),transform 120ms var(--hc-ease)}
.hcd-x svg{width:18px;height:18px}
.hcd-x:active{transform:scale(.96)}
.hcd-x:focus-visible{outline:2px solid var(--hc-ink);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.hcd-x:hover{background:var(--hc-lav)}}
.hcd-intro{margin:8px 24px 0;color:var(--hc-slate);text-wrap:pretty}
.hcd-intro a{color:var(--hc-ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hcd-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 24px 8px}
.hcd-list{list-style:none;margin:0;padding:0}
.hcd-row{padding:16px 0}
.hcd-row+.hcd-row{border-top:1px solid var(--hc-lav)}
.hcd-top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
.hcd-name{margin:0;font:800 16px/1.25 var(--hc-body);color:var(--hc-ink)}
.hcd-desc{margin:4px 0 0;color:var(--hc-slate);text-wrap:pretty}
.hcd-svc{margin:8px 0 0;font-size:13px;line-height:19px;color:var(--hc-ink)}
.hcd-svc b{font-weight:800}
.hcd-always{flex:none;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:var(--hc-lav);color:var(--hc-ink);font:800 12px/20px var(--hc-body);white-space:nowrap}
.hcd-always svg{width:12px;height:12px}
/* the switch: ink track + gold thumb when on, white track + slate ring when off (never green). 56 x 44 hit area. */
.hcd-ctl{flex:none;display:flex;align-items:center;gap:8px}
.hcd-state{min-width:24px;font:800 12px/1 var(--hc-body);color:var(--hc-slate);text-align:right}
.hcd-sw{appearance:none;-webkit-appearance:none;touch-action:manipulation;position:relative;display:inline-flex;align-items:center;justify-content:center;width:56px;height:44px;margin:0 -6px 0 0;padding:0;border:0;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent}
.hcd-track{position:relative;display:block;width:44px;height:24px;border:2px solid var(--hc-slate);border-radius:999px;background:var(--hc-white);transition:background-color 150ms var(--hc-ease),border-color 150ms var(--hc-ease)}
.hcd-thumb{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--hc-slate);transition:transform 200ms var(--hc-ease),background-color 150ms var(--hc-ease)}
.hcd-sw[aria-checked="true"] .hcd-track{background:var(--hc-ink);border-color:var(--hc-ink)}
.hcd-sw[aria-checked="true"] .hcd-thumb{background:var(--hc-gold);transform:translateX(20px)}
.hcd-sw:active .hcd-thumb{transform:scale(.9)}
.hcd-sw[aria-checked="true"]:active .hcd-thumb{transform:translateX(20px) scale(.9)}
.hcd-sw:focus-visible{outline:none}
.hcd-sw:focus-visible .hcd-track{outline:2px solid var(--hc-ink);outline-offset:3px}
.hcd-foot{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:16px 24px 24px;border-top:1px solid var(--hc-lav);background:var(--hc-white)}
#hai-consent-dialog .hcd-foot .hc-save{margin-left:8px}
/* phones: the dialog is a bottom sheet; the save button leads, full width */
@media (max-width:640px){
  dialog.hcd{inset:auto 0 0 0;margin:0;width:100%;max-height:calc(100dvh - 24px);border-radius:24px 24px 0 0;transform:translateY(100%);transition:opacity 200ms var(--hc-ease),transform 360ms var(--hc-sheet)}
  dialog.hcd.is-in{transform:none}
  dialog.hcd.is-out{transform:translateY(24px)}
  .hcd-head{padding:20px 16px 0}
  .hcd-title{font-size:20px}
  .hcd-intro{margin:8px 16px 0}
  .hcd-body{padding:4px 16px}
  .hcd-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:12px 16px calc(16px + env(safe-area-inset-bottom,0px))}
  #hai-consent-dialog .hcd-foot .hc-save{grid-column:1/-1;order:-1;margin:0}
  #hai-consent-dialog .hcd-foot .hc-btn{padding:0 12px}
}

/* ---- 6. Footer "Cookie settings" (partials/hx-footer.ejs): a button that reads as the legal links beside it ---- */
.hx-foot .hx-legal .hx-cookie-btn{touch-action:manipulation;appearance:none;-webkit-appearance:none;margin:0;padding:0;border:0;background:none;color:#fff;font:inherit;line-height:inherit;cursor:pointer;text-align:inherit}
.hx-foot .hx-legal .hx-cookie-btn:hover{color:#ffc61e}
.hx-foot .hx-legal .hx-cookie-btn:focus-visible{outline:2px solid #ffc61e;outline-offset:2px;border-radius:4px}

/* ---- 7. Reduced motion: no movement, a short cross-fade only ---- */
@media (prefers-reduced-motion:reduce){
  .hc-bar,.hc-bar.is-in,.hc-bar.is-out{transform:translate(-50%,0);transition:opacity 150ms linear}
  dialog.hcd,dialog.hcd.is-in,dialog.hcd.is-out{transform:none;transition:opacity 150ms linear}
  .hcd-thumb,.hcd-track,:is(#hai-consent,#hai-consent-dialog) .hc-btn,.hcd-x{transition:none}
  :is(#hai-consent,#hai-consent-dialog) .hc-btn:active,.hcd-x:active{transform:none}
}
@media (prefers-reduced-motion:reduce) and (max-width:640px){
  .hc-bar,.hc-bar.is-in,.hc-bar.is-out{transform:none}
}
@media (forced-colors:active){
  .hc-bar,dialog.hcd{border:2px solid CanvasText}
  .hcd-track{border-color:CanvasText}
  .hcd-sw[aria-checked="true"] .hcd-thumb{background:Highlight}
}
