/* The city button, question bar and dialog of data/city.js. The same file in every repository of the
   network (copy it unchanged from work-hours data/city.css). Each site gives it its brand by setting these
   custom properties in its own stylesheet; the values after the commas are only fallbacks.
     --nc-fg, --nc-muted, --nc-bg, --nc-surface, --nc-border, --nc-accent, --nc-accent-fg, --nc-radius, --nc-font
   Every rule sits in :where(), so it weighs nothing: a site's own rule for the same element wins whatever the
   order of the stylesheets. Only the [hidden] rule keeps its weight. */

[data-nc][hidden], .nc-bar [hidden], .nc-dialog [hidden], [data-nc-region][hidden], [data-nc-city][hidden],
[data-nc-unset][hidden], [data-nc-nearest][hidden], [data-nc-if][hidden] { display: none !important; }

:where([data-nc]) { display: flex; align-items: center; min-width: 0; }

:where(.nc-chip) {
  display: inline-flex; align-items: center; gap: .3em; min-width: 0; max-width: 11rem;
  min-height: 36px; padding: .25em .6em; margin: 0;
  font: inherit; font-size: .9em; line-height: 1.2; color: var(--nc-fg, inherit);
  background: transparent; border: 1px solid var(--nc-border, currentColor); border-radius: 999px; cursor: pointer;
}
:where(.nc-chip:hover) { border-color: var(--nc-accent, currentColor); }
:where(.nc-chip:focus-visible, .nc-btn:focus-visible, .nc-result:focus-visible, .nc-input:focus-visible, .nc-select:focus-visible) {
  outline: 2px solid var(--nc-accent, currentColor); outline-offset: 2px;
}
:where(.nc-chip-label) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.nc-pin) { width: 1.05em; height: 1.05em; flex: none; }
@media (max-width: 420px) {
  :where(.nc-chip) { max-width: 7.5rem; padding: .25em .5em; }
}

:where(.nc-bar) { background: var(--nc-surface, #f4f4f4); color: var(--nc-fg, inherit); border-bottom: 1px solid var(--nc-border, #ddd); font-family: var(--nc-font, inherit); }
:where(.nc-bar-in) {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem;
  max-width: 72rem; margin: 0 auto; padding: .5rem 16px;
}
:where(.nc-bar-q) { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
:where(.nc-bar-actions) { display: flex; align-items: center; gap: .5rem; }

:where(.nc-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 36px; padding: .35em .9em; margin: 0;
  font: inherit; line-height: 1.2; color: var(--nc-fg, inherit); background: var(--nc-bg, #fff);
  border: 1px solid var(--nc-border, #ccc); border-radius: var(--nc-radius, 8px); cursor: pointer;
}
:where(.nc-btn:hover) { border-color: var(--nc-accent, currentColor); }
:where(.nc-btn-primary) { color: var(--nc-accent-fg, #fff); background: var(--nc-accent, #333); border-color: var(--nc-accent, #333); }
:where(.nc-btn-icon) { min-width: 36px; padding: .35em .5em; font-size: 1.1em; }

:where(.nc-dialog) {
  width: min(32rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; margin: auto;
  color: var(--nc-fg, inherit); background: var(--nc-bg, #fff); border: 1px solid var(--nc-border, #ccc);
  border-radius: var(--nc-radius, 8px); font-family: var(--nc-font, inherit); box-sizing: border-box;
}
:where(.nc-dialog::backdrop) { background: rgba(0, 0, 0, .45); }
:where(.nc-dialog-in) { display: flex; flex-direction: column; gap: .6rem; padding: 1rem 1rem 1.1rem; }
:where(.nc-head) { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
:where(.nc-title) { margin: 0; font-size: 1.2rem; line-height: 1.3; overflow-wrap: anywhere; }
:where(.nc-label) { font-weight: 600; font-size: .95em; }
:where(.nc-input, .nc-select) {
  width: 100%; min-height: 40px; padding: .4em .6em; box-sizing: border-box; font: inherit;
  color: var(--nc-fg, inherit); background: var(--nc-bg, #fff); border: 1px solid var(--nc-border, #ccc); border-radius: var(--nc-radius, 8px);
}
:where(.nc-results) { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
:where(.nc-results:empty) { display: none; }
:where(.nc-result) {
  display: flex; width: 100%; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .1rem .6rem;
  min-height: 40px; padding: .4em .6em; margin: 0; text-align: left; font: inherit; color: var(--nc-fg, inherit);
  background: var(--nc-surface, #f4f4f4); border: 0; border-radius: var(--nc-radius, 8px); cursor: pointer;
}
:where(.nc-result:hover) { outline: 1px solid var(--nc-accent, currentColor); }
:where(.nc-result-name) { font-weight: 600; }
:where(.nc-result-region, .nc-empty, .nc-note, .nc-local-extra) { color: var(--nc-muted, inherit); }
:where(.nc-result-region, .nc-note, .nc-local-extra) { font-size: .85em; }
:where(.nc-empty) { padding: .4em .6em; }
:where(.nc-locate) { align-self: flex-start; }
:where(.nc-status) { margin: 0; }
:where(.nc-status:empty) { display: none; }
:where(.nc-local:empty) { display: none; }
:where(.nc-local-title) { margin: .3rem 0 .2rem; font-size: 1rem; }
:where(.nc-local ul) { margin: 0; padding-left: 1.2em; }
:where(.nc-local li) { margin: .2em 0; }
:where(.nc-reset) { align-self: flex-start; }
:where(.nc-note) { margin: .2rem 0 0; }
:where(.nc-note a, .nc-local a) { color: var(--nc-accent, inherit); }
