/* YUM — the collection console (Nov 2026). Paper and Moon from the same
   variables as the rest of the page: --ink, --ink-55, --line, --line-soft,
   --paper, --accent. Nothing here sets a colour an edition has to undo. */
.cx .console__head { gap: .6rem 1rem; }
.cx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cx-view { display: inline-flex; gap: 0; }
.cx-view .tbtn { border-radius: 0; }
.cx-view .tbtn:first-child { border-radius: 999px 0 0 999px; }
.cx-view .tbtn:last-child { border-radius: 0 999px 999px 0; margin-left: -1px; }
.cx-act[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cx-act:focus-visible, .cx-pill:focus-visible, .cx-clearall:focus-visible, .cx-dist__k:focus-visible,
.cx-city:focus-visible, .cx-sugg:focus-visible, .cx-q__x:focus-visible, .cx-seg__b:focus-visible, .cx-chip:focus-visible,
.cx-go:focus-visible, .cx-kosher:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cx-lab { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-55); margin: 0 0 .4rem; }

/* ---- the read-out ---- */
.cx-read { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cx-read > * { background: var(--paper); }
.cx-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.cx-stats > div { padding: .95rem 1rem .9rem; border-right: 1px solid var(--line-soft); min-width: 0; }
.cx-stats > div:last-child { border-right: 0; }
.cx-stats dt { font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-stats dd { margin: .35rem 0 0; font-size: 1.55rem; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.cx-stats > div:first-child dd { color: var(--accent); }
.cx-dist { padding: .95rem 1.1rem .85rem; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.cx-dist__hd { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.cx-dist__hd .cx-lab { margin: 0; }
.cx-share { font-size: .68rem; color: var(--ink-55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-dist__bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line-soft); }
.cx-dist__s { display: block; height: 100%; transition: width .35s var(--ease, ease); }
.cx-dist__s--3, .cx-sw--3 { background: var(--accent); }
.cx-dist__s--2, .cx-sw--2 { background: color-mix(in srgb, var(--accent) 66%, transparent); }
.cx-dist__s--1, .cx-sw--1 { background: color-mix(in srgb, var(--accent) 36%, transparent); }
.cx-dist__s--0, .cx-sw--0 { background: var(--line); }
.cx-dist__leg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
.cx-dist__k { appearance: none; font: inherit; background: transparent; border: 0; padding: .15rem 0; cursor: pointer; color: var(--ink-55);
  display: flex; align-items: center; gap: .35rem; font-size: .7rem; min-width: 0; text-align: left; }
.cx-dist__k b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: auto; padding-right: .5rem; }
.cx-dist__k:hover .cx-dist__l { color: var(--accent); }
.cx-dist__k[disabled] { opacity: .45; cursor: default; }
.cx-dist__l { white-space: nowrap; color: var(--accent); letter-spacing: .06em; }
.cx-dist__k:last-child .cx-dist__l { color: var(--ink-55); letter-spacing: 0; }
.cx-sw { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.cx-insight { margin: .1rem 0 0; font-size: .72rem; color: var(--ink-55); line-height: 1.45; white-space: pre-wrap; }

/* ---- the toolbar ---- */
.cx-tools { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: .6rem; align-items: end; }
.cx-f { display: block; min-width: 0; margin: 0; }
.cx-f .field { width: 100%; max-width: none; }
.cx-q { position: relative; display: block; }
.cx-q .field { padding-right: 4.2rem; }
.cx-q .field::-webkit-search-cancel-button { display: none; }
.cx-q__x { position: absolute; right: 2.1rem; top: 50%; transform: translateY(-50%); width: 1.6rem; height: 1.6rem; border-radius: 50%;
  appearance: none; border: 0; background: var(--line-soft); color: var(--ink-77); cursor: pointer; font: inherit; font-size: 1rem; line-height: 1; }
.cx-q__x:hover { background: var(--ink); color: var(--paper); }
.cx-kbd { position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); font: inherit; font-size: .66rem; font-weight: 600;
  color: var(--ink-55); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .38rem; pointer-events: none; }
.cx-q:focus-within .cx-kbd { opacity: 0; }

.cx-facets { display: grid; gap: .55rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.cx-facet { min-width: 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: .8rem; }
.cx-facet > .cx-lab { margin: 0; }
.cx-seg { gap: .35rem; }
.cx-seg .seg__b { padding: .42rem .75rem; font-size: .74rem; display: inline-flex; align-items: baseline; }
.cx-seg .seg__b small { font-variant-numeric: tabular-nums; }
.cx-seg .seg__b[disabled] { opacity: .4; cursor: default; }
.cx-seg__l { letter-spacing: .04em; }
[data-cx-star="3"] .cx-seg__l, [data-cx-star="2"] .cx-seg__l, [data-cx-star="1"] .cx-seg__l { color: var(--accent); }
[data-cx-star][aria-pressed="true"] .cx-seg__l { color: inherit; }

/* ---- the bar above the tables ---- */
.cx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 1.9rem; }
.cx-count { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-77); }
.cx-pills { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.cx-pill { appearance: none; font: inherit; font-size: .72rem; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .28rem .35rem .28rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.cx-pill__k { font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.cx-pill__x { width: 1.15rem; height: 1.15rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--line-soft); color: var(--ink-77); font-size: .85rem; line-height: 1; }
.cx-pill:hover { border-color: var(--ink); }
.cx-pill:hover .cx-pill__x { background: var(--accent); color: #fff; }
.cx-clearall { appearance: none; font: inherit; background: none; border: 0; cursor: pointer; padding: .2rem .3rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cx-clearall:hover { text-decoration: underline; }
.cx .r-where { margin: -.4rem 0 0; }

/* ---- grid view: placards of one height ---- */
.cx-grid { margin-top: 0; align-items: stretch; }
.cx-grid .cx-card { min-height: 13.5rem; }
.cx-card { display: flex; flex-direction: column; gap: .4rem; position: relative; min-width: 0; }
.cx-card__hd { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-height: 1.35rem; }
.cx-card__hd .rc__cuisine { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cx-badge { flex: 0 0 auto; font-size: .66rem; letter-spacing: .12em; line-height: 1; padding: .3rem .5rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); white-space: nowrap; }
.cx-badge--3 { background: var(--accent); border-color: var(--accent); color: #fff; }
.cx-badge--0 { border-color: var(--line); color: var(--ink-55); font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cx-card .rc__name { overflow-wrap: anywhere; }
.cx-card__where { line-height: 1.45; }
.cx-card__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0 0; }
.cx-tags span { font-size: .62rem; padding: .16rem .45rem; border-radius: 4px; background: var(--line-soft); color: var(--ink-77); }
.cx-card__ft { margin: auto 0 0; padding-top: .55rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; font-size: .72rem; }
.cx-card__s { color: var(--ink-55); }
.cx-card--s3 .cx-card__s, .cx-card--s2 .cx-card__s, .cx-card--s1 .cx-card__s { color: var(--ink); font-weight: 600; }
.cx-go { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; font-size: .76rem; }
.cx-go:hover { text-decoration: underline; }
.cx-city { appearance: none; font: inherit; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.cx-city:hover { color: var(--accent); text-decoration-color: currentColor; }
.cx-pick { position: absolute; top: -.6rem; left: .9rem; font-size: .55rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: .2rem .5rem; border-radius: 999px; }
.cx-card.is-pick { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.is-flash { animation: cx-flash 1.2s var(--ease, ease) 1; }
@keyframes cx-flash { 0% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 30%, transparent); } }

/* ---- list view: one line a table ---- */
.cx-list { margin-top: 0; }
.cx-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.cx-row { display: grid; grid-template-columns: 3.4rem minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: .9rem; align-items: center;
  padding: .62rem 1rem; border-top: 1px solid var(--line-soft); font-size: .8rem; }
.cx-row:first-child { border-top: 0; }
.cx-row:hover { background: var(--line-soft); }
.cx-row.is-pick { box-shadow: inset 3px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.cx-row__s { color: var(--accent); letter-spacing: .08em; font-size: .74rem; white-space: nowrap; }
.cx-row.is-none .cx-row__s { color: var(--ink-55); }
.cx-row__n { min-width: 0; display: flex; flex-direction: column; }
.cx-row__n b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-row__n small, .cx-row__w small { font-size: .68rem; color: var(--ink-55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-row__c { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-row__w { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.cx-row__w .cx-city { font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- empty, foot ---- */
.cx-empty { grid-column: 1 / -1; border: 1px dashed var(--line); border-radius: 12px; padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.cx-empty__t { margin: 0; font-size: .95rem; color: var(--ink); font-weight: 600; }
.cx-empty__k { margin: 0; font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-55); }
.cx-empty__s { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.cx-sugg { appearance: none; font: inherit; font-size: .76rem; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: .38rem .8rem; }
.cx-sugg:hover { border-color: var(--accent); color: var(--accent); }
.cx-empty .btn { margin-top: .2rem; }
.cx-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; padding-top: .2rem; }
.cx-foot .hint { margin: 0; font-variant-numeric: tabular-nums; }
.cx-foot #r-more { grid-column: 2; }
.cx-kosher { grid-column: 3; justify-self: end; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.cx-kosher:hover { text-decoration: underline; }

/* ---- narrower ---- */
@media (max-width: 1080px) {
  .cx-read { grid-template-columns: 1fr; }
  .cx-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cx-f--q { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cx .console__head { align-items: flex-start; }
  .cx-acts { width: 100%; }
  .cx-acts #toast-switch { margin-left: auto; }
  .cx-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cx-stats > div { grid-column: span 2; padding: .75rem .8rem; border-bottom: 1px solid var(--line-soft); }
  .cx-stats > div:nth-child(1), .cx-stats > div:nth-child(2) { grid-column: span 3; }
  .cx-stats > div:nth-child(2), .cx-stats > div:nth-child(5) { border-right: 0; }
  .cx-stats > div:nth-child(n+3) { border-bottom: 0; }
  .cx-stats dd { font-size: 1.3rem; }
  .cx-dist__leg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cx-seg::-webkit-scrollbar { display: none; }
  .cx-seg .seg__b { flex: 0 0 auto; }
  .cx-facet { grid-template-columns: 1fr; gap: .4rem; }
  .cx-kbd { display: none; }
  .cx-q .field { padding-right: 2.4rem; }
  .cx-q__x { right: .45rem; }
  .cx-grid .cx-card { min-height: 0; }
  .cx-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: .2rem .7rem; padding: .6rem .8rem; }
  .cx-row__c { display: none; }
  .cx-row__w { grid-column: 2; grid-row: 2; flex-direction: row; gap: .4rem; align-items: baseline; }
  .cx-row .cx-go { grid-column: 3; grid-row: 1 / span 2; }
  .cx-foot { grid-template-columns: 1fr auto; }
  .cx-foot #r-more { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .cx-kosher { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .cx-dist__s { transition: none; } .is-flash { animation: none; } }
