/*
Theme Name: Župnije Pivka
Theme URI: https://github.com/blazl/wp-pivka
Author: Župnijska pastoralna zveza Pivka
Description: Spletna stran povezanih župnij Pivka, Šmihel, Zagorje, Trnje in Košana. Tri oblikovalske smeri (Žajbelj / Skril / Ilovica), prikaz svetih maš, oznanil, novic, zakramentov in verouka. Prihajajoči dogodki se samodejno preberejo iz Google Koledarja (ICS).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zupnije-pivka
*/

/* ===== WordPress-specific adjustments ===== */
.admin-bar .nav { top: 32px; }
.admin-bar .subnav { top: 108px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } .admin-bar .subnav { top: 122px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; position: sticky; } }
img { max-width: 100%; height: auto; }

/* ============================================================
   Pastoralna zveza Pivka — base styles + 3 design directions
   Theme A — Žajbelj (sage + cream, serif/sans)
   Theme B — Skril (slate, all-sans, crisp)
   Theme C — Ilovica (terracotta, editorial serif)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* defaults overridden per theme */
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #23271f;
  --ink-soft: #5c6157;
  --line: #e4e0d6;
  --line-strong: #d2cdbf;
  --primary: #3d4a3d;
  --primary-ink: #f6f4ef;
  --accent: #b08d3f;
  --accent-soft: #f0e9d6;

  --font-head: "Spectral", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --head-weight: 600;
  --head-spacing: -0.01em;
  --head-transform: none;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(20,20,15,.04), 0 8px 30px rgba(20,20,15,.06);
}

/* ---- Theme A: Žajbelj ---- */
[data-theme="a"] {
  --bg: #f4f1e8; --surface: #fffdf8; --ink: #232a20; --ink-soft: #5d6356;
  --line: #e3ddcd; --line-strong: #cfc8b3;
  --primary: #38463a; --primary-ink: #f4f1e8;
  --accent: #ab8638; --accent-soft: #efe7cf;
  --font-head: "Spectral", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --head-weight: 600; --head-spacing: -0.01em; --head-transform: none;
}

/* ---- Theme B: Skril ---- */
[data-theme="b"] {
  --bg: #f6f6f4; --surface: #ffffff; --ink: #1b2530; --ink-soft: #5a6675;
  --line: #e6e7ea; --line-strong: #d4d6dc;
  --primary: #2b3b4d; --primary-ink: #f6f6f4;
  --accent: #6f8398; --accent-soft: #e8edf2;
  --font-head: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --head-weight: 700; --head-spacing: -0.02em; --head-transform: none;
}

/* ---- Theme C: Ilovica ---- */
[data-theme="c"] {
  --bg: #faf7f2; --surface: #fffdfa; --ink: #38271f; --ink-soft: #6e5a4e;
  --line: #ece2d6; --line-strong: #dac9b8;
  --primary: #5b3a2c; --primary-ink: #faf7f2;
  --accent: #bf8050; --accent-soft: #f3e6d7;
  --font-head: "Newsreader", Georgia, serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --head-weight: 500; --head-spacing: 0; --head-transform: none;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent); display: inline-block;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------------- Top navigation ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center; flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 17px; letter-spacing: var(--head-spacing); }
.brand-text span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  position: relative; font-size: 14.5px; font-weight: 500;
  padding: 9px 11px; border-radius: var(--r-sm); cursor: pointer;
  color: var(--ink); transition: color .15s, background .15s;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.nav-link:hover { background: var(--accent-soft); }
.nav-link.active { color: var(--accent); }
.nav-link .caret { width: 9px; height: 9px; opacity: .6; transition: transform .2s; }
.nav-item.open .caret { transform: rotate(180deg); }

.nav-item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 248px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s ease;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 13px; border-radius: var(--r-sm); cursor: pointer;
  transition: background .14s;
}
.dropdown-item:hover { background: var(--accent-soft); }
.dropdown-item b { font-size: 14.5px; font-weight: 600; }
.dropdown-item small { font-size: 12px; color: var(--ink-soft); }

.dropdown-parishes { min-width: 288px; }
.dropdown-group { position: relative; }
.dropdown-group + .dropdown-group { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }

/* parish row: text left, caret right pointing at the flyout */
.dropdown-item.has-sub { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.dropdown-item-text { display: flex; flex-direction: column; gap: 1px; }
.dropdown-item-caret { flex: none; color: var(--ink-soft); opacity: .55; transform: rotate(-90deg); transition: color .15s, opacity .15s; }
.dropdown-group:hover .dropdown-item-caret,
.dropdown-group:focus-within .dropdown-item-caret { color: var(--accent); opacity: 1; }

/* nested flyout submenu (Predstavitev / Podružnice / Objave) */
.dropdown-flyout {
  position: absolute; top: -5px; left: calc(100% + 14px);
  min-width: 188px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateX(-6px);
  transition: all .18s ease;
}
/* invisible bridge so the pointer can cross the gap without closing the flyout */
.dropdown-flyout::before { content: ""; position: absolute; top: 0; bottom: 0; right: 100%; width: 16px; }
.dropdown-group:hover .dropdown-flyout,
.dropdown-group:focus-within .dropdown-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
.dropdown-flyout-label {
  display: block; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  padding: 6px 12px 4px;
}
.dropdown-flyout a {
  display: block; font-size: 13.5px; font-weight: 500; color: var(--ink);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: background .14s, color .14s;
}
.dropdown-flyout a:hover { background: var(--accent-soft); color: var(--accent); }

.nav-mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: 22px; }
.hero p.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-soft); max-width: 46ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* image placeholder */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 2px, transparent 2px 11px),
    var(--accent-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft);
}
.ph span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px;
  letter-spacing: 0.04em; background: var(--surface); padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft);
}
/* Clickable placeholder (e.g. a plain map link). */
a.ph { cursor: pointer; transition: border-color .15s ease; }
a.ph:hover { border-color: var(--accent); }
a.ph span { display: inline-flex; align-items: center; gap: 6px; }
/* Embedded Google Map on the Kontakt page. */
.contact-map {
  position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hero-img { aspect-ratio: 4/5; }

/* hero slideshow */
.hero-media { display: flex; flex-direction: column; gap: 12px; }
.hero-stage {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--accent-soft); box-shadow: var(--shadow);
}
.hero-slide {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  opacity: 0; transform: scale(1.045);
  transition: opacity 1s ease, transform 7s ease;
  will-change: opacity, transform;
}
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 18px; padding: 0 2px; }
.hero-caption { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.hero-caption:empty { visibility: hidden; }
.hero-dots { display: flex; gap: 7px; flex: none; }
.hero-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line-strong); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { background: var(--ink-soft); }
.hero-dot.is-active { background: var(--accent); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: opacity .3s ease; transform: none; }
  .hero-slide.is-active { transform: none; }
}

/* full-width hero (Naslovnica → Postavitev glave: fotografija čez celotno
   širino) — the photo bleeds edge to edge and the intro text sits on top of
   it, on desktop and mobile alike */
.hero-full { padding: 0; display: flex; align-items: flex-end; min-height: clamp(560px, 82vh, 800px); overflow: hidden; }
.hero-full-stage { position: absolute; inset: 0; background: var(--accent-soft); }
.hero-full-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top,
    rgba(12, 14, 12, .74) 0%, rgba(12, 14, 12, .38) 42%,
    rgba(12, 14, 12, .08) 72%, rgba(12, 14, 12, .22) 100%);
}
.hero-full-inner {
  position: relative; z-index: 3; width: 100%;
  padding-top: clamp(140px, 22vh, 220px); padding-bottom: clamp(30px, 4vw, 52px);
}
.hero-full-copy { max-width: 640px; }
.hero-full .eyebrow { color: rgba(255, 255, 255, .92); }
.hero-full .eyebrow::before { background: rgba(255, 255, 255, .92); }
.hero-full h1 { color: #fff; text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
.hero-full p.lead { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 18px rgba(0, 0, 0, .3); }
.hero-full .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero-full .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.hero-full .hero-meta { margin-top: clamp(24px, 4vw, 40px); padding: 0; }
.hero-full .hero-caption { color: rgba(255, 255, 255, .78); }
.hero-full .hero-dot { background: rgba(255, 255, 255, .45); }
.hero-full .hero-dot:hover { background: rgba(255, 255, 255, .8); }
.hero-full .hero-dot.is-active { background: #fff; }

/* verouk aside cards: stack in normal flow so they never overlap */
.aside-stack { align-self: start; }

/* content photo / slideshow (verouk, zakramenti, …) — shares JS with the hero */
.pzp-photos { display: flex; flex-direction: column; gap: 10px; }
.pzp-photos-stage {
  position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--accent-soft); box-shadow: var(--shadow);
}
.pzp-photos-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.045);
  transition: opacity 1s ease, transform 7s ease; will-change: opacity, transform;
}
.pzp-photos-img.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.pzp-photos-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 18px; }
.pzp-photos-caption { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.pzp-photos-caption:empty { visibility: hidden; }
.pzp-photos-dots { display: flex; gap: 7px; flex: none; }
.pzp-photos-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line-strong); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.pzp-photos-dot:hover { background: var(--ink-soft); }
.pzp-photos-dot.is-active { background: var(--accent); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) {
  .pzp-photos-img { transition: opacity .3s ease; transform: none; }
  .pzp-photos-img.is-active { transform: none; }
}

/* ---------------- Sections ---------------- */
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--ink-soft); margin: 8px 0 0; max-width: 52ch; }

/* card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; transition: border-color .18s, transform .18s, box-shadow .18s; }
.card.hover:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); cursor: pointer; }

/* ---- Mass times table ---- */
.mass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mass-cell { background: var(--surface); padding: 24px 24px 26px; }
.mass-cell h4 { font-size: 18px; margin-bottom: 4px; }
.mass-cell .church { font-size: 12.5px; color: var(--accent); margin-bottom: 16px; font-weight: 600; }
.mass-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.mass-row span:first-child { color: var(--ink-soft); }
.mass-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---- Events ---- */
.event-list { display: flex; flex-direction: column; gap: 0; }
.event-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 22px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.event-date { text-align: center; border-right: 1px solid var(--line); padding-right: 22px; }
.event-date b { display: block; font-family: var(--font-head); font-size: 30px; line-height: 1; }
.event-date span { font-size: 11px; letter-spacing: 0.14em; color: var(--accent); font-weight: 600; }
.event-info h4 { font-size: 18px; margin-bottom: 3px; }
.event-info p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.event-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---- Newsletter card ---- */
.news-feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.news-side { background: var(--primary); color: var(--primary-ink); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.news-side .badge { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .8; }
.news-side h3 { font-size: 28px; margin: 18px 0 8px; }
.news-side .season { opacity: .85; font-size: 15px; }
.news-body { padding: 36px 40px; }
.news-line { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.news-line:first-child { border-top: 0; padding-top: 0; }
.news-line b { color: var(--accent); font-weight: 600; }
.news-line p { margin: 0; color: var(--ink-soft); }
/* Rich-text "Skupna obvestila" rendered from the Classic editor. */
.news-notices { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.news-notices > :first-child { margin-top: 0; }
.news-notices > :last-child { margin-bottom: 0; }
.news-notices p { margin: 0 0 12px; }
.news-notices ul, .news-notices ol { margin: 0 0 12px; padding-left: 22px; }
.news-notices li { margin: 5px 0; }
.news-notices h2, .news-notices h3, .news-notices h4 { color: var(--ink); margin: 18px 0 8px; font-size: 17px; }
.news-notices a { color: var(--accent); text-decoration: underline; }
.news-notices strong, .news-notices b { color: var(--ink); }

/* ---- Parish chips / quicklinks ---- */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .15s; }
.chip:hover, .chip.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ---- Parish page ---- */
.page-hero { padding: clamp(40px,5vw,72px) 0; border-bottom: 1px solid var(--line); }
.page-hero .crumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.page-hero .crumb a { cursor: pointer; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 58px); }
/* The lead paragraph is often the last thing in the hero; its default bottom
   margin would add ~1em on top of the hero padding, making the gap to the
   content larger than on heroes that end with a meta strip or a photo. */
.page-hero .sub { font-size: clamp(16px,1.4vw,19px); color: var(--ink-soft); margin: 14px 0 0; max-width: 54ch; }

.meta-strip { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 30px; }
.meta-item { }
.meta-item span { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.meta-item b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 19px; }

.prose { max-width: 64ch; }
.prose p { font-size: 17.5px; color: var(--ink); }
.prose p + p { margin-top: 0; }
.prose img { border-radius: var(--r-md); }

/* Media inserted through the Classic editor (align + caption classes). */
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption .wp-caption-text { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }

.two-col { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(32px,5vw,64px); align-items: start; }
/* The sidebar is a normal sticky column: it pins under the header while it fits
   the viewport, and when its content (mass times + church facts + official data)
   is taller than the viewport it just scrolls with the page. Everything stays
   visible either way — no clipped card and no inner scrollbar. */
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: sticky; top: 96px; align-self: start; }
.aside-card h4 { font-size: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---- Sacraments index ---- */
.sac-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.sac-num { font-family: var(--font-head); font-size: 14px; color: var(--accent); font-weight: 600; }
.sac-card h3 { font-size: 23px; margin: 14px 0 10px; }
.sac-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.sac-card .more, .aside-card .more { margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.aside-card .more { margin-top: 14px; }
.aside-card .more:hover { text-decoration: underline; }

.req-list { list-style: none; margin: 0; padding: 0; }
.req-list li { padding: 13px 0 13px 28px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.req-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---- Parish sub-nav ---- */
.subnav { position: sticky; top: 76px; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-inner { display: flex; gap: 4px; height: 56px; align-items: center; }
.subnav-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 500; padding: 8px 16px; border-radius: var(--r-sm); cursor: pointer; color: var(--ink-soft); transition: all .15s; position: relative; }
.subnav-link:hover { color: var(--ink); background: var(--accent-soft); }
.subnav-link.active { color: var(--ink); }
.subnav-link.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--accent); }
.subnav-count { font-style: normal; font-size: 11px; font-weight: 600; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 1px 7px; }

/* ---- Filial + News grids ---- */
.filial-grid, .news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.filial-card, .post-card { padding: 18px; }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.post-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }

/* ---- Gallery + lightbox ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery-item { transition: transform .18s, box-shadow .18s; }
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,15,12,.88); backdrop-filter: blur(4px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 24px; animation: fade .2s ease both; }
.lb-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-cap { color: #fff; font-size: 13.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.lb-close { position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .15s; }
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-nav { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; transition: background .15s; flex: none; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-img { max-width: min(100%, 1400px); max-height: 86vh; width: auto; height: auto; object-fit: contain; display: block; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: rgba(255,255,255,.03); }

/* Clickable photos that open in the lightbox */
.pzp-zoom { cursor: zoom-in; transition: filter .15s, opacity .15s; }
.pzp-zoom:hover { filter: brightness(1.05); }
@media (max-width: 560px) { .lb-nav { width: 42px; height: 42px; font-size: 24px; } .lightbox { gap: 2px; padding: 14px; } }

/* ---- Obvestila events ---- */
.obv-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.obv-event { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; padding: 18px 22px; }

/* ---- Koledar (calendar page) ---- */
/* Ensure the [hidden] attribute always wins over the display rules below
   (JS toggles rows and buttons via `hidden`). */
[hidden] { display: none !important; }
.cal { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }

.cal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 26px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cal-title { font-size: clamp(20px, 2.4vw, 26px); margin: 0; }
.cal-nav { display: flex; gap: 8px; align-items: center; }

.cal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); transition: border-color .15s, background .15s, color .15s; }
.cal-btn:hover { border-color: var(--ink); }
.cal-btn:disabled { opacity: .38; cursor: default; }
.cal-btn:disabled:hover { border-color: var(--line-strong); }
.cal-arrow { width: 40px; height: 40px; padding: 0; }
.cal-arrow svg { display: block; }
.cal-prev svg { transform: rotate(90deg); }
.cal-next svg { transform: rotate(-90deg); }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-wd { background: var(--surface); text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); padding: 10px 4px; }
.cal-day { background: var(--surface); min-width: 0; min-height: 98px; padding: 8px; display: flex; flex-direction: column; gap: 5px; align-items: stretch; text-align: left; font: inherit; color: inherit; border: 0; position: relative; }
button.cal-day { cursor: pointer; width: 100%; transition: background .15s; }
button.cal-day:hover { background: var(--accent-soft); }
button.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal-day.is-empty { background: color-mix(in srgb, var(--surface) 50%, var(--bg)); }
.cal-daynum { font-size: 13px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; align-self: flex-start; }
.cal-day.has-events .cal-daynum { color: var(--ink); }
.cal-day.is-today .cal-daynum { color: var(--primary-ink); background: var(--accent); min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.cal-day.is-selected { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-daydot { display: none; }

.cal-pills { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-pill { font-size: 11.5px; line-height: 1.35; padding: 2px 7px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-pill-more { background: transparent; color: var(--accent); font-weight: 600; padding: 1px 7px; }

.cal-legend { display: flex; gap: 22px; margin-top: 14px; font-size: 12.5px; color: var(--ink-soft); }
.cal-legend-item { display: inline-flex; align-items: center; gap: 7px; }
.cal-legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; }
.cal-legend-today { background: var(--accent); }
.cal-legend-has { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }

.cal-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.cal-list-head h2 { font-size: clamp(18px, 2vw, 22px); }
.cal-clear { padding: 7px 14px; font-size: 13px; }
.cal-list { display: flex; flex-direction: column; }
.cal-ev { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.cal-ev-body { min-width: 0; }
.cal-ev-body h3 { font-size: 17px; margin: 0 0 4px; }
.cal-ev-meta { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-soft); }
.cal-empty { color: var(--ink-soft); padding: 22px 0; margin: 0; }

/* Add to calendar (calendar page + home page event rows) */
.cal-add { position: relative; display: inline-block; margin-top: 4px; }
.cal-add-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px; transition: border-color .15s, background .15s; }
.cal-add-toggle::-webkit-details-marker { display: none; }
.cal-add-toggle::marker { content: ""; }
.cal-add-toggle svg:last-child { transition: transform .15s; }
.cal-add[open] .cal-add-toggle svg:last-child { transform: rotate(180deg); }
.cal-add-toggle:hover, .cal-add[open] .cal-add-toggle { border-color: var(--accent); background: var(--accent-soft); }
.cal-add-menu { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 6px; }
.cal-add-opt { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink); cursor: pointer; }
.cal-add-opt:hover { background: var(--accent-soft); }
.cal-add-opt svg { color: var(--accent); flex: none; }

@media (max-width: 900px) {
  .cal { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cal-day { min-height: 48px; align-items: center; text-align: center; padding: 6px 2px; gap: 4px; }
  .cal-pills { display: none; }
  .cal-daynum { align-self: center; }
  .cal-daydot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .cal-wd { font-size: 10px; padding: 8px 2px; letter-spacing: .04em; }
  .cal-ev { grid-template-columns: 48px 1fr; gap: 12px; }
  .cal-add-menu { right: 0; left: auto; }
}

/* ---- Mašni nameni (booking) ---- */
.int-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.int-step { margin-bottom: 34px; }
.int-step-h { font-size: clamp(19px, 2.2vw, 23px); display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.int-step-h span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-family: var(--font-body); font-size: 15px; font-weight: 700; }

.int-parishes { display: flex; flex-wrap: wrap; gap: 10px; }
.int-parish { position: relative; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 15px; transition: background .15s, color .15s, border-color .15s; }
.int-parish:hover { border-color: var(--ink); }
.int-parish.is-on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.int-parish input { position: absolute; opacity: 0; pointer-events: none; }

.int-cal { margin-top: 4px; }
.int-day.is-free { cursor: pointer; }
.int-day.is-free:hover { background: var(--accent-soft); }
.int-day.is-free.is-selected { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.int-day.is-off { color: var(--ink-soft); background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.int-free { font-size: 11px; font-weight: 600; color: var(--accent); }
.int-taken { font-size: 10.5px; color: var(--ink-soft); }
.int-cal-hint { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }
.int-chosen { margin: 16px 0 0; font-size: 15px; }

.int-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.int-field > label { font-size: 14.5px; }
.int-field input[type=text], .int-field input[type=email], .int-field input[type=tel], .int-field input[type=date], .int-field select, .int-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font-family: inherit; font-size: 15px; background: var(--surface); color: var(--ink);
}
.int-field select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.int-field input:focus, .int-field select:focus, .int-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.int-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.int-help { font-size: 12.5px; color: var(--ink-soft); }
.int-req { color: var(--accent); }

.int-pays { display: flex; flex-wrap: wrap; gap: 10px; }
.int-pay { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-size: 15px; }
.int-pay:hover { border-color: var(--ink); }
.int-pay input { accent-color: var(--primary); }
.int-pay-detail { margin-top: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 14.5px; }
.int-pay-detail img, .int-pay-box img { border-radius: 8px; }
.int-pay-box { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }

.int-consent label { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.int-consent input { margin-top: 3px; flex: none; }

.int-alert { background: #fce8e6; color: #9c1c14; border: 1px solid #f3c0bb; border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px; font-size: 14.5px; }
.int-success { display: flex; align-items: center; gap: 12px; background: #e7f3e8; color: #1e4620; border: 1px solid #b7dcba; border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 22px; font-size: 15.5px; max-width: 640px; }
.int-success svg { flex: none; color: #2e7d32; }
.int-success b { color: inherit; }
.int-err { color: #b3261e; font-size: 13px; }
.int-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.int-steps { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
.int-steps li { margin: 2px 0; }

/* --- Vpis k verouku (spletna vpisnica na /verouk) --- */
.vpis-child { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 20px 22px 4px; margin-bottom: 16px; }
.vpis-child-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.vpis-child-h { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.vpis-remove { border: 1px solid var(--line-strong); background: none; border-radius: 999px; padding: 5px 13px; font-family: inherit; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.vpis-remove:hover { border-color: #b3261e; color: #b3261e; }
.vpis-remove[hidden] { display: none; }
.vpis-child[hidden] { display: none; }
.vpis-first, .vpis-parents { border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 2px; }
.vpis-first[hidden], .vpis-parents[hidden], .vpis-cont[hidden] { display: none; }
.vpis-first-note { margin: 0 0 14px; }
.vpis-acts-field { gap: 8px; }
.vpis-acts-label { font-size: 14.5px; }
.vpis-acts { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.vpis-act { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-size: 14.5px; }
.vpis-act:hover { border-color: var(--ink); }
.vpis-act input { accent-color: var(--primary); margin: 0; }
.vpis-privacy { font-size: 13px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; margin: 0 0 22px; }
.vpis-privacy summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.vpis-privacy p { margin: 10px 0 0; line-height: 1.65; }

/* --- Duhovna misel nedelje (domača stran) --- */
.dm { max-width: 980px; margin: 0 auto; }
.dm-head { text-align: center; }
.dm-title { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 8px; letter-spacing: .01em; }
.dm-meta { color: var(--ink-soft); font-size: 15px; margin: 0; }
.dm-quote { margin: 28px auto 34px; max-width: 720px; text-align: center; font-family: var(--font-display, inherit);
  font-size: clamp(19px, 2.2vw, 25px); line-height: 1.5; font-style: italic; color: var(--ink);
  border: 0; padding: 22px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bible-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bible-link:hover { color: var(--accent); text-decoration-style: solid; }
.dm-next .bible-link { text-decoration: none; border-bottom: 1px dotted var(--line-strong); }
.dm-next .bible-link:hover { border-bottom-color: var(--accent); }
.doc-sheet .bible-link { color: inherit; text-decoration: none; }
@media print { .bible-link { text-decoration: none; color: inherit; } }

/* The photo floats in the text column, so the gap on its right (and under it,
   where the text wraps back) has to be wide enough that the words never look
   glued to the picture.
   Written as ».prose .dm-photo« on purpose: the figure sits inside .prose, and
   ».prose figure« further down the sheet is the more specific selector — with a
   plain ».dm-photo« rule its »margin: 1.8em 0« won and the side gap was zero. */
.prose .dm-photo { float: left; width: min(44%, 340px); margin: 6px 40px 28px 0; }
.prose .dm-photo img { width: 100%; height: auto; }
.prose .dm-photo figcaption { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.45; text-align: left; }
.dm-text::after { content: ''; display: block; clear: both; }
@media (max-width: 860px) { .prose .dm-photo { margin-right: 30px; } }
@media (max-width: 620px) { .prose .dm-photo { float: none; width: 100%; margin: 0 0 24px; } }
.dm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: clamp(24px, 3vw, 44px); align-items: start; }
.dm-text p { margin: 0 0 14px; }
.dm-next { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; position: sticky; top: 110px; }
.dm-next h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; }
.dm-next ul { list-style: none; margin: 0; padding: 0; font-size: 15.5px; line-height: 1.9; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .dm-body { grid-template-columns: 1fr; } .dm-next { position: static; } }

/* --- Duhovna misel v natisljivih oznanilih --- */
.doc-thought { margin: 18px 0 6px; padding: 14px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-thought h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.doc-thought-title { font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px; }
.doc-thought-quote { font-style: italic; margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.doc-thought-photo { float: right; width: 42%; max-height: 150px; object-fit: cover; border-radius: 5px; margin: 2px 0 8px 12px; }
.doc-thought-text::after { content: ''; display: block; clear: both; }
.doc-sheet.compact .doc-thought-photo { max-height: 46px; margin-left: 6px; }
.doc-thought-cols { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.doc-thought-next { background: rgba(0, 0, 0, .04); border-radius: 6px; padding: 10px 12px; font-size: 11px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.doc-thought-next h4 { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.doc-thought-text { font-size: 12px; line-height: 1.55; text-align: justify; }
.doc-thought-text p { margin: 0 0 8px; }
.doc-sheet.compact .doc-thought-text { font-size: 8px; }
.doc-sheet.compact .doc-thought-cols { grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }

/* --- Naročnina na oznanila po e-pošti --- */
.news-sub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: clamp(24px, 4vw, 56px); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); padding: clamp(24px, 3vw, 40px); }
.news-sub h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.news-sub-text p { color: var(--ink-soft); margin: 0; max-width: 54ch; }
.news-sub .int-field { margin-bottom: 14px; }
.news-sub .int-consent label { font-size: 13.5px; }
.news-sub.is-compact { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); padding: clamp(20px, 2.4vw, 30px); }
.news-sub.is-compact h2 { font-size: clamp(20px, 2.2vw, 25px); }
@media (max-width: 860px) { .news-sub, .news-sub.is-compact { grid-template-columns: 1fr; } }

/* Inline variant: the block sits inside another panel (the right-hand half of
   »Zadnja oznanila« on the home page, on weeks with no shared notices), so it
   drops its own card — border, background and padding come from the panel —
   and stacks text above form in the narrow column. */
.news-sub.is-inline { display: block; background: none; border: 0; border-radius: 0; padding: 0; }
.news-sub.is-inline h2 { font-size: clamp(20px, 2.1vw, 24px); margin: 0 0 10px; }
.news-sub.is-inline .news-sub-text p { font-size: 15px; line-height: 1.6; max-width: 46ch; }
.news-sub.is-inline .news-sub-form { margin-top: 22px; }
.news-sub.is-inline .int-field { margin-bottom: 12px; }
.news-sub.is-inline .int-consent label { font-size: 13px; }

@media (max-width: 900px) {
  .int-grid { grid-template-columns: 1fr; }
  .int-aside { order: -1; }
}
@media (max-width: 680px) {
  .int-free, .int-taken { display: none; }
  .int-day.is-free .cal-daynum { color: var(--accent); font-weight: 700; }
}
@media (max-width: 560px) {
  .int-two { grid-template-columns: 1fr; }
}

/* ============================================================
   OZNANILA — document sheet, feature, archive, reader
   ============================================================ */
/* The A4 paper — fixed neutral palette so it always reads as paper */
.doc-sheet {
  --ds-ink: #20242a; --ds-soft: #5a6068; --ds-line: #d8d4ca; --ds-accent: var(--accent);
  background: #fff; color: var(--ds-ink);
  font-family: "Newsreader", Georgia, serif;
  width: 100%; max-width: 720px; margin: 0 auto;
  padding: clamp(28px, 5%, 56px);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 50px rgba(20,20,15,.12);
}
.doc-masthead { text-align: center; padding-bottom: 20px; border-bottom: 3px double var(--ds-line); margin-bottom: 22px; }
.doc-kicker { font-family: "Work Sans", sans-serif; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ds-soft); margin-bottom: 14px; }
.doc-title { font-size: clamp(34px, 6vw, 52px); font-weight: 500; letter-spacing: .12em; margin: 0; line-height: 1; }
.doc-sub { font-family: "Work Sans", sans-serif; font-size: 13px; color: var(--ds-soft); margin-top: 12px; letter-spacing: .02em; }
.doc-intro { font-style: italic; font-size: 16px; line-height: 1.6; text-align: center; color: var(--ds-ink); max-width: 52ch; margin: 0 auto 28px; }

.doc-columns { column-count: 2; column-gap: 36px; column-rule: 1px solid var(--ds-line); }
.doc-parish { break-inside: avoid; margin-bottom: 22px; }
.doc-parish h3 { font-family: "Work Sans", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-accent); margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--ds-line); }
.doc-mass { font-family: "Work Sans", sans-serif; font-size: 13px; margin-bottom: 8px; }
.doc-mass-row { display: flex; align-items: baseline; gap: 6px; color: var(--ds-soft); padding: 2px 0; }
.doc-mass-row .dots { flex: 1; border-bottom: 1px dotted var(--ds-line); transform: translateY(-3px); }
.doc-mass-row span:last-child { font-variant-numeric: tabular-nums; color: var(--ds-ink); font-weight: 600; }
.doc-parish p { font-size: 14.5px; line-height: 1.55; margin: 0; }

.doc-notices { break-inside: avoid; margin-top: 8px; padding-top: 20px; border-top: 3px double var(--ds-line); }
.doc-notices h4 { font-family: "Work Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ds-ink); margin: 0 0 12px; }
.doc-notices ul { margin: 0; padding: 0; list-style: none; }
.doc-notices li { font-size: 14.5px; line-height: 1.5; padding: 5px 0 5px 20px; position: relative; }
.doc-notices li::before { content: "†"; position: absolute; left: 2px; color: var(--ds-accent); }
.doc-notices-body p { font-size: 14.5px; line-height: 1.5; margin: 0 0 6px; }
.doc-notices-body > :last-child { margin-bottom: 0; }
.doc-notices-body a { color: var(--ds-accent); }
.doc-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ds-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-family: "Work Sans", sans-serif; font-size: 11px; color: var(--ds-soft); }

/* Feature layout */
.oz-feature { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.oz-preview { position: relative; cursor: pointer; border-radius: var(--r-md); overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); padding: 28px 28px 0; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.oz-preview:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.oz-preview-paper { max-height: 420px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
.oz-preview-paper .doc-sheet { box-shadow: 0 8px 24px rgba(20,20,15,.14); padding: 32px 32px 0; }
.oz-preview-pdf { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 8px 24px rgba(20,20,15,.14); pointer-events: none; }
.oz-preview-open { position: absolute; inset: auto 0 0 0; display: flex; justify-content: center; padding: 22px; }
.oz-preview-open span { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: var(--primary-ink); font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 999px; box-shadow: var(--shadow); }

.oz-detail .oz-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 18px; }
.oz-detail h2 { font-size: clamp(28px, 3.6vw, 42px); }
.oz-season { color: var(--accent); font-weight: 600; margin: 8px 0 18px; }
.oz-blurb { color: var(--ink-soft); font-size: 17px; max-width: 46ch; }
.oz-doc-meta { display: flex; gap: 22px; flex-wrap: wrap; margin: 24px 0 28px; font-size: 14px; color: var(--ink-soft); }
.oz-doc-meta span { display: inline-flex; align-items: center; gap: 8px; }
.oz-doc-meta span svg { color: var(--accent); }
.oz-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Archive rows */
.oz-archive { display: flex; flex-direction: column; gap: 10px; }
.oz-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.oz-row:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.oz-doc-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.oz-row-info { display: flex; flex-direction: column; gap: 2px; }
.oz-row-info b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 17px; }
.oz-row-info small { font-size: 13px; color: var(--ink-soft); }
.oz-row-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Archive controls: year chips + pager (both revealed by JS) */
button.chip { background: transparent; color: inherit; font: inherit; font-size: 14px; }
.oz-years { margin-bottom: 22px; }
.oz-years[hidden] { display: none; }
.oz-empty { color: var(--ink-soft); margin: 0; }
.oz-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; }
.oz-pager[hidden] { display: none; }
.oz-page-btn { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; font-size: 14px; color: inherit; cursor: pointer; transition: all .15s; }
.oz-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.oz-page-btn.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.oz-page-btn:disabled { opacity: .4; cursor: default; }
.oz-pager-gap { color: var(--ink-soft); padding: 0 2px; }

/* Reader overlay */
body.reader-open { overflow: hidden; }
.reader { position: fixed; inset: 0; z-index: 300; background: color-mix(in srgb, var(--ink) 30%, #2a2a26); display: flex; flex-direction: column; animation: fade .2s ease both; }
/* display:flex above overrides the [hidden] attribute, so re-hide explicitly. */
.reader[hidden] { display: none; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(16px, 4vw, 36px); background: var(--surface); border-bottom: 1px solid var(--line); flex: none; }
.reader-meta { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.reader-meta svg { color: var(--accent); }
.reader-actions { display: flex; align-items: center; gap: 10px; }
.reader-btn { padding: 9px 16px; font-size: 13.5px; }
/* Zoom toolbar */
.reader-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: color-mix(in srgb, var(--ink) 6%, var(--surface)); border: 1px solid var(--line); border-radius: 999px; }
.reader-zoom-btn, .reader-zoom-label { border: 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; border-radius: 999px; height: 30px; }
.reader-zoom-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; padding: 0; }
.reader-zoom-label { min-width: 54px; padding: 0 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reader-zoom-btn:hover, .reader-zoom-label:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
/* "safe center" keeps the left edge reachable when a zoomed page overflows. */
.reader-scroll { flex: 1; overflow: auto; padding: clamp(20px, 4vw, 48px) 16px; display: flex; justify-content: safe center; align-items: flex-start; }
/* Native PDF viewer fills the whole area (it has its own scroll + toolbar). */
.reader-scroll.has-frame { display: block; padding: 0; overflow: hidden; }
.reader-frame { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.reader-scroll .doc-sheet { flex: none; }
.reader-pdf { width: min(820px, 100%); flex: none; display: flex; flex-direction: column; gap: 16px; }
.reader-pdf-page { display: block; width: 100%; height: auto; background: #fff; box-shadow: var(--shadow); }

/* ---- Parish contact + official data ---- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.priest-card { display: flex; flex-direction: column; }
.priest-head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.priest-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.priest-role { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.priest-head h3 { font-size: 22px; margin-top: 3px; }
.info-rows { display: flex; flex-direction: column; }
.priest-serves { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 4px; }
.serve-chip { font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); cursor: pointer; transition: all .15s; }
.serve-chip:hover { background: var(--primary); color: var(--primary-ink); }
.info-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; font-weight: 600; transition: color .15s; }
.info-row:first-child { border-top: 0; }
.info-row:hover { color: var(--accent); }
.info-row .ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.info-row small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }

.data-list { margin: 0; }
.data-list > div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.data-list > div:first-child { border-top: 0; padding-top: 0; }
.data-list dt { font-size: 13px; color: var(--ink-soft); }
.data-list dd { margin: 0; font-size: 15px; font-weight: 600; }
.data-note { margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); }

/* UPN QR — payment code in the parish sidebar. The symbol itself always stays
   black on white so banking apps can read it in any colour theme. */
.upn-qr-code { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; display: flex; justify-content: center; }
.upn-qr-code svg { display: block; width: 100%; height: auto; max-width: 220px; }

/* Reference numbers (sklic) shown under the payment code — one small panel
   that reads as a continuation of the QR box above it. */
.upn-sklici { margin-top: 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); text-align: left; }
.upn-sklici-title { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.upn-sklici-list { margin: 0; }
.upn-sklici-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--line); }
.upn-sklici-list > div:first-child { border-top: 0; padding-top: 0; }
.upn-sklici-list dt { font-size: 13.5px; color: var(--ink-soft); }
.upn-sklici-list dd { margin: 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap; }

/* Kontakt — official parish data next to its payment code */
.parish-data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr)); gap: 22px; }
.parish-data-card { display: grid; grid-template-columns: 1fr 150px; gap: 26px; align-items: start; }
.parish-data-main h3 { font-size: 22px; margin: 4px 0 18px; }
.parish-data-main h3 a:hover { color: var(--accent); }
/* A fixed label column keeps the account number on one line in the narrower
   card layout. */
.parish-data-card .data-list > div { grid-template-columns: 118px 1fr; gap: 14px; }
.parish-data-main .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); }
.parish-data-main .more:hover { text-decoration: underline; }
.parish-data-qr { width: 150px; text-align: center; }
.parish-data-qr .upn-qr-code { padding: 9px; }
.parish-data-qr-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.parish-data-qr small { display: block; margin-top: 9px; font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.parish-data-qr .upn-sklici { padding: 10px 12px; }
.parish-data-qr .upn-sklici-title { font-size: 10px; letter-spacing: .1em; }
.parish-data-qr .upn-sklici-list dt { font-size: 12.5px; }
.parish-data-qr .upn-sklici-list dd { font-size: 13px; }

/* ---- Sodelovanje: parish groups + their schedule ---- */
.sched-filter { margin-bottom: 26px; }
.sched-groups { display: flex; flex-direction: column; gap: 22px; }
.sched-group { padding: 28px 30px; }
.sched-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sched-head h3 { font-size: 23px; margin: 4px 0 0; }
.sched-lead { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; max-width: 60ch; }
.sched-contact { text-align: right; }
.sched-contact small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.sched-contact b { font-size: 15px; }
.sched-print { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 4px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.sched-print label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.sched-print select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: inherit; max-width: 100%; }
.sched-print .btn { padding: 8px 16px; font-size: 13.5px; }
.sched-list { display: flex; flex-direction: column; }
.sched-row { display: grid; grid-template-columns: 62px 132px 1fr; align-items: center; gap: 18px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.sched-row:last-child { border-bottom: 0; }
.sched-date { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent); line-height: 1.1; }
.sched-date b { font-family: var(--font-head); font-size: 19px; font-weight: var(--head-weight); }
.sched-date small { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.sched-when { display: flex; flex-direction: column; gap: 2px; }
.sched-when b { font-size: 15px; font-weight: 600; }
.sched-when small { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sched-people { font-size: 15.5px; }
.sched-next { display: inline-block; margin-left: 10px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary-ink); background: var(--primary); border-radius: 999px; padding: 3px 10px; vertical-align: 2px; }
.sched-row.is-next .sched-date { background: var(--primary); color: var(--primary-ink); }
.sched-row.is-next .sched-people { font-weight: 600; }
.sched-row-month { grid-template-columns: 62px 1fr; }
.sched-row-month .sched-date b { font-size: 14px; letter-spacing: .04em; }
.sched-row-month .sched-people { font-size: 16px; }
.sched-row-two { grid-template-columns: 62px 132px 1fr 1fr; align-items: start; }
.sched-slot { display: flex; flex-direction: column; gap: 3px; }
.sched-slot small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sched-label { display: block; font-style: normal; font-size: 12.5px; color: var(--accent); margin-top: 2px; }
@media (max-width: 720px) {
  .sched-row-two { grid-template-columns: 62px 1fr; }
  .sched-row-two .sched-when { grid-column: 2; }
  .sched-row-two .sched-slot { grid-column: 2; margin-top: 6px; }
}
.sched-row-note { grid-template-columns: 1fr; }
.sched-row-note .sched-people { font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.sched-past { opacity: .72; }
.sched-past-toggle { margin-top: 16px; padding: 0; background: none; border: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent); cursor: pointer; }
.sched-past-toggle:hover { text-decoration: underline; }
.sched-empty { margin: 16px 0 0; color: var(--ink-soft); }
.sched-note { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft); }
.sched-note p:last-child { margin-bottom: 0; }

/* ---- Dohodnina: 1 % donation ---- */
.doh-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.doh-way h3 { font-size: 21px; margin: 4px 0 18px; }
.doh-steps { margin: 0; padding: 0; list-style: none; counter-reset: doh; }
.doh-steps li { position: relative; counter-increment: doh; padding: 0 0 14px 40px; font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.doh-steps li:last-child { padding-bottom: 0; }
.doh-steps li::before { content: counter(doh); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.doh-steps b { color: var(--ink); font-weight: 600; }
.doh-steps a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.doh-address { display: inline-block; margin-top: 8px; color: var(--ink); font-weight: 600; line-height: 1.55; }
.doh-note { margin: 20px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-soft); }
.doh-note a { color: var(--accent); font-weight: 600; }
.doh-list-title { font-size: 19px; margin: 38px 0 16px; }
.doh-list { display: flex; flex-direction: column; gap: 10px; }
.doh-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px; }
.doh-row-name { font-family: var(--font-head); font-weight: var(--head-weight); font-size: 17px; }
.doh-row-tax { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.doh-row-tax small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.doh-row-tax b { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.doh-print-btn { padding: 9px 16px; font-size: 13.5px; }

/* ---- Maintenance notice (stand-alone page) ---- */
body.pzp-maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 48px); background:
  radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 55%),
  radial-gradient(circle at 90% 100%, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent 50%), var(--bg); }
.maint { width: 100%; max-width: 640px; text-align: center; }
.maint-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(28px, 5vw, 52px); }
.maint-card .brand { display: inline-flex; margin-bottom: 30px; }
.maint-eyebrow { justify-content: center; margin-bottom: 14px; }
.maint-card h1 { font-size: clamp(28px, 4vw, 40px); }
.maint-text { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.maint-text p:last-child { margin-bottom: 0; }
.maint-until { display: inline-flex; align-items: center; gap: 8px; margin: 26px 0 0; padding: 9px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.maint-count { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.maint-count > div { min-width: 84px; padding: 12px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.maint-count b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: var(--head-weight); font-variant-numeric: tabular-nums; line-height: 1.1; }
.maint-count small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.maint-contact { margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--line); }
.maint-contact-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.maint-contact-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.maint-contact-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; font-weight: 600; transition: border-color .15s, background .15s; }
.maint-contact-links a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.maint-foot { margin: 24px 0 0; font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 480px) { .maint-until { font-size: 13.5px; padding: 8px 14px; } .maint-contact-links a { width: 100%; justify-content: center; } }

/* ---- Footer ---- */
.footer { background: var(--primary); color: var(--primary-ink); padding: 64px 0 36px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: .7; margin: 0 0 16px; font-weight: 600; }
.footer a, .footer p { display: block; opacity: .9; font-size: 14.5px; margin: 0 0 9px; cursor: pointer; }
.footer a:hover { opacity: 1; }
.footer .brand-text b, .footer .brand-text span { color: var(--primary-ink); }
.footer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.footer-actions .footer-social { margin-top: 0; }
.footer-donate { display: inline-flex !important; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: var(--primary-ink); color: var(--primary); font-size: 14px; font-weight: 700; width: auto; transition: transform .15s, box-shadow .15s; }
.footer-donate:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.footer-social { display: inline-flex !important; align-items: center; gap: 9px; margin-top: 18px; padding: 9px 16px; border: 1px solid color-mix(in srgb, var(--primary-ink) 28%, transparent); border-radius: 999px; font-size: 14px; font-weight: 600; opacity: .9; transition: background .15s, opacity .15s; width: auto; }
.footer-social:hover { background: color-mix(in srgb, var(--primary-ink) 12%, transparent); opacity: 1; }
.footer-contact-link { display: inline-flex !important; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; opacity: .9; }
.footer-contact-link:hover { opacity: 1; }
.footer-bottom a { display: inline; margin: 0; font-size: inherit; opacity: 1; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { opacity: .8; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--primary-ink) 18%, transparent); font-size: 12.5px; opacity: .6; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* fade-in */
.fade { animation: fade .4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .news-feature, .footer-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 16/10; order: -1; }
  .hero-media { order: -1; }
  .hero-stage { aspect-ratio: 16/10; }
  .hero-full { min-height: clamp(480px, 76vh, 680px); }
  .hero-full-inner { padding-top: clamp(120px, 20vh, 180px); padding-bottom: 26px; }
  .news-side { padding: 28px; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; gap: 2px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-item { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--accent-soft); border-radius: 0; margin: 2px 0 6px 14px; padding: 2px; min-width: 0; display: none; }
  .nav-item.open .dropdown { display: block; }
  .dropdown-item-caret { display: none; }
  .dropdown-flyout { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 13px; min-width: 0; display: flex; flex-wrap: wrap; gap: 2px; }
  .dropdown-flyout::before { display: none; }
  .dropdown-flyout-label { display: none; }
  .dropdown-flyout a { font-size: 12.5px; color: var(--ink-soft); padding: 4px 9px; }
  .nav-mobile-toggle { display: block; }
  .news-line { grid-template-columns: 80px 1fr; gap: 12px; }
  .info-grid { grid-template-columns: 1fr; }
  .parish-data-grid { grid-template-columns: 1fr; }
  .oz-feature { grid-template-columns: 1fr; }
  .oz-preview-paper { max-height: 340px; }
  .doc-columns { column-count: 1; }
  .reader-meta span { display: none; }
}

@media (max-width: 900px) {
  .doh-ways { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* Schedule rows: date chip beside a stacked when/people block. */
  .sched-group { padding: 24px 20px; }
  .sched-row { grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
  .sched-when { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; }
  .sched-people { grid-column: 2; }
  .sched-contact { text-align: left; }
}

@media (max-width: 620px) {
  /* Parish data cards: stack the code under the details on small screens. */
  .parish-data-card { grid-template-columns: 1fr; gap: 24px; }
  .parish-data-qr { width: 100%; max-width: 230px; margin: 0 auto; }
  .parish-data-card .data-list > div { grid-template-columns: 0.9fr 1.1fr; }
  .doh-row { grid-template-columns: 1fr auto; row-gap: 12px; }
  .doh-row .doh-print-btn { grid-column: 1 / -1; justify-content: center; }
}

/* ---- Print: only the open document ---- */
@media print {
  body.reader-open > *:not(.reader) { display: none !important; }
  .reader { position: static; background: #fff; }
  .reader-bar { display: none !important; }
  .reader-scroll { overflow: visible; padding: 0; display: block; }
  .doc-sheet { box-shadow: none !important; max-width: none; padding: 0; }
  .reader-pdf-page { box-shadow: none; }
  @page { margin: 16mm; }
}

/* ===== Verouk — tedenski urnik (ure × dnevi) ===== */
.vt-filter { margin-bottom: 22px; }
.vt-wrap .is-hidden { display: none !important; }
.vt-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.vt { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14.5px; }
.vt thead th { position: sticky; top: 0; z-index: 1; background: var(--primary); color: var(--primary-ink); font-family: var(--font-head); font-weight: var(--head-weight); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 13px 16px; white-space: nowrap; }
.vt thead th:first-child { border-top-left-radius: var(--r-lg); }
.vt thead th:last-child { border-top-right-radius: var(--r-lg); }
.vt tbody tr + tr th, .vt tbody tr + tr td { border-top: 1px solid var(--line); }
.vt tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.vt th.vt-hour { width: 132px; padding: 14px 16px; text-align: left; vertical-align: top; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); border-right: 1px solid var(--line); }
.vt td { padding: 12px 16px; vertical-align: top; }
.vt td + td { border-left: 1px solid var(--line); }
.vt-empty { color: var(--line-strong); }
/* A cell emptied by the parish filter keeps the same dash as an empty one. */
.vt td.is-blank:not(:has(.vt-empty))::after { content: "—"; color: var(--line-strong); }
.vt-item { display: flex; flex-direction: column; gap: 1px; }
.vt-item + .vt-item { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.vt-parish { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.vt-group { font-size: 15px; font-weight: 600; }
.vt-who, .vt-place { font-size: 13.5px; color: var(--ink-soft); }
.vt-wrap.is-single .vt-parish { display: none; }

/* Po dogovoru + opombe */
.vt-flex { margin-top: 26px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vt-flex h3 { font-size: 17px; margin: 0 0 12px; }
.vt-flex-list { display: flex; flex-direction: column; }
.vt-flex-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.vt-flex-row:last-child { border-bottom: 0; }
.vt-when { font-size: 14px; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.vt-notes { margin-top: 20px; }
.vt-note { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-soft); max-width: 78ch; }
.vt-note b { color: var(--ink); }

/* Telefon: isti urnik, brano po dnevih */
.vt-days { display: none; }
.vt-day { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.vt-day + .vt-day { margin-top: 14px; }
.vt-day h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.vt-slot { display: grid; grid-template-columns: 116px 1fr; gap: 14px; padding: 11px 0; border-top: 1px dashed var(--line); }
.vt-slot:first-of-type { border-top: 0; padding-top: 0; }
.vt-slot-time { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.vt-slot-items { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) {
  .vt-scroll { display: none; }
  .vt-days { display: block; }
}
@media (max-width: 420px) {
  .vt-slot { grid-template-columns: 1fr; gap: 4px; }
  .vt-flex-row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .vt-when { text-align: left; }
}
@media print {
  .vt-filter { display: none; }
  .vt-scroll { display: block; overflow: visible; border: 0; box-shadow: none; }
  .vt-days { display: none; }
  .vt { min-width: 0; font-size: 11pt; }
  .vt thead th { background: none; color: #000; border-bottom: 1.5pt solid #000; }
  .vt tbody tr { page-break-inside: avoid; }
}

/* ===== Cenik veroučnega gradiva ===== */
.ptab-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.ptab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptab thead th { background: var(--primary); color: var(--primary-ink); font-family: var(--font-head); font-weight: var(--head-weight); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 13px 16px; white-space: nowrap; }
.ptab tbody tr + tr th, .ptab tbody tr + tr td { border-top: 1px solid var(--line); }
.ptab tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.ptab tbody th { text-align: left; padding: 13px 16px; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 15px; white-space: nowrap; }
.ptab td { padding: 13px 16px; }
.ptab .ptab-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptab thead th.ptab-num { text-align: right; }
.ptab-after { display: grid; grid-template-columns: minmax(280px, 1fr) 1.2fr; gap: 26px; align-items: start; margin-top: 26px; }
.ptab-fees h4 { margin-bottom: 4px; }
.ptab-fee-amount { font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptab-note { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; max-width: 68ch; }
@media (max-width: 860px) { .ptab-after { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .ptab-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  .ptab, .ptab tbody, .ptab tr, .ptab th, .ptab td { display: block; }
  .ptab thead { display: none; }
  .ptab tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 12px; }
  .ptab tbody tr:nth-child(even) { background: var(--surface); }
  .ptab tbody tr + tr th, .ptab tbody tr + tr td { border-top: 0; }
  .ptab tbody th { padding: 0 0 6px; font-size: 16px; }
  .ptab td { padding: 4px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
  .ptab td:empty { display: none; }
  .ptab td[data-col]:not([data-col=""])::before { content: attr(data-col); color: var(--ink-soft); font-size: 13px; }
  .ptab .ptab-num { text-align: right; }
}

/* ===== Pravila veroučne šole v spletni prijavnici ===== */
.vpis-rules { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; margin: 0 0 16px; }
.vpis-rules h4 { margin: 0 0 8px; font-size: 16px; }
.vpis-rules-intro { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.vpis-rules-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.vpis-rules-list li { margin-bottom: 7px; }
.vpis-rules-list li:last-child { margin-bottom: 0; }

/* ===== Besedilo iz urejevalnika (.prose) =====
   Objave in strani so napisane v WordPressovem urejevalniku, zato mora .prose
   pokriti vse, kar ta lahko izpiše: naslove, sezname, povezave, citate,
   fotografije s podnapisi, tabele in poravnave. */
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 1.8em 0 .5em; line-height: 1.2; }
.prose h2 { font-size: clamp(23px, 2.4vw, 28px); }
.prose h3 { font-size: clamp(20px, 2vw, 23px); }
.prose h4, .prose h5, .prose h6 { font-size: 18px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong, .prose b { font-weight: 700; }
.prose em, .prose i { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.5em; font-size: 17.5px; }
.prose li { margin-bottom: .45em; }
.prose li > ul, .prose li > ol { margin: .45em 0 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink-soft); font-size: 18px; font-style: italic; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--ink-soft); text-align: center; }
.prose img { height: auto; max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--bg); font-weight: 600; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1px 5px; }
.prose pre { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin: 1.6em 0; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose .alignleft { float: left; margin: 6px 24px 16px 0; max-width: min(50%, 340px); }
.prose .alignright { float: right; margin: 6px 0 16px 24px; max-width: min(50%, 340px); }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignwide, .prose .alignfull { margin-left: 0; margin-right: 0; }
.prose .wp-block-image { margin: 1.8em 0; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.prose .wp-block-button__link { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); text-decoration: none; font-size: 15px; }
.prose .wp-block-embed, .prose .wp-block-embed iframe { max-width: 100%; }
.prose .wp-block-separator { border-top: 1px solid var(--line); }
.prose > *::after { clear: none; }
.prose::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
  .prose .alignleft, .prose .alignright { float: none; margin: 1.4em 0; max-width: 100%; }
}

/* ------------------------------------------------------------------ *
 *  Zakladi naše vere (tedenska rubrika) + Katekizem (KKC)
 * ------------------------------------------------------------------ */
.zk-wrap { max-width: 760px; margin: 0 auto; }
.zk-head { text-align: center; margin-bottom: 28px; }
.zk-title { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 8px; letter-spacing: .01em; }
.zk-meta { color: var(--ink-soft); font-size: 15px; margin: 0; }
.zk-text { max-width: none; }
.zk-text p { font-size: 18px; line-height: 1.7; margin: 0 0 16px; }
.zk-quote { margin: 30px auto 30px; max-width: 640px; text-align: center; font-family: var(--font-display, inherit); font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink); padding: 0 12px; }
.zk-foot { border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 12px; }
.zk-foot p { margin: 0; font-size: 16px; line-height: 1.6; }
.zk-label { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-right: 8px; }
.zk-task { background: var(--accent-soft); border-radius: var(--r-md); padding: 14px 18px; }
.zk-more { text-align: center; margin: 32px 0 0; }
.kkc-ref { border-bottom: 1px dotted var(--line-strong); text-decoration: none; font-variant-numeric: tabular-nums; }
.kkc-ref:hover { border-bottom-color: var(--accent); color: var(--accent); }

.zk-kkc-block { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--line-strong); }
.zk-kkc-h { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px; }
.zk-kkc-note { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 24px; }

.zk-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.zk-nav-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.zk-nav-link span { font-size: 13px; color: var(--ink-soft); }
.zk-nav-link b { font-size: 15px; }
.zk-nav-link:hover b { color: var(--accent); }
.zk-nav-link.is-next { text-align: right; align-items: flex-end; }

.zk-group { margin-bottom: 36px; }
.zk-group-h { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.zk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.zk-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .15s, transform .15s; }
.zk-item:hover { border-color: var(--line-strong); transform: translateX(3px); }
.zk-item.is-current { border-color: var(--accent); background: var(--accent-soft); }
.zk-item-week { flex: none; width: 36px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.zk-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zk-item-title { font-weight: 600; }
.zk-item-meta { font-size: 13.5px; color: var(--ink-soft); }
.zk-item svg { flex: none; color: var(--ink-soft); }

.zk-home { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 1040px; margin: 0 auto; }
.zk-home-title { font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; }
.zk-home-title a { text-decoration: none; }
.zk-home-title a:hover { color: var(--accent); }
.zk-home-text { font-size: 17.5px; line-height: 1.7; margin: 16px 0 22px; }
.zk-home-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.zk-home-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.zk-home-side h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.zk-home-side p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; }
.zk-home-side p:last-child { margin-bottom: 0; }

.kkc-wrap { max-width: 820px; margin: 0 auto; }
.kkc-search { display: flex; gap: 10px; max-width: 640px; }
.kkc-search input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; font-size: 16px; background: var(--surface); color: var(--ink); }
.kkc-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.kkc-ctx { color: var(--ink-soft); font-size: 14px; margin: 0 0 22px; }
.kkc-art { margin-bottom: 22px; }
.kkc-h { font-size: clamp(20px, 2.2vw, 26px); margin: 36px 0 12px; }
.kkc-h-part { font-size: clamp(24px, 2.8vw, 32px); padding-bottom: 8px; border-bottom: 2px solid var(--line-strong); }
.kkc-sub { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin: 26px 0 10px; }
.kkc-sub-minor { text-transform: none; letter-spacing: 0; font-style: italic; color: var(--ink); font-size: 16px; }
.kkc-short { color: var(--accent); }
.kkc-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.kkc-num { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 17px; line-height: 1.6; }
.kkc-num a { text-decoration: none; color: inherit; }
.kkc-num a:hover { text-decoration: underline; }
.kkc-body { min-width: 0; }
.kkc-p { font-size: 17px; line-height: 1.7; margin: 0 0 10px; }
.kkc-note { font-size: 15px; color: var(--ink-soft); padding-left: 16px; border-left: 2px solid var(--line); }
.kkc-missing { font-style: italic; color: var(--ink-soft); }
.kkc-dim { opacity: .55; }
.kkc-dim:hover { opacity: 1; }
.kkc-focus { background: var(--accent-soft); border-radius: var(--r-md); padding: 16px 18px; margin: 0 -18px 22px; }
.kkc-focus .kkc-art { margin-bottom: 0; }
.kkc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.kkc-hit { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.kkc-hit:hover .kkc-hit-text { color: var(--ink); }
.kkc-hit-text { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.kkc-hit mark { background: var(--accent-soft); color: var(--ink); padding: 0 2px; border-radius: 3px; }
.kkc-toc { display: grid; gap: 2px; margin-top: 28px; }
.kkc-toc a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 7px 0; text-decoration: none; border-radius: 6px; }
.kkc-toc a:hover { background: var(--accent-soft); }
.kkc-toc-num { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; padding-right: 8px; }
.kkc-toc-part { font-weight: 700; font-size: 18px; margin-top: 22px; }
.kkc-toc-section { font-weight: 600; margin-top: 10px; }
.kkc-toc-chapter { padding-left: 16px; }
.kkc-toc-article { padding-left: 32px; font-size: 15px; color: var(--ink-soft); }
.kkc-intro p { font-size: 16.5px; }

@media (max-width: 760px) {
	.zk-home { grid-template-columns: 1fr; }
	.zk-nav { grid-template-columns: 1fr; text-align: center; }
	.zk-nav-link, .zk-nav-link.is-next { align-items: center; text-align: center; }
	.kkc-focus { margin: 0 0 22px; }
	.kkc-row, .kkc-hit, .kkc-toc a { grid-template-columns: 44px minmax(0, 1fr); }
	.kkc-search { flex-direction: column; }
}

/* Izpostavljeno obvestilo na naslovnici (npr. žalna vest) */
.notice-section { padding: clamp(28px, 4vw, 48px) 0 0; }
.notice-card { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-left: 5px solid var(--accent); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); }
.notice-card .eyebrow { margin-bottom: 8px; }
.notice-title { font-size: clamp(22px, 2.8vw, 32px); margin: 0 0 10px; }
.notice-text { max-width: none; }
.notice-text p { font-size: 17px; line-height: 1.65; margin: 0 0 10px; }
.notice-text p:last-child { margin-bottom: 0; }
