/* =====================================================================
   SZERZŐI NAPLÓ – kezdőlap (index.php) és bejegyzésoldal (naplo.php)
   A fejléc és a lábléc a library.css-ből jön; itt csak a napló saját elemei.
   A nagy sáv minden témában sötét (Lanthea fényei: reggel arany, délben ezüst, este vörös).
   ===================================================================== */

.nl-page {
  --nl-night: #0f1626;
  --nl-night-2: #1a2337;
  --nl-gold: #e3b866;
  --nl-silver: #c3c8d0;
  --nl-red: #e07a60;
  --nl-ink: #1b1407;
  --nl-radius: 18px;
}

/* ---------- Fejléc: menü a kereső helyén ---------- */

.nl-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nl-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s, color .15s;
}

.nl-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nl-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (max-width: 640px) {
  .nl-nav {
    grid-area: search;
    margin: 0;
    justify-content: flex-start;
  }

  .nl-nav a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14.5px;
  }
}

/* ---------- Nagy sáv: átlépés a Könyvtárba ---------- */

.nl-hero {
  background: var(--nl-night);
  color: #fff;
  border-bottom: 1px solid #253049;
}

.nl-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 104px) 20px clamp(60px, 9vw, 108px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.nl-hero-copy {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.nl-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c9cdd4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.nl-tri {
  display: inline-flex;
  gap: 4px;
}

.nl-tri i {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--nl-gold);
}

.nl-tri i:nth-child(2) { background: var(--nl-silver); }
.nl-tri i:nth-child(3) { background: var(--nl-red); }

.nl-hero h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(46px, 7.5vw, 96px);
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
}

.nl-hero-lead {
  margin: 0;
  max-width: 580px;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: #d5d8de;
}

.nl-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 8px;
}

.nl-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 30px;
  border-radius: 14px;
  background: var(--nl-gold);
  color: var(--nl-ink);
  font-size: 18px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(227, 184, 102, .55);
  transition: background-color .15s, transform .1s;
}

.nl-cta:hover {
  background: #f0ca80;
  color: var(--nl-ink);
}

.nl-cta:active { transform: translateY(1px); }
.nl-cta svg { width: 20px; height: 20px; }

.nl-hero-link {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-underline-offset: 4px;
}

.nl-hero-link:hover { color: var(--nl-gold); }

.nl-cta:focus-visible,
.nl-hero-link:focus-visible {
  outline: 2px solid var(--nl-gold);
  outline-offset: 3px;
}

.nl-lights {
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
}

.nl-lights div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #2c3446;
}

.nl-lights div:last-child { border-bottom: 0; }
.nl-lights span { font-size: 22px; font-style: italic; }
.nl-lights small { color: #9aa3b2; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.nl-l-gold { color: var(--nl-gold); }
.nl-l-silver { color: var(--nl-silver); }
.nl-l-red { color: var(--nl-red); }

@media (max-width: 640px) {
  .nl-lights { display: none; }
  .nl-cta { width: 100%; justify-content: center; }
}

/* ---------- Elrendezés: napló + oldalsáv ---------- */

.nl-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  scroll-margin-top: 70px;
}

.nl-feed {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nl-side {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 1100px) {
  .nl-side { position: sticky; top: 92px; }
}

.nl-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.nl-feed-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
}

.nl-feed-head span { color: var(--muted); font-size: 14px; }

.nl-crumb a { font-size: 14px; text-decoration: none; }
.nl-crumb a:hover { text-decoration: underline; }

.nl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--nl-radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}

.nl-card h2 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
}

.nl-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.nl-none { text-align: center; padding: 40px 24px; }
.nl-none h1 { margin: 0 0 10px; font-size: 28px; }

/* ---------- Bejegyzés ---------- */

.nl-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--nl-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-margin-top: 80px;
}

.nl-post-head {
  padding: 20px 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--av, #5c7fa8);
  color: #fff;
  font-weight: 650;
  font-size: 16px;
}

.nl-avatar-author {
  background: var(--nl-night);
  color: var(--nl-gold);
  font-family: "Noto Serif", "Times New Roman", serif;
  font-weight: 700;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--nl-gold) 40%, transparent);
}

.nl-post-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 15px;
}

.nl-post-meta > span { color: var(--muted); font-size: 13.5px; }
.nl-time { color: inherit; text-decoration: none; }
.nl-time:hover { text-decoration: underline; color: var(--text); }
a.nl-book { font-weight: 600; text-decoration: none; }
a.nl-book:hover { text-decoration: underline; }
span.nl-book { font-weight: 600; color: var(--text); }

.nl-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nl-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.nl-flag svg { width: 14px; height: 14px; }
.nl-flag-spoiler { background: var(--danger-soft); color: var(--danger); }
.nl-edit { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nl-edit:hover { background: var(--accent); color: var(--accent-contrast); }
.nl-edit svg { width: 13px; height: 13px; }
.nl-feed-head .nl-edit { font-size: 13.5px; padding: 8px 14px; }
.nl-flag-draft { background: var(--warning-soft); color: var(--warning); }

.nl-post-title {
  margin: 14px 22px 0;
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}

.nl-single .nl-post-title { font-size: clamp(28px, 4.4vw, 38px); }
.nl-post-title a { color: var(--text); text-decoration: none; }
.nl-post-title a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .nl-post-head { flex-wrap: wrap; }
  .nl-flags { flex-basis: 100%; justify-content: flex-start; }
}

/* ---------- A bejegyzés szövege ---------- */

.nl-prose {
  padding: 4px 22px 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: anywhere;
}

.nl-prose > :first-child { margin-top: 10px; }
.nl-prose p { margin: 0 0 1em; }
.nl-prose h2, .nl-prose h3, .nl-prose h4 { font-family: "Noto Serif", "Times New Roman", serif; font-weight: 600; line-height: 1.3; margin: 1.4em 0 .5em; }
.nl-prose h2 { font-size: 22px; }
.nl-prose h3 { font-size: 19px; }
.nl-prose h4 { font-size: 17px; }
.nl-prose ul { margin: 0 0 1em; padding-left: 1.3em; }
.nl-prose li { margin: .25em 0; }
.nl-prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--gold); color: var(--muted); font-style: italic; }
.nl-prose blockquote p:last-child { margin-bottom: 0; }
.nl-prose code { font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); }
.nl-prose .md-figure { margin: 1.2em 0; }
.nl-prose > :last-child { margin-bottom: 18px; }

.nl-missing {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 14px;
}

/* ---------- Galéria ---------- */

.nl-gallery { margin: 1.1em 0; }

.nl-gallery-grid {
  display: grid;
  gap: 6px;
  border-radius: 14px;
  overflow: hidden;
}

.nl-gitem {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
}

.nl-gitem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.nl-gitem:hover img { transform: scale(1.03); }
.nl-gitem:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.nl-g1 .nl-gitem img { height: auto; max-height: 720px; object-fit: contain; background: var(--surface-2); }
.nl-g2 .nl-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nl-g2 .nl-gitem { aspect-ratio: 4 / 5; }
.nl-g3 .nl-gallery-grid { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 3 / 2; }
.nl-g3 .nl-gitem:first-child { grid-row: 1 / span 2; }
.nl-g4 .nl-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nl-g4 .nl-gitem { aspect-ratio: 1 / 1; }
.nl-ghidden { display: none; }

.nl-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 24, .55);
  color: #fff;
  font-size: 30px;
  font-weight: 600;
}

.nl-gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-style: italic;
  text-align: center;
}

/* Nagyítás (galéria-lapozóval) */
.nl-lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 11, 18, .94);
  color: #fff;
}

.nl-lightbox::backdrop { background: transparent; }

.nl-lightbox figure {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 64px 24px;
  box-sizing: border-box;
}

.nl-lightbox img {
  max-width: 100%;
  max-height: calc(100% - 48px);
  object-fit: contain;
  border-radius: 6px;
}

.nl-lightbox figcaption { color: #d5d8de; font-size: 14px; text-align: center; }

.nl-lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}

.nl-lb-btn:hover { background: rgba(255, 255, 255, .22); }
.nl-lb-btn:focus-visible { outline: 2px solid var(--nl-gold); outline-offset: 2px; }
.nl-lb-btn svg { width: 24px; height: 24px; }
.nl-lb-close { top: 12px; right: 12px; }
.nl-lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.nl-lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.nl-lb-count { position: absolute; top: 24px; left: 20px; color: #b9bec8; font-size: 13px; }

@media (max-width: 640px) {
  .nl-lightbox figure { padding: 56px 8px 72px; }
  .nl-lb-prev, .nl-lb-next { top: auto; bottom: 14px; transform: none; }
}

/* ---------- Hang ---------- */

.nl-audio {
  margin: 1.1em 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--nl-night);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nl-audio audio { width: 100%; }

.nl-audio-play {
  width: 48px;
  height: 48px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--nl-gold);
  color: var(--nl-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nl-audio-play:hover { background: #f0ca80; }
.nl-audio-play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.nl-audio-play svg { width: 20px; height: 20px; }
.nl-audio-play .nl-i-pause,
.nl-audio.is-playing .nl-audio-play .nl-i-play { display: none; }
.nl-audio.is-playing .nl-audio-play .nl-i-pause { display: block; }

.nl-audio-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nl-audio-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
}

.nl-audio-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-audio-time { color: #b9bec8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nl-audio:not(.is-enhanced) .nl-audio-main { display: none; }

.nl-audio-seek {
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  accent-color: var(--nl-gold);
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
}

.nl-audio-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--nl-gold) var(--p), #2f3749 var(--p)); }
.nl-audio-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.nl-audio-seek::-moz-range-track { height: 4px; border-radius: 2px; background: #2f3749; }
.nl-audio-seek::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--nl-gold); }
.nl-audio-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.nl-audio-seek:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }

/* ---------- Videó ---------- */

.nl-video {
  position: relative;
  margin: 1.1em 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.nl-video video,
.nl-video iframe,
.nl-video > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.nl-yt > img { opacity: .82; }

.nl-yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #14161c;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
  transition: transform .15s;
}

.nl-yt-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.nl-yt-play:focus-visible { outline: 3px solid var(--nl-gold); outline-offset: 3px; }
.nl-yt-play svg { width: 30px; height: 30px; margin-left: 4px; }

.nl-yt-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font-size: 12.5px;
  text-decoration: none;
}

.nl-yt-link:hover { color: #fff; background: rgba(0, 0, 0, .8); }

/* ---------- Szavazás ---------- */

.nl-poll {
  margin: 1.2em 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nl-prose .nl-poll p, .nl-prose .nl-poll ul { margin: 0; }
.nl-prose .nl-poll li { margin: 0; }
.nl-poll-q { font-size: 19px; font-weight: 600; line-height: 1.35; }
.nl-prose .nl-poll .nl-poll-meta { margin-top: -6px; color: var(--muted); font-size: 13px; }
.nl-prose .nl-poll.is-closed .nl-poll-meta { color: var(--warning); }
.nl-poll-form { display: flex; flex-direction: column; gap: 14px; }
.nl-poll fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.nl-poll-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 15.5px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.nl-poll-opt:hover { border-color: var(--accent); }
.nl-poll-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.nl-poll-opt:has(input:disabled:not(:checked)) { opacity: .5; cursor: default; }
.nl-poll-opt input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.nl-poll-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.nl-poll-foot .btn { min-height: 44px; padding: 0 20px; }
.nl-poll-msg { margin: 0 auto 0 0; color: var(--danger); font-size: 13.5px; }

.nl-prose .nl-poll-res { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.nl-poll-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.nl-poll-row small { color: var(--accent); font-size: 12.5px; font-weight: 600; }
.nl-poll-bar { margin-top: 5px; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.nl-poll-bar i { display: block; height: 100%; border-radius: 5px; background: var(--border-strong); transition: width .4s ease; }
.nl-poll-res .is-mine .nl-poll-bar i { background: var(--accent); }
.nl-poll-res .is-top .nl-poll-bar i { background: var(--gold); }
.nl-poll-res .is-top .nl-poll-row span { font-weight: 600; }
.nl-poll-n { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.nl-poll-plain { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.nl-poll-note { margin: 0; color: var(--muted); font-size: 14px; }
.nl-poll > .nl-link { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) { .nl-poll-bar i { transition: none; } }

/* ---------- Spoilerzár ---------- */

.nl-spoiler {
  margin: 14px 22px 18px;
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.nl-spoiler svg { width: 30px; height: 30px; color: var(--muted); }
.nl-spoiler p { margin: 0; max-width: 460px; color: var(--muted); line-height: 1.55; }
.nl-spoiler p b { color: var(--text); }
.nl-spoiler .btn { min-height: 44px; }

/* ---------- Műveletek: tetszik, hozzászólás, megosztás ---------- */

.nl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

.nl-act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}

.nl-act:hover { background: var(--accent-soft); color: var(--text); }
.nl-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nl-act:disabled { opacity: .5; cursor: default; }
.nl-act svg { width: 20px; height: 20px; }
.nl-act[aria-expanded="true"] { background: var(--surface-2); color: var(--text); font-weight: 600; }
.nl-share { margin-left: auto; }
.nl-act-note { padding: 0 14px; color: var(--muted); font-size: 13px; }

.nl-heart path { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill .15s, stroke .15s; }
.nl-act[aria-pressed="true"] { color: var(--danger); }
.nl-act[aria-pressed="true"] .nl-heart path { fill: currentColor; stroke: currentColor; }
.nl-act.is-pop .nl-heart { animation: nl-pop .35s ease; }

@keyframes nl-pop {
  40% { transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .nl-act.is-pop .nl-heart { animation: none; }
  .nl-gitem img, .nl-yt-play { transition: none; }
}

@media (max-width: 420px) {
  .nl-act { padding: 0 10px; }
  .nl-share span { display: none; }
}

/* ---------- Hozzászólások ---------- */

.nl-comments {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 45%, var(--surface));
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-comments[aria-busy="true"] { opacity: .6; }

.nl-clist,
.nl-replies {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nl-replies {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.nl-c {
  display: flex;
  gap: 12px;
  scroll-margin-top: 90px;
}

.nl-c:target .nl-c-body { background: var(--accent-soft); border-radius: 8px; box-shadow: 0 0 0 6px var(--accent-soft); }

.nl-c .nl-avatar { width: 36px; height: 36px; font-size: 14px; }
.nl-avatar-photo { object-fit: cover; background: var(--surface-2); }
.nl-c-main { flex: 1 1 auto; min-width: 0; }

.nl-c-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 14px;
}

.nl-c-head time { color: var(--muted); font-size: 12.5px; }

.nl-c-body {
  margin-top: 3px;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* A hozzászólás szövege a közös Markdown-motorból jön (bekezdés, lista, idézet, kód). */
.nl-c-body p, .nl-c-body ul, .nl-c-body ol, .nl-c-body blockquote, .nl-c-body pre { margin: 0 0 .6em; }
.nl-c-body > :last-child { margin-bottom: 0; }
.nl-c-body ul, .nl-c-body ol { padding-left: 1.3em; }
.nl-c-body blockquote { padding-left: 12px; border-left: 3px solid var(--border); color: var(--muted); }
.nl-c-body code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); font-size: .92em; }
.nl-c-body pre { padding: 10px 12px; border-radius: 8px; background: var(--surface-2); overflow-x: auto; }
.nl-c-body pre code { padding: 0; background: none; }

.nl-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nl-badge-author { background: var(--nl-gold); color: var(--nl-ink); }
.nl-badge-editor { background: var(--accent-soft); color: var(--accent); }

.nl-c-actions { display: flex; gap: 14px; margin-top: 4px; }

.nl-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-underline-offset: .18em;
}

.nl-link:hover { text-decoration: underline; color: var(--accent-hover); }
.nl-link.nl-danger { color: var(--danger); }

.nl-empty,
.nl-closed {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.nl-login {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nl-login p { margin: 0; flex: 1 1 260px; font-size: 14.5px; line-height: 1.5; }
.nl-login-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-login .btn { min-height: 44px; }

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nl-field { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--muted); }

.nl-field input,
.nl-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.nl-field textarea { min-height: 84px; resize: vertical; }

.nl-field input:focus,
.nl-field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus);
}

.nl-as, .nl-replying { margin: 0; font-size: 13.5px; color: var(--muted); }
.nl-replying span { color: var(--text); font-weight: 600; }

.nl-form-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nl-form-foot .btn { min-height: 44px; padding: 0 20px; }
.nl-form-msg { margin: 0 auto 0 0; font-size: 13.5px; color: var(--danger); }

/* ---------- Lapozás, szomszédos bejegyzések ---------- */

.nl-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nl-pager .btn { min-height: 46px; padding: 0 22px; }

.nl-around {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nl-around a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}

.nl-around a:hover { border-color: var(--accent); }
.nl-around small { color: var(--muted); font-size: 12.5px; }
.nl-around .nl-older { text-align: right; grid-column: 2; }

@media (max-width: 560px) {
  .nl-around { grid-template-columns: minmax(0, 1fr); }
  .nl-around .nl-older { grid-column: 1; }
}

/* ---------- Oldalsáv ---------- */

.nl-about-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.nl-about-head img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.nl-about-head h2 { margin: 0; }

.nl-books {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.nl-books li + li { border-top: 1px solid var(--border); }

.nl-books a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.nl-books a:hover span { color: var(--accent); text-decoration: underline; }
.nl-books small { color: var(--muted); font-size: 12.5px; }
/* ---------- Összecsukott piszkozat (csak az admin látja) ---------- */
.nl-post.nl-folded { border-style: dashed; }
.nl-fold {
  display: inline-flex; align-items: center; gap: 6px; margin: 12px 22px 20px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--border); border-radius: 99px; background: transparent; color: var(--muted);
  font: inherit; font-size: 13.5px; cursor: pointer;
}
.nl-fold:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.nl-fold svg { width: 16px; height: 16px; transition: transform .2s ease; }
.nl-fold[aria-expanded="true"] svg { transform: rotate(90deg); }
.nl-fold[aria-expanded="true"] { margin-bottom: 0; }
.nl-fold-body { display: contents; }
.nl-fold-body[hidden] { display: none; }

/* ---------- Készülő kötet (oldalsáv) ---------- */
.nl-wip-eyebrow { margin: 0 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, var(--accent)); }
.nl-wip-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.nl-wip-cover img { width: 64px; height: 96px; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 2px 4px rgba(0, 0, 0, .18), 0 8px 16px -6px rgba(0, 0, 0, .35); }
.nl-wip-cover { border-radius: 2px 5px 5px 2px; }
.nl-wip-titles { min-width: 0; }
.nl-wip h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.nl-wip h2 a { color: var(--text); text-decoration: none; }
.nl-wip h2 a:hover { color: var(--accent); }
.nl-wip-eta { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.nl-wip-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 14%, transparent); overflow: hidden; }
.nl-wip-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--gold, var(--accent))); }
.nl-wip-progress { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.nl-wip-body { margin-top: 12px; font-size: 14.5px; line-height: 1.6; }
.nl-wip-body p { margin: 0 0 8px; }
.nl-wip-body > :last-child { margin-bottom: 0; }
.nl-wip-btn { width: 100%; min-height: 44px; margin-top: 14px; justify-content: center; }
.nl-wip-btn.is-on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-soft); }
.nl-wip-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.nl-wip-count { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- Naptár (oldalsáv) ---------- */
.nl-cal h2 { margin-bottom: 8px; }
.nl-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.nl-cal-month { font-size: 17px; }
.nl-cal-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer;
}
.nl-cal-btn svg { width: 18px; height: 18px; }
.nl-cal-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); color: var(--accent); }
.nl-cal-btn:disabled { opacity: .35; cursor: default; }
.nl-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.nl-cal-wd { padding: 2px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.nl-cal-day {
  position: relative; display: grid; place-items: center; height: 36px;
  border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; line-height: 1;
  text-decoration: none;
}
.nl-cal-day.has-post {
  background: var(--accent-soft); color: var(--accent); font-weight: 700; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.nl-cal-day.has-post:hover, .nl-cal-day.has-post:focus-visible { background: var(--accent); color: #fff; transform: translateY(-1px); }
.nl-cal-day[data-n]::after {
  content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor; box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor; transform: scale(.85);
}
.nl-cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--gold, var(--accent)); color: var(--text); }
.nl-cal-day.has-post.is-today { color: var(--accent); }
.nl-cal-day.is-current { background: var(--accent); color: #fff; }
.nl-cal-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.nl-side-cta { font-weight: 600; text-decoration: none; font-size: 14.5px; }
.nl-side-cta:hover { text-decoration: underline; }

.nl-join {
  background: var(--nl-night);
  border-color: var(--nl-night);
  color: #fff;
}

.nl-join h2 { color: #fff; }
.nl-join p { color: #d5d8de; }
.nl-join .btn-primary { background: var(--nl-gold); border-color: var(--nl-gold); color: var(--nl-ink); min-height: 44px; width: 100%; }
.nl-join .btn-primary:hover { background: #f0ca80; border-color: #f0ca80; color: var(--nl-ink); }

/* ---------- Értesítés (link másolva) ---------- */

.nl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--toast-bg);
  color: var(--toast-text);
  box-shadow: var(--shadow-lg);
  font-size: 14.5px;
}
