/* Vjeroznanci – stilovi
   Paleta: lapis (primarna), boje liturgijskih vremena za razrede
   I. zelena (rast), II. crvena (Crkva), III. ljubičasta (obraćenje), IV. zlatna (sakramenti) */

@font-face { font-family: "Alegreya"; src: url("fonts/Alegreya.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("fonts/Alegreya-Italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1a2138;
  --muted: #586074;
  --line: #dde2ea;
  --wash: #f2f4f8;
  --paper: #ffffff;
  --lapis: #233c8a;
  --lapis-deep: #182b66;
  --gold: #9a7417;
  --ok: #276738;
  --bad: #a3262a;
  --g1: #2e6b3c;
  --g2: #a1282d;
  --g3: #5d3380;
  --g4: #86660f;
  --g: var(--lapis);
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --measure: 42rem;
  --radius: 6px;
}
.g1 { --g: var(--g1); } .g2 { --g: var(--g2); } .g3 { --g: var(--g3); } .g4 { --g: var(--g4); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.65;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
main { flex: 1 0 auto; }
a { color: var(--lapis); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--lapis-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small { font-size: 0.85em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow > * { max-width: var(--measure); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; font-family: var(--sans); z-index: 10; }
.skip:focus { top: 1rem; }

/* ------------------------------------------------ zaglavlje */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-row { display: flex; align-items: center; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.6rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--lapis); margin-right: auto; line-height: 1; }
.brand-name { font-style: italic; font-weight: 700; font-size: 1.95rem; letter-spacing: -0.01em; }
.brand-tag { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }
.head-search { display: flex; align-items: stretch; }
.head-search input {
  font: 1rem var(--sans); width: 13rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line);
  border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--wash); color: var(--ink);
}
.head-search button, .menu-btn, .btn, .link-btn { font-family: var(--sans); cursor: pointer; }
.head-search button {
  font-size: 0.95rem; padding: 0 0.85rem; border: 1px solid var(--lapis); background: var(--lapis); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.menu-btn { display: none; font-size: 1rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 0.35rem; display: flex; flex-wrap: wrap; gap: 0.1rem 1.4rem; }
.site-nav a {
  display: inline-block; font-family: var(--sans); font-size: 1.02rem; font-weight: 500; color: var(--ink);
  text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--lapis); border-bottom-color: var(--line); }
.site-nav .only-mobile { display: none; }
.site-nav a[aria-current="page"] { color: var(--lapis); border-bottom-color: var(--lapis); }

@media (max-width: 52rem) {
  .head-search { display: none; }
  .menu-btn { display: block; }
  .site-nav { display: none; border-top: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0.4rem 0 0.8rem; }
  .site-nav a { display: block; padding: 0.55rem 0; font-size: 1.1rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--lapis); padding-left: 0.6rem; }
  .site-nav .only-mobile { display: block; }
  .brand-name { font-size: 1.7rem; }
}

/* ------------------------------------------------ zaglavlje sadržaja */
.page-head { padding: 2.2rem 0 1.2rem; }
.page-head .lead, .band .lead { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.band { background: var(--g); color: #fff; padding: 1.8rem 0 1.5rem; margin-bottom: 2rem; }
.band h1 { color: #fff; }
.band .lead, .band .also { color: rgba(255,255,255,0.9); }
.band a { color: #fff; }
.band .lead a, .band .also a { text-decoration-color: rgba(255,255,255,0.6); }
.multi .band { background: var(--lapis); }
.crumbs ol { list-style: none; margin: 0 0 0.8rem; padding: 0; display: flex; flex-wrap: wrap; font-family: var(--sans); font-size: 0.95rem; }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem; opacity: 0.55; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.band .crumbs a { color: rgba(255,255,255,0.88); }
.unit-toc ol { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.unit-toc a {
  display: inline-block; font-family: var(--sans); font-size: 0.95rem; text-decoration: none; color: #fff;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 999px; padding: 0.2rem 0.8rem;
}
.unit-toc a:hover { background: rgba(255,255,255,0.14); }

/* ------------------------------------------------ tekst lekcija i članaka */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; color: var(--g); }
.prose h4 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose li > p { margin: 0; }
.prose blockquote { margin: 1.2em 0; padding: 0.1em 0 0.1em 1.1em; border-left: 3px solid var(--g); color: #333a50; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose .center { text-align: center; }
.prose .right { text-align: right; }
.prose figure.media { margin: 1.4em 0; text-align: center; }
.prose figure.media-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.prose img { border-radius: 3px; }
.prose img.float-right { float: right; margin: 0.3em 0 0.8em 1.2em; max-width: 45%; }
.prose img.float-left { float: left; margin: 0.3em 1.2em 0.8em 0; max-width: 45%; }
.prose::after { content: ""; display: table; clear: both; }
.prose .blocks { margin: 1.2em 0; }
.pair { display: grid; gap: 0.6rem 1.5rem; margin: 0 0 1.4rem; align-items: start; }
.pair .cell-i { text-align: center; }
@media (max-width: 39.99rem) { .pair-it .cell-i { order: 2; } }
.pair .cell-i figure.media { margin: 0.2em 0; }
.pair > div > :last-child { margin-bottom: 0; }
@media (min-width: 40rem) {
  .pair-ti { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .pair-it { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .pair-tt, .pair-ii { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair-ttt, .pair-iii, .pair-tti, .pair-itt, .pair-tit, .pair-iit, .pair-tii, .pair-iti { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose table { border-collapse: collapse; font-size: 0.98rem; min-width: 20rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 0.45rem 0.65rem; vertical-align: top; text-align: left; }
.prose td > :last-child, .prose th > :last-child { margin-bottom: 0; }
.lesson { font-size: 1.14rem; }

.also { font-family: var(--sans); margin: 0.6rem 0 0; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: var(--measure); margin: 2.5rem 0 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.pager a { display: block; text-decoration: none; font-weight: 600; line-height: 1.3; }
.pager a span { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.2rem; }
.pager a:hover { text-decoration: underline; }
.pager .next { grid-column: 2; text-align: right; }

.check { max-width: var(--measure); margin: 2.5rem 0 0; padding: 1.1rem 1.3rem; background: var(--wash); border-left: 4px solid var(--g); border-radius: 0 var(--radius) var(--radius) 0; }
.check h2 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.check p { margin-bottom: 0.4rem; font-family: var(--sans); color: var(--muted); }
.check ul { margin: 0; padding-left: 1.2em; }

/* ------------------------------------------------ razredi ("vrata") */
.grade-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: 1.25rem; }
.door { border-top: 6px solid var(--g); background: color-mix(in srgb, var(--g) 6%, white); padding: 1rem 1.2rem 1.2rem; border-radius: 0 0 var(--radius) var(--radius); display: flex; flex-direction: column; }
.door-head { margin: 0 0 0.6rem; font-size: 1.35rem; font-weight: 600; }
.door-head a { color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 0.4rem; }
.door-head a:hover .door-num { text-decoration: underline; text-decoration-thickness: 2px; }
.door-num { font-style: italic; font-weight: 700; font-size: 2.9rem; line-height: 1; color: var(--g); letter-spacing: -0.02em; }
.door-units { margin: 0 0 1rem; padding-left: 1.3em; font-family: var(--sans); font-size: 1rem; line-height: 1.4; }
.door-units li { margin-bottom: 0.4rem; }
.door-units li::marker { color: var(--g); font-weight: 700; }
.door-units a { color: var(--ink); text-decoration: none; }
.door-units a:hover { color: var(--g); text-decoration: underline; }
.door-links { margin: auto 0 0; display: flex; gap: 1.1rem; font-family: var(--sans); font-weight: 700; }
.door-links a { color: var(--g); }

/* ------------------------------------------------ stranica razreda */
.unit { padding: 1.6rem 0 1.4rem; border-top: 1px solid var(--line); }
.unit:first-child { border-top: 0; padding-top: 0.2rem; }
.unit h2 { color: var(--g); }
.unit-body { display: grid; gap: 1rem 2.5rem; }
@media (min-width: 52rem) { .unit-body { grid-template-columns: minmax(0, 1fr) 17rem; } }
.lessons { margin: 0; padding-left: 1.6em; }
.lessons li { margin-bottom: 0.3rem; padding-left: 0.2rem; }
.lessons li::marker { color: var(--muted); font-family: var(--sans); font-size: 0.95em; }
.lessons a { font-weight: 500; }
.lessons .act { color: var(--muted); font-style: italic; }
.lessons .gone { color: var(--muted); }
.lessons .gone small { font-family: var(--sans); margin-left: 0.3rem; }
.unit-quiz { font-family: var(--sans); background: var(--wash); border-radius: var(--radius); padding: 0.8rem 1rem; align-self: start; }
.unit-quiz h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 0.3rem; color: var(--muted); font-weight: 500; }
.unit-quiz ul { margin: 0; padding-left: 1.1em; }
.unit-quiz li { margin-bottom: 0.25rem; }
.grade-more { margin: 2rem 0 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.grade-more h2 { font-size: 1.3rem; }
.plain-list { list-style: none; padding: 0; margin: 0; font-family: var(--sans); font-size: 1.05rem; }
.plain-list li { margin-bottom: 0.45rem; }

/* ------------------------------------------------ kvizovi */
.quiz-index { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); margin-bottom: 3rem; }
.quiz-grade h2 { display: flex; align-items: baseline; gap: 0.4rem; font-size: 1.35rem; border-bottom: 3px solid var(--g); padding-bottom: 0.3rem; }
.quiz-list { margin: 0; padding-left: 1.6em; }
.quiz-list li { margin-bottom: 0.6rem; line-height: 1.35; }
.quiz-list li::marker { color: var(--g); font-family: var(--sans); font-weight: 700; }
.quiz-list a { font-weight: 600; }
.q-unit { display: block; font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }

.quiz { max-width: var(--measure); margin-bottom: 3rem; }
.questions { list-style: none; margin: 0; padding: 0; }
.question { margin: 0 0 1.4rem; }
.question fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: 0; }
.question legend { font-weight: 600; font-size: 1.12rem; line-height: 1.35; padding: 0 0.3rem; margin-left: -0.3rem; }
.q-num { color: var(--g); font-style: italic; margin-right: 0.15rem; }
.opts { display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.opt {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 0.6rem; cursor: pointer;
  font-family: var(--sans); font-size: 1.05rem; line-height: 1.3; padding: 0.55rem 0.75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.opt:hover { border-color: var(--g); }
.opt input { margin: 0; width: 1.1rem; height: 1.1rem; accent-color: var(--g); }
.opt-key { font-weight: 700; color: var(--muted); }
.opt-key::after { content: ")"; }
.opt:has(input:checked) { border-color: var(--g); background: color-mix(in srgb, var(--g) 7%, white); }
.quiz.done .opt { cursor: default; }
.opt.correct { border-color: var(--ok); background: #eaf4ec; }
.opt.correct .opt-key { color: var(--ok); }
.opt.chosen-wrong { border-color: var(--bad); background: #fbeceb; }
.opt.chosen-wrong .opt-key { color: var(--bad); }
.q-feedback { font-family: var(--sans); font-weight: 700; margin: 0.7rem 0 0; }
.question.is-correct .q-feedback { color: var(--ok); }
.question.is-wrong .q-feedback, .question.is-empty .q-feedback { color: var(--bad); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1rem; }
.btn {
  font-size: 1.05rem; font-weight: 700; padding: 0.7rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--g); background: var(--g); color: #fff;
}
.btn:hover { filter: brightness(1.1); }
.btn-quiet { background: var(--paper); color: var(--g); }
.quiz-result { font-family: var(--sans); padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--wash); border-left: 4px solid var(--g); }
.quiz-result .score { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; margin: 0 0 0.3rem; }
.quiz-result p { margin: 0 0 0.4rem; }

/* ------------------------------------------------ rubrike i popisi */
.group-title { margin-top: 1.5rem; font-size: 1.4rem; }
.entries { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.4rem; max-width: 52rem; }
.entry { display: grid; gap: 1rem; align-items: start; }
.entry.has-img { grid-template-columns: 8.5rem minmax(0, 1fr); }
.entry img { width: 8.5rem; height: 6.4rem; object-fit: cover; border-radius: 3px; background: var(--wash); }
.entry h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; }
.entry p { margin: 0; color: var(--muted); font-size: 1.02rem; }
@media (max-width: 30rem) { .entry.has-img { grid-template-columns: 5.5rem minmax(0, 1fr); } .entry img { width: 5.5rem; height: 5.5rem; } }

section + section > h2 { margin-top: 2rem; }
.downloads { margin: 0.8rem 0 1.4rem; padding-left: 1.5em; }
ul.downloads { list-style: none; padding-left: 0; }
.downloads li { margin-bottom: 0.7rem; line-height: 1.35; }
.downloads a { font-weight: 600; }
.dl-meta { display: block; font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }
.pres { padding-bottom: 0.5rem; }
.hint { font-family: var(--sans); color: var(--muted); font-size: 0.98rem; margin: 2rem 0 3rem; }

details.pregled { border: 1px solid var(--line); border-left: 5px solid var(--g); border-radius: var(--radius); margin: 0 0 0.8rem; background: var(--paper); }
details.pregled summary { cursor: pointer; padding: 0.7rem 1rem; font-size: 1.2rem; font-weight: 600; display: flex; align-items: baseline; gap: 0.4rem; }
details.pregled summary .door-num { font-size: 1.9rem; }
details.pregled summary small { font-family: var(--sans); font-weight: 400; color: var(--muted); margin-left: auto; }
details.pregled .prose { padding: 0 1.2rem 0.8rem; }
details.pregled h4 { color: var(--g); margin-top: 1rem; }
details.pregled ol { font-size: 1.02rem; }
.plan-sec { margin-bottom: 2.5rem; }

.links { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.links li { margin-bottom: 0.8rem; }
.links a { font-weight: 600; font-size: 1.12rem; }
.links p { margin: 0.1rem 0 0; color: var(--muted); font-size: 1rem; }

.contact { display: grid; gap: 1.5rem; align-items: start; margin-bottom: 3rem; }
@media (min-width: 40rem) { .contact { grid-template-columns: 14rem minmax(0, 1fr); } }
.contact img { border-radius: var(--radius); width: 14rem; }
.contact h2 { margin-bottom: 0.2rem; }
.mail { font-size: 1.3rem; font-weight: 600; }

.search-form label { display: block; font-family: var(--sans); font-weight: 700; margin-bottom: 0.4rem; }
.search-row { display: flex; gap: 0.5rem; }
.search-row input { flex: 1; min-width: 0; font: 1.1rem var(--sans); padding: 0.65rem 0.8rem; border: 1px solid #b9c1ce; border-radius: var(--radius); }
.search-status { font-family: var(--sans); color: var(--muted); margin: 1rem 0; }
.results { padding-left: 1.4em; margin: 0 0 3rem; }
.results li { margin-bottom: 1.2rem; }
.results a { font-weight: 600; font-size: 1.15rem; }
.results .r-sec { display: block; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.results p { margin: 0.2rem 0 0; font-size: 1rem; }
.results mark { background: #f6e7b8; color: inherit; padding: 0 0.1em; }

/* ------------------------------------------------ naslovnica */
.hero { background: var(--wash); border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.hero-grid { display: grid; gap: 1.5rem 3rem; padding-top: 2.6rem; padding-bottom: 2.6rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.hero-mark {
  font-style: italic; font-weight: 800; color: var(--lapis); margin: 0;
  font-size: clamp(3.4rem, 1.6rem + 8.5vw, 7.4rem); line-height: 0.92; letter-spacing: -0.035em;
}
.hero-lede { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); max-width: 30ch; margin: 1.1rem 0 0; line-height: 1.4; }
.misao { margin: 0; padding: 1.3rem 1.5rem 1.1rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.misao h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--gold); margin: 0 0 0.4rem; }
.misao blockquote { margin: 0; min-height: 3.2em; }
.misao blockquote p { font-style: italic; font-size: 1.45rem; line-height: 1.35; margin: 0; }
.misao blockquote p::before { content: "„"; }
.misao blockquote p::after { content: "“"; }
.link-btn { background: none; border: 0; padding: 0.3rem 0; margin-top: 0.7rem; color: var(--lapis); font-size: 1rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; }
.sec-title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-bottom: 1rem; }
.home-grades, .home-materials, .home-life { margin-bottom: 3rem; }
.material-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.material-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.material-list a { font-weight: 600; font-size: 1.15rem; }
.material-list span { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.98rem; }
.life-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
@media (max-width: 30rem) { .life-grid { grid-template-columns: 1fr 1fr; } .life-title { font-size: 1.08rem; } }
.life-grid a { display: block; text-decoration: none; color: var(--ink); }
.life-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--wash); margin-bottom: 0.6rem; }
.life-title { display: block; font-weight: 600; font-size: 1.2rem; color: var(--lapis); }
.life-grid a:hover .life-title { text-decoration: underline; }
.life-note { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.98rem; }
.gallery { margin-bottom: 3rem; }
.strip { list-style: none; margin: 0; padding: 0 1.25rem 0.8rem; display: flex; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem; scrollbar-width: thin; }
.strip li { flex: 0 0 auto; scroll-snap-align: start; }
.strip img { display: block; width: 17rem; height: 12.75rem; object-fit: cover; border-radius: 3px; }
@media (min-width: 76rem) { .strip { padding-left: calc((100vw - var(--wrap)) / 2 + 1.25rem); scroll-padding-left: calc((100vw - var(--wrap)) / 2 + 1.25rem); } }
.about { margin-bottom: 3.5rem; }
.about p { max-width: var(--measure); }

/* ------------------------------------------------ podnožje */
.site-foot { background: var(--lapis-deep); color: #dfe5f5; font-family: var(--sans); padding: 2.2rem 0; margin-top: 2rem; }
.foot-grid { display: grid; gap: 1.2rem 3rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.foot-brand { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.7rem; color: #fff; margin: 0 0 0.3rem; }
.foot-grid p { margin: 0; max-width: 40ch; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-foot a { color: #fff; }

/* ------------------------------------------------ uvećanje slika */
.lb { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lb::backdrop { background: rgba(10, 14, 30, 0.86); }
.lb img { display: block; max-width: 94vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; border-radius: 3px; }
.lb button { display: block; margin: 0.6rem auto 0; font: 700 1rem var(--sans); color: #fff; background: none; border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius); padding: 0.45rem 1rem; cursor: pointer; }
.zoomable { cursor: zoom-in; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media print {
  .site-head, .site-foot, .pager, .check, .quiz-actions, .unit-toc { display: none; }
  .band { background: none; color: var(--ink); padding: 0; }
  .band h1, .band .lead, .band a { color: var(--ink); }
  body { font-size: 11pt; }
}

/* ------------------------------------------------ arhivska napomena, kontakt, mediji */
.note { font-family: var(--sans); font-size: 0.98rem; color: var(--muted); background: var(--wash); border-left: 3px solid var(--gold); padding: 0.6rem 0.9rem; max-width: var(--measure); margin: 0 0 1.6rem; border-radius: 0 var(--radius) var(--radius) 0; }
.mail img { display: block; height: auto; }
.hint-small { font-family: var(--sans); font-size: 0.92rem; color: var(--muted); }
.contact-more { margin-top: 2rem; font-size: 1.3rem; }
.home-media { margin-bottom: 3rem; }
.media-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.media-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem 1.2rem; display: flex; flex-direction: column; }
.media-kind { font-family: var(--sans); font-weight: 700; font-size: 0.95rem; color: var(--gold); margin: 0 0 0.3rem; }
.media-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.media-card h3 a { text-decoration: none; }
.media-card h3 a:hover { text-decoration: underline; }
.media-card p { margin-bottom: 0.7rem; }
.media-link { margin: auto 0 0 !important; font-family: var(--sans); font-weight: 700; }
