/* Ascend Account Hub: sitewide display choices + the header quick-settings button.
   The engine (aah-engine.js) skips this file (id aah-site-css), so every colour here is set for both themes. */

@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/atkinson-400.woff2) format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/atkinson-700.woff2) format("woff2")}
@font-face{font-family:"Fredoka AAH";font-style:normal;font-weight:300 700;font-display:swap;src:url(fonts/fredoka-latin.woff2) format("woff2")}

/* Night: paint the page dark before anything else loads */
@media screen{
html[data-aah-theme=dark]{color-scheme:dark;background-color:#10161b}
html[data-aah-theme=dark] body{background-color:#10161b}
html[data-aah-theme=dark] ::selection{background:#2d6f93;color:#fff}
/* The round crest logo has see-through white parts: give it its white disc back */
html[data-aah-theme=dark] :is(.custom-logo,.site-footer img[src*="Ascend-stem"],.site-footer img[data-src*="Ascend-stem"]){background:radial-gradient(circle closest-side,#fff 97%,rgba(255,255,255,0) 100%)!important}
html[data-aah-theme=dark] img:not([src$=".svg"]):not(.custom-logo):not([src*="Ascend-stem"]){filter:brightness(.94)}
/* Footer one step darker than cards, so a card that ends at the footer keeps its edge */
html[data-aah-theme=dark] :is(.site-footer,.site-primary-footer-wrap,.site-below-footer-wrap,.site-footer .ast-builder-grid-row-container){background-color:#0b1015!important}
/* Jetpack contact dropdowns match the other fields */
html[data-aah-theme=dark] :is(.contact-form__select-wrapper,.contact-form__select-element-wrapper,.contact-form__select-wrapper select){background-color:#18232b!important;color:#e6edf3!important;border-color:#2e3f4b!important}
html[data-aah-theme=dark] :is(#masthead,#ast-mobile-header,.site-footer) .ahfb-svg-iconset svg :is(path,circle,rect,polygon,ellipse):not([fill]){fill:currentColor}
}

/* Calm motion */
html[data-aah-motion=reduce] *,html[data-aah-motion=reduce] *::before,html[data-aah-motion=reduce] *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}

/* Fonts: easy-to-read and playful */
html[data-aah-font=easy] :is(body,h1,h2,h3,h4,h5,h6,p,li,dt,dd,a,button,input,select,textarea,label,td,th,blockquote,figcaption,summary,small,strong,em,b,.elementor-heading-title,.elementor-button,.menu-link,.site-title,span:not([class*="icon"]):not([class*="dashicons"]):not([class*="fa-"]):not([class*="eicon"]):not(.screen-reader-text):not(.star-rating span)){font-family:"Atkinson Hyperlegible",Verdana,Tahoma,sans-serif!important}
html[data-aah-font=easy] :is(p,li,dd,summary+div){line-height:1.7;letter-spacing:.012em;word-spacing:.04em}
html[data-aah-font=playful] :is(body,h1,h2,h3,h4,h5,h6,p,li,dt,dd,a,button,input,select,textarea,label,td,th,blockquote,figcaption,summary,small,strong,em,b,.elementor-heading-title,.elementor-button,.menu-link,.site-title,span:not([class*="icon"]):not([class*="dashicons"]):not([class*="fa-"]):not([class*="eicon"]):not(.screen-reader-text):not(.star-rating span)){font-family:"Fredoka AAH","Nunito Sans",system-ui,sans-serif!important}

/* Underlined links (text links only, not buttons or cards) */
html[data-aah-links="1"] :is(.entry-content,.asa-why,.afd,.site-footer,#aah,.woocommerce,.comment-content) a:not([class*="btn"]):not([class*="button"]):not(.menu-link):not([role=button]):not(.aah-nav-link):not(.aah-nav-out):not(.aah-tile):not(.aah-pill):not(.aah-avatar):not(.aah-qs-more):not(.aah-chips a):not(:has(img,div,h2,h3,h4,figure)){text-decoration:underline!important;text-underline-offset:.18em;text-decoration-thickness:.09em}

/* High contrast: stronger focus rings everywhere */
html[data-aah-contrast="1"] :focus-visible{outline:3px solid currentColor!important;outline-offset:3px!important}

/* ---------- quick settings button (next to the header account icon) ---------- */
.aah-qs{--q-focus:#0B3A53;--q-bg:#fff;--q-ink:#0B3A53;--q-line:rgba(11,58,83,.18);--q-soft:#f2f8fb;--q-accent:#037CAF;--q-on:#fff;--q-muted:#55636e}
html[data-aah-theme=dark] .aah-qs{--q-focus:#ffd166;--q-bg:#18222c;--q-ink:#e6edf3;--q-line:#2d3c4a;--q-soft:#1f2c38;--q-accent:#5cc0ec;--q-on:#06202d;--q-muted:#a3b1bd}
html[data-aah-accent=teal] .aah-qs{--q-accent:#0f7c7a}html[data-aah-accent=grape] .aah-qs{--q-accent:#6d4bc4}html[data-aah-accent=berry] .aah-qs{--q-accent:#c2366f}html[data-aah-accent=sunset] .aah-qs{--q-accent:#c2410c}html[data-aah-accent=forest] .aah-qs{--q-accent:#2f7d1f}
html[data-aah-theme=dark][data-aah-accent=teal] .aah-qs{--q-accent:#45c9c3}html[data-aah-theme=dark][data-aah-accent=grape] .aah-qs{--q-accent:#a996f5}html[data-aah-theme=dark][data-aah-accent=berry] .aah-qs{--q-accent:#f28bb4}html[data-aah-theme=dark][data-aah-accent=sunset] .aah-qs{--q-accent:#fb9a5b}html[data-aah-theme=dark][data-aah-accent=forest] .aah-qs{--q-accent:#7fd36b}

.ast-builder-layout-element.aah-qs-slot{display:flex;align-items:center;margin:0 6px 0 10px}
#masthead button.aah-qs-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:0;margin:0;padding:0;border-radius:999px;border:1.5px solid var(--q-line);background:var(--q-bg);color:var(--q-ink);box-shadow:0 2px 8px rgba(11,58,83,.08);cursor:pointer;line-height:1;font-size:0;transition:transform .15s,border-color .15s,box-shadow .15s}
#masthead button.aah-qs-btn:hover{border-color:var(--q-accent);transform:translateY(-1px);background:var(--q-bg);color:var(--q-ink)}
#masthead button.aah-qs-btn:focus-visible{outline:3px solid var(--q-focus);outline-offset:2px}
#masthead button.aah-qs-btn svg{width:20px;height:20px;display:block}
#masthead button.aah-qs-btn .aah-i-moon,html[data-aah-theme=dark] #masthead button.aah-qs-btn .aah-i-sun{display:none}
html[data-aah-theme=dark] #masthead button.aah-qs-btn .aah-i-moon{display:block}
#masthead button.aah-qs-btn .aah-qs-dot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;background:var(--q-accent);border:2px solid var(--q-bg)}
@media (max-width:921px){.ast-builder-layout-element.aah-qs-slot{margin:0 4px 0 0}#masthead button.aah-qs-btn{width:38px;height:38px}}

/* popover */
#aah-qs-pop{position:fixed;z-index:100000;top:72px;right:12px;width:320px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:16px;border-radius:20px;background:var(--q-bg);color:var(--q-ink);border:1px solid var(--q-line);box-shadow:0 24px 60px rgba(8,24,36,.28);font-family:"Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.4;text-align:left}
#aah-qs-pop[hidden]{display:none}
#aah-qs-pop *{box-sizing:border-box}
#aah-qs-pop .aah-qs-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 12px}
#aah-qs-pop .aah-qs-title{font-weight:800;font-size:17px;color:var(--q-ink);margin:0}
#aah-qs-pop button.aah-qs-x{width:32px;height:32px;min-height:0;padding:0;margin:0;border-radius:50%;border:0;background:var(--q-soft);color:var(--q-ink);font-size:20px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:none}
#aah-qs-pop .aah-qs-lbl{display:block;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--q-muted);margin:14px 0 6px}
#aah-qs-pop .aah-qs-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;border-radius:14px;background:var(--q-soft)}
#aah-qs-pop .aah-qs-seg button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;margin:0;padding:6px 4px;border:0;border-radius:11px;background:transparent;color:var(--q-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:none;line-height:1.1;text-transform:none;letter-spacing:0}
#aah-qs-pop .aah-qs-seg button svg{width:20px;height:20px}
#aah-qs-pop .aah-qs-seg button[aria-checked=true]{background:var(--q-bg);color:var(--q-accent);box-shadow:0 2px 8px rgba(11,58,83,.14),inset 0 0 0 2px var(--q-accent)}
#aah-qs-pop .aah-qs-seg button:focus-visible,#aah-qs-pop .aah-qs-sw button:focus-visible,#aah-qs-pop a:focus-visible,#aah-qs-pop button.aah-qs-x:focus-visible{outline:3px solid var(--q-focus);outline-offset:2px}
#aah-qs-pop .aah-qs-seg .aah-qs-aa{font-weight:800;line-height:1}
#aah-qs-pop .aah-qs-sw{display:flex;flex-wrap:wrap;gap:10px}
#aah-qs-pop .aah-qs-sw button{width:34px;height:34px;min-height:0;margin:0;padding:0;border-radius:50%;border:3px solid var(--q-bg);box-shadow:0 0 0 1.5px var(--q-line);cursor:pointer;background:var(--sw)}
#aah-qs-pop .aah-qs-sw button[aria-checked=true]{box-shadow:0 0 0 3px var(--q-ink)}
#aah-qs-pop .aah-qs-foot{margin:16px 0 0;padding:12px 0 0;border-top:1px solid var(--q-line);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:var(--q-muted)}
#aah-qs-pop a.aah-qs-more{display:inline-flex;align-items:center;gap:6px;font-weight:800;color:var(--q-accent);text-decoration:none;font-size:14px}
#aah-qs-pop a.aah-qs-more:hover{text-decoration:underline}
#aah-qs-pop .aah-qs-note{margin:0;font-size:12.5px;color:var(--q-muted)}
@media (max-width:480px){#aah-qs-pop{left:12px;right:12px;width:auto}}
@media (forced-colors:active){#aah-qs-pop [aria-checked=true]{outline:3px solid Highlight;outline-offset:2px}}

/* small toast used by the account page and quick settings */
.aah-toast{position:fixed;left:50%;bottom:24px;z-index:100001;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#0B3A53;color:#fff;border-radius:999px;padding:10px 18px;font:700 14px/1.3 "Nunito Sans",system-ui,sans-serif;box-shadow:0 12px 30px rgba(0,0,0,.25);transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px);text-align:center}
.aah-toast.is-on{opacity:1;transform:translate(-50%,0)}
html[data-aah-theme=dark] .aah-toast{background:#e6edf3;color:#0B3A53}
