/* ============================================================
   Różaniec Święty dla każdego — arkusz stylów główny
   Paleta: granat (Maria) + złoto (liturgiczne akcenty)
   ============================================================ */

:root {
  --maroon-950: #000d21;
  --maroon-900: #001b3a;
  --maroon-800: #002858;
  --maroon-700: #0c3b74;
  --maroon-600: #1c4f8f;
  --gold-700: #7a5c14;
  --gold-600: #9c7a1c;
  --gold-500: #c9a227;
  --gold-400: #d9b854;
  --gold-300: #e9d38f;
  /* Ciepłe tło "pergaminowe/złote" wzorowane na przesłanej grafice referencyjnej. */
  --parchment-100: #f8eece;
  --parchment-200: #edd9a0;
  --parchment-300: #ddba6c;
  --cream: #faf6ec;
  --cream-dark: #f1e8d2;
  --ink: #1c2230;
  --ink-light: #4a5468;
  --white: #ffffff;
  --ok-bg: #e5f4e9; --ok-text: #256a3c; --ok-border: #a7d7b6;
  --err-bg: #fbe9e7; --err-text: #a3352a; --err-border: #f0b3ab;
  --radius: 10px;
  --shadow-soft: 0 4px 18px rgba(0, 27, 58, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}
h1, h2, h3, h4 {
  font-family: 'Trajan Pro', 'Cinzel', Georgia, serif;
  color: var(--maroon-900);
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--maroon-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
img { max-width: 100%; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 760px; }

/* ---------- Header / Nawigacja ---------- */
.site-header {
  background: linear-gradient(180deg, var(--parchment-200), var(--parchment-300));
  border-bottom: 2px solid var(--gold-600);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--maroon-900);
}
.brand:hover { color: var(--gold-700); }
.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.brand-text {
  font-family: 'Trajan Pro', 'Cinzel', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--maroon-900);
}
.brand-text small { color: var(--gold-700); font-size: 0.75rem; letter-spacing: 0.04em; }

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--maroon-900);
  font-size: 0.92rem;
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(0, 27, 58, 0.1);
  color: var(--maroon-950);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--maroon-900); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .header-inner { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(ellipse at 30% 20%, var(--parchment-100) 0%, var(--gold-500) 60%, var(--gold-700) 115%);
  color: var(--maroon-950);
  padding: 3.5rem 0;
}
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}
.hero-mary {
  width: auto;
  height: 300px;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}
.hero-center {
  max-width: 560px;
}
.hero-center h1 {
  color: var(--maroon-950);
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  color: var(--maroon-800);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 780px) {
  .hero-flex { flex-direction: column; }
  .hero-mary { order: 3; height: 220px; }
  .hero-logo { order: 1; }
  .hero-center { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-weight: bold;
  font-family: Georgia, serif;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: var(--maroon-950);
  box-shadow: 0 3px 10px rgba(201,162,39,0.35);
}
.btn-gold:hover { color: var(--maroon-950); box-shadow: 0 5px 16px rgba(201,162,39,0.5); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.hero .btn-gold {
  background: linear-gradient(180deg, var(--maroon-800), var(--maroon-950));
  color: var(--gold-300);
  box-shadow: 0 3px 10px rgba(0,27,58,0.35);
}
.hero .btn-gold:hover { color: var(--gold-300); box-shadow: 0 5px 16px rgba(0,27,58,0.5); }
.hero .btn-outline { color: var(--maroon-950); border-color: var(--maroon-800); }
.btn-outline:hover { background: rgba(0,0,0,0.06); }
.btn-danger { background: var(--err-bg); color: var(--err-text); border-color: var(--err-border); }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.82rem; }

/* ---------- Breadcrumbs (okruszki nawigacji) ---------- */
.breadcrumbs { margin-bottom: 1rem; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-light);
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: '›'; margin: 0 0.5rem; color: var(--gold-600); }
.breadcrumbs a { color: var(--maroon-800); }
.breadcrumbs li[aria-current="page"] { color: var(--ink-light); }

/* ---------- Sections ---------- */
.section { padding: 3rem 0; }
.section-alt { background: var(--cream-dark); }
.section-title { text-align: center; margin-bottom: 1.5rem; }
.page-header { padding-bottom: 1.5rem; }

.rich-content h2 { margin-top: 1.2em; }
.rich-content h3 { margin-top: 1em; color: var(--maroon-800); }
.rich-content img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 1rem 0; }

/* ---------- Powiększanie zdjęć po kliknięciu (lightbox) ---------- */
.rich-content img,
.mystery-gallery-item img { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,13,33,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border-radius: 4px;
  cursor: default;
  margin: 0;
}
.lightbox-close {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}
.lightbox-close:hover { color: var(--gold-400); }

/* ---------- Card grid (home features) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--gold-500);
  color: var(--ink);
}
.feature-card h3 { color: var(--maroon-800); }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,27,58,0.18); }
.feature-card p { margin: 0; color: var(--ink-light); font-size: 0.95rem; }

/* ---------- Quotes ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.quote-card {
  background: var(--cream);
  padding: 1.4rem;
  border-radius: var(--radius);
  margin: 0;
  border: 1px solid var(--gold-400);
  border-left: 4px solid var(--gold-600);
}
.quote-card p { font-style: italic; margin: 0 0 0.5em; color: var(--maroon-900); }
.quote-card cite { font-size: 0.85rem; color: var(--gold-700); }

.quote-carousel-viewport { position: relative; }
.quote-slide[hidden] { display: none; }
.quote-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.quote-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold-600);
  background: var(--white);
  padding: 0;
  cursor: pointer;
}
.quote-dot.active { background: var(--gold-600); }

/* ---------- Tajemnica dnia (strona główna) ---------- */
.today-mystery-card {
  background: linear-gradient(135deg, var(--parchment-100), var(--parchment-200));
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.today-mystery-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--gold-700);
  font-weight: bold;
  margin-bottom: 0.3rem;
}
.today-mystery-card h2 { margin-bottom: 0.8rem; }
.today-mystery-card h2 a { color: var(--maroon-900); }
.today-mystery-list {
  list-style: decimal;
  text-align: left;
  display: inline-block;
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
  color: var(--ink);
}
.today-mystery-list li { margin-bottom: 0.3rem; }

/* ---------- Mysteries ---------- */
.mystery-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.mystery-days { color: var(--ink-light); font-style: italic; margin-bottom: 1rem; }
.mystery-list { list-style: none; margin: 0; padding: 0; }
.mystery-item {
  display: flex;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--cream-dark);
}
.mystery-item:first-child { border-top: none; }
.mystery-number {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--maroon-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
}
.mystery-item h3 { margin: 0 0 0.2em; font-size: 1.05rem; }
.mystery-item h3 a { color: var(--maroon-950); }
.mystery-item h3 a:hover { color: var(--gold-700); text-decoration: underline; }
.mystery-meta { margin: 0; font-size: 0.88rem; color: var(--ink-light); }
.mystery-ref-link { color: var(--gold-700); font-weight: 600; }
.mystery-ref-link:hover { text-decoration: underline; }

/* ---------- Podstrona rozważania tajemnicy ---------- */
.mystery-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.8rem 0;
}
.mystery-gallery-item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.mystery-gallery-item img { display: block; width: 100%; height: 220px; object-fit: cover; }
.mystery-detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--cream-dark);
}

/* ---------- Rozwijalne menu „Tajemnice" w nawigacji ---------- */
.nav-dropdown { position: relative; }
/* Uwaga: reguły widoczności tego menu są celowo kwalifikowane przez
   ".main-nav" (zamiast samego ".nav-dropdown-menu"), aby ich specyficzność
   (0,2,0) przebijała regułę ".main-nav ul { display: flex; }" (0,1,1)
   odpowiedzialną za układ głównego menu — inaczej menu rozwijane byłoby
   zawsze widoczne, niezależnie od najechania kursorem. */
.main-nav .nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  z-index: 60;
}
.main-nav .nav-dropdown:hover .nav-dropdown-menu,
.main-nav .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { margin: 0; }
.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 0.86rem;
  border-radius: 0;
  color: var(--maroon-900);
  white-space: normal;
}
.nav-dropdown-menu a:hover { background: var(--cream-dark); }
.nav-dropdown-heading {
  padding: 0.6rem 1rem 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-700);
  font-weight: bold;
}
.nav-dropdown-heading:first-child { padding-top: 0.2rem; }

@media (max-width: 880px) {
  .main-nav .nav-dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    max-height: none;
    padding-left: 0.6rem;
  }
}

/* ---------- Blog ---------- */
.blog-list { display: grid; gap: 1.4rem; }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.blog-card > *:not(.blog-card-cover-link) { padding-left: 1.4rem; padding-right: 1.4rem; }
.blog-card > h3 { margin-top: 1.4rem; }
.blog-card > .read-more { display: inline-block; margin-bottom: 1.4rem; }
.blog-card-cover-link { display: block; }
.blog-card-cover { display: block; width: 100%; height: 220px; object-fit: cover; }
.blog-meta { color: var(--ink-light); font-size: 0.85rem; margin-bottom: 0.5rem; }
.read-more { font-weight: bold; }

.blog-tag-bar, .blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.blog-tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--gold-500);
  color: var(--maroon-900);
  font-size: 0.82rem;
  background: var(--white);
}
.blog-tag:hover, .blog-tag.active { background: var(--gold-500); color: var(--maroon-950); }
.blog-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4rem; gap: 1rem; }
.blog-pagination-info { color: var(--ink-light); font-size: 0.9rem; }

/* ---------- Video ---------- */
/* Wyszukiwarka filmów po tytule (zawsze widoczna nad kategoriami). */
.video-search-bar { margin-top: 1.4rem; max-width: 420px; }
.video-search-bar input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
}
.video-search-bar input:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }

/* Widok startowy — kafelki kategorii (lekkie: jedna miniaturka + licznik). */
.video-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
/* Elementy przełączane atrybutem [hidden] przez public/js/video.js — trzeba
   to wymusić jawnie, bo sam atrybut [hidden] przegrywa z regułą "display"
   ustawioną przez klasę na tym samym elemencie (tak jak przy .lightbox-overlay). */
.video-cat-grid[hidden],
.video-detail-view[hidden],
.video-search-view[hidden] { display: none; }
.video-cat-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,27,58,0.18); }
.video-cat-card-thumb { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--maroon-950); }
.video-cat-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-cat-card-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-500); font-size: 2.2rem; }
.video-cat-card-body { padding: 0.9rem 1.1rem; }
.video-cat-card-name { display: block; font-weight: bold; color: var(--maroon-800); margin-bottom: 0.2rem; }
.video-cat-card-count { display: block; font-size: 0.85rem; color: var(--ink-light); }

/* Widok filmów w wybranej kategorii / wyników wyszukiwania. */
.video-back-btn { margin-bottom: 1.2rem; }
.video-category-title { border-bottom: 2px solid var(--gold-500); padding-bottom: 0.4rem; margin-bottom: 1.2rem; }
.video-search-summary { color: var(--ink-light); margin-bottom: 1.2rem; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }

/* Miniaturka filmu — sam obrazek + ikona odtwarzania; prawdziwy odtwarzacz
   (ciężka ramka iframe/video) powstaje dopiero po kliknięciu, w oknie
   modalnym poniżej — dzięki temu lista filmów pozostaje lekka. */
.video-thumb-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-thumb-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,27,58,0.18); }
.video-thumb-media { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.video-thumb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; background: var(--maroon-950); }
.video-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.15);
}
.video-thumb-body { padding: 0.85rem 1.05rem; }
.video-thumb-title { display: block; font-weight: bold; color: var(--maroon-800); }

/* Okno modalne z właściwym odtwarzaczem. */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,13,33,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.video-modal[hidden] { display: none; }
.video-modal-inner { width: 100%; max-width: 900px; }
.video-modal-player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 4px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.video-modal-player iframe, .video-modal-player video { width: 100%; height: 100%; border: none; display: block; }
.video-modal-title { color: var(--cream); margin: 1rem 0 0.3rem; }
.video-modal-desc { color: var(--parchment-200); margin: 0; }
.video-modal-close {
  display: block;
  margin-left: auto;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.3rem 0.6rem;
}
.video-modal-close:hover { color: var(--gold-400); }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.6rem; }
.cal-nav h2 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.cal-day { background: var(--white); border-radius: 8px; padding: 0.7rem; border-left: 4px solid var(--maroon-600); box-shadow: var(--shadow-soft); font-size: 0.85rem; }
.cal-day.cal-sunday { border-left-color: var(--gold-500); background: var(--cream-dark); }
.cal-day-num { font-weight: bold; font-size: 1.1rem; color: var(--maroon-800); }
.cal-day-weekday { color: var(--ink-light); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 0.3rem; }
.cal-day-title { font-weight: bold; margin-bottom: 0.2rem; }
.cal-day-commemoration, .cal-day-note { font-size: 0.78rem; color: var(--ink-light); }
.cal-day-color { font-size: 0.72rem; margin-top: 0.3rem; color: var(--ink-light); }
.liturgical-red { border-left-color: #a3352a; }
.liturgical-violet { border-left-color: #5b3a86; }
.liturgical-green { border-left-color: #2f6b3a; }
.liturgical-rose { border-left-color: #d68fa0; }
.liturgical-black { border-left-color: #222; }
.liturgical-white { border-left-color: var(--gold-500); }

/* ---------- Jak odmawiać różaniec — dwie kolumny językowe ---------- */
.two-col-lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.two-col-lang-column {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.two-col-lang-heading {
  text-align: center;
  border-bottom: 2px solid var(--gold-500);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.two-col-lang-column .rich-content h3 {
  color: var(--maroon-800);
  font-size: 1.05rem;
  margin-top: 1.3em;
}
.two-col-lang-column .rich-content h3:first-child { margin-top: 0; }
.lang-la { font-style: italic; }
.lang-la h3 { font-style: normal; }

@media (max-width: 860px) {
  .two-col-lang { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 1rem; max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-weight: bold; color: var(--maroon-900); }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="date"], .form input[type="file"], .form textarea, .form select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #cfc6ae;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.form textarea { resize: vertical; }
.checkbox-label { flex-direction: row !important; align-items: flex-start; gap: 0.5rem !important; font-weight: normal !important; }
.checkbox-label input { margin-top: 0.25rem; }
.radio-group { display: flex; gap: 1.2rem; font-weight: normal; }
.radio-group label { flex-direction: row; align-items: center; gap: 0.4rem; font-weight: normal; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-field label { font-weight: bold; color: var(--maroon-900); }
.form-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-field-row { grid-template-columns: 1fr; } }

.alert { padding: 0.8rem 1rem; border-radius: 8px; font-weight: bold; }
.alert-success { background: var(--ok-bg); color: var(--ok-text); border: 1px solid var(--ok-border); }
.alert-error { background: var(--err-bg); color: var(--err-text); border: 1px solid var(--err-border); }

.empty-state { color: var(--ink-light); font-style: italic; }

/* Pole-pułapka na boty (honeypot) — całkowicie niewidoczne dla ludzi. */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Rich text editor (shared markup) ---------- */
.rich-editor { border: 1px solid #cfc6ae; border-radius: 8px; overflow: hidden; background: var(--white); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.4rem; background: var(--cream-dark); border-bottom: 1px solid #cfc6ae; }
.rich-toolbar button {
  border: 1px solid transparent;
  background: var(--white);
  border-radius: 5px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--maroon-900);
}
.rich-toolbar button:hover { border-color: var(--gold-500); background: var(--cream); }
.rich-toolbar select.rich-toolbar-select {
  border: 1px solid transparent;
  background: var(--white);
  border-radius: 5px;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--maroon-900);
  max-width: 8.5rem;
}
.rich-toolbar select.rich-toolbar-select:hover { border-color: var(--gold-500); background: var(--cream); }
.rich-toolbar input[type="color"].rich-toolbar-color {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.15rem;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
}
.rich-toolbar input[type="color"].rich-toolbar-color:hover { border-color: var(--gold-500); }
.rich-toolbar .rich-toolbar-sep { width: 1px; align-self: stretch; background: #cfc6ae; margin: 0 0.15rem; }
.rich-content-editable {
  min-height: 180px;
  padding: 1rem;
  outline: none;
  line-height: 1.6;
}
.rich-content-editable:focus { background: #fffdf6; }

/* ---------- Pasek "Udostępnij" (na dole treści każdej strony) ---------- */
.share-bar-section { padding: 1.4rem 0 2.6rem; }
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--cream-dark);
}
.share-label { font-weight: bold; color: var(--maroon-800); margin-right: 0.2rem; }
.share-link {
  display: inline-block;
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--maroon-900);
  background: var(--white);
  cursor: pointer;
  line-height: 1.4;
}
.share-link:hover { background: var(--cream); border-color: var(--gold-600); color: var(--maroon-950); }
.share-link.share-copied { background: var(--gold-500); border-color: var(--gold-600); color: var(--maroon-950); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--parchment-300), var(--parchment-200));
  border-top: 2px solid var(--gold-600);
  color: var(--maroon-900);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer-inner { text-align: center; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; margin: 0 auto 0.8rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.footer-text { font-size: 0.9rem; }
.footer-social { display: flex; justify-content: center; gap: 0.7rem; margin: 1rem 0 1.2rem; }
.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--maroon-900); color: var(--parchment-100);
  transition: background 0.15s, transform 0.15s;
}
.footer-social-link:hover { background: var(--gold-600); color: var(--maroon-950); transform: translateY(-2px); }
.footer-meta { font-size: 0.8rem; color: var(--maroon-800); }
.footer-meta a { color: var(--maroon-950); text-decoration: underline; }
