/* The closed control shares the page background in both themes. */
.townie-city { position:relative; width:fit-content; max-width:100%; }
.townie-city > summary {
  display:inline-flex; align-items:center; gap:8px; min-height:44px; max-width:100%; padding:0;
  border:0; background:transparent; box-shadow:none; color:inherit; list-style:none;
  font:600 16px/1.25 Involve,Arial,sans-serif; letter-spacing:normal; text-transform:none; cursor:pointer;
}
.townie-city > summary::-webkit-details-marker { display:none; }
.townie-city > summary::marker { content:""; }
.townie-city > summary svg { width:18px; height:18px; flex-shrink:0; }
.townie-city > summary svg:first-child { color:var(--violet,var(--purple-dark)); }
.townie-city > summary svg:last-child { width:14px; height:14px; }
.townie-city > summary:hover span { text-decoration:underline; text-underline-offset:4px; }
.townie-city > summary:focus-visible { outline:2px solid var(--violet,var(--purple-dark)); outline-offset:3px; border-radius:3px; }
.tc-fallback { position:absolute; z-index:8; width:max-content; max-width:85vw; max-height:55vh; overflow:auto; border-radius:15px; background:var(--paper,#fff); box-shadow:0 10px 30px #21132b26; padding:6px; }
.tc-fallback a { display:block; padding:8px 12px; font-size:15px; text-transform:none; letter-spacing:normal; }
.tc-dialog {
  --tc-bg:#fff; --tc-text:#2e2536; --tc-muted:#706778; --tc-soft:#f6f3f8; --tc-accent:#6842bf; --tc-chosen:#f2ecfb; --tc-line:#e8e1ee;
  position:fixed; inset:auto; left:var(--tc-left,12px); top:var(--tc-top,75px); margin:0;
  width:min(396px,calc(100% - 24px)); max-width:none; max-height:none; padding:0;
  background:var(--tc-bg); color:var(--tc-text); border:1px solid var(--tc-line); border-radius:23px;
  box-shadow:0 16px 60px #24152d33; font:16px/1.3 Nunito,Arial,sans-serif;
}
html[data-theme=dark] .tc-dialog { --tc-bg:#251e2e; --tc-text:#f3eef8; --tc-muted:#c0b4c9; --tc-soft:#32283c; --tc-accent:#c7a7ff; --tc-chosen:#40314c; --tc-line:#4b4055; }
.tc-dialog::backdrop { background:#291a352d; }
html[data-theme=dark] .tc-dialog::backdrop { background:#0906106b; }
html:has(.tc-dialog[open]) { overflow:hidden; }
.tc-dialog [hidden] { display:none!important; }
.tc-inner { display:flex; flex-direction:column; max-height:min(640px,calc(100vh - var(--tc-top) - 12px)); max-height:min(640px,calc(100dvh - var(--tc-top) - 12px)); overflow:hidden; border-radius:inherit; }
.tc-head,.tc-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-shrink:0; }
.tc-head { padding:14px 15px 9px 21px; }
.tc-head h2 { font:600 28px/1.2 Involve,Arial,sans-serif; letter-spacing:-.05em; color:inherit; margin:0; outline:none; }
.tc-close,.tc-clear { width:38px; height:38px; border:0; border-radius:50%; background:var(--tc-soft); color:var(--tc-muted); font:26px/1 Nunito,Arial,sans-serif; }
.tc-search { display:flex; align-items:center; gap:12px; flex-shrink:0; border-radius:13px; margin:0 15px 8px; padding:0 12px; background:var(--tc-soft); }
.tc-search svg { width:18px; height:18px; color:var(--tc-muted); flex:none; }
.tc-search input { width:100%; min-width:0; height:46px; padding:0; border:0; box-shadow:none; outline:none; background:transparent; color:var(--tc-text); font:inherit; }
.tc-search input::placeholder { color:var(--tc-muted); opacity:1; }
.tc-search input::-webkit-search-cancel-button { display:none; }
.tc-clear { flex:none; width:32px; height:32px; font-size:22px; }
.tc-rows { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 8px 8px; scrollbar-width:thin; }
.tc-group { margin:12px 13px 3px; color:var(--tc-muted); font:800 12px/1.4 Nunito,Arial,sans-serif; }
.tc-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 13px; min-height:44px; border-radius:12px; color:var(--tc-text); text-decoration:none; }
.tc-row:hover,.tc-row:focus-visible { background:var(--tc-soft); }
.tc-row[aria-current=page] { color:var(--tc-accent); background:var(--tc-chosen); }
.tc-row strong,.tc-row small { display:block; }
.tc-row strong { font:600 16px/1.22 Involve,Arial,sans-serif; }
.tc-row small { margin-top:2px; font-size:12px; color:var(--tc-muted); }
.tc-row[aria-current=page]::after { content:""; width:7px; height:12px; margin-right:6px; border:solid currentColor; border-width:0 2px 2px 0; transform:rotate(45deg); }
.tc-none { padding:20px 13px; color:var(--tc-muted); }
.tc-foot { padding:8px 21px; border-top:1px solid var(--tc-line); min-height:50px; }
.tc-foot button { border:0; padding:6px 0; min-height:34px; background:none; color:var(--tc-accent); font:750 15px/1.3 Nunito,Arial,sans-serif; }
.tc-foot span { color:var(--tc-muted); font-size:13px; }
.tc-handle { display:none; }
.tc-dialog :is(a,button):focus-visible { outline:2px solid var(--tc-accent); outline-offset:-2px; }
@media(max-width:700px) {
  .tc-dialog { inset:auto 0 0; width:100%; border-bottom:0; border-radius:24px 24px 0 0; }
  .tc-inner { max-height:min(84vh,720px); max-height:min(84dvh,720px); }
  .tc-handle { display:block; flex-shrink:0; width:36px; height:4px; background:var(--tc-line); border-radius:8px; margin:8px auto 0; }
  .tc-head { padding-top:6px; }
  .tc-rows { min-height:min(160px,25vh); }
  .tc-foot { padding-bottom:max(10px,env(safe-area-inset-bottom)); }
}
