/**
 * city-combo.css: the city box that types and suggests (city-combo.js).
 *
 * One file for every place the box is drawn: the three site themes (ello,
 * glass, rose: --paper, --ink, --line, --rose-deep) and the back office (OS:
 * --surface, --text, --line, --danger, light and dark). Each colour reads the
 * OS token first, then the theme's, then a plain fallback, so the list
 * matches whichever page it opens on without a copy per theme.
 *
 * The list opens over what is below it (absolute, inside its own field), at
 * most six rows tall with its own scroll, rows 44px for a thumb. 16px type so
 * iOS never zooms on the box.
 */
.cc{position:relative;width:100%}
.cc > input{display:block;width:100%;box-sizing:border-box;min-height:44px;font-size:16px}
.cc-list{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 4px);margin:0;padding:4px;list-style:none;
  max-height:min(272px,46vh);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:var(--surface,var(--paper,#fff));color:var(--text,var(--ink,#1e2e44));
  border:1px solid var(--line,rgba(30,46,68,.16));border-radius:12px;box-shadow:0 14px 34px rgba(20,16,18,.18)}
/* a box in a half-width column is ~150px on a phone, too narrow for "Lake
   Oswego" and its count: the list grows to its widest row, never past the
   screen (every city box sits in a left or full-width column) */
.cc-list{right:auto;min-width:100%;width:max-content;max-width:min(360px,calc(100vw - 32px));box-sizing:border-box}
.cc-list[hidden]{display:none}
.cc-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 12px;
  border-radius:8px;cursor:pointer;font-size:16px;line-height:1.25;touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.cc-list li[aria-selected=true]{background:color-mix(in srgb,var(--accent,var(--rose-deep,#2a5f96)) 14%,transparent)}
@media (hover:hover){.cc-list li:hover{background:color-mix(in srgb,var(--accent,var(--rose-deep,#2a5f96)) 9%,transparent)}}
.cc-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-name b{font-weight:700}
.cc-n{flex:none;font-size:13px;color:var(--text-soft,var(--ink-2,#4a5a72))}
.cc-msg{margin:6px 0 0;font-size:14px;line-height:1.4;color:var(--danger,#a3242f);text-transform:none;letter-spacing:normal;font-weight:500}
.cc-msg:empty{display:none}
.cc > input[aria-invalid=true]{border-color:var(--danger,#a3242f)}
/* the drawer gives the city its own full row (it was a menu of the 40
   busiest; it is now a box that takes any city the feed knows) */
.hfacets .hf-city{grid-column:1 / -1}
/* on the site the box wears the filter bar's pill, so it reads as one of
   the menus beside it (the themes' .hfbar select, without the arrow) */
.hfbar .cc > input{padding:13px 18px;border:1px solid var(--line,rgba(30,46,68,.16));border-radius:99px;background:#fff;
  color:var(--ink,#1e2e44);font-family:inherit;-webkit-appearance:none;appearance:none}
.hfbar .cc > input::placeholder{color:var(--slate,#4a5a72);opacity:1}
.hfbar .cc > input:focus{outline:2px solid var(--rose-deep,#2a5f96);outline-offset:1px}
.hfbar .cc > input[aria-invalid=true]{border-color:var(--danger,#a3242f)}
.hfacets .cc > input{min-height:48px}
/* glass and rose lay the filters inline on a desktop (each .hf-sec is
   display:contents in a wrapping flex row): there the box takes a menu's
   share of the row, not all of it */
.hfacets .cc{flex:1 1 200px;width:auto;min-width:180px}
