:root {
  --bg: #07080a;
  --text: #ecebe6;
  --text-dim: #9fa2a8;
  --display: "Syne", system-ui, sans-serif;
  --body: "Literata", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

#surface {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: manipulation;
}

/* ---------- sejtfeliratok ---------- */

#cells {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.cell-label {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.04;
  font-family: var(--display);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 2px #000, 0 0 14px rgba(0, 0, 0, .95), 0 1px 0 rgba(0, 0, 0, .8);
  pointer-events: none;
  transition: opacity .35s ease, color .25s ease, letter-spacing .4s ease;
  will-change: transform;
  user-select: none;
}
a.cell-label { pointer-events: auto; padding: .3em .4em; border-radius: 1em; }
a.cell-label:hover, a.cell-label:focus-visible { color: #fff; outline: none; text-shadow: 0 0 2px #000, 0 0 18px rgba(255, 255, 255, .35), 0 0 30px rgba(0, 0, 0, .9); }
a.cell-label:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.cell-label[data-kind="nav"] { color: var(--keep-tint, #d6d8dc); }   /* az átvezető IRODALOM / ZENE a saját színében */
.cell-label[data-kind="name"] { color: #f6f5f1; }
.cell-label.gone { opacity: 0 !important; pointer-events: none; }
/* a nyitóoldal pontfelhő-betűi: a HTML-szöveg láthatatlan, csak kattintható és felolvasható */
.cell-label.pc, a.cell-label.pc:hover, a.cell-label.pc:focus-visible { color: transparent; text-shadow: none; }
.cell-label.pc.glitch { animation: none; translate: none; }
a.cell-label.pc { pointer-events: none; }   /* a betűkre a vászon találatvizsgálata figyel (a betűk dobozára) */
/* a főmenü almenüi: a cím csak rámutatáskor (vagy billentyűvel kijelölve) jelenik meg */
.cell-label.peek:not(.reveal):not(:focus-visible) { color: transparent; text-shadow: none; }
.cell-label.peek:not(.reveal).glitch { animation: none; }
/* „blob tracking” réteg a pontfelhő fölött */
#blobs { position: fixed; inset: 0; pointer-events: none; display: block; }
html.app-open #blobs, html.reader-open #blobs { visibility: hidden; }

/* glitch a feliratokon (rövid villanás, amikor a kép glitch-el) */
.cell-label.glitch {
  animation: label-glitch .09s steps(2, end) infinite;
  translate: var(--gx, 4px) 0;
}
@keyframes label-glitch {
  0%   { clip-path: inset(0 0 52% 0); text-shadow: -2px 0 rgba(255, 40, 190, .7), 2px 0 rgba(30, 220, 255, .7), 0 0 12px #000; }
  50%  { clip-path: inset(38% 0 0 0); text-shadow: 2.5px 0 rgba(255, 40, 190, .7), -2.5px 0 rgba(30, 220, 255, .7), 0 0 12px #000; }
  100% { clip-path: inset(0 0 0 0);  text-shadow: -2px 0 rgba(255, 40, 190, .6), 2px 0 rgba(30, 220, 255, .6), 0 0 12px #000; }
}
html.mono .cell-label.glitch { animation-name: label-glitch-mono; }
@keyframes label-glitch-mono {
  0%   { clip-path: inset(0 0 52% 0); text-shadow: -3px 0 rgba(255, 255, 255, .55), 3px 0 var(--mono-tint, #888), 0 0 12px #000; }
  50%  { clip-path: inset(38% 0 0 0); text-shadow: 4px 0 rgba(255, 255, 255, .55), -4px 0 var(--mono-tint, #888), 0 0 12px #000; }
  100% { clip-path: inset(0 0 0 0);  text-shadow: -2px 0 rgba(255, 255, 255, .4), 2px 0 var(--mono-tint, #888), 0 0 12px #000; }
}
@media (prefers-reduced-motion: reduce) { .cell-label.glitch { animation: none; translate: none; } }

/* ---------- műoldal szövegpanel ---------- */

#panel {
  position: fixed;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(14px, 3vw, 34px) clamp(16px, 3vw, 40px) clamp(24px, 4vw, 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  font-size: clamp(16px, .95rem + .25vw, 19px);
  line-height: 1.62;
  scrollbar-width: thin;
  scrollbar-color: #5a5e66 transparent;
  outline: none;
}
#panel.show { opacity: 1; pointer-events: auto; }
#panel {
  background: rgba(4, 5, 8, 0.86);
  border: 1px solid color-mix(in srgb, var(--mono-tint, #9aa3b5) 45%, transparent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 20px 60px rgba(0, 0, 0, .6), inset 0 0 40px rgba(0, 0, 0, .5);
  border-radius: 4px;
}
#panel::before, #panel::after {
  content: "";
  position: sticky;
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
#panel::before { top: -1px; margin: calc(-1 * clamp(14px, 3vw, 34px)) 0 0 calc(-1 * clamp(16px, 3vw, 40px)); border-left: 2px solid var(--mono-tint, #cfd3dc); border-top: 2px solid var(--mono-tint, #cfd3dc); }
#panel::after { position: absolute; right: 6px; bottom: 6px; border-right: 2px solid var(--mono-tint, #cfd3dc); border-bottom: 2px solid var(--mono-tint, #cfd3dc); }

.crumbs {
  display: flex;
  gap: .6em;
  flex-wrap: wrap;
  margin: 0 0 .9em;
  font-family: var(--display);
  font-size: .72em;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.work-title {
  margin: 0 0 .2em;
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.6em, 1.2em + 1.4vw, 2.4em);
  line-height: 1.02;
  letter-spacing: -.01em;
}

.meta { margin: 0 0 1.4em; font-style: italic; color: var(--text-dim); }
.about { margin: 0 0 1em; }

.poem {
  white-space: pre-wrap;
  margin: 1.6em 0;
  padding-left: 1.1em;
  border-left: 2px solid rgba(236, 235, 230, .35);
  line-height: 1.75;
}

.figure { margin: 0 0 1.4em; }
.figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.audio { width: 100%; margin: 1em 0; filter: invert(.92) hue-rotate(180deg); }
.embed { position: relative; margin: 1.4em 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.links { list-style: none; padding: 0; margin: 1.6em 0 0; display: flex; flex-wrap: wrap; gap: .6em; }
.links a {
  display: inline-block;
  padding: .45em 1.1em;
  border-radius: 999px;
  background: linear-gradient(180deg, #d9dbe0, #7c8089 55%, #b9bcc3);
  color: #0b0c0e;
  font-family: var(--display);
  font-weight: 700;
  font-size: .85em;
  letter-spacing: .06em;
  text-decoration: none;
  box-shadow: 0 0 0 1px #000, 0 6px 16px rgba(0, 0, 0, .5);
  transition: filter .2s ease;
}
.links a:hover { filter: brightness(1.15); }

/* ---------- lábléc ---------- */

.site-foot {
  position: fixed;
  right: 12px;
  bottom: 8px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(220, 222, 226, .45);
  text-shadow: 0 0 6px #000;
  pointer-events: auto;
}
.site-foot a { color: rgba(230, 232, 236, .7); text-decoration: none; }

/* ---------- WebGL nélkül ---------- */

.fallback { position: fixed; inset: 0; display: grid; place-content: center; text-align: center; gap: 1rem; pointer-events: auto; background: radial-gradient(circle at 50% 40%, #2a2d33, #07080a 70%); }
.fallback .fb-name { font-family: var(--display); font-size: clamp(32px, 7vw, 72px); font-weight: 750; text-transform: uppercase; margin: 0; }
.fallback ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.fallback a { color: var(--text); font-family: var(--display); font-size: 1.2rem; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- publikációs listák a műoldalon ---------- */

.entries-title {
  margin: 1.8em 0 .2em;
  font-family: var(--display);
  font-size: .78em;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.entries-count {
  margin: .4em 0 1.2em;
  font-family: var(--display);
  font-size: .72em;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.year { margin: 0 0 1.4em; }
.year h4 {
  margin: 0 0 .5em;
  padding-bottom: .25em;
  font-family: var(--display);
  font-size: 1.05em;
  font-weight: 750;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(236, 235, 230, .18);
}
.entries { list-style: none; margin: 0; padding: 0; }
.entries li {
  display: grid;
  gap: .1em;
  padding: .55em 0 .6em;
  border-bottom: 1px dashed rgba(236, 235, 230, .1);
}
.entries li:last-child { border-bottom: 0; }
.e-title { font-size: .98em; line-height: 1.4; }
.e-source { font-size: .85em; font-style: italic; color: var(--text-dim); line-height: 1.45; }
.e-note {
  justify-self: start;
  margin-top: .2em;
  padding: .05em .55em .1em;
  border: 1px solid rgba(236, 235, 230, .25);
  border-radius: 999px;
  font-family: var(--display);
  font-size: .66em;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.e-link {
  justify-self: start;
  margin-top: .15em;
  font-family: var(--display);
  font-size: .72em;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mono-tint, #d6d8dc);
  text-decoration: none;
}
.e-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- felső útvonalsáv: Bordás Máté › menü › almenü › mű ---------- */

#crumbs {
  position: fixed;
  top: 14px;
  left: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  max-width: min(980px, calc(100vw - 32px));
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .14em;
  pointer-events: none;
}
#crumbs[hidden] { display: none; }
#crumbs a, #crumbs span { pointer-events: auto; }
.crumb {
  color: rgba(225, 228, 235, .72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  text-shadow: 0 0 2px #000, 0 0 12px rgba(0, 0, 0, .95);
  transition: color .2s ease;
}
a.crumb:hover, .crumb-group a:hover { color: #fff; }
.crumb-home {
  color: #f2f2ee;
  font-weight: 760;
  font-size: 15px;
  letter-spacing: .1em;
  padding-left: 12px;
  border-left: 2px solid var(--mono-tint, #cfd3dc);
}
.crumb-here {
  color: var(--mono-tint, #fff);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: .08em;
  line-height: 1.15;
  text-shadow: 0 0 2px #000, 0 0 16px rgba(0, 0, 0, .95), 0 0 24px color-mix(in srgb, var(--mono-tint, #fff) 35%, transparent);
}
.crumb-group { display: inline-flex; align-items: baseline; gap: 8px; }
.crumb-group a { color: rgba(225, 228, 235, .78); text-decoration: none; font-size: 13px; font-weight: 650; text-shadow: 0 0 2px #000, 0 0 12px rgba(0, 0, 0, .95); }
.crumb-cap { color: var(--mono-tint, #fff); font-size: 15px; letter-spacing: 0; }
.crumb-sep { color: rgba(225, 228, 235, .35); font-size: 15px; letter-spacing: 0; text-shadow: 0 0 8px #000; }
a.crumb:focus-visible, .crumb-group a:focus-visible { outline: 2px solid var(--mono-tint, #fff); outline-offset: 3px; border-radius: 2px; }

/* az éppen megnyitott mű sejtje a térben */
.cell-label.active { color: var(--mono-tint, #fff); }

/* fekvő telefon: alacsony képernyő — kisebb felső sáv és panel */
@media (max-height: 500px) and (orientation: landscape) {
  #crumbs { top: 8px; left: 12px; right: 12px; gap: 2px 8px; max-width: calc(100vw - 24px); }
  .crumb, .crumb-group a { font-size: 10.5px; letter-spacing: .12em; }
  .crumb-home { font-size: 11.5px; padding-left: 8px; }
  .crumb-here { font-size: 15px; }
  #panel { font-size: 15px; line-height: 1.5; padding: 12px 16px 18px; }
  #panel::before { margin: -12px 0 0 -16px; }
  #panel.has-app { padding: 6px 6px 14px; }
  #panel.has-app::before { margin: -6px 0 0 -6px; }
}
@media (max-width: 640px) {
  #crumbs { top: 10px; left: 12px; right: 12px; gap: 2px 8px; }
  .crumb { font-size: 11px; }
  .crumb-home { font-size: 12px; padding-left: 8px; }
  .crumb-here { font-size: 17px; }
}

/* ---------- beágyazott interaktív művek ---------- */

.app-stage {
  position: relative;
  margin: 0 0 1.4em;
  aspect-ratio: 16 / 10;
  background: #000;
  border: 1px solid color-mix(in srgb, var(--mono-tint, #9aa3b5) 45%, transparent);
}
.app-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.app-full {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: .35em .8em;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .7);
  color: #eee;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.app-full:hover { background: rgba(0, 0, 0, .9); border-color: #fff; }
.app-stage.is-full {
  position: fixed;
  inset: 0;
  z-index: 50;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
}
.app-stage.is-full { height: auto !important; }
/* beágyazott programnál a panel szinte teljes egészében a programé */
#panel.has-app { padding: 10px 10px 28px; }
#panel.has-app::before { margin: -10px 0 0 -10px; }
#panel.has-app > :not(.app-stage) { margin-left: clamp(6px, 2vw, 30px); margin-right: clamp(6px, 2vw, 30px); }
/* teljes képernyőn a mű fölött egy vékony sáv a címmel és a Bezárás gombbal, hogy semmit ne takarjon */
.app-bar { display: none; }
.app-stage.is-full .app-bar {
  display: flex; align-items: center;
  position: absolute; top: 0; left: 0; right: 0; height: 36px;
  padding: 0 120px 0 14px;
  background: #000; border-bottom: 1px solid color-mix(in srgb, var(--mono-tint, #9aa3b5) 35%, transparent);
  color: var(--mono-tint, #cfd3dc);
  font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden;
}
.app-stage.is-full .app-bar span { overflow: hidden; text-overflow: ellipsis; }
.app-stage.is-full iframe { top: 36px; height: calc(100% - 36px); }
.app-stage.is-full .app-full { top: 5px; right: 8px; bottom: auto; padding: .45em .9em; }
/* álló telefonon a teljes képernyős mű 90°-kal elforgatva: a telefont elfordítva fekvő nézetet kapunk */
.app-stage.is-full.rot {
  inset: auto;
  top: 0; left: 100vw;
  width: 100vh; width: 100dvh;
  height: 100vw !important;
  transform-origin: 0 0;
  transform: rotate(90deg);
}
html.app-open #crumbs, html.app-open #cells, html.app-open .site-foot { visibility: hidden; }

/* ---------- folyóiratszámok (PDF-olvasó) ---------- */

.issues {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 18px 14px;
  margin: .9em 0 1.6em;
}
.issue {
  display: flex;
  flex-direction: column;
  gap: .35em;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.issue-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.414;
  overflow: hidden;
  background: #111317;
  border: 1px solid color-mix(in srgb, var(--mono-tint, #9aa3b5) 35%, transparent);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.issue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.issue-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: .6em;
  font-family: var(--display); font-weight: 700; font-size: .95em; line-height: 1.1; letter-spacing: .02em;
  color: var(--mono-tint, #cfd3dc);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 6px, transparent 6px 12px);
}
.issue:hover .issue-cover, .issue:focus-visible .issue-cover {
  transform: translateY(-3px);
  border-color: var(--mono-tint, #cfd3dc);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
.issue-title { font-family: var(--display); font-size: .78em; font-weight: 650; letter-spacing: .06em; line-height: 1.25; }
.issue-note { font-size: .78em; color: var(--text-dim); line-height: 1.3; margin-top: -.2em; }

html.reader-open #crumbs, html.reader-open #cells, html.reader-open .site-foot, html.reader-open #panel { visibility: hidden; }

.reader {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(5, 6, 9, .97);
  color: var(--text);
  font-family: var(--display);
}
.rd-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--mono-tint, #9aa3b5) 30%, transparent);
  background: rgba(0, 0, 0, .55);
  min-height: 52px;
  flex-wrap: wrap;
}
.rd-title { display: flex; align-items: baseline; gap: .8em; min-width: 0; flex: 1 1 200px; }
.rd-title b { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mono-tint, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-title span { font-family: var(--body); font-style: italic; font-size: 14px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rd-btn, .rd-issue, .rd-num {
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: 600 14px var(--display);
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 2px;
}
.rd-btn:hover, .rd-issue:hover { border-color: var(--mono-tint, #fff); background: rgba(255, 255, 255, .09); }
.rd-btn:disabled { opacity: .45; cursor: progress; }
.rd-btn[hidden] { display: none; }
.rd-zoomlabel { min-width: 62px; font-variant-numeric: tabular-nums; }
.rd-issue { max-width: 190px; padding-right: 6px; }
.rd-issue option { background: #111; color: #eee; }
.rd-pages { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--text-dim); }
.rd-num { width: 76px; text-align: center; cursor: text; }
.rd-close { font-size: 16px; }
.rd-view {
  position: relative;
  min-height: 0;
  overflow: auto;
  outline: none;
  display: grid;
  place-items: center;
  scrollbar-width: thin;
  scrollbar-color: #5a5e66 transparent;
}
.rd-view.zoomed { place-items: start center; cursor: grab; }
.rd-view.dragging { cursor: grabbing; user-select: none; }
.rd-spreadbox { display: flex; gap: 2px; padding: 12px; }
.rd-page { position: relative; background: #fff; box-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
.rd-page canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rd-nav {
  position: fixed;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 92px;
  margin-top: -20px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font: 300 46px/1 var(--display);
  cursor: pointer;
  transition: opacity .2s, background .2s, border-color .2s;
}
.rd-nav:hover { background: rgba(0, 0, 0, .75); border-color: var(--mono-tint, #fff); }
.rd-nav:disabled { opacity: 0; pointer-events: none; }
.rd-prev { left: 10px; }
.rd-next { right: 10px; }
.rd-foot { padding: 6px 18px 10px; }
.rd-slider { width: 100%; accent-color: var(--mono-tint, #cfd3dc); }
.rd-status {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 12px 18px; background: rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
}
.rd-status[hidden] { display: none; }
@media (max-width: 640px) {
  .rd-bar { padding: 6px 8px; gap: 6px; }
  .rd-title { flex-basis: 100%; }
  .rd-nav { width: 38px; height: 70px; font-size: 34px; opacity: .8; }
  .rd-prev { left: 2px; } .rd-next { right: 2px; }
  .rd-issue { max-width: 120px; }
  .rd-spread { display: none; }
}

/* a PDF.js szövegrétege: a lapon a szöveg kijelölhető, másolható */
.textLayer { position: absolute; text-align: initial; inset: 0; overflow: clip; opacity: 1; line-height: 1; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; z-index: 0; }
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) { z-index: 1; }
.textLayer span.markedContent { top: 0; height: 0; }
.textLayer span[role="img"] { user-select: none; cursor: default; }
.textLayer ::selection { background: rgba(0, 90, 255, .28); }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }

/* ---------- közlések szövege a helyén (versek, fordítások) ---------- */
.e-read {
  display: inline-block; justify-self: start; align-self: flex-start; width: fit-content; margin-top: .45em; padding: .28em .8em;
  border: 1px solid color-mix(in srgb, var(--mono-tint, #cfd3dc) 60%, transparent); border-radius: 2px;
  background: transparent; color: var(--mono-tint, #e6e6e6);
  font: 650 .72em var(--display); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
}
.e-read:hover, .e-read[aria-expanded="true"] { background: color-mix(in srgb, var(--mono-tint, #cfd3dc) 16%, transparent); }
.e-text { margin: 1.1em 0 .6em; padding: .2em 0 .2em 1.1em; border-left: 2px solid color-mix(in srgb, var(--mono-tint, #cfd3dc) 55%, transparent); }
.e-poem + .e-poem { margin-top: 2.2em; }
.e-poem h5 { margin: 0 0 .8em; font: 700 .86em var(--display); letter-spacing: .06em; color: var(--text); }
.e-poem-body { white-space: pre-wrap; font-family: var(--body); font-size: 1.02em; line-height: 1.62; color: var(--text); overflow-wrap: anywhere; }
.e-src { margin: 1.6em 0 0; font-size: .78em; color: var(--text-dim); }
.e-src a { color: var(--text-dim); }

/* ---------- formázott szöveg (a szerkesztő Word-szerű mezőiből) ---------- */
.rich { white-space: pre-wrap; tab-size: 10; tab-size: 2.8em; overflow-wrap: anywhere; }
.rich p { margin: 0 0 1em; }
.rich.verse p { margin: 0; }
.rich ul, .rich ol { margin: 0 0 1em; padding-left: 1.5em; white-space: normal; }
.rich li { white-space: pre-wrap; }
.rich a { color: inherit; text-decoration-color: var(--mono-tint, currentColor); text-underline-offset: .18em; }
.rich b { font-weight: 700; }
.about-rich { margin: 0 0 1em; }
.poem.rich { white-space: pre-wrap; }
