:root {
  --nakts: #16213b;
  --nakts-2: #22305a;
  --zelts: #c9973a;
  --zelts-gaiss: #f3e6c8;
  --papirs: #faf7f1;
  --balts: #ffffff;
  --teksts: #1f2535;
  --klusi: #626b80;
  --linija: #e6e0d4;
  --sarkans: #8f2a2a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --plat: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papirs); color: var(--teksts); font: 18px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--nakts-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--nakts); margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.4rem; }
.saturs { max-width: var(--plat); margin: 0 auto; padding: 0 20px; }
.virsvirsraksts { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--zelts); margin: 0 0 .6em; }
.klusi { color: var(--klusi); }
.saite { color: var(--nakts-2); font-weight: 600; text-decoration: none; }
.saite:hover { text-decoration: underline; }

/* Galva */
.galva { background: var(--nakts); color: #fff; position: relative; z-index: 10; }
.galva--virs { position: absolute; inset: 0 0 auto 0; background: linear-gradient(rgba(10,16,34,.75), rgba(10,16,34,0)); }
.galva__iekš { max-width: var(--plat); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; margin-right: auto; }
.logo__zimols { width: 86px; height: auto; display: block; transition: opacity .15s; }
.logo:hover .logo__zimols { opacity: .85; }
.galva--virs .logo__zimols { width: 126px; filter: drop-shadow(0 2px 12px rgba(0,0,0,.4)); }
@media (max-width: 700px) { .logo__zimols { width: 64px; } .galva--virs .logo__zimols { width: 88px; } }
.logo b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.logo small { display: block; font-size: .78rem; opacity: .75; }
.izvelne { display: flex; gap: 4px; align-items: center; }
.izvelne a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: .95rem; }
.izvelne a:hover, .izvelne a[aria-current] { background: rgba(255,255,255,.12); }
.izvelne a.izvelne__ziedot { background: var(--zelts); color: var(--nakts); margin-left: 6px; }
.izvelne a.izvelne__ziedot:hover { background: #ddb15a; }
.izvelne-poga { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 7px 12px; border-radius: 6px; font: 600 .9rem var(--sans); }
@media (max-width: 900px) {
  .izvelne-poga { display: block; }
  .izvelne { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--nakts); padding: 8px 16px 16px; }
  .izvelne-atverta .izvelne { display: flex; }
  .izvelne a.izvelne__ziedot { margin: 6px 0 0; text-align: center; }
  .logo small { display: none; }
}

/* Pogas */
.pogas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.poga { display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--nakts); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--nakts); }
.poga:hover { background: var(--nakts-2); }
.poga--zelts { background: var(--zelts); border-color: var(--zelts); color: var(--nakts); }
.poga--zelts:hover { background: #ddb15a; }
.poga--gaisa { background: transparent; border-color: rgba(255,255,255,.7); }
.poga--gaisa:hover { background: rgba(255,255,255,.12); }
.poga--liela { font-size: 1.15rem; padding: 16px 30px; white-space: nowrap; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--nakts); }
.hero__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,34,0) 35%, rgba(10,16,34,.88) 100%); }
.hero__teksts { position: relative; z-index: 1; max-width: var(--plat); margin: 0 auto; padding: 0 20px 64px; width: 100%; }
.hero h1 { color: #fff; max-width: 15em; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero__ievads { max-width: 34em; font-size: 1.12rem; opacity: .92; }

.misu-josla { background: var(--nakts); color: #fff; padding: 22px 0 6px; }
.misu-josla__virs { color: var(--zelts); font-family: var(--sans); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; text-align: center; margin: 0 0 4px; }
.misu-josla__iekš { display: grid; grid-template-columns: repeat(4, 1fr); }
.misu-josla__iekš div { padding: 14px 14px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; align-items: center; }
.misu-josla__iekš div:first-child { border-left: 0; }
.misu-josla span { display: block; font-size: .98rem; line-height: 1.3; opacity: .85; min-height: 2.6em; display: flex; align-items: flex-end; justify-content: center; }
.misu-josla b { font-family: var(--serif); font-size: 1.9rem; color: var(--zelts-gaiss); font-variant-numeric: lining-nums; line-height: 1.2; margin-top: 4px; }
.misu-josla small { font-size: .88rem; opacity: .7; }
.misu-josla__ador b { color: #fff; }
@media (max-width: 800px) {
  .misu-josla__iekš { grid-template-columns: 1fr 1fr; }
  .misu-josla__iekš div:nth-child(3) { border-left: 0; }
  .misu-josla__iekš div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

/* Sadaļas */
.sadala { padding-top: 56px; padding-bottom: 56px; }
.sadala__galva { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.divas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .divas { grid-template-columns: 1fr; gap: 24px; } }
.mazs-virs { margin-top: 32px; }

/* Šonedēļ */
.sonedel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nk { background: var(--balts); border: 1px solid var(--linija); border-radius: 12px; padding: 16px; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; display: block; }
.nk:hover { box-shadow: 0 6px 20px rgba(22,33,59,.1); transform: translateY(-2px); }
.nk__dat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.nk__dat b { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--nakts); }
.nk__dat span { font-weight: 700; text-transform: capitalize; }
.nk__dat small { color: var(--klusi); margin-left: auto; }
.nk--sv { background: #f6f1e4; border-color: #e9dcb9; }
.nk--lieli .nk__dat b { color: var(--sarkans); }
.nk--sodien { border: 2px solid var(--zelts); }
.nk--sodien .nk__dat span { color: var(--zelts); }
.nk__lit { margin-bottom: 8px; }
.nk__paz { font-size: .92rem; margin: 0 0 8px; }

/* Mēneša kalendārs */
.lapas-galva { background: var(--nakts); color: #fff; padding: 56px 0 44px; }
.lapas-galva h1 { color: #fff; }
.lapas-galva h1 span { color: var(--zelts); }
.lapas-ievads { max-width: 40em; font-size: 1.1rem; opacity: .9; margin: 0; }
.lapas-galva--foto { background: linear-gradient(rgba(16,24,48,.72), rgba(16,24,48,.85)), var(--foto) center/cover; padding: 90px 0 60px; }
.piemers { display: inline-block; background: var(--zelts-gaiss); color: var(--nakts); padding: 4px 10px; border-radius: 6px; font-size: .9rem; font-weight: 600; }
.menesu-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-top: 18px; }
.menesu-nav a, .druka { color: #fff; text-decoration: none; padding: 8px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; font: 600 .95rem var(--sans); background: none; cursor: pointer; }
.menesu-nav a:hover, .druka:hover { background: rgba(255,255,255,.12); }
.menesu-nav__drizuma { color: rgba(255,255,255,.55); padding: 8px 14px; border: 1px dashed rgba(255,255,255,.3); border-radius: 8px; font: 600 .95rem var(--sans); cursor: not-allowed; }
.melnraksts-zime { margin: 12px 0 0; padding: 10px 14px; background: #fff3cd; color: #5c4400; border-left: 4px solid #d4a017; border-radius: 6px; max-width: 46rem; }
.druka { margin-left: auto; }
.menesis { padding-top: 36px; padding-bottom: 64px; max-width: 860px; }
.ievads { font-size: 1.08rem; border-left: 3px solid var(--zelts); padding-left: 18px; margin-bottom: 28px; }
.ievads p { margin: 0 0 .7em; }
.dienas { list-style: none; margin: 0; padding: 0; background: var(--balts); border: 1px solid var(--linija); border-radius: 14px; overflow: hidden; }
.diena { display: grid; grid-template-columns: 96px 1fr; border-top: 1px solid var(--linija); scroll-margin-top: 20px; }
.diena:first-child { border-top: 0; }
.diena__dat { padding: 14px 0; text-align: center; border-right: 1px solid var(--linija); display: flex; flex-direction: column; align-items: center; }
.diena__nr { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--nakts); font-variant-numeric: lining-nums; }
.diena__ned { font-size: .82rem; color: var(--klusi); font-weight: 700; margin-top: 4px; }
.diena__info { padding: 12px 18px; }
.diena--sv { background: #f6f1e4; }
.diena--sv .diena__ned { color: var(--zelts); }
.diena--lieli .diena__nr { color: var(--sarkans); }
.diena--sodien { box-shadow: inset 4px 0 0 var(--zelts); }
.diena--sodien .diena__dat::after { content: "šodien"; font-size: .7rem; font-weight: 700; color: #fff; background: var(--zelts); border-radius: 4px; padding: 1px 6px; margin-top: 5px; }
.diena:target { background: var(--zelts-gaiss); }
.diena__lit { margin-bottom: 4px; }
.lit, .atz { display: block; font-size: .93rem; line-height: 1.35; margin-bottom: 2px; color: var(--klusi); }
.lit--svetdiena { color: var(--nakts); font-weight: 600; }
.lit--lieli { color: var(--sarkans); font-weight: 700; font-family: var(--serif); font-size: 1.2rem; }
.lit--svetki, .lit--ipass { color: var(--nakts); font-weight: 700; }
.lit--valsts { color: var(--sarkans); }
.atz { display: inline-block; background: var(--zelts-gaiss); color: #6b4e14; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.diena__paz { margin: 4px 0 6px; font-size: .95rem; background: #f7f3ea; border-radius: 6px; padding: 6px 10px; }
.diena__ev { list-style: none; margin: 0; padding: 0; }
.diena__ev li { display: flex; gap: 12px; padding: 2px 0; }
.diena__ev time { font-weight: 700; min-width: 3.1em; font-variant-numeric: tabular-nums; color: var(--nakts); }
.diena__ev em { display: block; font-style: normal; font-size: .9rem; color: var(--klusi); }
.diena__ev li.ipass time { color: var(--zelts); }
.drukai { display: none; }
.arhivs { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: baseline; }
.arhivs h3 { flex-basis: 100%; margin: 16px 0 4px; }
.arhivs a { padding: 8px 14px; background: var(--balts); border: 1px solid var(--linija); border-radius: 8px; text-decoration: none; text-transform: capitalize; font-weight: 600; }

/* Ziedot josla */
.ziedot-josla { background: linear-gradient(135deg, var(--nakts) 0%, var(--nakts-2) 100%); color: #fff; }
.ziedot-josla__iekš { display: flex; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.ziedot-josla h2 { color: #fff; }
.ziedot-josla p { max-width: 38em; opacity: .9; }
@media (max-width: 800px) { .ziedot-josla__iekš { flex-direction: column; align-items: flex-start; gap: 16px; } }

/* Kartītes */
.kartites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kartites--2 { grid-template-columns: repeat(2, 1fr); }
.kartites--teksts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .kartites, .kartites--teksts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .kartites, .kartites--2, .kartites--teksts { grid-template-columns: 1fr; } }
.kartite { background: var(--balts); border: 1px solid var(--linija); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
a.kartite:hover { box-shadow: 0 8px 26px rgba(22,33,59,.12); transform: translateY(-2px); }
.kartite img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.kartite > div { padding: 18px 20px 20px; }
.kartite p { margin: 0 0 .4em; color: var(--klusi); }
.kontakts p:last-child { color: var(--teksts); }
.kartite.kontakts { flex-direction: row; align-items: center; }
.kartite .kontakts__foto { flex: none; width: 112px; height: 112px; aspect-ratio: 1; border-radius: 50%; margin: 20px 0 20px 20px; box-shadow: 0 0 0 3px var(--balts), 0 0 0 5px var(--zelts); }
@media (max-width: 420px) { .kartite.kontakts { flex-direction: column; } .kartite .kontakts__foto { margin: 22px auto 0; } .kartite.kontakts > div { text-align: center; } }
/* Raksti (Vēsture un māksla) */
.lapas-galva .virsvirsraksts a { color: inherit; text-decoration: none; }
.lapas-galva .virsvirsraksts a:hover { text-decoration: underline; }
.raksts { max-width: 46rem; margin: 0 auto; font-size: 1.08rem; }
.raksts > :first-child { margin-top: 0; }
.raksts p, .raksts ul { margin: 0 0 1.1em; }
.raksts h2 { font-size: 1.9rem; margin: 1.6em 0 .5em; }
.raksts ul { padding-left: 1.2em; }
.raksts li { margin-bottom: .6em; }
.raksts li strong:first-child { color: var(--zelts); }
.raksts blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--zelts); font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; }
.raksts blockquote p { margin: 0; }
.raksts figure { margin: 1.8em 0; }
.raksts figure img { width: 100%; height: auto; border-radius: 10px; display: block; }
.raksts figcaption { font-size: .9rem; color: var(--klusi); margin-top: .6em; }
.raksts figure.mazs { max-width: 320px; margin-left: auto; margin-right: auto; text-align: center; }
.raksts figure.pa-labi { float: right; width: 42%; margin: .3em 0 1em 1.6em; }
@media (max-width: 600px) { .raksts figure.pa-labi { float: none; width: 100%; margin: 1.4em 0; } }
.raksts .piezime { display: inline-block; background: var(--zelts-gaiss); color: var(--nakts); padding: 4px 12px; border-radius: 6px; font-size: .9rem; font-weight: 600; }
.raksts .uzruna { margin: 2.4em 0 1em; padding: 28px 30px; background: var(--balts); border: 1px solid var(--linija); border-top: 4px solid var(--zelts); border-radius: 14px; }
.raksts .uzruna > :last-child { margin-bottom: 0; }
.raksts .paraksts { text-align: right; }
.yt { margin: 1.8em 0; }
.yt__poga, .yt iframe { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.yt .yt__poga img { position: absolute; border-radius: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92; transition: opacity .15s; }
.yt__poga:hover img { opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: #d42a2a; border-radius: 14px; }
.yt__play::after { content: ""; position: absolute; left: 29px; top: 15px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.raksts blockquote small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--klusi); margin-top: .4em; }
.raksts .izcelts { background: var(--zelts-gaiss); border-radius: 12px; padding: 16px 20px; font-weight: 600; color: var(--nakts); }
.raksts__saturs { background: var(--balts); border: 1px solid var(--linija); border-radius: 14px; padding: 18px 24px; margin: 0 0 2em; }
.raksts__saturs p { margin: 0 0 .4em; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--zelts); }
.raksts__saturs ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 2em; font-size: 1rem; }
.raksts__saturs li { margin: 0 0 .25em; break-inside: avoid; }
.raksts__saturs a { color: var(--nakts-2); text-decoration: none; }
.raksts__saturs a:hover { text-decoration: underline; }
@media (max-width: 600px) { .raksts__saturs ol { columns: 1; } }
.raksts h2[id] { scroll-margin-top: 20px; }
.fotografi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.2em 0; }
.fotografi > div { background: var(--balts); border: 1px solid var(--linija); border-radius: 12px; padding: 14px 16px; font-size: .98rem; }
.fotografi p { margin: 0 0 .3em !important; }
@media (max-width: 700px) { .fotografi { grid-template-columns: 1fr; } }
.raksts__kontakti { clear: both; margin-top: 2.6em; padding: 24px 28px; background: var(--nakts); color: #fff; border-radius: 14px; }
.raksts__kontakti h2 { color: #fff; margin: 0 0 .5em; font-size: 1.7rem; }
.raksts__kontakti a { color: var(--zelts-gaiss); }
.raksts__kontakti p:last-child { margin-bottom: 0; }
.raksts__citi { clear: both; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--linija); }
.raksts__citi h2 { font-size: 1.8rem; }

.tuksa { margin-top: 40px; padding: 28px; border: 2px dashed var(--linija); border-radius: 14px; }
.tuksa p { max-width: 44em; color: var(--klusi); margin: 0; }

/* Ziedot lapa */
.ziedot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .ziedot { grid-template-columns: 1fr; } }
.ziedot__forma iframe { width: 100%; min-height: 720px; border: 0; border-radius: 14px; background: var(--balts); }
.karte-balta { background: var(--balts); border: 1px solid var(--linija); border-radius: 14px; padding: 22px 24px; margin-bottom: 20px; }
.karte-balta h2 { font-size: 1.5rem; }
.rekviziti dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--klusi); margin-top: 12px; }
.rekviziti dd { margin: 2px 0 0; font-weight: 600; }
.rekviziti code { font: 700 1.02rem var(--sans); letter-spacing: .02em; word-break: break-all; }
.kopet { margin-left: 8px; font: 600 .8rem var(--sans); border: 1px solid var(--linija); background: var(--papirs); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.saraksts { padding-left: 1.2em; }

/* Darba laiks */
.darbalaiks { display: grid; grid-template-columns: auto 1fr; gap: 4px 24px; margin: 0; }
.darbalaiks dt { color: var(--klusi); }
.darbalaiks dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.video { margin: 0; }
.tiesraide__bloks .video--karte { margin-top: 20px; }
.atverta__adrese { margin-top: 18px; color: var(--klusi); }
@media (max-width: 800px) { .tiesraide__bloks { order: -1; } .atverta { padding-top: 24px; border-top: 1px solid var(--linija); } }
.video--karte { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--nakts); box-shadow: 0 8px 26px rgba(22,33,59,.15); }
.video--karte img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s, transform .4s; }
.video--karte:hover img { opacity: .85; transform: scale(1.02); }
.video__poga { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: var(--zelts); color: var(--nakts); display: grid; place-items: center; font-size: 30px; padding-left: 6px; box-shadow: 0 4px 20px rgba(0,0,0,.35); }
.video__teksts { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-weight: 700; font-size: 1.1rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* Kāje */
.kaje { background: #0f172b; color: rgba(255,255,255,.8); font-size: .95rem; }
.kaje__iekš { max-width: var(--plat); margin: 0 auto; padding: 44px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .kaje__iekš { grid-template-columns: 1fr; gap: 12px; } }
.kaje a { color: var(--zelts-gaiss); }
.kaje p { margin: 0 0 .5em; }
.kaje__nos { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.kaje__virs { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--zelts); font-weight: 700; }

/* Drukas versijas (veido assets/druka.js) */
.drukas-pogas { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.drukas-pogas .druka { margin-left: 0; }
.drukas-pogas { align-items: flex-start; }
.bukleta-vieta { display: grid; width: min-content; gap: 6px; }
.bukleta-vieta .druka { white-space: nowrap; }
.drukas-padoms { font-size: .8rem; color: rgba(255,255,255,.78); line-height: 1.35; }
.drukas-padoms b { color: var(--zelts-gaiss); font-weight: 600; }
.druka-lapas, .druka-meri { display: none; }
.druka-meri { display: block; position: fixed; left: -10000px; top: 0; visibility: hidden; }
.druka-lapas, .druka-meri { font-size: var(--dl-fs, 14pt); color: #000; }
.dl-lapa { background: #fff; display: flex; flex-direction: column; overflow: hidden; line-height: 1.25; font-family: var(--sans); }
.dl-lapa--a4 { padding: 4mm 5mm 1mm; }
.dl-lapa--a5 { padding: 3mm 5mm 1mm; }
.dl-loksne .dl-lapa:first-child { padding-right: 8mm; }
.dl-loksne .dl-lapa:last-child { padding-left: 8mm; }
.dl-galva { display: flex; align-items: center; gap: .7em; margin-bottom: .45em; }
.dl-zimols { width: 3.6em; height: auto; }
.dl-draudze { margin: 0; font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.dl-galva h1 { margin: 0; font-size: 2.1em; color: #000; font-variant-numeric: lining-nums; }
.dl-laiki { border: 1.5pt solid #000; border-radius: 6pt; padding: .35em .6em; margin-bottom: .5em; font-size: .85em; }
.dl-laiki p { margin: 0; }
.dl-ievads { font-size: .8em; border-left: 2pt solid #000; padding-left: .6em; margin-bottom: .5em; }
.dl-ievads p { margin: 0 0 .3em; }
.dl-slejas { flex: 1; min-height: 0; display: flex; gap: 1.1em; }
.dl-sleja { flex: 1; min-width: 0; overflow: hidden; border-top: 1.5pt solid #000; }
.dl-kaje { display: flex; justify-content: space-between; font-size: max(7pt, .6em); color: #444; padding-top: .3em; }
.dl-lapa--tuksa { padding: 0; }
.dl-aizmugure { margin: auto; padding: 4mm 8mm; text-align: center; font-size: 9.5pt; line-height: 1.3; }
.dl-aizmugure__zimols { width: 24mm; margin: 0 auto 2.5mm; }
.dl-aizmugure__nos { font-family: var(--serif); font-size: 14pt; font-weight: 700; line-height: 1.2; margin: 0 0 2mm; }
.dl-aizmugure p { margin: 0 0 1.5mm; }
.dl-aizmugure h2 { font-family: var(--sans); font-size: 8.5pt; text-transform: uppercase; letter-spacing: .12em; color: #000; margin: 4.5mm 0 1.8mm; }
.dl-aizmugure dl { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 0 5mm; margin: 0; text-align: left; }
.dl-aizmugure dd { margin: 0; font-weight: 700; }
.dl-aizmugure__web { margin-top: 4.5mm !important; }
.dl-ziedot { display: flex; align-items: center; justify-content: center; gap: 4mm; text-align: left; }
.dl-ziedot figure { margin: 0; text-align: center; flex: none; }
.dl-ziedot img { width: 30mm; height: 30mm; display: block; }
.dl-ziedot figcaption { font-size: 7.5pt; margin-top: .5mm; }
.dl-ziedot__rek { font-size: 8.5pt; line-height: 1.3; }
.dl-ziedot__rek p { margin: 0 0 1.2mm; }
.dl-novelejums { font-family: var(--serif); font-style: italic; font-size: 11.5pt; line-height: 1.3; margin: 5mm 0 0 !important; }
.dl-loksne { display: flex; width: 268mm; height: 194mm; background: #fff; }
.dl-sleja .diena { display: grid; grid-template-columns: 3.9em 1fr; border-top: .75pt solid #888; background: none; box-shadow: none; break-inside: avoid; }
.dl-sleja .diena:first-child { border-top: 0; }
.dl-sleja .diena__dat { padding: .25em 0; border-right: .75pt solid #888; }
.dl-sleja .diena__nr { font-family: var(--sans); font-size: 1.45em; color: #000; font-weight: 700; }
.dl-sleja .diena__ned { font-size: .6em; color: #000; margin-top: 1px; }
.dl-sleja .diena--sv { background: #eee; }
.dl-sleja .diena--sv .diena__ned, .dl-sleja .diena--sv .diena__nr { color: #000; }
.dl-sleja .diena--sv .diena__ned { font-weight: 700; text-transform: uppercase; }
.dl-sleja .diena__info { padding: .2em .45em .25em; }
.dl-sleja .lit, .dl-sleja .atz { font-size: .78em; line-height: 1.2; color: #000; margin: 0 0 1px; }
.dl-sleja .lit--lieli { font-family: var(--sans); font-size: .9em; color: #000; text-transform: uppercase; }
.dl-sleja .atz { background: none; padding: 0; font-style: italic; display: block; }
.dl-sleja .diena__paz { font-size: .8em; background: none; border: .75pt dashed #666; padding: .15em .4em; margin: .15em 0; }
.dl-sleja .diena__ev li { gap: .5em; padding: 0; }
.dl-sleja .diena__ev time, .dl-sleja .diena__ev li.ipass time { color: #000; min-width: 2.6em; }
.dl-sleja .diena__ev em { font-size: .78em; color: #333; }
.diena:target .diena__info { background: none; }

/* Priekšskatījums ekrānā (?druka=a4 / ?druka=a5) */
body.druka-skats.drukas-rezims { background: #888; }
body.druka-skats.drukas-rezims > :not(#druka) { display: none !important; }
body.druka-skats .druka-lapas { display: flex; flex-direction: column; align-items: center; gap: 10mm; padding: 10mm 0; }
body.druka-skats .dl-lapa, body.druka-skats .dl-loksne { box-shadow: 0 2px 12px rgba(0,0,0,.35); }
body.druka-skats .dl-loksne .dl-lapa { box-shadow: none; }
body.druka-skats .dl-loksne .dl-lapa + .dl-lapa { border-left: 1px dashed #bbb; }

@media print {
  @page { size: A4 portrait; margin: 6.5mm; }
  html, body { background: #fff !important; margin: 0; }
  body.drukas-rezims > :not(#druka) { display: none !important; }
  body.drukas-rezims .druka-lapas { display: block !important; padding: 0 !important; }
  .dl-lapa, .dl-loksne { box-shadow: none !important; }
  .druka-lapas > .dl-lapa:not(:last-child), .dl-loksne-vieta:not(:last-child) { break-after: page; }
  .dl-loksne-vieta { position: relative; width: 196mm; height: 268mm; overflow: hidden; margin-top: max(0mm, calc((100vh - 268mm) / 2 - 1mm)); }
  .dl-loksne { position: absolute; top: 0; left: 195mm; transform-origin: 0 0; transform: rotate(90deg); }
  .ir-safari .dl-loksne-vieta { margin-top: 0; }
  .ir-safari .dl-loksne { top: 8mm; }
  .dl-loksne .dl-lapa + .dl-lapa { border-left: 0 !important; }
  .dl-sleja .diena--sv { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Ja skripts nedarbojas – vismaz paslēpj izvēlni */
  .galva, .kaje, .menesu-nav, .piemers, .melnraksts-zime { display: none !important; }
}


/* Kapusvētki */
.diena__men { font-size: .78rem; color: var(--klusi); }
.kapu-dienas .diena__ev b { font-weight: 600; }
.kapu-mise { font-size: .9rem; }
.diena__ev li.mainas > span, .diena__ev li.mainas > time { background: #fff1a8; color: #3a2f00; border-radius: 3px; box-shadow: 0 0 0 3px #fff1a8; }
.mainas__zime { display: inline-block; margin-left: .5em; padding: 0 .45em; font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; background: #e8b800; color: #2a2100; border-radius: 3px; vertical-align: .1em; }
mark { background: #fff1a8; color: inherit; padding: 0 .15em; }
@media print { .diena__ev li.mainas > span, .diena__ev li.mainas > time, mark { background: none; box-shadow: none; text-decoration: underline wavy; } }
.kapu-isi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.kapu-isi a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; padding: 12px 14px; background: var(--balts); border: 1px solid var(--linija); border-radius: 10px; text-decoration: none; color: inherit; height: 100%; }
.kapu-isi a:hover { border-color: var(--zelts); }
.kapu-isi b { font-family: var(--serif); font-size: 1.15rem; color: var(--nakts); }
.kapu-isi small { align-self: center; color: var(--klusi); font-size: .8rem; }
.kapu-isi span { grid-column: 1 / -1; font-size: .92rem; margin-top: 2px; }
.kapu-sakums__piez { margin: -6px 0 16px; color: var(--klusi); }
.kapu-tabula-vieta { overflow-x: auto; border: 1px solid var(--linija); border-radius: 12px; background: var(--balts); }
.kapu-tabula { border-collapse: collapse; width: 100%; font-size: .92rem; }
.kapu-tabula th, .kapu-tabula td { padding: 7px 12px; border-bottom: 1px solid var(--linija); text-align: left; white-space: nowrap; }
.kapu-tabula thead th { background: var(--nakts); color: #fff; font-weight: 600; }
.kapu-tabula tbody th { font-weight: 600; }
.kapu-tabula td small { color: var(--klusi); }
.kapu-tabula tr:last-child > * { border-bottom: 0; }
@media print {
  .lapa-kap .lapas-galva { background: none !important; color: #000 !important; padding: 0 0 4mm !important; }
  .lapa-kap .lapas-galva * { color: #000 !important; }
  .lapa-kap .lapas-galva::before, .lapa-kap .lapas-galva::after { display: none !important; }
  .lapa-kap .dienas { border-color: #999; font-size: 11pt; }
  .lapa-kap .diena { break-inside: avoid; }
  .lapa-kap .diena--sv { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .lapa-kap .klusi { display: none; }
}

/* Notikumi */
.notikumi-filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.notikumi-filtri button { font: 600 .9rem var(--sans); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--linija); background: var(--balts); color: var(--nakts); cursor: pointer; }
.notikumi-filtri button[aria-pressed="true"] { background: var(--nakts); border-color: var(--nakts); color: #fff; }
.notikumi-gads { margin: 34px 0 14px; }
.notikumi-kartites { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .notikumi-kartites { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .notikumi-kartites { grid-template-columns: 1fr; } }
.notikums img, .notikums__bez { aspect-ratio: 4/3; object-fit: cover; object-position: top; width: 100%; display: block; background: var(--zelts-gaiss); }
.notikums h3 { font-size: 1.15rem; margin: 0 0 6px; }
.notikums__dat { font-size: .82rem; font-weight: 700; color: var(--zelts) !important; text-transform: uppercase; letter-spacing: .04em; }
.notikums--drizuma .notikums__dat::after { content: " · Drīzumā"; color: var(--sarkans); }
.raksts__datums { color: var(--zelts-gaiss); font-weight: 600; margin: -4px 0 0; }
.galerija { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 1.2em 0; }
.galerija figure { margin: 0; }
.galerija img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.zinu-saraksts { list-style: none; padding: 0; margin: 0 0 24px; }
.zinu-saraksts a { display: block; padding: 10px 0; border-bottom: 1px solid var(--linija); text-decoration: none; color: var(--nakts); font-weight: 600; }
.zinu-saraksts time { display: block; font-size: .8rem; color: var(--zelts); font-weight: 700; }
.kaje__adrese { max-width: var(--plat); margin: -20px auto 0; padding: 14px 20px 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; opacity: .85; overflow-wrap: anywhere; }
.kaje__adrese code, .melnraksts-zime code { font-family: inherit; font-weight: 600; }
.kaje__kopet { margin-left: .5em; font: inherit; font-size: .78rem; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.kaje__kopet:hover { background: rgba(255,255,255,.12); }
@media print { .kaje__kopet { display: none; } }
