/*
Theme Name: ROD Jutrzenka
Theme URI: https://rodjutrzenka.szczecin.pl
Description: Motyw dla ogłoszeń ROD Jutrzenka Szczecin — dopasowany do strony głównej.
Version: 1.9
Author: ROD Jutrzenka
Text Domain: rod-jutrzenka
*/

/* ============================================================
   ROD Jutrzenka — Design System (identyczny ze stroną główną)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,700;1,400;1,700&family=Nunito:wght@400;600;700&display=swap');

/* ─── Gutenberg utility classes (wp-block-library jest wyłączone) ── */
.has-text-align-left    { text-align: left; }
.has-text-align-center  { text-align: center; }
.has-text-align-right   { text-align: right; }

.has-small-font-size    { font-size: 0.875rem !important; }
.has-normal-font-size,
.has-medium-font-size   { font-size: 1.125rem !important; }
.has-large-font-size    { font-size: 1.75rem !important; }
.has-x-large-font-size  { font-size: 2.25rem !important; }
.has-huge-font-size,
.has-gigantic-font-size { font-size: 2.75rem !important; }

.has-drop-cap:not(:focus)::first-letter {
  float: left; font-size: 5.4em; line-height: 0.68;
  font-weight: 700; margin: 0.1em 0.15em 0 0;
}

/* Bold/italic inherit from editor */
strong { font-weight: 700; }
em     { font-style: italic; }

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --moss:        #3a6147;
  --moss-deep:   #264133;
  --moss-mid:    #4e7d62;
  --moss-light:  #eaf2ec;
  --honey:       #c97d2e;
  --honey-warm:  #e8a348;
  --honey-pale:  #f7edd9;
  --linen:       #f6f1e9;
  --linen-dark:  #ece5d8;
  --ink:         #1e2820;
  --ink-muted:   #5c6b5f;
  --ink-soft:    #8a9b8d;
  --white:       #fdfcfa;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   24px;

  --shadow-card: 0 2px 8px rgba(58,97,71,0.10), 0 8px 32px rgba(58,97,71,0.08);
  --shadow-card-hover: 0 6px 20px rgba(58,97,71,0.18), 0 20px 48px rgba(58,97,71,0.12);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

  --max-w: 1380px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  width: 100%;
  font-size: 17.6px;
}
body {
  font-family: var(--font-body);
  background: var(--linen);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

/* ─── WordPress global-styles overrides ─────────────────────── */
.wp-site-blocks,
.wp-site-blocks > *,
.is-layout-constrained > *,
.is-layout-flow > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.site-header,
.nav-mobile,
.page-hero,
.section,
.add-post-bar,
.site-footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none !important; }
ul { list-style: none; }

/* ─── Force remove underlines from all theme links ──────────── */
.post-card-title a,
.post-card-link,
.post-nav a,
.post-nav-link,
.post-nav-title,
.back-to-list,
.nav-links a,
.nav-mobile a,
.footer-col a,
.breadcrumb a {
  text-decoration: none !important;
}

/* ─── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
p  { color: var(--ink-muted); }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--honey);
  display: block;
  margin-bottom: 10px;
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-content { padding: 64px 24px; max-width: var(--max-w); margin: 0 auto; }

/* ─── HEADER / NAV ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--moss-deep);
  background-image:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(78,125,98,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(201,125,46,0.08) 0%, transparent 60%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 4px 32px rgba(0,0,0,0.28);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--honey) 0%, var(--honey-warm) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--white);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(201,125,46,0.35);
}
.nav-logo:hover .nav-logo-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 4px 18px rgba(201,125,46,0.55);
}
.nav-logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s var(--ease-spring);
}
.nav-logo-img + .nav-logo-img { margin-left: -4px; }
.nav-logo:hover .nav-logo-img { transform: scale(1.04); }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav-logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 1px;
}
.nav-links { display: flex; align-items: center; gap: 0; margin-left: 28px; }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.15s;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 14px; right: 14px;
  height: 2px;
  background: var(--honey-warm);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--honey-warm); background: rgba(201,125,46,0.10); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links .nav-cta {
  background: var(--honey);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 10px 22px;
  margin-left: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.25s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(201,125,46,0.35);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta.active {
  background: var(--white);
  color: var(--moss-deep) !important;
  box-shadow: 0 2px 12px rgba(255,255,255,0.20);
}
.nav-links .nav-cta:hover {
  background: var(--honey-warm);
  transform: translateY(-2px);
  box-shadow: 0 5px 22px rgba(201,125,46,0.50);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-spring), opacity 0.2s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--moss-deep);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  padding: 10px 32px;
  border-radius: var(--radius-md);
  transition: color 0.2s, background 0.2s;
  text-align: center;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--white); }
.nav-mobile a.active { color: var(--honey-warm); }
.nav-mobile .nav-cta-mobile {
  margin-top: 16px;
  background: var(--honey);
  color: var(--white) !important;
  font-size: 1.2rem;
  border-radius: 50px;
  padding: 14px 36px;
}

/* ─── PAGE HERO (ogłoszenia header) ────────────────────────── */
.page-hero {
  background: var(--moss-deep);
  padding: 96px 24px 130px;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: -48px;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 120% at 85% 60%, rgba(201,125,46,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 100% at 10% 40%, rgba(58,97,71,0.5) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(20,33,24,0.35));
  pointer-events: none;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}
.page-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--honey-warm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--honey-warm);
}
.page-hero h1 {
  font-family: 'Nunito', system-ui, sans-serif !important;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 14px;
}
.page-hero h1 em { font-style: italic; color: var(--honey-warm); }
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 520px; }

/* ─── POSTS GRID (lista ogłoszeń) ───────────────────────────── */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

/* Cała karta jest linkiem — reset stylów <a> */
.post-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1.5px solid var(--linen-dark);
  border-left: 3px solid transparent;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
              border-color 0.2s;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--honey);
  text-decoration: none !important;
  color: inherit;
}

/* Fото — lewa kolumna 38% */
.post-card-thumb {
  flex: 0 0 38%;
  max-width: 38%;
  min-height: 220px;
  overflow: hidden;
  background: var(--moss-light);
  position: relative;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }

/* Placeholder bez zdjęcia */
.post-card-thumb--empty {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 12px,
      rgba(58,97,71,0.06) 12px,
      rgba(58,97,71,0.06) 13px
    ),
    linear-gradient(135deg, #d4e8d8 0%, #e8f0e4 40%, #f0ead8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card-thumb--empty svg {
  width: 48px; height: 48px;
  opacity: 0.45;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s;
}
.post-card:hover .post-card-thumb--empty svg {
  transform: scale(1.1) rotate(5deg);
  opacity: 0.65;
}

/* Treść — prawa kolumna */
.post-card-body {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.post-card-date {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
}
.post-card-author {
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.post-card-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem) !important;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.post-card-excerpt {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  flex: 1;
}
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  background: var(--moss);
  padding: 9px 20px;
  border-radius: 50px;
  align-self: flex-start;
  transition: background 0.2s, gap 0.2s var(--ease-spring);
  text-decoration: none !important;
}
.post-card:hover .post-card-link {
  background: var(--honey);
  gap: 12px;
}

/* Mobilny — układanie w pionie */
@media (max-width: 700px) {
  .post-card { flex-direction: column; }
  .post-card-thumb { flex: none; max-width: 100%; min-height: 200px; }
  .post-card-body { padding: 20px 22px; }
  .post-card-title { font-size: clamp(1.2rem, 5vw, 1.5rem) !important; }
}

/* ─── SINGLE POST ───────────────────────────────────────────── */
.rod-post-single {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.rod-post-featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  max-height: 480px;
}
.rod-post-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.single-post-date {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey);
}
.single-post-author {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
  line-height: 1.15;
}
.single-post-title em { font-style: italic; color: var(--honey); }
.single-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-muted);
}
.single-post-content p { margin-bottom: 1.4em; }
.single-post-content h2, .single-post-content h3 {
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}
.single-post-content img {
  border-radius: var(--radius-md);
  margin: 2em 0;
  box-shadow: var(--shadow-card);
}
.single-post-content a { color: var(--moss); font-weight: 700; }
.single-post-content a:hover { color: var(--honey); }
.single-post-content blockquote {
  border-left: 4px solid var(--honey);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--honey-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--ink);
}
.post-nav {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--linen-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.post-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--moss);
  text-decoration: none;
  transition: color 0.2s;
}
.post-nav a:hover { color: var(--honey); }
.back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--moss);
  margin-bottom: 32px;
  transition: gap 0.2s var(--ease-spring), color 0.2s;
}
.back-to-list:hover { color: var(--honey); gap: 12px; }

/* ─── ADD POST BUTTON ────────────────────────────────────────── */
.add-post-bar {
  background: var(--moss-light);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.add-post-bar p {
  font-size: 0.95rem;
  color: var(--ink-muted);
}
.add-post-bar strong { color: var(--ink); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.2s, background 0.2s;
}
.btn:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
.btn:active { transform: scale(0.97) !important; }
.btn-primary {
  background: var(--honey);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(201,125,46,0.30);
}
.btn-primary:hover {
  background: var(--honey-warm);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201,125,46,0.45);
}

/* No posts */
.no-posts {
  text-align: center;
  padding: 80px 24px;
  color: var(--ink-muted);
}
.no-posts h3 { font-family: var(--font-display); margin-bottom: 8px; }

/* ─── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 24px 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--honey-warm);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ─── FRONT-END SUBMISSION FORM ──────────────────────────────── */
.add-post-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 24px;
}
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-group label .required { color: var(--honey); }
.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--linen-dark);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(58,97,71,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input[type="file"] {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 6px;
}
.submission-success {
  background: var(--moss-light);
  border-left: 4px solid var(--moss);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 28px;
  color: var(--moss-deep);
  font-size: 0.95rem;
}
.submission-error {
  background: #fdf0e9;
  border-left: 4px solid var(--honey);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 28px;
  color: #7a3f10;
  font-size: 0.95rem;
}
.submission-notice {
  background: var(--linen-dark);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--ink-muted);
}
.submission-notice a { color: var(--moss); font-weight: 700; }

/* ─── SCREEN READER ONLY (hide visually but keep for a11y) ──── */
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ─── PAGINATION ──────────────────────────────────────────────── */
.pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
.pagination .navigation {
  width: 100%;
  display: flex;
  justify-content: center;
}
.pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: var(--white);
  border: 1.5px solid var(--linen-dark);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--moss); color: var(--moss); }
.pagination .page-numbers.current {
  background: var(--moss);
  color: var(--white);
  border-color: var(--moss);
}

/* ─── NO POSTS STATE ──────────────────────────────────────────── */
.no-posts {
  text-align: center;
  padding: 80px 24px;
}
.no-posts-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}
.no-posts h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 12px;
}
.no-posts p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

/* ─── SECTION WRAPPER ────────────────────────────────────────── */
.section { padding: 72px 0 80px; }
.section--linen { background: var(--linen); }
/* When a section follows an add-post-bar, compensate for hero overlap */
.section--linen:first-of-type { padding-top: 80px; }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: rgba(255,255,255,0.70);
  font-weight: 600;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--honey-warm); }
.breadcrumb span:last-child {
  color: rgba(255,255,255,0.40);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* ─── PAGE HERO COMPACT (single post) ────────────────────────── */
.page-hero--compact {
  padding: 40px 24px 64px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  margin-bottom: -24px;
}
.page-hero--compact h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

/* ─── POST NAV ADJACENT ──────────────────────────────────────── */
.post-nav-adjacent {
  display: flex;
  gap: 24px;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.post-nav-link:hover { color: var(--honey); }
.post-nav-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.post-nav-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  color: var(--moss);
  transition: color 0.2s;
  display: block;
}
.post-nav-link:hover .post-nav-title { color: var(--honey); }

/* ─── SINGLE POST BODY ───────────────────────────────────────── */
.rod-post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-muted);
}
.rod-post-body p { margin-bottom: 1.4em; }
.rod-post-body h2, .rod-post-body h3 {
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}
.rod-post-body img {
  border-radius: var(--radius-md);
  margin: 2em 0;
  box-shadow: var(--shadow-card);
}
.rod-post-body a { color: var(--moss); font-weight: 700; }
.rod-post-body a:hover { color: var(--honey); }
.rod-post-body blockquote {
  border-left: 4px solid var(--honey);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--honey-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--ink);
}

/* ─── WORDPRESS ADMIN BAR OFFSET ────────────────────────────── */
.admin-bar .site-header {
  top: 32px;
}
.admin-bar .nav-mobile {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .admin-bar .nav-mobile {
    top: 46px;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: flex; }
  /* .posts-grid is already flex column — no override needed */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-top .footer-brand { grid-column: 1; }
  .add-post-bar { flex-direction: column; align-items: flex-start; }
  .post-nav { flex-direction: column; }
  .page-hero { clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%); padding: 72px 24px 100px; margin-bottom: -36px; }
  .nav-logo-img { height: 30px; }
}
@media (max-width: 480px) {
  .rod-post-single { padding: 40px 16px 64px; }
  .nav-logo-img { height: 26px; }
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE SINGLE — Clean Editorial
   ═══════════════════════════════════════════════════════════════ */

.article-single { background: var(--linen); min-height: 100vh; }

/* ── Hero ── */
.article-hero {
  position: relative; width: 100%; min-height: 520px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.article-hero--plain {
  background: var(--moss-deep);
  background-image: radial-gradient(ellipse 80% 120% at 0% 50%, rgba(78,125,98,0.30) 0%, transparent 65%);
  min-height: 300px;
}
.article-hero-img { position: absolute; inset: 0; z-index: 0; }
.article-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: brightness(0.68) saturate(0.85);
}
.article-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20,33,24,0.95) 0%, rgba(20,33,24,0.50) 55%, rgba(20,33,24,0.08) 100%);
}
.article-hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 860px; margin: 0 auto; padding: 40px 40px 52px;
}
.article-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.50); text-decoration: none !important;
  margin-bottom: 28px; transition: color 0.2s;
}
.article-back:hover { color: var(--honey-warm); }
.article-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700;
  line-height: 1.1; color: #fff; max-width: 720px; margin: 0 0 18px;
}
.article-hero-meta {
  display: flex; align-items: center; gap: 10px;
}
.article-hero-date {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--honey-warm);
}
.article-hero-dot { color: rgba(255,255,255,0.25); }
.article-hero-author {
  font-family: var(--font-body); font-size: 0.75rem;
  color: rgba(255,255,255,0.50); font-weight: 600;
}

/* ── Content wrap — wide single column ── */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 40px 96px;
}

/* ── Content ── */
.article-content {
  font-family: var(--font-body); font-size: 1.08rem;
  line-height: 1.88; color: var(--ink-muted);
}
.article-content p { margin-bottom: 1.5em; }
.article-content > p:first-of-type { font-size: 1.15rem; color: var(--ink); line-height: 1.8; }
.article-content h2 {
  font-family: var(--font-display) !important;
  font-size: 1.85rem; font-weight: 700; color: var(--ink);
  margin: 2.4em 0 0.7em; line-height: 1.2;
  padding-bottom: 10px; border-bottom: 1.5px solid var(--linen-dark);
}
.article-content h3 {
  font-family: var(--font-body) !important; font-size: 0.8rem;
  font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--honey); margin: 2.2em 0 0.8em;
}
.article-content img {
  width: 100%; border-radius: var(--radius-md); margin: 2.4em 0;
  box-shadow: 0 4px 24px rgba(58,97,71,0.12), 0 16px 48px rgba(58,97,71,0.07);
}
.article-content a {
  color: var(--moss); font-weight: 700;
  border-bottom: 1.5px solid rgba(58,97,71,0.25); transition: color 0.2s, border-color 0.2s;
}
.article-content a:hover { color: var(--honey); border-color: var(--honey); }
.article-content blockquote {
  margin: 2.5em 0; padding: 24px 32px 24px 28px;
  border-left: 3px solid var(--honey);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 1.3rem;
  font-style: italic; line-height: 1.6; color: var(--moss-deep);
}
.article-content ul { list-style: disc; padding-left: 1.6em; margin-bottom: 1.5em; }
.article-content ol { list-style: decimal; padding-left: 1.6em; margin-bottom: 1.5em; }
.article-content li { margin-bottom: 0.5em; color: var(--ink-muted); }

/* ── Nav ── */
.article-nav {
  margin-top: 64px; padding-top: 36px; border-top: 1.5px solid var(--linen-dark);
  display: flex; flex-direction: column; gap: 24px;
}
.article-nav-home {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none !important; transition: color 0.2s;
}
.article-nav-home:hover { color: var(--moss); }
.article-nav-posts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.article-nav-item {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 24px;
  background: var(--white); border-radius: var(--radius-md);
  border: 1.5px solid var(--linen-dark); text-decoration: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease-spring);
  cursor: pointer;
}
.article-nav-item:hover {
  border-color: var(--moss-mid);
  box-shadow: 0 4px 20px rgba(58,97,71,0.10);
  transform: translateY(-2px);
}
.article-nav-item--next { text-align: right; }
.article-nav-dir {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--honey);
}
.article-nav-ptitle {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--ink); line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .article-hero { min-height: 360px; }
  .article-hero-content { padding: 28px 20px 36px; }
  .article-wrap { padding: 40px 20px 64px; }
  .article-nav-posts { grid-template-columns: 1fr; }
  .article-nav-item--next { text-align: left; }
}
@media (max-width: 480px) {
  .article-hero { min-height: 300px; }
  .article-content { font-size: 1rem; }
}

/* ─── SKIP LINK (accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--honey);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ─── ROZLICZENIA SUBPAGE LAYOUT ─────────────────────────────── */
.rozl-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding: 40px 0 64px;
}
.rozl-content-inner {
  background: var(--white);
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: var(--shadow-card);
}
.rozl-content-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.6em 0 0.6em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--linen-dark);
}
.rozl-content-inner h2:first-child { margin-top: 0; }
.rozl-content-inner h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.4em 0 0.5em;
}
.rozl-content-inner p {
  font-size: 0.97rem;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 1em;
}
.rozl-content-inner strong { color: var(--ink); }
.rozl-content-inner table,
.rozl-content-inner .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.rozl-content-inner th {
  background: var(--moss-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 18px;
  text-align: left;
}
.rozl-content-inner td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--linen-dark);
  color: var(--ink-muted);
}
.rozl-content-inner tr:last-child td { border-bottom: none; }
.rozl-content-inner tr:nth-child(even) td { background: var(--linen); }
.rozl-content-inner tr:hover td { background: var(--moss-light); }
.rozl-content-inner ul, .rozl-content-inner ol {
  padding-left: 24px;
  margin: 1em 0;
  list-style: initial;
}
.rozl-content-inner li {
  color: var(--ink-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 6px;
}
.rozl-updated-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--linen-dark);
}
.rozl-updated-notice svg { flex-shrink: 0; }
.rozl-back { margin-top: 20px; }
.rozl-sidebar { display: flex; flex-direction: column; gap: 16px; }
.rozl-sidebar-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.rozl-sidebar-card--moss { background: var(--moss-deep); }
.rozl-sidebar-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 6px;
  display: block;
}
.rozl-sidebar-label--light { color: rgba(255,255,255,0.5); }
.rozl-sidebar-title {
  font-family: var(--font-body);
  font-size: 1.0rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.rozl-sidebar-title--light { color: var(--white); }
.rozl-sidebar-text {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}
.rozl-sidebar-text--light { color: rgba(255,255,255,0.7); }
.rozl-sidebar-btn {
  display: block;
  text-align: center;
  padding: 10px 18px;
  border-radius: 50px;
  border: 2px solid var(--moss);
  color: var(--moss);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}
.rozl-sidebar-btn:hover { background: var(--moss); color: var(--white); }
.rozl-sidebar-phone {
  display: block;
  font-size: 1.3rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.rozl-sidebar-phone:hover { color: var(--honey-warm); }
.rozl-sidebar-hours {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}
.rozl-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--linen-dark);
  font-size: 0.9rem;
}
.rozl-hours-row:last-of-type { border-bottom: none; }
.rozl-hours-row span { color: var(--ink-muted); }
.rozl-hours-row strong { color: var(--ink); }

/* ─── BANK ACCOUNT CARD ─────────────────────────────────────── */
.rozl-bank-card {
  padding: 20px 24px;
  background: var(--moss-deep);
  border-radius: 12px;
  margin: 0 0 32px;
}
.rozl-bank-card-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  display: block;
}
.rozl-bank-card-number {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  display: block;
}
.rozl-bank-card-name {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  display: block;
}

/* ─── RATE BANNER (rozliczenia content) ─────────────────────── */
.rozl-rate-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--moss-deep);
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 32px;
}
.rozl-rate-cell {
  text-align: center;
  padding: 28px 16px;
}
.rozl-rate-cell + .rozl-rate-cell {
  border-left: 1px solid rgba(255,255,255,0.12);
}
.rozl-rate-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  display: block;
}
.rozl-rate-value {
  font-family: var(--font-body);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
}
.rozl-rate-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  margin-top: 6px;
  display: block;
}
@media (max-width: 600px) {
  .rozl-rate-banner { grid-template-columns: 1fr; }
  .rozl-rate-cell + .rozl-rate-cell { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); }
}

/* ─── GALLERY EVENTS GRID ────────────────────────────────────── */
.gallery-events-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 0 64px;
}

/* ── Karta — poziomy split ── */
.gallery-event-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--linen-dark);
  border-left: 3px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
              border-color 0.2s;
}
.gallery-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-left-color: var(--honey);
  color: inherit;
  text-decoration: none !important;
}

/* ── Zdjęcie — lewa kolumna 50% ── */
.gallery-event-thumb {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background: var(--moss-light);
}
.gallery-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
  display: block;
}
.gallery-event-card:hover .gallery-event-thumb img { transform: scale(1.05); }

/* Overlay "Zobacz" pojawia się na hover */
.gallery-event-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38,65,51,0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.gallery-event-card:hover .gallery-event-overlay { opacity: 1; }
.gallery-event-overlay svg { width: 36px; height: 36px; }
.gallery-event-overlay span {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Placeholder bez zdjęcia */
.gallery-event-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4e8d8 0%, #e8f0e4 40%, #f0ead8 100%);
}
.gallery-event-thumb-placeholder svg { width: 64px; height: 64px; opacity: 0.35; }

/* ── Blok tekstowy — prawa kolumna, wysokość dopasowana do treści ── */
.gallery-event-body {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--linen-dark);
  transition: border-color 0.2s;
}
.gallery-event-card:hover .gallery-event-body { border-left-color: var(--honey); }

.gallery-event-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.gallery-event-year {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--honey);
}
.gallery-event-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 16px;
}
.gallery-event-excerpt {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.gallery-event-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
  background: var(--moss);
  padding: 10px 22px;
  border-radius: 50px;
  align-self: flex-start;
  transition: background 0.2s, gap 0.2s var(--ease-spring);
}
.gallery-event-card:hover .gallery-event-link {
  background: var(--honey);
  gap: 12px;
}

/* ── Mobilny — układ pionowy ── */
@media (max-width: 700px) {
  .gallery-event-card { flex-direction: column; }
  .gallery-event-thumb { flex: none; max-width: 100%; min-height: 260px; }
  .gallery-event-body { padding: 24px 24px 28px; border-left: none; border-top: 2px solid var(--linen-dark); }
  .gallery-event-card:hover .gallery-event-body { border-top-color: var(--honey); border-left-color: transparent; }
  .gallery-event-title { font-size: clamp(1.3rem, 5vw, 1.6rem); }
}

/* ─── GALLERY EVENT SINGLE ───────────────────────────────────── */
.gallery-event-single { background: var(--linen); min-height: 100vh; }

/* ── Hero ── */
.gallery-event-hero {
  position: relative; width: 100%; min-height: 560px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.gallery-event-hero--plain {
  background: var(--moss-deep);
  background-image: radial-gradient(ellipse 80% 120% at 0% 50%, rgba(78,125,98,0.30) 0%, transparent 65%);
  min-height: 320px;
}
.gallery-event-hero-img { position: absolute; inset: 0; z-index: 0; }
.gallery-event-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: brightness(0.62) saturate(0.9);
}
.gallery-event-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(20,33,24,0.96) 0%, rgba(20,33,24,0.45) 50%, rgba(20,33,24,0.05) 100%);
}
.gallery-event-hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1180px; margin: 0 auto; padding: 40px 40px 56px;
}
.gallery-event-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.50); text-decoration: none !important;
  margin-bottom: 24px; transition: color 0.2s;
}
.gallery-event-back:hover { color: var(--honey-warm); }
.gallery-event-hero-label {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--honey-warm);
  margin-bottom: 12px;
}
.gallery-event-hero-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700;
  line-height: 1.05; color: #fff; max-width: 900px; margin: 0 0 16px;
}
.gallery-event-hero-date {
  font-size: 0.78rem; font-weight: 600;
  color: rgba(255,255,255,0.45); letter-spacing: 0.06em;
}

/* ── Content wrap ── */
.gallery-event-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px 40px 96px;
}

/* Tekst w galerii — bez narzuconych stylów, formatowanie przez edytor */

/* ── Siatka zdjęć — gallery block, group flex, auto-grid ── */
.gallery-single-content .wp-block-gallery,
.gallery-single-content .gallery-photo-grid,
.gallery-single-content .wp-block-group.is-layout-flex,
.gallery-single-content [class*="wp-container-core-group"] {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 8px !important;
  margin: 32px 0 !important;
  flex-wrap: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
}
.gallery-single-content .wp-block-gallery .wp-block-image,
.gallery-single-content .gallery-photo-grid .wp-block-image,
.gallery-single-content .wp-block-group.is-layout-flex .wp-block-image,
.gallery-single-content [class*="wp-container-core-group"] .wp-block-image {
  margin: 0 !important;
  overflow: hidden;
  border-radius: 10px;
  background: var(--moss-light);
  width: auto !important;
  flex: unset !important;
  max-width: unset !important;
}
.gallery-single-content .wp-block-gallery .wp-block-image img,
.gallery-single-content .gallery-photo-grid .wp-block-image img,
.gallery-single-content .wp-block-group.is-layout-flex .wp-block-image img,
.gallery-single-content [class*="wp-container-core-group"] .wp-block-image img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-out), filter 0.3s;
  border-radius: 10px;
}
.gallery-single-content .wp-block-group.is-layout-flex .wp-block-image img:hover,
.gallery-single-content [class*="wp-container-core-group"] .wp-block-image img:hover,
.gallery-single-content .gallery-photo-grid .wp-block-image img:hover {
  transform: scale(1.03);
  filter: brightness(1.06);
}

/* ── Lightbox ── */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(8, 16, 10, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.gallery-lightbox.active {
  opacity: 1; pointer-events: all;
}
.gallery-lightbox-img {
  width: 96vw;
  height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.7);
  transition: opacity 0.18s;
  display: block;
}
.gallery-lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,0.18); color: #fff; }
.gallery-lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  user-select: none;
}
.gallery-lightbox-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}
.gallery-lightbox-prev { left: 12px; }
.gallery-lightbox-next { right: 12px; }
.gallery-lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.gallery-lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
.gallery-lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(0,0,0,0.3); padding: 5px 14px; border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .gallery-single-content .wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-single-content .wp-block-gallery .wp-block-image img { height: 240px; }
  .gallery-lightbox-btn { width: 44px; height: 44px; font-size: 1.3rem; }
  .gallery-lightbox-prev { left: 8px; }
  .gallery-lightbox-next { right: 8px; }
}
@media (max-width: 500px) {
  .gallery-single-content .wp-block-gallery { grid-template-columns: 1fr; }
  .gallery-single-content .wp-block-gallery .wp-block-image img { height: 260px; }
}

/* ── Nav ── */
.gallery-event-nav {
  margin-top: 64px; padding-top: 36px;
  border-top: 1.5px solid var(--linen-dark);
  display: flex; flex-direction: column; gap: 24px;
}
.gallery-event-nav-home {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none !important; transition: color 0.2s;
}
.gallery-event-nav-home:hover { color: var(--moss); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .gallery-event-hero { min-height: 380px; }
  .gallery-event-hero-content { padding: 28px 20px 40px; }
  .gallery-event-wrap { padding: 40px 20px 64px; }
  .gallery-single-content .wp-block-gallery { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .gallery-single-content .wp-block-gallery .wp-block-image img { height: 160px; }
}

/* ─── SECTOR HEADING ─────────────────────────────────────────── */
.rozl-sector-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--moss-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--moss);
  display: flex;
  align-items: center;
  gap: 12px;
}
.rozl-sector-heading::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--moss);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── RESPONSIVE — new sections ─────────────────────────────── */
@media (max-width: 900px) {
  .rozl-layout { grid-template-columns: 1fr; }
  .rozl-sidebar { flex-direction: row; flex-wrap: wrap; }
  .rozl-sidebar-card { flex: 1 1 260px; }
}
@media (max-width: 768px) {
  .rozl-content-inner { padding: 28px 24px; }
  /* .gallery-events-grid responsive handled in component block above */
  .rozl-sidebar { flex-direction: column; }
}
@media (max-width: 480px) {
  .rozl-content-inner { padding: 22px 18px; }
  .rozl-content-inner th, .rozl-content-inner td { padding: 10px 12px; font-size: 0.85rem; }
  .gallery-single { padding: 24px 0 56px; }
}
