/* Automatic theme controls share a city while each area keeps its own mode. */
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) {
 --auto-ink:var(--church-ink,#f1dfbd);--auto-muted:var(--church-muted,#c5b18e);
 --auto-line:var(--church-line,#8b6b3f);--auto-panel:var(--church-panel,#21180f);
 --auto-accent:var(--church-accent,#edc77d);--auto-button-ink:#231807;
}
:root[data-theme="heirloom_light"] body[data-page] #content .appearance-setting {
 --auto-ink:#45301e;--auto-muted:#715d46;--auto-line:#c4a579;
 --auto-panel:#fcf8ed;--auto-accent:#92652c;--auto-button-ink:#352311;
}
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option {
 display:flex;align-items:center;gap:13px;width:100%;box-sizing:border-box;min-height:62px;
 margin:18px 0 0;padding:15px 16px;border:1px solid var(--auto-line);border-radius:11px;
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);background:var(--auto-panel);cursor:pointer;
 font:20px/1.3 Georgia,serif;
}
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option:has(:checked) {
 border-color:var(--auto-accent);box-shadow:inset 0 0 0 1px var(--auto-accent);
}
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option input {
 position:static;opacity:1;appearance:auto;width:20px;height:20px;min-height:0!important;
 flex:0 0 20px;margin:0;padding:0;accent-color:var(--auto-accent);
}
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option small {
 display:block;color:var(--auto-muted)!important;--light-text:var(--auto-muted);
 font:13px/1.5 system-ui,sans-serif;margin-top:3px;
}
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option:focus-within {
 outline:2px solid var(--auto-accent);outline-offset:3px;
}
:root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-status {
 font:14px/1.5 system-ui,sans-serif;margin:12px 0 0;color:var(--auto-muted)!important;
 --light-text:var(--auto-muted);
}
:root body[data-page] #content .general-location-settings {
 margin:22px 0 0;padding:20px 0 0;border-top:1px solid var(--auto-line);
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);min-width:0;
}
:root body[data-page] #content .general-location-settings h3 {
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);font:23px/1.3 Georgia,serif;margin:0 0 9px;
}
:root body[data-page] #content .general-location-settings p {
 color:var(--auto-muted)!important;--light-text:var(--auto-muted);font:13px/1.6 system-ui,sans-serif;margin:9px 0;
}
:root body[data-page] #content .general-location-settings .general-location-saved {
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);font-size:15px;overflow-wrap:anywhere;
}
:root body[data-page] #content .general-location-settings details {margin:14px 0 0;padding:0;border:0;background:none}
:root body[data-page] #content .general-location-settings summary {
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);font:16px/1.4 system-ui,sans-serif;
 min-height:44px;cursor:pointer;padding:10px 0;box-sizing:border-box;
}
:root body[data-page] #content .general-location-settings form {margin:14px 0 0;display:flex;gap:10px;align-items:end;flex-wrap:wrap}
:root body[data-page] #content .general-location-settings form label {
 display:block;flex:1 1 190px;margin:0;font:14px/1.5 system-ui,sans-serif;
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);
}
:root body[data-page] #content .general-location-settings input[type="search"] {
 display:block;box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:7px 0 0;
 border:1px solid var(--auto-line);border-radius:8px;background:var(--auto-panel);
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);padding:11px 12px;font:16px/1.4 system-ui,sans-serif;
}
:root body[data-page] #content .general-location-settings input[type="search"]::placeholder {color:var(--auto-muted);opacity:.85}
:root body[data-page] #content .general-location-settings button {
 min-height:48px;margin:0;padding:11px 15px;border:1px solid var(--auto-line);border-radius:8px;
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);background:var(--auto-panel);box-shadow:none;
 font:15px/1.4 system-ui,sans-serif;cursor:pointer;
}
:root body[data-page] #content .general-location-settings .general-location-use {margin-top:15px;border-color:var(--auto-accent)}
:root body[data-page] #content .general-location-settings button:disabled {opacity:.5;cursor:default}
:root body[data-page] #content .general-location-settings :is(button,input,summary,a):focus-visible {
 outline:2px solid var(--auto-accent);outline-offset:3px;
}
:root body[data-page] #content .general-location-settings fieldset {border:0;min-width:0;padding:0;margin:18px 0 0}
:root body[data-page] #content .general-location-settings legend {
 font:15px/1.4 system-ui,sans-serif;color:var(--auto-ink)!important;--light-text:var(--auto-ink);padding:0;margin-bottom:10px;
}
:root body[data-page] #content .general-location-settings .general-location-result {
 display:flex;align-items:center;gap:12px;min-height:50px;box-sizing:border-box;padding:12px;
 margin:0 0 8px;border:1px solid var(--auto-line);border-radius:8px;background:var(--auto-panel);
 color:var(--auto-ink)!important;--light-text:var(--auto-ink);font:15px/1.4 system-ui,sans-serif;cursor:pointer;
}
:root body[data-page] #content .general-location-settings .general-location-result span {min-width:0;overflow-wrap:anywhere}
:root body[data-page] #content .general-location-settings .general-location-result:has(:checked) {border-color:var(--auto-accent)}
:root body[data-page] #content .general-location-settings input[type="radio"] {
 position:static;appearance:auto;opacity:1;width:20px;height:20px;min-height:0!important;
 flex:0 0 20px;padding:0;margin:0;accent-color:var(--auto-accent);
}
:root body[data-page] #content .general-location-settings a {color:var(--auto-muted)!important;--light-text:var(--auto-muted);text-decoration:underline}
:root body[data-page] #content .general-location-settings .general-location-search-help,
:root body[data-page] #content .general-location-settings .general-location-status {font-size:12px;margin-top:14px}
:root body[data-page] #content .general-location-settings [hidden] {display:none!important}
@media(min-width:1000px){
 :root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option {font-size:24px;padding:19px 21px}
 :root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-option small,
 :root body[data-page] #content :is(.appearance-setting,.church-theme-setting) .theme-auto-status {font-size:16px}
 :root body[data-page] #content .general-location-settings h3 {font-size:27px}
 :root body[data-page] #content .general-location-settings p,
 :root body[data-page] #content .general-location-settings .general-location-saved,
 :root body[data-page] #content .general-location-settings form label {font-size:16px}
}

:root body[data-page] #content .theme-auto-symbol{margin-left:auto;flex:none;white-space:nowrap;font:22px/1 Georgia,serif}

/* Automatic daylight and city editing belong to the Heirloom Light preference.
   Active automatic mode keeps this group available even after sunset. */
:root body[data-page] #content .heirloom-light-settings {
 margin:22px 0 0;padding:20px 0 0;border-top:1px solid var(--auto-line);
 color:var(--auto-ink);--light-text:var(--auto-ink);min-width:0;
}
:root body[data-page] #content .heirloom-light-settings[hidden] {display:none!important}
:root body[data-page] #content .heirloom-light-settings>h3 {
 font:400 23px/1.3 Georgia,serif;color:var(--auto-ink);--light-text:var(--auto-ink);margin:0 0 9px;
}
:root body[data-page] #content .heirloom-light-settings-intro {
 font:13px/1.6 system-ui,sans-serif;color:var(--auto-muted);--light-text:var(--auto-muted);margin:0;
}
