/* Неутралната страница за гостите при спрял пакет („Страницата не е достъпна“, UX 8.5; docs/design/packages.md 6.3, екран 8).
   Заредена в invite.php, site.php, album.php и day.php
   (след собствения CSS на страницата). Без inline стилове (CSP); динамично нищо не се оцветява.

   Защо собствени токени: публичните страници не зареждат style.css/theme.css. Стойностите по-долу са 1:1 копие на
   LXVNT токените от style.css :root / theme.css :root (--cream, --ink, --ink-muted, --gold, --gold-line, --line,
   --radius-card, --font-*), с префикс --gp-, за да не спорят с --ev-* на поканата и сайта. Стилът на събитието
   (палитра, шрифт, монограм) НЕ се прилага – страницата не бива да издава чие е събитието. */

.lx-gone {
  --gp-cream: #faf9f7; /* = --cream */
  --gp-paper: #fff; /* = --paper */
  --gp-ink: #292725; /* = --ink */
  --gp-ink-muted: #6c6760; /* = --ink-muted (5.3:1 върху --cream) */
  --gp-gold: #8f6d23; /* = --gold, само за орнамента */
  --gp-gold-line: #d0c19e; /* = --gold-line */
  --gp-line: #e1dcd3; /* = --line */
  --gp-radius: 12px; /* = --radius-card */
  --gp-display: 'Lora', Georgia, serif; /* = --font-display */
  --gp-body: 'Montserrat', 'Segoe UI', Arial, sans-serif; /* = --font-body */
  --gp-ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* = --ease-soft (packages.md 3.2) */

  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px 24px;
  background: var(--gp-cream);
  color: var(--gp-ink);
  font: 400 15px/1.7 var(--gp-body);
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* Картата: двойната тънка рамка „покана“ (1px + вътрешна линия на 8px) – подписът на марката, без сянка. */
.lx-gone *,
.lx-gone *::before,
.lx-gone *::after {
  box-sizing: border-box;
}
.lx-gone__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto 0; /* вертикално по средата без grid place-items (виж CLAUDE.md за zoom) */
  padding: 56px 32px 48px;
  border: 1px solid var(--gp-gold-line);
  border-radius: 2px;
  background: var(--gp-paper);
}
.lx-gone__card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gp-line);
  border-radius: 1px;
  pointer-events: none;
}

/* Орнамент: линия · диамант · линия (чист SVG + два псевдоелемента), 24px висок ред. */
.lx-gone__orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 24px;
  color: var(--gp-gold);
}
.lx-gone__orn span {
  width: 40px;
  height: 1px;
  background: var(--gp-gold-line);
}
.lx-gone__orn svg {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

.lx-gone__title {
  margin: 24px 0 0;
  font: 500 28px/1.2 var(--gp-display);
  letter-spacing: 0;
  color: var(--gp-ink);
  text-wrap: balance;
}
.lx-gone__title:focus {
  outline: none;
}
.lx-gone__text {
  max-width: 32ch;
  margin: 16px auto 0;
  color: var(--gp-ink-muted);
  text-wrap: pretty;
}

/* Долният ред: само правните връзки, малки главни, без марка на пакета и без продажба. */
.lx-gone__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 32px 0 0;
  font: 600 11px/1 var(--gp-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lx-gone__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gp-ink-muted);
  text-decoration: none;
  transition: color 200ms var(--gp-ease);
}
.lx-gone__legal a:hover,
.lx-gone__legal a:focus-visible {
  color: var(--gp-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Поява: прозрачност + 8px нагоре, 280ms, веднъж. */
@media (prefers-reduced-motion: no-preference) {
  .lx-gone__card {
    animation: lx-gone-in 280ms var(--gp-ease) both;
  }
}
@keyframes lx-gone-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (min-width: 720px) {
  .lx-gone {
    padding: 64px 32px 32px;
  }
  .lx-gone__card {
    padding: 72px 56px 64px;
  }
  .lx-gone__title {
    font-size: 36px;
  }
  .lx-gone__text {
    font-size: 16px;
  }
}

/* Докато е показана, собствените ленти на страницата (долният ред „Организирано от…“, лентата на поканата,
   плаващото „Потвърдете“) се скриват – <body class="lx-paused"> се слага от JS заедно с фрагмента. */
body.lx-paused > footer,
body.lx-paused .invite-footer,
body.lx-paused .invite-pill,
body.lx-paused .album-foot,
body.lx-paused .dayof-head {
  display: none;
}
body.lx-paused {
  margin: 0;
  background: #faf9f7; /* = --cream; без --ev-page на събитието */
}
/* Контейнерът на страницата (#invite-main, #album-main, #site-main) не добавя свои отстъпи и ширина. */
body.lx-paused main:not(.lx-gone) {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Пакети (2.8, UX 8.5): лентата „Пробна версия“ на поканата, сайта и албума — в потока, 32 px, контраст ≥ 4,5:1. */
.lx-trial-bar { box-sizing: border-box; align-self: stretch; width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 12px; padding: 6px 12px; background: transparent; border-bottom: 1px solid var(--ev-line, var(--line, #e3ddd3)); color: var(--ev-muted, var(--ink-muted, #6c6760)); font: 500 12px/1.3 var(--font-body, Montserrat, system-ui, sans-serif); text-align: center; }
.lx-trial-bar a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media print { .lx-trial-bar { display: flex; } }

/* ---- BIZ-33: общото за публичните страници (покана, сайт, албум, „Денят“) – docs/design/i18n.md, раздел 2 ----
   Превключвателят „BG ◆ EN“ (.lx-lang): тих текст 12 px с разредка, ромб 4 px между езиците, текущият е по-плътен
   и подчертан (не само цвят). Всеки бутон е 44 × 44 px. Цветовете – от стила на събитието (--ev-*). */
.lx-lang {
  --lx-lang-tap: 44px;
  --lx-lang-rule: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0; /* style.css има глобално nav { border-bottom; margin } – в прегледа на планера то важи */
  font: 500 12px/1 var(--ev-body, 'Montserrat', 'Segoe UI', Arial, sans-serif);
  letter-spacing: 0.16em;
  color: var(--ev-muted, #5b5751);
}
.lx-lang button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: var(--lx-lang-tap);
  height: var(--lx-lang-tap);
  margin: 0;
  padding: 0 4px 0 calc(4px + 0.16em);
  border: 0;
  border-radius: 2px;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lx-lang button::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: var(--lx-lang-rule);
  height: 1px;
  margin-left: calc(var(--lx-lang-rule) / -2);
  background: var(--ev-primary, #8f6d23);
  transform: scaleX(0);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lx-lang button:hover {
  color: var(--ev-text, #2e2a25);
  background: none;
}
.lx-lang button:hover::after {
  transform: scaleX(0.5);
}
.lx-lang button[aria-current='true'] {
  color: var(--ev-text, #2e2a25);
  font-weight: 700;
  cursor: default;
}
.lx-lang button[aria-current='true']::after {
  transform: scaleX(1);
}
.lx-lang button:focus-visible {
  outline: 1px solid var(--ev-primary, #8f6d23);
  outline-offset: -6px;
}
.lx-lang-sep {
  width: 4px;
  height: 4px;
  flex: none;
  background: color-mix(in srgb, var(--ev-primary, #8f6d23) 60%, transparent);
  transform: rotate(45deg);
}
/* Върху снимка (началото на сайта със снимка на цял екран): опушено стъкло и бял текст. */
.lx-lang-float {
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 35px;
  background: rgba(20, 16, 12, 0.6);
  color: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
}
.lx-lang-float button:hover,
.lx-lang-float button[aria-current='true'] {
  color: #fff;
}
.lx-lang-float button::after,
.lx-lang-float .lx-lang-sep {
  background: #fff;
}
.lx-lang-float .lx-lang-sep {
  opacity: 0.6;
}
.lx-lang-float button:focus-visible {
  outline-color: #fff;
}
/* Местата: поканата – ред над картата, подравнен по десния ръб на колоната; долу – пълните имена. */
.lx-lang-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 680px;
  margin: -12px auto 4px;
}
.lx-lang-row[hidden],
.lx-lang-foot[hidden] {
  display: none;
}
.lx-lang-corner {
  position: absolute;
  top: clamp(20px, 2.5vw, 32px);
  right: clamp(24px, 3vw, 44px);
  z-index: 6;
}
.lx-lang-foot {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
}
.lx-lang-full {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.lx-lang-full button {
  padding: 0 8px 0 calc(8px + 0.2em);
}
.lx-lang-full button::after {
  --lx-lang-rule: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .lx-lang button,
  .lx-lang button::after {
    transition: none;
  }
}
.lx-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Зареждане, докато езикът не е известен: само орнаментът (линия, ромб, линия), без думи (design 3.1). */
.lx-loading {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.lx-loading svg {
  width: 96px;
  height: 12px;
  fill: none;
  stroke: var(--ev-primary, #8f6d23);
  stroke-width: 1;
  animation: lx-breathe 1600ms ease-in-out infinite;
}
@keyframes lx-breathe {
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lx-loading svg {
    animation: none;
  }
}
/* Грешка, преди да е известен езикът – единственото място с двата езика (design 3.1): български отгоре, английски
   в курсив под него; един бутон „Опитайте пак ◆ Try again“. */
.lx-bi-error {
  max-width: 520px;
  margin: 18vh auto 0;
  padding: 0 24px;
  text-align: center;
  color: var(--ev-text, #2e2a25);
}
.lx-bi-error p {
  margin: 0 0 6px;
  font: 400 20px/1.35 var(--ev-heading, 'Lora', Georgia, serif);
}
.lx-bi-error p + p {
  font-style: italic;
  font-size: 16px;
  color: var(--ev-muted, #5b5751);
}
.lx-bi-error button {
  margin-top: 24px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 35px;
  background: none;
  color: inherit;
  font: 600 14px/1 var(--ev-body, 'Montserrat', sans-serif);
  cursor: pointer;
}
.lx-bi-error button .lx-lang-sep {
  display: inline-block;
  margin: 0 10px 2px;
  vertical-align: middle;
}
