/* Plansza XIV — Gabinet osobliwości (gablota / katalog kartkowy) */

/* płótno przewija się: kart jest więcej niż ekranów; pasek narzędzi zostaje przyklejony u góry */
.cabinet { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.cabinet:focus { outline: none; }

.toolbar {
  position: sticky; top: 0; z-index: 6; padding: 10px 24px 10px;
  background: var(--ground); box-shadow: 0 12px 14px -10px rgba(3, 5, 9, 0.7);
}
.toolbar .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .row + .row { margin-top: 8px; }
.toolbar input[type="search"] { width: min(360px, 100%); background: rgba(8, 11, 17, 0.9); }
.toolbar select { max-width: 200px; }
button.brass { background: var(--brass-soft); border-color: rgba(232, 184, 102, 0.5); color: var(--brass); }
button.brass:hover { background: var(--brass); color: var(--ground); }
button.ghost { background: transparent; }

/* sale = żetony flag */
.rooms { gap: 6px; }
.rooms .lbl { font-family: var(--serif); color: var(--ink-muted); font-size: var(--t-sm); margin-right: 4px; }
.rooms button { border-radius: 999px; padding: 4px 11px; font-size: var(--t-xs); }
.rooms button small { color: inherit; opacity: 0.7; margin-left: 5px; font-variant-numeric: tabular-nums; }
.rooms button.motif { border-style: dashed; }

/* ---------- osobliwość dnia ---------- */
.featured { padding: 10px 24px 0; }
.featured .plaque {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: start;
  background: var(--ground-deep); border: 1px solid var(--rule); border-radius: 3px; padding: 22px 26px 20px;
  position: relative; cursor: pointer;
}
.featured .plaque:hover, .featured .plaque:focus-visible { border-color: var(--brass); }
.featured .plaque::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(36, 45, 61, 0.6); border-radius: 2px; pointer-events: none;
}
.kicker { font-family: var(--sans); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); margin: 0 0 8px; }
.kicker .date { color: var(--ink-faint); letter-spacing: 0; text-transform: none; margin-left: 10px; }
.featured .hook { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.22; margin: 0 0 12px; color: var(--paper); }
.featured .one { color: var(--ink-muted); font-size: var(--t-sm); line-height: 1.5; max-width: 72ch; margin: 0 0 10px; }
.featured .meta { grid-column: 1 / -1; }
.featured .seal { align-self: center; }

/* numer katalogowy / „pieczęć” ciekawości */
.seal {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(232, 184, 102, 0.55);
  display: grid; place-items: center; text-align: center; color: var(--brass); font-family: var(--serif);
  line-height: 1; background: radial-gradient(circle at 50% 50%, rgba(232, 184, 102,0.08), transparent 70%);
}
.seal b { font-size: var(--t-lg); font-weight: 500; display: block; }
.seal small { font-family: var(--sans); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-top: 2px; }

/* ---------- ekspozycja główna ---------- */
.exhibition { padding: 22px 24px 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 10px; }
.sec-head h2 { font-size: var(--t-lg); }
.sec-head .sub { color: var(--ink-faint); font-size: var(--t-xs); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.shelf .card { background: var(--ground-lift); }
.shelf .card .one { display: none; }
.shelf .card .hook { font-size: var(--t-md); }

/* ---------- katalog ---------- */
.catalogue { padding: 26px 24px 60px; }
.cat-head { font-size: var(--t-lg); margin: 0 0 12px; }
.cat-head small { font-family: var(--sans); color: var(--ink-faint); font-size: var(--t-xs); margin-left: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.more-wrap { display: flex; justify-content: center; margin-top: 18px; }
.empty-cat { color: var(--ink-muted); font-family: var(--serif); font-style: italic; padding: 24px 0; }

/* karta katalogowa */
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  background: var(--ground-deep); border: 1px solid var(--rule); border-left: 3px solid var(--area, var(--rule));
  border-radius: 3px; padding: 14px 16px 12px; cursor: pointer; text-align: left; color: var(--paper);
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover, .card:focus-visible { border-color: var(--brass); border-left-color: var(--area, var(--brass)); }
.card:hover { transform: translateY(-1px); }
.card.sel { background: var(--brass-soft); border-color: var(--brass); }
.card .no { position: absolute; right: 12px; top: 10px; font-family: var(--serif); color: var(--brass); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.card .no small { color: var(--ink-faint); font-family: var(--sans); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.card .hook { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.22; margin: 0; padding-right: 72px; }
.card .one { color: var(--ink-muted); font-size: var(--t-xs); line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { color: var(--ink-faint); font-size: var(--t-xs); line-height: 1.4; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; }
.meta .court { color: var(--ink-muted); }
.meta .sy { font-variant-numeric: tabular-nums; white-space: nowrap; }
.stamps { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.stamp {
  font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
  border: 1px solid rgba(160, 169, 184, 0.35); border-radius: 2px; padding: 1px 5px; white-space: nowrap;
}
.stamp.on { color: var(--brass); border-color: rgba(232, 184, 102, 0.6); }
.stamp.btn { cursor: pointer; }
.stamp.btn:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- panel ---------- */
.panel .intro { margin-bottom: 10px; }
.panel .note { color: var(--ink-muted); font-size: var(--t-sm); border-left: 2px solid var(--brass); padding-left: 10px; margin: 14px 0 6px; line-height: 1.45; }
.panel .stat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel .stat-head .v { color: var(--ink-faint); font-size: var(--t-xs); }
.panel .rows li .v b { color: var(--paper); font-weight: 500; font-family: var(--serif); }
.panel .rows li.hot { color: var(--brass); }
.panel .mini { margin-top: 8px; }
.panel .mini svg { display: block; width: 100%; overflow: visible; }
.panel .mini text { font-family: var(--sans); font-size: 10px; fill: var(--ink-faint); }
.panel .mini .bar { fill: var(--ink-muted); fill-opacity: 0.75; }
.panel .mini .bar.hot { fill: var(--brass); fill-opacity: 1; }
.panel .mini .lab { fill: var(--ink-muted); font-size: 10.5px; }
.panel .mini .val { fill: var(--ink-faint); font-variant-numeric: tabular-nums; }
.panel .mini .line { fill: none; stroke: var(--brass); stroke-width: 1.5; }
.panel .mini .area { fill: var(--brass); fill-opacity: 0.12; }
.panel .mini .thin { stroke: var(--rule); }
.panel .cap { color: var(--ink-faint); font-size: var(--t-xs); margin-top: 6px; line-height: 1.4; }

/* panel: karta katalogowa w powiększeniu */
.panel .detail .kicker { margin-top: 2px; }
.panel .detail .hook { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.2; margin: 0 0 14px; }
.panel .detail h3 { font-size: var(--t-md); color: var(--ink-muted); font-family: var(--sans); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--t-xs); margin: 18px 0 6px; }
.panel .detail .one { font-family: var(--serif); font-size: var(--t-md); line-height: 1.45; margin: 0; }
.panel .detail .story { color: var(--ink-muted); font-size: var(--t-sm); line-height: 1.5; margin: 0; }
.panel .detail .facts { list-style: none; margin: 14px 0 0; padding: 0; }
.panel .detail .facts li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid rgba(36, 45, 61, 0.6); font-size: var(--t-sm); }
.panel .detail .facts li span:first-child { color: var(--ink-faint); white-space: nowrap; }
.panel .detail .facts li span:last-child { text-align: right; }
.panel .detail .seal { margin: 4px 0 14px; }
.panel .cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .featured .plaque { grid-template-columns: 1fr; }
  .featured .seal { display: none; }
  .toolbar { padding: 8px 14px 6px; }
  .featured, .exhibition { padding-left: 14px; padding-right: 14px; }
  .catalogue { padding: 22px 14px 40px; }
}

/* znak Lexedit: w wolnym drugim rzędzie paska narzędzi (na dole zasłaniałby karty) */
.atlas-mark { top: 66px; right: 24px; z-index: 30; }
