/* Light-mode text and interaction roles; component geometry remains shared. */
html:not(.portal-dark){
  --light-ink:#172f40;
  --light-muted:#485d6b;
  --light-accent:#a34320;
  --light-control:#718895;
  --light-focus:#a64b24;
  --light-rating:#8a5a0c;
  --light-paper:#ffffff;
  --light-surface:#edf2f3;
  --light-selected-map:#e5754f;
}
html:not(.portal-dark) :is(input,textarea)::placeholder{color:var(--light-muted);opacity:1}
html:not(.portal-dark) .admin-page .admin-nav-search input::placeholder{color:var(--light-muted);opacity:1}
html:not(.portal-dark) #filters input::placeholder,
html:not(.portal-dark) #location-dialog input::placeholder{color:var(--light-muted);opacity:1}

/* The location picker is a separate dialog from the shared content modal. */
html:not(.portal-dark) #location-dialog :is(.location-header p:last-child,.place-option small,.place-status,.radius-label small,.location-footer small,.map-credit,.places-credit){color:var(--light-muted)}
html:not(.portal-dark) #location-dialog :is(.map-credit,.places-credit) :is(a,span){color:inherit}
html:not(.portal-dark) #location-dialog .location-header .eyebrow{color:var(--light-accent)}
html:not(.portal-dark) #location-dialog :is(.city-search-label,.radius-label select){border-color:var(--light-control);background:var(--light-paper)}
html:not(.portal-dark) #location-dialog :is(.city-search-label,.location-field):focus-within{outline:3px solid var(--light-focus);outline-offset:3px;border-color:var(--light-focus);box-shadow:none}
html:not(.portal-dark) #location-dialog :is(button,select,summary,[tabindex]):focus-visible{outline:3px solid var(--light-focus);outline-offset:3px}
html:not(.portal-dark) #location-dialog :is(.poland-map text,.poland-map g:has(path.selected) text){fill:var(--light-ink)}
html:not(.portal-dark) #location-dialog :is(.poland-map path.selected,.poland-map path:hover){fill:var(--light-selected-map)}

html:not(.portal-dark) .discover-city-grid span,
html:not(.portal-dark) .discover-app-steps p,
html:not(.portal-dark) .discover-help-strip p,
html:not(.portal-dark) .discover-faq summary>span,
html:not(.portal-dark) .info-copy,
html:not(.portal-dark) .discover-radio-group label:has(input:checked) small,
html:not(.portal-dark) #modal .auth-narrow .info-copy,
html:not(.portal-dark) .guest-publishing .checkbox-label.guest-wide{color:var(--light-muted)}
html:not(.portal-dark) :is(.text-link,.management-text-link):hover,
html:not(.portal-dark) .home-article .text-link:hover,
html:not(.portal-dark) .discover-city-grid>a:hover strong,
html:not(.portal-dark) .discover-region-grid>a:hover{color:var(--light-accent)}
html:not(.portal-dark) .view-switch button:not(.selected){color:var(--light-muted)}
html:not(.portal-dark) .engagement-stars{color:var(--light-rating)}

/* Waiting must not fade explanatory text, errors or the labels of disabled actions. */
html:not(.portal-dark) :is(.finance-panel form[aria-busy=true],.engagement-panel form[aria-busy=true],.community-plus [aria-busy=true],.auth-content form[aria-busy=true] .auth-submit){opacity:1;cursor:progress}
html:not(.portal-dark) :is(button.button:disabled,button.button:disabled:hover,.auth-content button:disabled,.email-form button:disabled){opacity:1;background:var(--light-surface);color:var(--light-muted);border-color:var(--light-control);border-style:dashed;cursor:not-allowed}

/* Native select text stays readable without mobile browser zoom in either theme. */
@media(max-width:680px){#sort{font-size:16px;max-width:100%}}
