/* DARTE listovací katalóg – prototyp
 * Tmavý rám, svetlé strany, fotografia je dominantná. Bez frameworku. */

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap;
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --frame: #171511;
  --frame-2: #221f1a;
  --frame-3: #2e2a23;
  --frame-line: rgba(255, 255, 255, .09);
  --frame-text: #ece6da;
  --frame-muted: #a39b8c;
  --paper: #fdfcf9;
  --paper-2: #f4f1ea;
  --ink: #1c1a16;
  --ink-2: #4a453c;
  --muted: #7a7366;
  --line: #e6e0d4;
  --gold: #a8843f;
  --gold-2: #8d6c2e;
  --gold-soft: #f3ead7;
  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --topbar-h: 64px;
  --bottombar-h: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--frame);
  color: var(--frame-text);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  overscroll-behavior: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ------------------------------------------------------------------ app -- */
.app {
  position: fixed; inset: 0;
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--bottombar-h);
  height: 100dvh;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(#1b1914, #171511);
  border-bottom: 1px solid var(--frame-line);
  position: relative; z-index: 5;
}
.topbar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__logo { height: 34px; width: auto; opacity: .92; }
.topbar__title { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--frame-line); padding-left: 14px; }
.topbar__eyebrow { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.topbar__name { font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--frame-text); }

.topbar__pager { display: flex; align-items: center; gap: 6px; background: var(--frame-2); border: 1px solid var(--frame-line); border-radius: 999px; padding: 4px; }
.counter { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--frame-muted); min-width: 92px; text-align: center; white-space: nowrap; }
.counter b { color: var(--frame-text); font-weight: 600; }
.lotjump { margin-left: 4px; }
.lotjump label { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 6px 0 12px; border-left: 1px solid var(--frame-line); font-size: 11px; letter-spacing: .12em; color: var(--frame-muted); }
.lotjump input { width: 58px; height: 30px; border-radius: 999px; border: 1px solid var(--frame-line); background: var(--frame); padding: 0 10px; text-align: center; font-size: 14px; letter-spacing: 0; }
.lotjump input::placeholder { color: #6d665a; }
.lotjump input:focus { outline: none; border-color: var(--gold); }

.topbar__tools { display: flex; justify-content: flex-end; gap: 6px; }
.tool-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: transparent; border: 1px solid var(--frame-line); color: var(--frame-text); font-size: 13.5px; font-weight: 500; transition: background .2s, border-color .2s; }
.tool-btn:hover { background: var(--frame-2); border-color: rgba(255,255,255,.18); }
.tool-btn svg { width: 19px; height: 19px; }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: transparent; border: 0; color: var(--frame-text); transition: background .2s, opacity .2s; }
.icon-btn:hover { background: var(--frame-3); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.icon-btn--light { width: 44px; height: 44px; color: #fff; }

/* ---------------------------------------------------------------- stage -- */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  min-height: 0;
  background:
    radial-gradient(1200px 700px at 50% 45%, #29251e 0%, rgba(23,21,17,0) 70%),
    var(--frame);
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.side-nav { justify-self: center; width: 56px; height: 96px; border-radius: 999px; border: 0; background: transparent; color: var(--frame-muted); display: grid; place-items: center; transition: color .2s, background .2s, opacity .2s; }
.side-nav svg { width: 30px; height: 30px; stroke-width: 1.3; }
.side-nav:hover { color: #fff; background: rgba(255,255,255,.05); }
.side-nav:disabled { opacity: 0; pointer-events: none; }

.book { position: relative; width: 100%; height: 100%; min-width: 0; }
.spread {
  position: absolute; left: 50%; top: 50%;
  display: flex;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}
.spread.is-anim { transition: transform .32s var(--ease), opacity .32s var(--ease); }
.spread--double::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 60px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.07) 42%, rgba(0,0,0,.16) 50%, rgba(0,0,0,.07) 58%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

/* ----------------------------------------------------------------- page -- */
.page {
  position: relative;
  width: var(--pw); height: var(--ph);
  background: var(--paper);
  color: var(--ink);
  container-type: size;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 2px 6px rgba(0,0,0,.25);
}
.spread--double .page:first-child { border-radius: 3px 0 0 3px; }
.spread--double .page:last-child { border-radius: 0 3px 3px 0; }
.spread--single .page { border-radius: 3px; }
.page.is-focus::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--gold); opacity: 0; pointer-events: none; animation: focusPulse 1.6s var(--ease) .15s; z-index: 3; }
@keyframes focusPulse { 0%, 100% { opacity: 0; } 25%, 60% { opacity: .9; } }

.page__inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(14px, 5.2cqmin, 44px) clamp(16px, 6cqmin, 52px) clamp(10px, 3.2cqmin, 26px);
}
.page__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: clamp(8px, 2cqh, 16px); border-bottom: 1px solid var(--line); flex: none; }
.lot { display: flex; align-items: baseline; gap: .45em; color: var(--ink); }
.lot__label { font-size: clamp(10px, 1.7cqmin, 12px); letter-spacing: .22em; font-weight: 600; color: var(--gold-2); }
.lot__num { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 6cqmin, 44px); line-height: .9; }
.page__running { font-size: clamp(9.5px, 1.6cqmin, 11.5px); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.page__body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.info { flex: none; display: flex; flex-direction: column; min-width: 0; container: info / inline-size; }
.figure {
  position: relative;
  flex: 1 1 auto;
  min-height: 28%;
  margin: clamp(10px, 2.6cqh, 26px) 0 clamp(8px, 2cqh, 20px);
  display: grid; place-items: center;
}
.figure__btn { position: absolute; inset: 0; display: block; padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in; }
/* absolútne pozicovaný obrázok: max-width/max-height sa počítajú voči tlačidlu -> pomer strán ostáva zachovaný */
.figure__img {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  opacity: 0; transition: opacity .35s var(--ease);
  box-shadow: 0 10px 28px -12px rgba(30, 24, 12, .45), 0 1px 3px rgba(30,24,12,.12);
}
.figure__img.is-loaded { opacity: 1; }
.figure__img.no-fade { transition: none; }
.figure__skeleton { position: absolute; inset: 12% 18%; background: linear-gradient(100deg, var(--paper-2) 30%, #fbf8f2 50%, var(--paper-2) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 2px; }
.figure.is-loaded .figure__skeleton { display: none; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.figure__empty { display: grid; place-items: center; gap: 8px; text-align: center; color: var(--muted); font-size: 13px; padding: 20px; border: 1px dashed var(--line); width: 70%; height: 70%; }
.figure__meta { position: absolute; right: 0; bottom: -2px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.figure__chip { pointer-events: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; background: rgba(28,26,22,.72); color: #fff; font-size: 11.5px; font-weight: 500; backdrop-filter: blur(4px); }
.figure__chip svg { width: 14px; height: 14px; }

.meta { flex: none; display: flex; flex-direction: column; gap: clamp(2px, .6cqh, 6px); }
.meta__author { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 4.6cqmin, 34px); line-height: 1.08; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta__years { font-family: var(--sans); font-weight: 400; font-size: clamp(11px, 2cqmin, 14px); letter-spacing: .02em; color: var(--muted); white-space: nowrap; margin-left: .5em; vertical-align: .25em; }
.meta__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(17px, 3.8cqmin, 28px); line-height: 1.15; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta__title .year { font-style: normal; }
.meta__specs { margin: clamp(2px, .5cqh, 6px) 0 0; font-size: clamp(11.5px, 2.15cqmin, 14.5px); color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta__sign { margin: 0; font-size: clamp(10.5px, 1.9cqmin, 13px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.prices { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 4cqmin, 34px); margin: clamp(6px, 1.4cqh, 14px) 0 0; padding-top: clamp(6px, 1.4cqh, 12px); border-top: 1px solid var(--line); }
.price { display: flex; flex-direction: column; min-width: 0; }
.price dt { font-size: clamp(9.5px, 1.6cqmin, 11px); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price dd { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(16px, 3.3cqmin, 24px); line-height: 1.2; white-space: nowrap; color: var(--ink); font-variant-numeric: lining-nums; }
.price--result dd { color: var(--gold-2); }
.price--muted dd { font-family: var(--sans); font-weight: 500; font-size: clamp(12px, 2.2cqmin, 15px); color: var(--muted); padding-top: .2em; }

.excerpt { margin: clamp(4px, 1cqh, 10px) 0 0; font-size: clamp(11.5px, 2.1cqmin, 14px); color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@container (max-height: 760px) { .excerpt { display: none; } }
@container (max-height: 560px) { .meta__sign { display: none; } }
/* široká strana (mobil na šírku): fotografia vľavo, údaje vpravo */
@container (min-aspect-ratio: 11/10) {
  .page--item .page__body { flex-direction: row; gap: clamp(14px, 3cqw, 32px); }
  .page--item .figure { min-height: 0; margin: clamp(8px, 2cqh, 16px) 0 0; }
  .page--item .info { width: 42%; justify-content: center; overflow: hidden; }
  .page--item .excerpt { display: none; }
}

.page__actions { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: clamp(8px, 1.8cqh, 18px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 clamp(12px, 3cqmin, 22px);
  border-radius: 2px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: clamp(11px, 1.95cqmin, 13px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 2px; background: var(--paper-2); color: var(--muted); font-size: clamp(10.5px, 1.9cqmin, 12.5px); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b9b1a2; }
.pill--live::before { background: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.15); }
/* stavova hlaska s poznamkou o zivej aukcii – dva riadky namiesto jedneho */
.pill--note { flex-direction: column; align-items: stretch; justify-content: center; min-width: 0; padding: 6px 12px; text-transform: none; letter-spacing: .02em; line-height: 1.3; }
.pill--note::before { display: none; }
.pill--note .pill__note { font-weight: 500; font-size: .92em; color: var(--muted); letter-spacing: 0; }
.actions__more { margin-left: auto; }
.btn span, .pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* úzka strana (mobil, malý notebook): tlačidlá sa delia o riadok, „Viac“ je iba ikona */
@container info (max-width: 560px) {
  .page__actions { flex-wrap: nowrap; gap: 6px; }
  .page__actions .btn, .page__actions .pill { flex: 1 1 auto; min-width: 0; padding: 0 10px; letter-spacing: .05em; font-size: 11px; }
  .page__actions .actions__more { flex: 0 0 44px; width: 44px; padding: 0; margin-left: 0; }
  .page__actions .actions__more span { display: none; }
  .page__actions .actions__more svg { width: 20px; height: 20px; }
  /* dvojriadkova hlaska sa do riadku s tlacidlami nezmesti */
  .page__actions:has(.pill--note) { flex-wrap: wrap; }
  .page__actions .pill--note { flex: 1 1 calc(100% - 52px); }
}

.page__folio { flex: none; margin-top: clamp(6px, 1.4cqh, 14px); text-align: center; font-size: 11px; letter-spacing: .12em; color: #b3ab9c; font-variant-numeric: tabular-nums; }

/* cover + end */
/* TITULNA STRANA: cista biela, aby obraz s ramom nesedel na kremovom podklade.
   Plati IBA pre .page--cover (vnutorne strany a zaver ostavaju na --paper). */
.page--cover { background: #ffffff; }
.page--cover .figure__img { box-shadow: none; }
.page--cover .figure__skeleton { background: linear-gradient(100deg, #f3f3f3 30%, #fbfbfb 50%, #f3f3f3 70%); background-size: 300% 100%; }

.page--cover .page__inner, .page--end .page__inner { align-items: center; text-align: center; }
.cover__mark { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: clamp(6px, 2cqh, 20px); }
.cover__logo { height: clamp(40px, 10cqmin, 80px); width: auto; display: block; }
.cover__sub { font-size: clamp(9px, 1.7cqmin, 12px); letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.cover__rule { width: 48px; height: 1px; background: var(--gold); margin: clamp(10px, 2.6cqh, 24px) auto; flex: none; }
.cover__figure { flex: 1 1 auto; min-height: 20%; width: 100%; margin: 0 0 clamp(10px, 2.6cqh, 26px); position: relative; }
.cover__figure .figure__img { position: absolute; inset: 0; margin: auto; }
.cover__title { flex: none; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 5.6cqmin, 42px); line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; max-width: 16em; text-wrap: balance; }
.cover__date { flex: none; margin: clamp(6px, 1.5cqh, 14px) 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(16px, 3.4cqmin, 24px); color: var(--ink-2); }
.cover__place { flex: none; margin: 2px 0 0; font-size: clamp(11px, 2cqmin, 13.5px); color: var(--muted); letter-spacing: .04em; }
.cover__foot { flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: clamp(10px, 2.4cqh, 24px); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.cover__caption { flex: none; font-size: clamp(10px, 1.8cqmin, 12px); color: var(--muted); margin-top: 6px; }
.end__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2cqh, 18px); }
.end__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 7cqmin, 52px); line-height: 1.05; }
.end__text { margin: 0; color: var(--ink-2); max-width: 26em; font-size: clamp(12.5px, 2.3cqmin, 15px); }
.end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }

/* ------------------------------------------------------------ overlays -- */
.overlay { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: rgba(18,16,13,.97); backdrop-filter: blur(6px); animation: fadeIn .18s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.overlay__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; border-bottom: 1px solid var(--frame-line); }
.overlay__head h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; }
.overlay__count { font-family: var(--sans); font-size: 13px; color: var(--frame-muted); margin-left: 6px; }
.overlay__body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; max-width: 1500px; margin: 0 auto; }
.thumb { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; text-align: left; color: var(--frame-text); transition: background .15s, border-color .15s; min-width: 0; }
.thumb:hover { background: var(--frame-2); }
.thumb[aria-current="true"] { border-color: var(--gold); background: var(--frame-2); }
/* Jednotný obrazový box náhľadu: štvorec, fotka sa VŽDY celá zmestí do vnútornej plochy 88 %.
   Obrázok je absolútne umiestnený, takže nemôže zväčšiť box (predtým vertikálne diela
   pretiekli a orezali sa – max-height v % sa v grid bunke s výškou auto neuplatnil). */
.thumb__img { position: relative; aspect-ratio: 1 / 1; width: 100%; display: grid; place-items: center; background: #f6f3ec; border-radius: 2px; overflow: hidden; }
.thumb__img img { position: absolute; top: 6%; left: 6%; width: 88%; height: 88%; object-fit: contain; object-position: center; display: block; }
@supports not (aspect-ratio: 1 / 1) { .thumb__img::before { content: ""; display: block; padding-top: 100%; } }
.thumb__img--empty { color: #9b9384; font-size: 11px; text-align: center; padding: 8px; }
.thumb__lot { font-size: 10.5px; letter-spacing: .16em; color: var(--gold); font-weight: 600; }
.thumb__author { font-family: var(--serif); font-weight: 600; font-size: 16px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb__title { font-size: 12.5px; color: var(--frame-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -4px; }

.overlay__head--search { gap: 10px; }
.searchbox { flex: 1; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; background: var(--frame-2); border: 1px solid var(--frame-line); border-radius: 999px; max-width: 760px; margin: 0 auto; }
.searchbox:focus-within { border-color: var(--gold); }
.searchbox svg { color: var(--frame-muted); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 17px; outline: none; }
.searchbox input::-webkit-search-cancel-button { filter: invert(1); }
.search-meta { max-width: 760px; margin: 0 auto 10px; color: var(--frame-muted); font-size: 13px; }
.result-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; display: flex; flex-direction: column; gap: 2px; }
.result { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 6px 12px 6px 6px; border: 0; border-radius: 4px; background: transparent; color: var(--frame-text); text-align: left; }
.result:hover, .result.is-active { background: var(--frame-2); }
.result__img { width: 64px; height: 60px; display: grid; place-items: center; background: #f6f3ec; border-radius: 2px; overflow: hidden; }
.result__img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.result__text { min-width: 0; display: flex; flex-direction: column; }
.result__author { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result__title { font-size: 13px; color: var(--frame-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result__lot { font-size: 11px; letter-spacing: .14em; color: var(--gold); font-weight: 600; white-space: nowrap; }
.result--jump .result__img { background: var(--gold); color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.result mark { background: rgba(168,132,63,.35); color: inherit; border-radius: 2px; }
.author-index { list-style: none; margin: 18px auto 0; padding: 0; max-width: 760px; display: flex; flex-wrap: wrap; gap: 8px; }
.author-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--frame-2); border: 1px solid var(--frame-line); color: var(--frame-text); font-size: 13.5px; }
.author-chip:hover { border-color: var(--gold); }
.author-chip span { color: var(--frame-muted); font-size: 12px; }
.index-title { max-width: 760px; margin: 22px auto 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--frame-muted); font-weight: 600; }

/* --------------------------------------------------------------- sheet -- */
.sheet { position: fixed; inset: 0; z-index: 45; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10,9,7,.55); animation: fadeIn .2s var(--ease); }
.sheet__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%);
  background: var(--paper); color: var(--ink);
  box-shadow: -20px 0 50px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  animation: sheetIn .28s var(--ease);
}
@keyframes sheetIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__grab { display: none; }
.sheet__close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; color: var(--ink); width: 44px; height: 44px; z-index: 2; }
.sheet__close:hover { background: var(--paper-2); }
.sheet__content { overflow-y: auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 30px calc(30px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.sheet__lot { font-size: 11px; letter-spacing: .2em; color: var(--gold-2); font-weight: 600; }
.sheet__author { margin: 6px 48px 0 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; }
.sheet__years { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.sheet__title { margin: 8px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--ink-2); }
.facts { margin: 18px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
.sheet__photos { display: flex; gap: 8px; overflow-x: auto; margin: 18px -30px 0; padding: 0 30px 4px; scrollbar-width: thin; }
.sheet__photo { flex: none; width: 92px; height: 92px; padding: 0; border: 1px solid var(--line); background: var(--paper-2); display: grid; place-items: center; border-radius: 2px; cursor: zoom-in; }
.sheet__photo img { max-width: 90%; max-height: 90%; object-fit: contain; }
.sheet__section { margin-top: 22px; }
.sheet__section h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sheet__section p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; }
.sheet .prices { margin-top: 16px; }
.sheet .price dd { font-size: 22px; }
.sheet__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sheet__note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------ lightbox -- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: #0c0b09; display: flex; flex-direction: column; animation: fadeIn .2s var(--ease); touch-action: none; }
.lightbox__bar { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px 18px; color: #fff; }
.lightbox__caption { flex: 1; min-width: 0; font-size: 13.5px; color: #d8d1c4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox__count { font-size: 13px; color: #9e9585; font-variant-numeric: tabular-nums; margin-right: 6px; }
.lightbox__viewport { position: relative; flex: 1; overflow: hidden; cursor: zoom-in; }
.lightbox__viewport.is-zoomed { cursor: grab; }
.lightbox__viewport.is-dragging { cursor: grabbing; }
.lightbox__viewport img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 80px; border: 0; border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; }
.lightbox__nav:hover { background: rgba(255,255,255,.14); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__hint { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.5); color: #cfc7b8; font-size: 12px; pointer-events: none; transition: opacity .4s; white-space: nowrap; }

/* --------------------------------------------------------------- toast -- */
.toast { position: fixed; left: 50%; top: calc(var(--topbar-h) + 16px); transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 4px; background: #f7f1e3; color: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: 14px; border-left: 3px solid var(--gold); animation: toastIn .25s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ------------------------------------------------------------ progress -- */
.progress { position: absolute; left: 0; right: 0; top: calc(var(--topbar-h) - 2px); height: 2px; pointer-events: none; z-index: 6; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .3s var(--ease); }

.bottombar { display: none; }

/* status page (404/503) */
.status-page { display: grid; place-items: center; min-height: 100vh; overflow: auto; padding: 24px; }
.status-card { max-width: 460px; text-align: center; }
.status-card h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; margin: 18px 0 8px; }
.status-card p { color: var(--frame-muted); }
.status-logo { height: 44px; }
.noscript { position: fixed; inset: 0; overflow: auto; background: var(--paper); color: var(--ink); padding: 24px; z-index: 100; }

/* ------------------------------------------------------ tablet/single -- */
@media (max-width: 1100px) {
  .tool-btn span { display: none; }
  .tool-btn { width: 44px; padding: 0; justify-content: center; }
  .topbar__eyebrow { display: none; }
}

/* --------------------------------------------------------------- mobile -- */
@media (max-width: 760px), (max-height: 520px) and (max-width: 1000px) {
  :root { --topbar-h: 56px; --bottombar-h: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px 0 14px; gap: 8px; padding-top: env(safe-area-inset-top, 0px); }
  .topbar__pager, .tool-btn--desk { display: none; }
  .topbar__logo { height: 26px; }
  .topbar__title { padding-left: 10px; }
  .topbar__name { font-size: 15.5px; }
  .tool-btn { width: 44px; height: 44px; border: 0; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .side-nav { display: none; }
  .spread .page { box-shadow: none; border-radius: 0 !important; }
  .page__inner { padding: 14px 16px 10px; }
  .page__folio { display: none; }
  .figure { margin: 12px 0 10px; min-height: 34%; }
  .bottombar {
    display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: #1b1914; border-top: 1px solid var(--frame-line);
  }
  .big-btn { width: 56px; height: 52px; border-radius: 12px; border: 0; background: var(--frame-2); color: var(--frame-text); display: grid; place-items: center; justify-self: center; }
  .big-btn:disabled { opacity: .3; }
  .big-btn svg { width: 26px; height: 26px; }
  .bottombar__center { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border: 0; background: transparent; line-height: 1.15; }
  .bottombar__lot { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--frame-text); }
  .bottombar .counter { font-size: 12px; min-width: 0; }
  .progress { top: auto; bottom: calc(var(--bottombar-h) - 1px); }
  .toast { top: calc(var(--topbar-h) + 10px); }
  .thumb-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px 8px; }
  .thumb { padding: 4px; }
  .thumb__author { font-size: 14px; }
  .thumb__title { font-size: 11.5px; }
  .overlay__body { padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .overlay__head { padding-left: 14px; padding-right: 8px; }
  .sheet__panel { top: auto; left: 0; width: 100%; max-height: 88dvh; border-radius: 14px 14px 0 0; animation: sheetUp .3s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet__grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: #d6cfc1; margin: 8px auto 0; flex: none; }
  .sheet__content { padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .sheet__close { top: 8px; }
  .sheet__photos { margin: 16px -20px 0; padding: 0 20px 4px; }
  .sheet__author { font-size: 26px; }
  .lightbox__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spread.is-anim, .figure__img, .progress__bar { transition: none !important; }
  .overlay, .sheet__panel, .sheet__backdrop, .lightbox, .toast { animation: none !important; }
}

/* ---------------------------------------------- konfiguračné strany -- */
/* Úvodné a záverečné strany, dražobný poriadok, obsah, index autorov.
   Typografia sa drží strany diela – rovnaké cqmin jednotky, aby text
   ostal čitateľný na 1920×1080 aj na 390×844. */
.cover__subtitle { flex: none; margin: clamp(4px, 1cqh, 10px) 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(13px, 2.8cqmin, 19px); color: var(--ink-2); }
.cover__intro { flex: none; margin: clamp(6px, 1.5cqh, 14px) auto 0; max-width: 32em; }

.page--cfg .page__inner { display: flex; flex-direction: column; }
.cfg__body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.cfg__title { flex: none; margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 4.2cqmin, 30px); line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.page--cfg .cover__rule { flex: none; }

.cfg__figure { flex: none; max-height: 34cqh; margin: 0 auto clamp(6px, 1.5cqh, 14px); display: flex; align-items: center; justify-content: center; }
.cfg__figure .figure__img { max-height: 34cqh; width: auto; object-fit: contain; }

/* živé záhlavie na pokračovacích stranách dlhého textu */
.cfg__running {
  flex: none; display: flex; align-items: baseline; gap: .8em;
  margin: 0 0 clamp(6px, 1.5cqh, 14px); padding-bottom: clamp(2px, .5cqh, 5px);
  border-bottom: 1px solid var(--line);
  font-size: clamp(8.5px, 1.5cqmin, 10.5px); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.cfg__running-no { margin-left: auto; font-variant-numeric: lining-nums; }

/* ----------------------------------- sadzba dražobného poriadku -- */
/* Vizuálna referencia: tlačený katalóg DARTE (Yumpu, aukcia 675, str. 185–188):
   hustý zarovnaný text, číslované klauzuly s visiacim odsadením, nadpisy sekcií
   verzálkami a tabuľka prihodení ako samostatný vycentrovaný blok. */
.page--cfg-terms .cfg__rich,
.page--cfg-richtext .cfg__rich {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
.page--cfg-terms .cfg__rich { font-size: clamp(9.5px, 1.72cqmin, 12px); line-height: 1.42; }

/* nadpis sekcie: I. ÚČASTNÍK DRAŽBY … */
.page--cfg-terms .cfg__rich h2 {
  margin: clamp(7px, 1.7cqh, 15px) 0 clamp(2px, .5cqh, 5px);
  font-family: var(--sans);
  font-size: clamp(9.5px, 1.72cqmin, 12px);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink);
}
.page--cfg-terms .cfg__rich h2:first-child { margin-top: 0; }

.page--cfg-terms .cfg__rich p { margin: 0 0 clamp(2px, .55cqh, 6px); }

/* číslované klauzuly – číslo visí v ľavom okraji ako v tlači */
/* 2.6em nechá miesto aj dvojcifernému číslu klauzuly (10., 11.) –
   pri užšom odsadení marker vypadne mimo orezaného rámca strany */
.page--cfg-terms .cfg__rich ol { margin: 0 0 clamp(3px, .7cqh, 7px); padding-left: 2.6em; }
.page--cfg-terms .cfg__rich ol > li { margin: 0 0 clamp(1.5px, .4cqh, 4px); padding-left: .15em; }
.page--cfg-terms .cfg__rich ol > li::marker { font-weight: 600; }
.page--cfg-terms .cfg__rich ul { margin: 0 0 clamp(3px, .7cqh, 7px); padding-left: 1.5em; list-style: none; }
.page--cfg-terms .cfg__rich ul > li { position: relative; margin: 0 0 clamp(1.5px, .4cqh, 4px); }
.page--cfg-terms .cfg__rich ul > li::before { content: "•"; position: absolute; left: -1em; color: var(--gold); }

/* tabuľka prihodení / bankové údaje – vycentrovaný dvojstĺpcový prehľad */
.cfg__rich table {
  border-collapse: collapse;
  margin: clamp(5px, 1.2cqh, 12px) auto;
  width: auto;
  min-width: 58%;
  text-align: left;
  font-variant-numeric: lining-nums tabular-nums;
}
.cfg__rich table th {
  font-family: var(--sans);
  font-size: clamp(8.5px, 1.5cqmin, 10.5px);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
  padding: clamp(2px, .5cqh, 5px) clamp(6px, 1.6cqmin, 16px);
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
.cfg__rich table td {
  padding: clamp(1.5px, .4cqh, 4px) clamp(6px, 1.6cqmin, 16px);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ink-2);
}
.cfg__rich table tr:last-child td { border-bottom: 1px solid var(--ink); }
.cfg__rich table td:last-child,
.cfg__rich table th:last-child { text-align: right; }

/* rich text – rozsah zodpovedá allowlistu v src/richtext.js */
.cfg__rich { flex: 1; min-height: 0; overflow: hidden; font-size: clamp(10.5px, 1.95cqmin, 13.5px); line-height: 1.55; color: var(--ink-2); text-align: left; }
.cfg__rich h2 { margin: clamp(6px, 1.4cqh, 13px) 0 clamp(2px, .5cqh, 5px); font-family: var(--serif); font-weight: 600; font-size: clamp(12px, 2.4cqmin, 16px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.cfg__rich h2:first-child { margin-top: 0; }
.cfg__rich h3 { margin: clamp(5px, 1.2cqh, 11px) 0 clamp(2px, .4cqh, 4px); font-family: var(--sans); font-weight: 600; font-size: clamp(11px, 2.1cqmin, 14px); color: var(--ink); }
.cfg__rich p { margin: 0 0 clamp(3px, .8cqh, 7px); }
.cfg__rich ul, .cfg__rich ol { margin: 0 0 clamp(3px, .8cqh, 7px); padding-left: 1.35em; }
.cfg__rich ol { padding-left: 2.6em; }
.cfg__rich li { margin: 0 0 clamp(1px, .3cqh, 3px); }
.cfg__rich strong { color: var(--ink); font-weight: 600; }
.cfg__rich blockquote { margin: 0 0 clamp(3px, .8cqh, 7px); padding-left: .9em; border-left: 2px solid var(--gold); color: var(--muted); }
.cfg__rich a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* index autorov */
.cfg__index { flex: 1; min-height: 0; overflow: hidden; column-gap: clamp(12px, 3cqmin, 30px); columns: 2; font-size: clamp(10px, 1.85cqmin, 13px); line-height: 1.5; }
.cfg__index-row { break-inside: avoid; margin: 0 0 clamp(2px, .5cqh, 5px); display: flex; gap: .4em; align-items: baseline; }
.cfg__index-name { color: var(--ink); flex: 1; min-width: 0; }
.cfg__index-lots { color: var(--ink-2); white-space: nowrap; }
.cfg__lot { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.cfg__lot:hover { color: var(--ink); }

/* obsah */
.cfg__toc { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: clamp(2px, .7cqh, 7px); font-size: clamp(11px, 2.05cqmin, 14px); }
.cfg__toc-row { display: flex; align-items: baseline; gap: .5em; width: 100%; border: 0; background: none; padding: clamp(1px, .3cqh, 3px) 0; margin: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-align: left; }
.cfg__toc-row:hover { color: var(--ink); }
.cfg__toc-label { flex: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg__toc-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.25em); }
.cfg__toc-page { flex: none; font-variant-numeric: lining-nums; color: var(--muted); }

/* kontakty */
.cfg__contact { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: clamp(6px, 1.5cqh, 14px); }
.cfg__links { display: flex; flex-wrap: wrap; gap: clamp(4px, 1cqmin, 10px); justify-content: center; }
