/* R009.7A.2 | Public form focus + optional home theme. No map/GPS or data logic. */
body.as24-r004-site{--as24-focus:#3e719e;--as24-focus-soft:#c5d9ed}
/* A calm focus treatment, visible with mouse, touch and keyboard. */
body.as24-r004-site main :where(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]),select,textarea):focus {
 outline:2px solid var(--as24-focus);outline-offset:1px;box-shadow:none;
}
body.as24-r004-site main :is(input[type=checkbox],input[type=radio],input[type=range],input[type=color]):focus-visible{outline:2px solid var(--as24-focus);outline-offset:3px}
/* R004 search: move the focus indicator onto the rounded field, not the tiny text input. */
body.as24-r004-site .r004-search .r004-search-field:focus-within{border-color:var(--as24-focus);box-shadow:0 0 0 2px var(--as24-focus-soft)}
body.as24-r004-site .r004-search .r004-search-field :is(input,select):focus,body.as24-r004-site .r004-search .r004-search-field :is(input,select):focus-visible{outline:none;box-shadow:none}
body.as24-r004-site .r004-search .r004-search-field :is(input,select){border-radius:4px}
body.as24-r004-site .r0064-location-form select:focus{outline:2px solid var(--as24-focus);outline-offset:1px}
/* Compact icon-only switch. Keep the original dark brand header in both modes. */
body.as24-r004-site .as24-r0089-actions .as24-r0097a2-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;height:38px;min-width:38px;padding:0;margin:0;border:1px solid #657e98;border-radius:50%;background:#142d45;color:#ffc36f;cursor:pointer;line-height:1;box-shadow:none;touch-action:manipulation}
body.as24-r004-site .as24-r0097a2-theme-toggle[hidden]{display:none!important}
body.as24-r004-site .as24-r0097a2-theme-toggle:hover{background:#23415c;border-color:#ffb657;color:#ffe0aa}
body.as24-r004-site .as24-r0097a2-theme-toggle:focus-visible{outline:2px solid #9bc9f5;outline-offset:3px}
.as24-r0097a2-theme-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.as24-r0097a2-theme-toggle .as24-theme-sun{display:none}
html[data-as24-home-theme=dark] .as24-r0097a2-theme-toggle .as24-theme-sun{display:block}
html[data-as24-home-theme=dark] .as24-r0097a2-theme-toggle .as24-theme-moon{display:none}
/* Mobile width is constrained by logo + registration/panel + theme + menu. */
@media(max-width:455px){
 html[data-as24-home-theme] body.as24-r004-site .r004-header-inner.as24-r0089-inner>.r004-logo.as24-logo-link{width:clamp(112px,34vw,151px);min-width:0;flex:0 1 auto}
 html[data-as24-home-theme] body.as24-r004-site .as24-r0089-actions{gap:5px}
 html[data-as24-home-theme] body.as24-r004-site .as24-r0089-actions .as24-r0097a2-theme-toggle{width:36px;height:36px;min-width:36px;flex-basis:36px}
 html[data-as24-home-theme] body.as24-r004-site .r004-header .r004-register.as24-r0089-register{padding-inline:7px;min-width:0}
}
@media(max-width:350px){
 html[data-as24-home-theme] body.as24-r004-site .as24-r0089-inner{padding-inline:8px;gap:4px}
 html[data-as24-home-theme] body.as24-r004-site .r004-header-inner.as24-r0089-inner>.r004-logo.as24-logo-link{width:108px;min-width:0}
 html[data-as24-home-theme] body.as24-r004-site .as24-r0089-actions{gap:4px;margin-left:auto}
 html[data-as24-home-theme] body.as24-r004-site .r004-header .r004-register.as24-r0089-register{padding-inline:6px;font-size:10px}
}
/* R004 homepage & city variants only. Inner-page layouts retain their existing palettes. */
html[data-as24-home-theme=dark] body.as24-r004-site{
 --g4-light:#091b2d;--g4-ink:#eaf3fc;--g4-line:#415b75;
 --as24-focus:#8cbff2;--as24-focus-soft:#375c80;
 --home-bg:#091b2d;--home-panel:#132b42;--home-soft:#1a344d;--home-input:#0e2439;
 --home-ink:#eef5fc;--home-muted:#b6cbdf;--home-border:#415b75;--home-link:#ffbc65;
 background:var(--home-bg);color:var(--home-ink);color-scheme:dark;
}
html[data-as24-home-theme=dark] .r004-white-paper{background:linear-gradient(#10263c,#091b2d 80%);color:var(--home-ink)}
html[data-as24-home-theme=dark] .r004-journey{background:linear-gradient(120deg,#112b43,#0e2236);border-color:var(--home-border);color:var(--home-ink)}
html[data-as24-home-theme=dark] :is(.r004-branch,.r004-empty,.r004-service-cards a,.r004-review-cards blockquote,.r004-reviews-pending){background:var(--home-panel);color:var(--home-ink);border-color:var(--home-border);box-shadow:0 6px 18px #00102033}
html[data-as24-home-theme=dark] .r004-branch.r005-demo-home-card{background:var(--home-panel)!important}
html[data-as24-home-theme=dark] :is(.r004-titleline h2,.r004-branch h3,.r004-journey h2,.r004-three-steps h3,.r004-testimonials h3){color:var(--home-ink)}
html[data-as24-home-theme=dark] :is(.r004-titleline p,.r004-branch-body>p,.r004-branch-facts,.r004-branch-state,.r004-empty p,.r004-three-steps p,.r004-review-cards cite,.r005-demo-brief){color:var(--home-muted)}
html[data-as24-home-theme=dark] :is(.r004-titleline>a,.r004-branch h3 a:hover,.r004-service-cards a:hover){color:var(--home-link)}
html[data-as24-home-theme=dark] .r005-demo-link{color:var(--home-link)!important}
html[data-as24-home-theme=dark] :is(.r004-actions a,.r004-ghost-btn){background:var(--home-soft);color:var(--home-ink);border-color:var(--home-border)}
html[data-as24-home-theme=dark] .r004-actions a:first-child{color:#86e4b6}
html[data-as24-home-theme=dark] .r004-actions a:hover{background:#294660;color:#fff;border-color:var(--home-link)}
html[data-as24-home-theme=dark] .r004-green{color:#86e4b6}
html[data-as24-home-theme=dark] .r004-rating{color:#ffcc83}
html[data-as24-home-theme=dark] .r004-service-cards a:nth-child(3n) svg{color:#91c5f7}
html[data-as24-home-theme=dark] .r004-three-steps svg{color:#a6ccef}
html[data-as24-home-theme=dark] .r004-search{background:#0e2439e6;border-color:var(--home-border)}
html[data-as24-home-theme=dark] .r004-search .r004-search-field{background:var(--home-panel);border-color:var(--home-border);color:var(--home-ink)}
html[data-as24-home-theme=dark] .r004-search-field :is(b,input,select){color:var(--home-ink)}
html[data-as24-home-theme=dark] .r004-search-field input::placeholder{color:var(--home-muted);opacity:1}
html[data-as24-home-theme=dark] .r0064-location-form select{background:var(--home-input);color:var(--home-ink);border-color:var(--home-border)}
html[data-as24-home-theme=dark] :is(.r004-search,.r0064-location-form) select :is(option,optgroup){background:var(--home-input);color:var(--home-ink)}
html[data-as24-home-theme=dark] .r004-search .r004-search-field:focus-within{border-color:var(--as24-focus)}
html[data-as24-home-theme=dark] .as24-r0095-results{background:var(--home-panel);color:var(--home-ink);border-color:var(--home-border)}
html[data-as24-home-theme=dark] :is(.as24-r0095-result-heading h2,.as24-r0095-card h3){color:var(--home-ink)}
html[data-as24-home-theme=dark] :is(#as24-r0095-status,.as24-r0095-meta,.as24-r0095-result-footer){color:var(--home-muted)}
html[data-as24-home-theme=dark] .as24-r0095-card{background:var(--home-input);color:var(--home-ink);border-color:var(--home-border)}
html[data-as24-home-theme=dark] :is(.as24-r0095-close,.as24-r0095-actions a:not(:first-child)){background:var(--home-soft);color:var(--home-ink);border-color:var(--home-border)}
html[data-as24-home-theme=dark] .as24-r0095-result-footer{border-color:var(--home-border)}
html[data-as24-home-theme=dark] :is(.as24-r0095-eyebrow,.as24-r0095-result-footer a){color:var(--home-link)}
html[data-as24-home-theme=dark] .as24-r0095-distance{background:#413421;color:#ffd395}
/* Native select popup uses matching color-scheme where supported. */
body.as24-r004-site:not(.dashboard-body) .r004-search-field select,body.as24-r004-site .r0064-location-form select{color-scheme:light}
body.as24-r004-site:not(.dashboard-body) .r004-search-field select option,body.as24-r004-site .r0064-location-form select :is(option,optgroup){color:#14283e;background:#fff}
html[data-as24-home-theme=dark] body.as24-r004-site .r004-search-field select,html[data-as24-home-theme=dark] body.as24-r004-site .r0064-location-form select{color-scheme:dark}
html[data-as24-home-theme=dark] body.as24-r004-site :is(.r004-search-field,.r0064-location-form) select :is(option,optgroup){color:var(--home-ink);background:var(--home-input)}
@media(forced-colors:active){body.as24-r004-site .r004-search .r004-search-field:focus-within{outline:2px solid Highlight;outline-offset:2px}}
