/* YUM — the kosher register as an atlas (Nov 2026). Same tokens as the
   collection console and the cities board (--ink, --ink-55, --ink-77, --line,
   --line-soft, --paper, --accent), so Paper and Moon need nothing of their
   own beyond the card tint the board uses. Reuses .cx-* (console.css) and
   .ca-* (index.html) for the shared furniture; .kx-* is what only the
   register has. */
.kx .console__body.kx-body { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.kx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* the kitchen split: meat is the accent, dairy and parve its lighter steps,
   unmarked the rule colour — the same ramp as the collection's stars */
.kx-sw--meat { background: var(--accent); }
.kx-sw--dairy { background: color-mix(in srgb, var(--accent) 52%, transparent); }
.kx-sw--parve { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.kx-sw--none { background: var(--line); }
.kx-dist__bar .cx-dist__s.is-dim { opacity: .28; }
.kx .cx-dist__k .kx-dist__l { color: var(--ink-77); letter-spacing: .02em; }
.kx .cx-dist__k:last-child .kx-dist__l { color: var(--ink-55); }
.kx .cx-dist__k[aria-pressed="true"] .kx-dist__l { color: var(--accent); font-weight: 600; }
.kx .cx-dist__k[aria-pressed="true"] b { text-decoration: underline; text-underline-offset: 3px; }
.kx .cx-dist__k:focus-visible, .kx-more:focus-visible, .kx-room__a:focus-visible, .kx-lrow__a:focus-visible, .kx-tile:focus-visible
  { outline: 2px solid var(--accent); outline-offset: 2px; }

.kx-tools { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
.kx .kx-tools .cx-q .field { padding-right: 2.4rem; }
.kx .kx-q__x { right: .45rem; }
.kx-seg__b[data-kx-kind="meat"] .cx-seg__l { color: var(--accent); }
.kx-seg__b[aria-pressed="true"] .cx-seg__l { color: inherit; }

/* the split bar, at three sizes */
.kx-split { display: flex; height: 4px; border-radius: 3px; overflow: hidden; background: var(--line-soft); }
.kx-split i { display: block; height: 100%; }
.kx-split--tile { margin-top: .15rem; height: 3px; }
.kx-split--head { flex: 1 1 2rem; min-width: 1.5rem; max-width: 7.5rem; margin-left: auto; }

/* the strip of the largest towns: 12 = 6 x 2 = 3 x 4 = 2 x 6 */
.kx-tilebox { padding-top: .2rem; }
.kx-tilebox .ca-lead { margin-bottom: .7rem; }
.kx-tiles.ca-tiles { margin: 0; }
.kx-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.kx-bar { border-top: 1px solid var(--line-soft); padding-top: .8rem; }

/* the atlas */
.kx-host { min-width: 0; }
.kx-atlas { display: flex; flex-direction: column; gap: 2.2rem; }
.kx-cont { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.kx-cont__h.ca-cont__h { border-bottom: 1px solid var(--line); padding-bottom: .45rem; margin: 0; }
/* countries pack into the continent's grid: a block spans as many columns
   as it has cards, with the same 12px gutter as the cards inside it, so
   every card in a row lines up whichever country it belongs to */
.kx-pack { display: grid; grid-template-columns: repeat(var(--kx-cols, 3), minmax(0, 1fr)); gap: 1.5rem 12px; grid-auto-flow: row dense; align-items: stretch; }
.kx-ctry { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.kx-ctry__h { display: flex; align-items: center; gap: .6rem; min-width: 0; height: 1.5rem; border-bottom: 1px solid var(--line-soft); padding-bottom: .35rem; }
.kx-ctry__t { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); white-space: nowrap; flex: 0 0 auto; }
.kx-ctry__m { margin: 0; font-size: .68rem; color: var(--ink-55); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.kx-ctry__more { flex: 0 0 auto; margin-left: .2rem; }
.kx-cards { display: grid; grid-template-columns: repeat(var(--kx-span, 1), minmax(0, 1fr)); gap: 12px; align-items: stretch; flex: 1 1 auto; }

/* a town card: one height for all — six rows tall whether it holds one room
   or thirty-eight, the foot pinned to the bottom */
.kx-card { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: .9rem 1rem .75rem;
  display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.kx-card.is-open { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.kx-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem; }
.kx-card__hh { min-width: 0; flex: 1 1 auto; }
.kx-card__t { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.kx-card__l { margin: .1rem 0 0; font-size: .66rem; color: var(--ink-55); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-card__hh .kx-card__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-card__n { margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1; flex: 0 0 auto; }
.kx-card__n b { font-size: 1.35rem; font-weight: 600; color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kx-card__n span { font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); margin-top: .2rem; }
.kx-card__k { margin: 0; font-size: .66rem; color: var(--ink-55); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-rooms { list-style: none; margin: .15rem 0 0; padding: 0; min-height: calc(var(--kx-rows, 6) * 2.45rem + var(--kx-rows, 6) * 1px - 1px); }
.kx-card.is-open .kx-rooms { columns: 250px; column-gap: 1.6rem; min-height: 0; }
.kx-room { border-top: 1px solid var(--line-soft); break-inside: avoid; }
.kx-rooms > .kx-room:first-child { border-top: 0; }
.kx-card.is-open .kx-room { border-top: 1px solid var(--line-soft); }
.kx-room__a { display: flex; align-items: center; gap: .55rem; min-height: 2.45rem; padding: .22rem 0; text-decoration: none; color: inherit; box-sizing: border-box; }
.kx-room__b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kx-room__b b, .kx-room__b small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-room__b b { font-size: .82rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.kx-room__b small { font-size: .67rem; color: var(--ink-55); line-height: 1.35; }
.kx-room__a:hover b { color: var(--accent); }
.kx-kind { flex: 0 0 auto; font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: .12rem .42rem; color: var(--ink-55); }
.kx-kind--meat { color: var(--accent); border-color: var(--accent); }
.kx-kind--dairy { color: var(--ink-77); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.kx-kind--parve { color: var(--ink-77); border-style: dashed; }
.kx-kind--none { border-color: transparent; }
.kx-card__ft { margin-top: auto; padding-top: .45rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between;
  align-items: baseline; gap: .8rem; flex-wrap: nowrap; min-height: 1.5rem; }
.kx-more { appearance: none; font: inherit; background: transparent; border: 0; padding: 0; cursor: pointer;
  font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; flex: 0 0 auto; }
.kx-more:hover { text-decoration: underline; }
.kx-card__cu { margin: 0; font-size: .66rem; color: var(--ink-55); min-width: 0; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-card__cu span { font-size: .56rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.kx-card.is-open .kx-card__ft { flex-wrap: wrap; }
.kx-card.is-open .kx-card__cu { white-space: normal; }

/* the list view */
.kx-listv { display: flex; flex-direction: column; gap: .8rem; }
.kx-lrows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.kx-lrow + .kx-lrow { border-top: 1px solid var(--line-soft); }
.kx-lrow__a { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 4.6rem; gap: .9rem; align-items: center;
  padding: .55rem 1rem; text-decoration: none; color: inherit; font-size: .8rem; }
.kx-lrow__a:hover { background: var(--line-soft); }
.kx-lrow__a:hover .kx-lrow__n b { color: var(--accent); }
.kx-lrow__n, .kx-lrow__w { min-width: 0; display: flex; flex-direction: column; }
.kx-lrow__n b, .kx-lrow__w b, .kx-lrow__n small, .kx-lrow__w small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-lrow__n b { color: var(--ink); font-weight: 600; }
.kx-lrow__w b { color: var(--ink-77); font-weight: 500; }
.kx-lrow__n small, .kx-lrow__w small { font-size: .67rem; color: var(--ink-55); }
.kx-lrow__k { justify-self: end; }
.kx-listv .kx-ctry__more { align-self: center; }

html[data-dark] .kx-card { background: rgba(255, 255, 255, .022); }
html[data-dark] .kx-lrows { background: rgba(255, 255, 255, .022); }

@media (max-width: 1080px) { .kx-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kx-tools .cx-f--q { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .kx-stats.cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-stats.cx-stats > div { grid-column: auto; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .kx-stats.cx-stats > div:nth-child(2n) { border-right: 0; }
  .kx-stats.cx-stats > div:nth-child(n+3) { border-bottom: 0; }
  .kx-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-tools .cx-f:last-child { grid-column: 1 / -1; }
  .kx-lrow__a { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .7rem; padding: .55rem .8rem; }
  .kx-lrow__w { grid-column: 1; grid-row: 2; flex-direction: row; gap: .4rem; align-items: baseline; }
  .kx-lrow__k { grid-column: 2; grid-row: 1 / span 2; }
}
