/* ============================================================
   Levia – newsletter (KONCEPT, nenasazovat), 6. 11. 2026
   Načítá se po styles.css a sluzby.css z levia-web a přebírá jejich tokeny,
   tlačítka, navigaci, drobečky, hero podstránky, kontaktní box i patičku.
   Tady jsou jen prvky, které web zatím nemá: pole formuláře, karty vydání,
   článek vydání a stav po odeslání.
   Pevné pravidlo: rámeček, stín, pozadí i záře se mění plynule – přechod je
   v základním stavu a stín má ve všech stavech stejný počet vrstev.
   ============================================================ */

/* Lokální otevření přes file:// – Worker pozadí se nespustí; třídu .is-file nastaví newsletter.js a pod stránku dá statické nebe z brand manuálu */
.is-file .sky { position: fixed; inset: 0; background: #05060a url('../../levia-brand-manual/assets/pozadi/nebe-web.jpg') center / cover no-repeat; }
.is-file .sky__view { display: none; }

/* ============================ PODTITUL A PŘÍBĚH NÁZVU ============================ */
.nl-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 34px 38px; border-radius: var(--radius);
  background-color: var(--plocha-karty); border: 1px solid var(--ramecek-karty); }
.nl-why__q { margin: 0; }
.nl-why__q p { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; text-transform: uppercase; color: #fff; text-wrap: balance; }
.nl-why__q footer { margin-top: 14px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mesic); }
.nl-why__t h2 { margin-bottom: 10px; }
.nl-why__t p { color: var(--prach); font-size: 16.5px; line-height: 1.6; max-width: 52ch; }

/* ============================ FAKTA POD PEREXEM ============================ */
.nl-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.nl-facts li { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; color: var(--hvezda); }
.nl-facts svg { width: 20px; height: 20px; flex: none; color: var(--mlhovina); }

/* ============================ PŘIHLÁŠENÍ ============================ */
.nl-signup {
  position: relative;
  padding: 32px 32px 30px;
  border-radius: var(--radius);
  background-color: var(--plocha-karty);
  border: 1px solid var(--ramecek-karty);
}
.nl-signup__t { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.15; text-transform: uppercase; color: #fff; }
/* mezery přes margin, ne přes gap: skrytá chyba (výška 0) tak nepřidá prázdný řádek mezi tlačítko a text o souhlasu */
.nl-form { display: grid; gap: 0; margin-top: 22px; }
.nl-form > * + * { margin-top: 14px; }
.nl-form > .field__error { margin-top: 0; transition: opacity var(--t-odkaz) var(--ease), max-height var(--t-odkaz) var(--ease), margin-top var(--t-odkaz) var(--ease); }
.nl-form > .field__error.is-on { margin-top: 14px; }
.nl-form .btn-glow-wrap { width: 100%; }
.nl-form .btn { width: 100%; justify-content: center; }
.nl-form > .nl-legal { margin-top: 12px; }
.nl-legal { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--prach); }
.nl-legal a { color: var(--mlhovina); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, .45); text-underline-offset: 3px;
  transition: text-decoration-color var(--t-odkaz) var(--ease), color var(--t-odkaz) var(--ease); border-radius: 3px;
  outline: 2px solid transparent; outline-offset: 2px; }
.nl-legal a:focus-visible { outline-color: var(--mlhovina); }
@media (hover: hover) { .nl-legal a:hover { text-decoration-color: var(--mlhovina); } }

/* pole formuláře – hodnoty z brand manuálu 5.6 */
.field { display: grid; gap: 8px; }
.field__label { font-weight: 500; font-size: 14.5px; line-height: 1.3; color: var(--hvezda); }
/* hvězdička u povinného pole – stejná konvence jako formulář rezervace (rezervace.css .rez__povinne) */
.field__req { margin-left: 3px; font-weight: 500; color: var(--mlhovina); }
.field__input {
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 12px;
  font: 400 16px/1.4 var(--font-body);
  color: var(--hvezda);
  background-color: var(--grafit);
  border: 1px solid var(--bridlice);
  box-shadow: 0 0 0 0 rgba(109, 94, 252, 0);
  outline: none;
  transition: border-color var(--t-odkaz) var(--ease), box-shadow var(--t-odkaz) var(--ease), background-color var(--t-odkaz) var(--ease);
}
.field__input::placeholder { color: var(--mesic); }
.field__input:focus { border-color: var(--mlhovina); box-shadow: 0 0 0 3px rgba(109, 94, 252, .28); }
.field__input[aria-invalid="true"] { border-color: var(--mars); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 143, 163, .16); }
@media (hover: hover) { .field__input:hover:not(:focus):not([aria-invalid="true"]) { border-color: var(--mesic); } }
.field__error { display: flex; gap: 7px; align-items: flex-start; font-weight: 500; font-size: 13.5px; line-height: 1.45; color: var(--mars);
  max-height: 0; opacity: 0; overflow: hidden; transition: opacity var(--t-odkaz) var(--ease), max-height var(--t-odkaz) var(--ease); }
.field__error.is-on { max-height: 60px; opacity: 1; }
.field__error svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }


/* stav po odeslání – formulář zhasne, potvrzení se plynule rozsvítí */
.nl-form, .nl-done { transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.nl-form[hidden] { display: none; }
.nl-done { display: none; opacity: 0; transform: translateY(8px); margin-top: 22px; padding: 22px 22px 20px; border-radius: 14px;
  background-color: rgba(109, 94, 252, .14); border: 1px solid rgba(167, 139, 250, .45); }
.nl-done.is-on { opacity: 1; transform: none; }
.nl-done__t { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 17px; color: #fff; }
.nl-done__t svg { width: 22px; height: 22px; color: var(--mlhovina); flex: none; }
.nl-done p { margin-top: 8px; color: var(--prach); font-size: 15.5px; line-height: 1.55; }
.nl-done b { color: var(--hvezda); font-weight: 600; }
.is-sent .nl-form { opacity: 0; transform: translateY(-6px); }

/* ============================ ARCHIV ============================ */
.nl-arch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.nl-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 100%;
  padding: 24px 26px 22px;
  border-radius: var(--radius);
  background-color: var(--plocha-karty);
  border: 1px solid var(--ramecek-karty);
  color: inherit; text-decoration: none;
  outline: none;
  box-shadow: 0 0 0 0 rgba(10, 11, 15, 0), 0 0 0 0 rgba(167, 139, 250, 0), 0 18px 50px -30px rgba(109, 94, 252, 0);
  transition: border-color var(--t-karta) var(--ease), background-color var(--t-karta) var(--ease), box-shadow var(--t-karta) var(--ease);
}
.nl-card__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.nl-card__meta b { color: var(--mlhovina); font-weight: 500; }
.nl-card__meta span { color: var(--mesic); }
.nl-card h3 { margin: 4px 0 0; }
.nl-card p { color: var(--prach); font-size: 15px; line-height: 1.55; }
.nl-card .rel__go { margin-top: auto; }
.nl-card:focus-visible { box-shadow: var(--ring), 0 18px 50px -30px rgba(109, 94, 252, 0); }
@media (hover: hover) {
  .nl-card:hover {
    border-color: rgba(167, 139, 250, .42);
    background-color: rgba(22, 21, 43, .72);
    box-shadow: 0 0 0 0 rgba(10, 11, 15, 0), 0 0 0 0 rgba(167, 139, 250, 0), 0 18px 50px -30px rgba(109, 94, 252, .55);
  }
  .nl-card:hover .rel__go svg { transform: translateX(4px); }
}
/* nejnovější vydání přes dva sloupce s hlavičkou */
.nl-card--new { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: stretch; padding: 14px 26px 14px 14px; }
.nl-card--new .nl-card__img { border-radius: 12px; overflow: hidden; background-color: var(--noc); align-self: center; }
.nl-card--new .nl-card__img img { display: block; width: 100%; height: auto; }
.nl-card--new .nl-card__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 10px; }
.nl-card--new h3 { font-size: 20px; }

/* ============================ VYDÁNÍ JAKO STRÁNKA ============================ */
.nl-issue { padding-bottom: 0; }
.nl-issue .container--narrow { max-width: 760px; }
.nl-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mesic); }
.nl-meta b { color: var(--mlhovina); font-weight: 500; }
.nl-head-img { margin: 34px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linka); background-color: var(--noc); }
.nl-head-img img { display: block; width: 100%; height: auto; }
.nl-art { margin-top: 40px; }
.nl-art > p, .nl-art section > p { font-size: 17.5px; line-height: 1.7; color: var(--prach); max-width: 68ch; }
.nl-art .nl-intro { font-size: 19px; line-height: 1.65; color: var(--hvezda); }
.nl-art section { padding: 40px 0; border-top: 1px solid var(--linka); }
.nl-art section:first-of-type { margin-top: 40px; }
.nl-lbl, .nl-art .nl-lbl { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mlhovina); margin-bottom: 12px; }
.nl-art h2 { font-family: var(--font-body); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; letter-spacing: -.01em; color: #fff; margin-bottom: 14px; text-wrap: balance; }
.nl-art h2.nl-h2s { font-size: 21px; }
.nl-pro { margin-top: 22px; padding: 20px 24px; border-radius: 14px; background-color: var(--grafit); border: 1px solid rgba(167, 139, 250, .3); }
.nl-pro b { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: var(--mlhovina); }
.nl-pro p, .nl-art .nl-pro p { font-size: 16.5px; line-height: 1.6; color: var(--hvezda); }
.nl-src, .nl-art .nl-src { margin-top: 18px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mesic); }
.nl-src a { color: var(--mlhovina); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, .45); text-underline-offset: 3px; border-radius: 3px;
  outline: 2px solid transparent; outline-offset: 2px; transition: text-decoration-color var(--t-odkaz) var(--ease), outline-color var(--t-odkaz) var(--ease); }
.nl-src a:focus-visible { outline-color: var(--mlhovina); }
@media (hover: hover) { .nl-src a:hover { text-decoration-color: var(--mlhovina); } }
.nl-tip { margin-top: 8px; padding: 30px 30px 32px; border-radius: var(--radius); background-color: var(--impuls); color: #fff; }
.nl-tip .nl-lbl, .nl-art .nl-tip .nl-lbl { color: #fff; }
.nl-tip h2 { margin-bottom: 10px; }
.nl-cta__btn { margin-top: 24px; }
.nl-cta__btn .btn-glow-wrap { display: inline-flex; }
.nl-tip p { font-size: 17px; line-height: 1.6; color: #fff; }
.nl-bye { display: grid; grid-template-columns: 77px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--linka); }
.nl-bye img { width: 77px; height: 77px; border-radius: 50%; display: block; }
.nl-bye p { font-size: 17px; line-height: 1.5; color: var(--hvezda); }
.nl-bye b { display: block; margin-top: 4px; font-weight: 600; color: #fff; }
.nl-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.nl-pn .nl-card { min-height: 0; }
.nl-pn .nl-card--r { text-align: right; align-items: flex-end; }

/* formulář v řádku: jméno, e-mail, tlačítko (odběr pod vydáním, na konci archivu a sekce na úvodní stránce) */
.nl-sub { max-width: 720px; margin: 30px auto 0; text-align: left; }
.nl-form--row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; align-items: end; gap: 0 14px; margin-top: 0; }
.nl-form--row > * + * { margin-top: 0; }
.nl-form--row .btn-glow-wrap { width: auto; }
.nl-form--row .btn { min-height: 52px; }
.nl-form--row .field__error, .nl-form--row .nl-legal { grid-column: 1 / -1; }
.nl-form--row .nl-legal { text-align: center; }
.field__opt { margin-left: 6px; font-weight: 400; font-size: 13px; color: var(--mesic); }

/* skryté pole proti robotům (jen v nasazení) */
.nl-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ============================ MENU: KLIENTSKÁ SEKCE ============================ */
/* stejná typografie a barvy jako ostatní položky, odlišuje ji jen drobná ikona uživatele */
.nav__links .nav__login, .site-menu .nav__login { display: inline-flex; align-items: center; gap: 7px; }
.nav__login svg { width: 15px; height: 15px; flex: none; opacity: .8; transition: opacity var(--t-odkaz) var(--ease); }
.site-menu .nav__login svg { width: 22px; height: 22px; }
@media (hover: hover) { .nav__login:hover svg { opacity: 1; } }

/* ============================ SEKCE NA ÚVODNÍ STRÁNCE ============================ */
.nlh { text-align: center; }
.nlh__in { display: flex; flex-direction: column; align-items: center; max-width: 800px; }
.nlh__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  color: var(--mlhovina); background-color: rgba(109, 94, 252, .14); border: 1px solid rgba(167, 139, 250, .45); }
.nlh__ico svg { width: 26px; height: 26px; }
.nlh__t { margin: 24px auto 0; }
.nlh__info { margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--prach); }
.nlh__form { width: 100%; max-width: 760px; margin-top: 32px; text-align: left; }
.nlh__form .nl-done { text-align: left; }
.nlh__more { margin-top: 28px; gap: 10px; }
.nlh__more svg { width: 18px; height: 18px; transition: transform var(--t-karta) var(--ease); }
@media (hover: hover) { .nlh__more:hover svg { transform: translateX(4px); } }

/* ============================ ŠTÍTEK UKÁZKY A MÍSTO PRO DALŠÍ VYDÁNÍ ============================ */
.nl-badge { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 9px; border-radius: 999px; vertical-align: 1px;
  font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mlhovina); background-color: rgba(109, 94, 252, .14); border: 1px solid rgba(167, 139, 250, .35); }
.nl-meta .nl-badge { margin-left: 0; }
.nl-vzor { margin: 0 0 22px; padding: 12px 16px; border-radius: 12px; border: 1px dashed rgba(167, 139, 250, .45); font-size: 15px; line-height: 1.5; color: var(--prach); max-width: 64ch; }
.nl-card--next { background-color: transparent; border-style: dashed; border-color: var(--linka); }
.nl-card--next .nl-card__meta b { color: var(--mesic); }
/* jediná karta (zatím bez vydání): na střed, ne do rohu mřížky */
.nl-arch > .nl-card--next:only-child { grid-column: 1 / -1; width: 100%; max-width: 440px; justify-self: center; }
.nl-pn--one { grid-template-columns: minmax(0, 1fr); }

/* ============================ MOBIL ============================ */
@media (max-width: 960px) {
  .nl-arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-card--new { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nl-signup { padding: 24px 20px 22px; }
  .nl-why { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 22px; }
  .nl-arch { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nl-card--new { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px 12px 20px; }
  .nl-card--new .nl-card__body { padding: 10px 10px 0; }
  .nl-form--row { grid-template-columns: minmax(0, 1fr); }
  .nl-form--row > * + * { margin-top: 14px; }
  .nl-form--row .btn-glow-wrap { width: 100%; }
  .nl-form--row .btn { width: 100%; justify-content: center; }
  .nl-pn { grid-template-columns: minmax(0, 1fr); }
  .nl-pn .nl-card--r { text-align: left; align-items: flex-start; }
  .nl-art section { padding: 32px 0; }
  .nl-tip { padding: 24px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .nl-form, .nl-done { transition: opacity 320ms var(--ease); transform: none !important; }
  .nl-card .rel__go svg { transition: none; }
}
/* předchozí vydání: šipka doleva jede doleva */
@media (hover: hover) { .nl-pn .nl-card:not(.nl-card--r):hover .rel__go svg { transform: translateX(-4px); } }
/* stavové stránky přihlášení (/newsletter/potvrzeno, odhlaseno, zkontrolujte-email, nepodarilo-se) – jen rozestupy, žádná nová komponenta */
.nl-stav { padding-bottom: 120px; }
.nl-stav .sh__lead + .sh__lead { margin-top: 12px; }
.nl-stav__cta { margin-top: 32px; }
