/* DIZEE accessibility settings (theme, gray, contrast, text size, launcher). Loaded after the page styles. */
:root{--dz-dark:#111110;--dz-dark-2:#0b0b0a;--dz-dark-card:#1b1b1a;--dz-dark-line:#3a3936;--dz-dark-muted:#b9b5a6}

/* Text size. iOS Safari undoes CSS zoom on explicit font sizes (and on wide boxes),
   so the options drive --dz-font-scale. The early script sets it before first paint.
   px, clamp, and vw sizes are multiplied by the variable. Fitted headlines keep a
   container ceiling so a tight line such as MORE THAN cannot spill. */
:root{--dz-font-scale:1}
html{font-size:calc(100% * var(--dz-font-scale, 1))}
html[data-font-size="small"]{--dz-font-scale:.9}
html[data-font-size="medium"]{--dz-font-scale:1}
html[data-font-size="large"]{--dz-font-scale:1.125}
html[data-font-size="xlarge"]{--dz-font-scale:1.25}
/* Mockups are drawn at a fixed phone size. The accessibility panel, launcher, and cookie bar stay put.
   The nav menu is a sheet too, and it does scale. */
.dz-hero-phone,.deck-native,.phone,.phone-screen,.laptop,.dzl,.dzm-scr,.dk,.dz-sheet[data-sheet="a11y"],.dz-a11y-launcher,.dz-cookie-bar{--dz-font-scale:1}
.dz-sheet[data-sheet="a11y"],.dz-cookie-bar{font-size:16px}
/* Phone fields stay at least 16px so iOS does not zoom the page on focus. */
.apply-phone{font-size:max(16px, calc(16px * var(--dz-font-scale, 1)))!important}

/* Gray and contrast: a fixed veil under the panel. Never filter html/body. */
.dz-a11y-veil{position:fixed;inset:0;z-index:11800;pointer-events:none;display:none}
html[data-gray="true"] .dz-a11y-veil{display:block;-webkit-backdrop-filter:grayscale(1);backdrop-filter:grayscale(1)}
html[data-high-contrast="true"] .dz-a11y-veil{display:block;-webkit-backdrop-filter:contrast(1.12);backdrop-filter:contrast(1.12)}
html[data-gray="true"][data-high-contrast="true"] .dz-a11y-veil{-webkit-backdrop-filter:grayscale(1) contrast(1.12);backdrop-filter:grayscale(1) contrast(1.12)}
html[data-theme] body{filter:none!important}

/* Dark theme: the site's existing dark (#111110, the dark sections, closing and growth engine). Never #000 or #1C1108. */
html[data-theme="dark"]{color-scheme:dark;background:var(--dz-dark)!important}
html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] .rd13,html[data-theme="dark"] main{
  --cream:#111110!important;--ink:#f5f2df!important;--line:#3a3936!important;--edge:#3a3936!important;
  --muted:#b9b5a6!important;--soft:#a3a091!important;--card:#1b1b1a!important;--chip:#1b1b1a!important;
  --rd-cream:#111110!important;--rd-ink:#f5f2df!important
}
html[data-theme="dark"] body{background:var(--dz-dark)!important;color:#f5f2df}
html[data-theme="dark"] .dz-sheet-panel,html[data-theme="dark"] .dz-sheet-close,html[data-theme="dark"] .dz-pref-seg-btn,
html[data-theme="dark"] .dz-field input:not([type=checkbox]),html[data-theme="dark"] .dz-field textarea{background:var(--dz-dark);color:#f5f2df;border-color:var(--dz-dark-line)}
html[data-theme="dark"] .dz-pref-seg-btn[aria-pressed="true"]{background:#f5f2df;color:#111110;border-color:#f5f2df}
html[data-theme="dark"] .dz-sheet-logo,html[data-theme="dark"] .dz-sheet-logo path{color:#f5f2df;fill:#f5f2df}
html[data-theme="dark"] .dz-sheet-sub,html[data-theme="dark"] .dz-sheet-req,html[data-theme="dark"] .dz-sheet-muted,
html[data-theme="dark"] .dz-sheet-consent,html[data-theme="dark"] .dz-sheet-foot,html[data-theme="dark"] .dz-pref-row p,html[data-theme="dark"] .dz-sheet[data-sheet=a11y] .dz-sheet-muted{color:var(--dz-dark-muted)}
html[data-theme="dark"] .dz-sheet-consent a,html[data-theme="dark"] .dz-sheet-foot a,html[data-theme="dark"] .dz-sheet-btn.ghost{color:#f5f2df}
html[data-theme="dark"] .dz-sheet-btn.ghost{border-color:var(--dz-dark-line)}
html[data-theme="dark"] .dz-pref-row{border-bottom-color:var(--dz-dark-line)}
html[data-theme="dark"] .dz-sheet-error{color:#ff8a70}
html[data-theme="dark"] .dz-sheet[data-sheet=a11y] .dz-sheet-eyebrow{color:#ff8a70}

/* Panel text contrast (AA) in light mode. */
.dz-pref-row p,.dz-sheet[data-sheet=a11y] .dz-sheet-muted{color:#55524a}
.dz-sheet[data-sheet=a11y] .dz-sheet-eyebrow{color:#c42a08}
.dz-sheet[data-sheet=a11y] .dz-sheet-btn:not(.ghost){background:#c42a08}
.dz-pref-row input[type=checkbox]{width:22px;height:22px;flex:none;cursor:pointer}
.dz-pref-seg-btn{min-height:36px;padding:8px 12px}
.dz-pref-seg-btn:focus-visible,.dz-pref-row input:focus-visible,.dz-sheet-btn:focus-visible{outline:2px solid #c42a08;outline-offset:2px}
html[data-theme="dark"] .dz-pref-seg-btn:focus-visible,html[data-theme="dark"] .dz-pref-row input:focus-visible,html[data-theme="dark"] .dz-sheet-btn:focus-visible{outline-color:#ff8a70}
@media (max-width:420px){.dz-pref-row{flex-wrap:wrap}.dz-pref-row>div:first-child{flex:1 1 100%}}
/* Keep Small/Medium/Large/XL (and Auto/Light/Dark) on one line. If the
   group cannot sit beside the label, the whole group drops under it. */
.dz-sheet[data-sheet=a11y] .dz-pref-row{flex-wrap:wrap;align-items:center}
.dz-sheet[data-sheet=a11y] .dz-pref-seg{flex-wrap:nowrap;flex:1 1 auto;justify-content:flex-end;max-width:100%}
.dz-sheet[data-sheet=a11y] .dz-pref-seg-btn{flex:0 1 auto;white-space:nowrap;padding:8px 10px}
.dz-sheet-panel{max-width:100vw;box-sizing:border-box}

/* High contrast: solid text, strong borders, underlined links, both themes. */
html[data-high-contrast="true"]{--muted:#161616!important;--soft:#161616!important;--line:#161616!important}
html[data-high-contrast="true"] body{background:var(--cream,#f5f2df)!important;color:var(--ink,#161616)!important}
html[data-high-contrast="true"][data-theme="dark"]{--muted:#f5f2df!important;--soft:#f5f2df!important;--line:#f5f2df!important}
html[data-high-contrast="true"] a:not(.btn):not([class*="logo"]):not([class*="wordmark"]){text-decoration:underline!important;text-underline-offset:3px}
html[data-high-contrast="true"] .dz-pref-row p,html[data-high-contrast="true"] .dz-sheet-muted{color:var(--ink)!important}
html[data-high-contrast="true"] .dz-pref-seg-btn,html[data-high-contrast="true"] .dz-sheet-btn.ghost{border-color:var(--ink)!important}

/* Floating launcher, same look as the old modern site. */
.dz-a11y-launcher{position:fixed;right:20px;bottom:max(20px,env(safe-area-inset-bottom));z-index:11900;width:48px;height:48px;display:grid;place-items:center;padding:0;margin:0;color:#fafafa;background:#13120a;border:1px solid rgba(255,255,255,.55);border-radius:999px;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.45);-webkit-tap-highlight-color:transparent}
.dz-a11y-launcher svg{width:26px;height:26px;display:block}
.dz-a11y-launcher:hover{border-color:#fafafa;background:#1c1b12}
.dz-a11y-launcher:focus-visible{outline:2px solid #c42a08;outline-offset:3px}
html[data-theme="dark"] .dz-a11y-launcher{background:#f5f2df;color:#111110;border-color:rgba(17,17,16,.35)}
html[data-theme="dark"] .dz-a11y-launcher:focus-visible{outline-color:#ff8a70}
html.dz-cookie-open .dz-a11y-launcher{bottom:calc(var(--dz-cookie-h,0px) + 16px)}
html.dz-a11y-open .dz-a11y-launcher{opacity:0;pointer-events:none}
@media (max-width:767px){.dz-a11y-launcher{right:14px;bottom:max(14px,env(safe-area-inset-bottom));width:44px;height:44px}.dz-a11y-launcher svg{width:24px;height:24px}html.dz-cookie-open .dz-a11y-launcher{bottom:calc(var(--dz-cookie-h,0px) + 12px)}}
@media print{.dz-a11y-launcher,.dz-a11y-veil{display:none!important}}

/* Dark theme nav bar (orange sections keep their orange bar). */
html[data-theme="dark"]:not([data-nav="orange"]) body #nav#nav,html[data-theme="dark"]:not([data-nav="orange"]) body .nav.nav{background:rgba(17,17,16,.9)!important;border-bottom-color:rgba(245,242,223,.10)!important}
html[data-theme="dark"]:not([data-nav="orange"]) #nav .nav-logo .logo,html[data-theme="dark"]:not([data-nav="orange"]) #nav .nav-logo .logo path{fill:#f5f2df!important}
html[data-theme="dark"]:not([data-nav="orange"]) #nav .nav-signin{color:#f5f2df!important}

/* Accessibility sheet: light dim, no blur, so the page change shows while the panel is open. */
.dz-sheet[data-sheet=a11y] .dz-sheet-backdrop{background:rgba(3,3,4,.28);-webkit-backdrop-filter:none;backdrop-filter:none}

/* Dark theme: sections that are already dark keep their own (light-mode) palette so their text stays readable. */
html[data-theme="dark"] :is(.pin-slide[data-theme="dark"],.sec.dark,.closing,footer.foot,.pf-door){
  --cream:#f5f2df;--ink:#161616;--line:#d9d3bf;--edge:#e0dac8;--muted:#5f5c53;--soft:#8e8a7c;--card:#fffdf6;--chip:#efebd9;--rd-cream:#f5f2df;--rd-ink:#000000
}
html[data-theme="dark"] .dz-faq-item{background:#1b1b1a!important;border-color:#3a3936!important;color:#f5f2df}
html[data-theme="dark"] .dz-faq-item summary{color:#f5f2df}

/* High contrast, light: darker orange so small orange text and buttons pass AA on cream. */
html[data-high-contrast="true"]:not([data-theme="dark"]) .nav-link[aria-current],html[data-high-contrast="true"]:not([data-theme="dark"]) .nav-signin.nav-link{color:#c42a08!important}

/* Dark theme: light cards that would glare on #111110. */
html[data-theme="dark"] .dz-faq-tab:not([aria-selected="true"]):not(.is-active){background:#1b1b1a!important;border-color:#3a3936!important}
html[data-theme="dark"] .dz-legal-inline-btn{background:#1b1b1a!important;border-color:#3a3936!important;color:#ff8a70!important}
/* High contrast: orange text inside dark sections brightened for AA on dark. */
html[data-high-contrast="true"] :is(.pin-slide[data-theme="dark"],.sec.dark,.closing,footer.foot){--accent:#ff6a47!important;--orange:#ff6a47!important;--rd-accent:#ff6a47!important}
html[data-theme="dark"] .foot-logo,html[data-theme="dark"] .foot-logo path,html[data-theme="dark"] .foot-wordmark{color:#f5f2df!important;fill:#f5f2df!important}
/* AA fixes in Dark and High contrast for the cookie bar and nav links. */
html:is([data-theme="dark"],[data-high-contrast="true"]) .dz-cookie-bar .dz-cookie-btn--accept{background:#c42a08!important;border-color:#c42a08!important;color:#fff!important}
html[data-theme="dark"]:not([data-nav="orange"]) body #nav#nav a:is(.nav-signin,.nav-link,.nav-page){color:#f5f2df!important}
html[data-theme="dark"]:not([data-nav="orange"]) body #nav#nav span:is(.nav-signin,.nav-link){color:#ff6a47!important}
html[data-high-contrast="true"]:not([data-theme="dark"]):not([data-nav="dark"]):not([data-nav="orange"]) body #nav#nav span:is(.nav-signin,.nav-link),
html[data-high-contrast="true"]:not([data-theme="dark"]) a.is-active,html[data-high-contrast="true"]:not([data-theme="dark"]) .dz-legal-inline-btn{color:#c42a08!important}
