/* =============================================================================
   YUM — RESTAURANTS NEAR ME (Nov 2026). The console, filters and distance
   list drawn by assets/js/near.js. Tokens only (--ink, --line, --accent,
   --free, --paper), so the dark edition needs only the lifts at the end. The
   shape follows the collection console and the quick-cities panel: a bar
   with the green status read-out, then a body of fields and hairline rows.
   ========================================================================== */

#near .nm { margin-top: 1.4rem; }
.nm-acts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nm-seg { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.nm-seg__b[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

#near[data-state="warn"] .nm-status,
#near[data-state="far"] .nm-status { color: var(--accent); }
#near[data-state="busy"] .yum-status__dot { background: var(--free); }

.nm-find { display: flex; align-items: center; gap: .6rem .8rem; flex-wrap: wrap; }
.nm-go { display: inline-flex; align-items: center; gap: .5rem; }
.nm-go[disabled] { opacity: .6; cursor: progress; }
.nm-go__i { flex: 0 0 auto; }
.nm-or { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.nm-city { display: flex; gap: .45rem; flex: 1 1 18rem; min-width: 0; margin: 0; }
.nm-city__in { flex: 1 1 auto; min-width: 0; }
.nm-city__go { flex: 0 0 auto; }

.nm-filters { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.nm-filters .tbtn { font-size: .62rem; padding: .42rem .75rem; }
.nm-rad { width: auto; flex: 0 0 auto; font-size: .82rem; padding: .5rem 2rem .5rem .75rem; }

.nm-note { margin: 0; font-size: .86rem; line-height: 1.5; color: var(--ink); padding: .75rem .9rem;
  border: 1px solid var(--line); border-left: 3px solid var(--ink-55); border-radius: 9px; background: var(--paper); }
.nm-note[hidden] { display: none; }
.nm-note--warn, .nm-note--far { border-left-color: var(--accent); }
.nm-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.nm-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nm-list:empty { display: none; }
.nr { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr) auto auto; align-items: center; gap: .3rem 1rem;
  padding: .8rem .2rem; border-bottom: 1px solid var(--line-soft); }
.nr__rk { font-size: .62rem; font-weight: 700; color: var(--accent); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.nr__body { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.nr__hd { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; }
.nr__name { font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.nr__sub { font-size: .76rem; color: var(--ink-55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr__badge { font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  padding: .14rem .45rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-55); line-height: 1.3; }
.nr__badge--star { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); letter-spacing: .04em; }
.nr__badge--k { color: var(--free); border-color: color-mix(in srgb, var(--free) 45%, transparent); background: var(--free-wash); }
.nr__d { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .05rem; white-space: nowrap; }
.nr__d b { font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nr__d small { font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-55); }
.nr__map { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  white-space: nowrap; text-decoration: none; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 999px; }
.nr__map:hover, .nr__map:focus-visible { border-color: var(--accent); }

.nm-more { justify-self: start; }
.nm-more[hidden] { display: none; }
.nm-fine { margin: 0; font-size: .72rem; line-height: 1.5; color: var(--ink-55); }

html[data-dark] .nm-note { background: rgba(255, 255, 255, .03); }

@media (max-width: 620px) {
  .nm-acts { width: 100%; }
  .nm-go { width: 100%; justify-content: center; }
  .nm-or { display: none; }
  .nm-city { flex-basis: 100%; }
  .nm-filters { align-items: stretch; }
  .nm-rad { flex: 1 1 100%; }
  .nr { grid-template-columns: 1.7rem minmax(0, 1fr) auto; gap: .25rem .6rem; }
  .nr__map { grid-column: 2 / 4; justify-self: start; padding: .3rem .5rem; }
  .nr__sub { white-space: normal; }
}
