/*
Theme Name: Pahuljica Modern
Theme URI: https://djecji-vrtic-pahuljica.hr/
Author: Dječji vrtić Pahuljica
Description: Moderna, pristupačna i brza WordPress tema izrađena za Dječji vrtić Pahuljica Gospić.
Version: 2.5.4
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: pahuljica-modern
*/

.welcome{background:#fbf6e9;color:#172f40;padding:clamp(46px,6vw,92px) 0;position:relative;isolation:isolate}
.welcome__grid{display:grid;grid-template-columns:1fr 1.02fr;align-items:center;gap:clamp(22px,5vw,80px)}
.welcome__text h1{max-width:12ch;font-family:Georgia,serif;font-size:clamp(3.2rem,6.4vw,6.1rem);font-weight:500;line-height:.99;letter-spacing:-.062em;color:#143f52}
.welcome__text .lead{max-width:40ch;margin:1.3em 0}
.welcome .hero__actions{align-items:center}
.welcome__link{font-weight:750;text-underline-offset:.35em}
.welcome__photo{position:relative;margin:6px 8px 16px 0;isolation:isolate}
.welcome__photo:before{content:"";position:absolute;inset:6% -2.5% -3% 6%;background:#f5bc49;transform:rotate(3deg);border-radius:28% 18% 10% 7%;z-index:-1}
.welcome__photo img{display:block;width:100%;aspect-ratio:1.32;object-fit:cover;border:6px solid white;border-radius:28% 18% 10% 7%}
.welcome__photo figcaption{position:absolute;left:7%;bottom:3%;background:#fffbea;padding:.4em 1em;color:#264957;font:italic 1rem Georgia,serif;transform:rotate(-3deg)}
.parent-links{background:#fbf6e9;padding-bottom:clamp(24px,4vw,52px)}
.parent-links>.container{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.parent-links a{display:grid;position:relative;padding:20px 30px 20px 20px;border-radius:14px;background:#dbeee8;color:#183b3e;text-decoration:none}
.parent-links a:nth-child(2){background:#f8e3b5}.parent-links a:nth-child(3){background:#f5dfd4}.parent-links a:nth-child(4){background:#dbeaf5}
.parent-links strong{font-size:1.15rem}.parent-links a span{position:absolute;right:12px;top:12px}.parent-links a:hover strong{text-decoration:underline}
.journal .news-heading h2,.resource-band h2,.neighborhood h2{font-family:Georgia,serif;font-weight:500;letter-spacing:-.05em}
.journal .news-card{border-radius:14px;box-shadow:none}.journal .news-card__media{aspect-ratio:1.6}
.story-meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:.8rem;margin-bottom:12px}
.story-meta a,.topic-links a{background:#e7f2ee;color:#205344;border-radius:99px;padding:4px 10px;text-decoration:none;font-weight:700}
.story-meta time{color:#52616b}.topic-links{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:32px}.topic-links a{padding:8px 15px}
.topic-links a[aria-current],.topic-links a:hover{background:#1c4655;color:white}
.resource-band{background:#dceee8;padding:clamp(35px,5vw,65px) 0}
.resource-band>.container,.neighborhood{display:grid;grid-template-columns:1fr 1fr;gap:clamp(22px,5vw,65px);align-items:center}
.resource-band p:last-child{margin-bottom:0}.resource-band form label{display:block;font-weight:700;margin-bottom:6px}
.resource-band form div{display:flex;gap:6px}.resource-band form input{min-width:0;flex:1;border-radius:12px;border:1px solid #8ea9a2;padding:10px}
.address-list>div{display:grid;grid-template-columns:1fr 1.4fr auto;gap:10px;border-bottom:1px solid #cbdedb;padding:16px 0;align-items:center}
@media(max-width:760px){.welcome__grid,.resource-band>.container,.neighborhood{grid-template-columns:1fr}.welcome__photo{max-width:480px}.parent-links>.container{grid-template-columns:repeat(2,1fr)}.address-list>div{grid-template-columns:1fr 1fr}.address-list a{grid-column:2}.welcome__text h1{font-size:clamp(3rem,11vw,4.4rem)}}
@media(max-width:410px){.parent-links a{padding:13px}.parent-links small{font-size:.72rem}.parent-links strong{max-width:10ch}}

:root {
  --ink: #13223b;
  --ink-soft: #4d5c70;
  --navy: #173f67;
  --blue: #2286b8;
  --sky: #dff3fb;
  --ice: #f3fbff;
  --coral: #ef735d;
  --sun: #f7c852;
  --mint: #80c9b8;
  --white: #fff;
  --line: #d9e8ef;
  --shadow: 0 22px 55px rgba(28, 70, 99, .12);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--coral); }
button, input, textarea, select { font: inherit; }
button, .button { min-height: 44px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; z-index: 100000; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.site-main { overflow: hidden; }
.section { padding: clamp(68px, 8vw, 118px) 0; }
.section--soft { background: var(--ice); }
.section-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--blue); font-size: .84rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker::before { content: ""; width: 26px; height: 3px; border-radius: 99px; background: var(--coral); }
h1, h2, h3, h4 { margin: 0 0 .55em; color: var(--ink); font-family: "Aptos Display", "Segoe UI", system-ui, sans-serif; line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.65rem); }
h2 { font-size: clamp(2.1rem, 4.3vw, 3.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
.lead { color: var(--ink-soft); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.65; }
.eyebrow { color: var(--blue); font-size: .86rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); background: var(--blue); color: var(--white); box-shadow: 0 12px 25px rgba(23,63,103,.2); }
.button--coral { background: var(--coral); color:#30221e; }
.button--light { border-color: var(--line); background: var(--white); color: var(--navy); }
.button--light:hover { border-color: var(--navy); background: var(--white); color: var(--navy); }
.button__arrow { font-size: 1.15em; transition: transform .2s ease; }
.button:hover .button__arrow { transform: translateX(3px); }

.topbar { background: var(--navy); color: rgba(255,255,255,.9); font-size: .86rem; }
.topbar__inner { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__hours { color: #cdeaf6; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(217,232,239,.8); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header__inner { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: auto; height: 72px; }
.brand__text { display: none !important; }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: 1.1rem; }
.brand__text span { margin-top: 5px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: 5px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 12px 13px; border-radius: 12px; color: var(--ink); font-size: .94rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { background: var(--sky); color: var(--navy); }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 10px); left: 0; display: grid; min-width: 245px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: var(--sky); color: var(--navy); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; border-radius: 3px; background: currentColor; transition: .2s ease; }

.hero { position: relative; padding: clamp(62px, 9vw, 126px) 0 105px; background: linear-gradient(125deg, #f5fcff 0%, #e2f5fb 62%, #fdf7e8 100%); }
.hero::after { content: ""; position: absolute; right: -8vw; bottom: -120px; width: 390px; height: 390px; border: 82px solid rgba(34,134,184,.08); border-radius: 50%; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(44px, 7vw, 100px); }
.hero__title span { display: block; color: var(--blue); }
.hero__copy { max-width: 640px; margin: 22px 0 32px; color: var(--ink-soft); font-size: clamp(1.12rem, 1.8vw, 1.35rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__visual { position: relative; min-height: 520px; }
.hero__photo { position: absolute; inset: 20px 0 0 8%; overflow: hidden; border: 10px solid var(--white); border-radius: 50% 50% 46% 54% / 42% 46% 54% 58%; background: var(--sky); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05) rotate(-2deg); }
.hero__badge { position: absolute; z-index: 2; right: -12px; bottom: 26px; max-width: 190px; padding: 18px 20px; border-radius: 22px; background: var(--navy); color: var(--white); box-shadow: var(--shadow); transform: rotate(-3deg); }
.hero__badge strong { display: block; font-size: 1.25rem; }
.hero__badge span { display: block; color: #cdeaf6; font-size: .86rem; line-height: 1.4; }
.hero__snow { position: absolute; display: grid; width: 62px; height: 62px; place-items: center; border-radius: 20px; background: var(--sun); color: var(--navy); font-size: 2rem; font-weight: 900; box-shadow: 0 12px 30px rgba(29,70,99,.16); }
.hero__snow--one { top: 0; left: 1%; transform: rotate(-12deg); }
.hero__snow--two { top: 78px; right: -16px; width: 48px; height: 48px; border-radius: 15px; background: var(--coral); color: var(--white); font-size: 1.4rem; transform: rotate(12deg); }
.quick-links { position: relative; z-index: 4; margin-top: -52px; }
.quick-links__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; min-height: 110px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 13px 34px rgba(29,70,99,.1); transition: transform .2s ease, border-color .2s ease; }
.quick-card:hover { transform: translateY(-5px); border-color: var(--blue); color: var(--ink); }
.quick-card__icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 18px; background: var(--sky); color: var(--navy); font-size: 1.45rem; font-weight: 900; }
.quick-card:nth-child(2) .quick-card__icon { background: #fff1ed; color: var(--coral); }
.quick-card:nth-child(3) .quick-card__icon { background: #fff7dc; color: #8a6500; }
.quick-card:nth-child(4) .quick-card__icon { background: #e8f7f3; color: #236a59; }
.quick-card strong { display: block; font-size: 1rem; }
.quick-card small { color: var(--ink-soft); font-size: .78rem; }

.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(46px, 8vw, 112px); }
.about-art { position: relative; min-height: 490px; }
.about-art__shape { position: absolute; inset: 0 12% 24px 0; border-radius: 34% 66% 54% 46% / 40% 38% 62% 60%; background: var(--navy); }
.about-art__photo { position: absolute; inset: 34px 0 0 12%; overflow: hidden; border: 9px solid var(--white); border-radius: 50px 18px 50px 18px; box-shadow: var(--shadow); }
.about-art__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-art__note { position: absolute; bottom: -8px; left: -8px; width: 180px; padding: 20px; border-radius: 22px; background: var(--sun); color: var(--ink); font-weight: 850; line-height: 1.3; transform: rotate(-3deg); }
.check-list { display: grid; gap: 12px; margin: 28px 0 32px; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; }
.check-list li::before { content: "✓"; display: grid; flex: 0 0 28px; height: 28px; place-items: center; border-radius: 50%; background: #e8f7f3; color: #176b58; font-weight: 900; }

.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.program-card { position: relative; overflow: hidden; min-height: 330px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 34px rgba(29,70,99,.07); }
.program-card::after { content: ""; position: absolute; right: -55px; bottom: -55px; width: 160px; height: 160px; border: 34px solid var(--sky); border-radius: 50%; }
.program-card:nth-child(2)::after { border-color: #ffe8e2; }
.program-card:nth-child(3)::after { border-color: #fff1bf; }
.program-card__number { display: grid; width: 52px; height: 52px; margin-bottom: 60px; place-items: center; border-radius: 16px; background: var(--navy); color: var(--white); font-weight: 900; }
.program-card:nth-child(2) .program-card__number { background: var(--coral); }
.program-card:nth-child(3) .program-card__number { background: #d39c12; }
.program-card p { color: var(--ink-soft); }
.program-card a { position: relative; z-index: 1; font-weight: 800; }

.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 34px rgba(29,70,99,.07); }
.news-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 25px; }
.news-card__date { display: block; margin-bottom: 10px; color: var(--blue); font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.news-card h3 { font-size: 1.35rem; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--ink-soft); }

.stats { background: var(--navy); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 38px 0; }
.stat { padding: 18px; text-align: center; }
.stat strong { display: block; color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.stat span { display: block; margin-top: 9px; color: #cdeaf6; font-weight: 700; }

.locations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.location-card { padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.location-card__pin { display: grid; width: 42px; height: 42px; margin-bottom: 18px; place-items: center; border-radius: 14px; background: #fff1ed; color: var(--coral); font-size: 1.2rem; }
.location-card h3 { font-size: 1.2rem; }
.location-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }

.cta-band { padding: 0 0 clamp(70px, 9vw, 120px); }
.cta-band__inner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: clamp(35px, 6vw, 64px); border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--coral), #f38e69); color: var(--white); }
.cta-band__inner::after { content: "✦"; position: absolute; right: 32%; bottom: -36px; color: rgba(255,255,255,.15); font-size: 9rem; line-height: 1; transform: rotate(14deg); }
.cta-band h2 { color:#39231e; font-size: clamp(2rem, 4vw, 3.35rem); }
.cta-band p { max-width: 700px; margin: 0; color:#39231e; font-size: 1.08rem; }

.page-hero { position:relative; padding:22px 0 clamp(28px,4vw,50px); background:#edf4f7; border-bottom:1px solid #d8e4e9; }
.page-hero h1 { max-width:26ch; margin:0; font-family:Georgia,serif; font-weight:500; font-size:clamp(2.45rem,4.8vw,4.3rem); line-height:1.06; letter-spacing:-.04em; color:#153e49; }
.page-hero .lead { max-width:65ch; margin:14px 0 0; }
.page-hero + .section { padding-block:clamp(30px,4.8vw,70px); }
.breadcrumbs { margin-bottom: 18px; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.breadcrumbs a { color: var(--blue); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 58px; }
.entry-content { min-width:0; overflow-wrap:anywhere; color: #33465a; font-size: 1.05rem; }
.document-hero h1 { font-size:clamp(2rem,4.3vw,3.65rem); overflow-wrap:anywhere; }
.document-detail { padding-block:clamp(30px,5vw,60px); }
.document-detail .entry-content { margin-bottom:22px; }
.document-back { display:inline-block; margin-top:22px; font-weight:700; }
.entry-content > * { max-width: 800px; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.content-layout > .entry-content h2 { font-size:clamp(1.6rem,2.6vw,2.45rem); }
.content-layout > .entry-content > :first-child { margin-top:0; }
.content-layout > .sidebar-card { align-self:start; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { margin: 2em 0; padding: 20px 25px; border-left: 5px solid var(--coral); border-radius: 0 18px 18px 0; background: var(--ice); color: var(--ink); font-size: 1.14rem; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 13px 15px; border: 1px solid var(--line); text-align: left; }
.entry-content th { background: var(--navy); color: var(--white); }
.sidebar-card { position: sticky; top: 126px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ice); }
.sidebar-card h2 { font-size: 1.35rem; }
.sidebar-card ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.sidebar-card a { font-weight: 750; }

.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 44px; height: 44px; padding: 0 12px; place-items: center; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.page-numbers.current { border-color: var(--navy); background: var(--navy); color: var(--white); }

.document-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.document-search { flex: 1 1 300px; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.document-filter { min-height: 50px; padding: 12px 40px 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.document-list { display: grid; gap: 12px; }
.site-search { display:flex; align-items:stretch; gap:8px; max-width:36rem; margin-top:20px; }
.site-search label { flex:1; min-width:0; }
.site-search input { width:100%; height:100%; padding:9px 14px; border:1px solid #7693a1; border-radius:12px; color:var(--ink); }
.empty-state .site-search { margin:20px auto; }
.search-results-list .document-item { display:block; }
.search-results-list h2 { font-size:clamp(1.2rem,2vw,1.6rem); margin:.18em 0; }
.result-type { color:#475d68; font-size:.85rem; }
.document-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.document-item[hidden] { display: none; }
.document-item__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: #fff1ed; color: var(--coral); font-size: .78rem; font-weight: 900; }
.document-item h3 { margin: 0 0 3px; font-size: 1rem; letter-spacing: -.01em; }
.document-item p { margin: 0; color: var(--ink-soft); font-size: .84rem; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; }
.contact-panel { padding: clamp(28px, 5vw, 46px); border-radius: var(--radius); background: var(--navy); color: var(--white); }
.contact-panel h2, .contact-panel h3 { color: var(--white); }
.contact-panel a { color: #d4f3ff; }
.contact-list { display: grid; gap: 22px; margin-top: 30px; }
.contact-list__item { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; overflow-wrap:anywhere; }
.contact-list__icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 14px; background: rgba(255,255,255,.1); }
.contact-list__item p { margin: 0; color: #d7e7f1; }
.contact-form { min-width:0; scroll-margin-top:108px; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width:0; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: .9rem; font-weight: 800; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid #cbdde5; border-radius: 13px; background: var(--white); color: var(--ink); }
.field textarea { min-height: 145px; resize: vertical; }
.form-notice { margin-bottom: 20px; padding: 14px 17px; border-radius: 13px; background: #e8f7f3; color: #185b4c; font-weight: 700; }
.form-notice--error { background: #fff1ed; color: #962e1f; }
.hp-field { position: absolute; left: -9999px; }

/* The illustrated panel and the directory share the same baseline. */
.site-footer {
  scroll-margin-top: 100px;
  background: #faf7ef;
  border-top: 1px solid #e7e3d7;
  color: #203f4c;
}
.footer__main {
  display: grid;
  grid-template: "brand contact directory" auto / minmax(0,1.3fr) minmax(0,.86fr) minmax(0,1fr);
  align-items: start;
  column-gap: clamp(22px,3.8vw,58px);
  padding-block: clamp(30px,4.3vw,62px) clamp(25px,3.5vw,50px);
}
.footer__brand {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 305px;
  height: 100%;
  border-radius: 20px 54px 20px 20px;
  background: radial-gradient(ellipse at 92% 86%,#26585b 0%,transparent 63%),linear-gradient(145deg,#163a52,#102e4b 76%);
  padding: clamp(24px,2.5vw,36px);
}
.footer__logo { display: block; position: relative; width: min(68%,213px); }
.footer__logo img { display: block; width: 100%; height: auto; }
/* Preserve the silhouette of the original subtitle on the deep blue background. */
.footer__logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: #d5eefa;
  mask: url("assets/images/pahuljica-logo.png") center / contain no-repeat;
  clip-path: inset(81% 40% 0% 17%);
}
.footer__brand p {
  margin: 16px 0 0;
  max-width: 36ch;
  color: #e5f0f0;
  font-size: .98rem;
  line-height: 1.5;
}
.footer__landscape {
  margin: auto -7% -2% -9%;
  padding-top: 12px;
  height: auto;
  aspect-ratio: 4.35;
  background: url("assets/images/velebit-pod-zvijezdama.webp") center bottom / contain no-repeat;
  pointer-events: none;
}
.footer__contact { grid-area: contact; }
.footer__directory { grid-area: directory; }
.footer__title {
  margin: 5px 0 21px;
  color: #153e49;
  font: 500 clamp(1.55rem,2.25vw,2.05rem)/1.12 Georgia,serif;
  letter-spacing: -.045em;
}
.site-footer a { color: #234c59; text-decoration: none; }
.site-footer a:hover { color: #075e71; text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid #09677a; outline-offset: 3px; }
.footer__contact address { font-style: normal; overflow-wrap: anywhere; }
.footer__contact p { margin: 0; line-height: 1.55; }
.footer__contact p + p { margin-top: 15px; }
.footer__contact .footer__phone {
  display: inline-block;
  color: #144754;
  font-size: clamp(1.38rem,1.8vw,1.65rem);
  font-weight: 700;
  letter-spacing: -.035em;
}
.footer__mail { display: inline-block; padding-block: 4px; }
.footer__contact .footer__more {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 19px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #dceee7;
  color: #1d4e40;
  font-weight: 700;
}
.footer__directory nav ul {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 2px 18px; margin: 0; padding: 0; list-style: none;
}
.footer__directory nav a { display: inline-block; padding-block: 5px; line-height: 1.4; }
.site-footer .site-search { margin-top: 16px; gap: 0; padding: 3px; border: 1px solid #b8c9c7; border-radius: 12px; background: white; }
.site-footer .site-search input { min-width: 0; border: 0; background: transparent; padding: 7px 9px; }
.site-footer .site-search .button { padding: 9px 12px; border: 0; border-radius: 8px; background: #1e4a53; color: white; font-size: .9rem; }
.footer__bottom {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-block: 19px 23px; padding-right: clamp(0px,calc(690px - 45vw),58px);
  border-top: 1px solid #cbd6ce;
  color: #425c60; font-size: .85rem;
}
.footer__credits { display: grid; gap: 2px; font-size: inherit; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 5px 20px; }
.a11y-contrast .site-footer { background: #fff; color: #000; }
.a11y-contrast .footer__landscape { visibility: hidden; }
@media (min-width: 721px) and (max-width: 990px) {
  .footer__main { grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "contact directory" "brand brand"; row-gap: 23px; }
  .footer__brand { min-height: 175px; padding-right: 50%; }
  .footer__landscape { position: absolute; right: 0; bottom: 9%; width: 47%; margin: 0; }
}
@media (max-width: 720px) {
  .footer__main { grid-template-columns: minmax(0,1fr); grid-template-areas: "contact" "directory" "brand"; gap: 23px; }
  .footer__brand { min-height: 0; padding: 21px 23px 12px; border-radius: 16px 42px 16px 16px; }
  .footer__logo { width: 158px; }
  .footer__brand p { margin-top: 12px; }
  .footer__landscape { width: 100%; margin: 10px 0 0; }
  .footer__title { margin: 0 0 11px; }
  .footer__directory { border-top: 1px solid #d7ded6; padding-top: 20px; }
  .footer__contact p + p { margin-top: 8px; }
  .footer__contact .footer__more { margin-top: 8px; }
  .footer__bottom { flex-direction: column; padding-right: 54px; }
}
.accessibility-trigger { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; width: 54px; height: 54px; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 9px 28px rgba(15,45,74,.3); cursor: pointer; }
.accessibility-panel { position: fixed; z-index: 121; right: 20px; bottom: 84px; display: none; width: min(330px, calc(100vw - 40px)); padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.accessibility-panel.is-open { display: block; }
.accessibility-panel h2 { font-size: 1.2rem; }
.accessibility-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.accessibility-actions button { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--ice); color: var(--ink); font-weight: 750; cursor: pointer; }
html.a11y-large { font-size:118.75%; }
html.a11y-contrast { --ink: #000; --ink-soft: #111; --navy: #000; --blue: #0037aa; --ice: #fff; --sky: #e6edff; --line: #333; }
html.a11y-gray { filter: grayscale(1); }
.a11y-links a { text-decoration: underline !important; }
.accessibility-actions button[aria-pressed="true"] { background:var(--navy); border-color:var(--navy); color:#fff; }
.accessibility-actions button[data-a11y="reset"] { grid-column:1/-1; }
.accessibility-panel { max-height:calc(100dvh - 100px); overflow:auto; }
.accessibility-trigger span[aria-hidden="true"] { font-size:1.03rem; font-weight:800; letter-spacing:-.04em; }

.empty-state { padding: 35px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; }
.alignwide { max-width: 1100px !important; }
.alignfull { max-width: none !important; margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); }

@media (max-width: 1040px) {
  .topbar__hours { display: none; }
  .menu-toggle { display: block; }
  .primary-nav { position:absolute; inset:100% 0 auto; display: none; max-height:calc(100dvh - 137px); overscroll-behavior:contain; overflow:auto; padding: 18px 20px 30px; border-top: 1px solid var(--line); background: var(--white); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { display: grid; align-items: stretch; gap: 3px; }
  .primary-nav a { padding: 13px 16px; font-size: 1rem; }
  .primary-nav .sub-menu { position: static; display: grid; min-width: 0; margin: 0 0 6px 18px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .quick-links__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .about-grid { grid-template-columns: 1fr 1fr; gap: 45px; }
  .hero__visual { min-height: 430px; }
  .program-grid, .news-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card:last-child { grid-column: 1 / -1; }
  .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: minmax(0,1fr); }
  .sidebar-card { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .topbar__contact span:first-child { display: none; }
  .header__inner { min-height: 82px; }
  .brand img { height: 54px; }
  .brand__text { display: none; }
  .primary-nav { inset:100% 0 auto; position:absolute; max-height:calc(100dvh - 124px); }
  .hero { padding-top: 50px; }
  .hero__grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero__visual { min-height: 380px; }
  .hero__photo { left: 0; }
  .hero__badge { right: 0; }
  .quick-links__grid, .program-grid, .news-grid, .archive-grid, .stats__grid, .locations-grid { grid-template-columns: 1fr; }
  .quick-links { margin-top: -42px; }
  .quick-card { min-height: 92px; }
  .program-card:last-child { grid-column: auto; }
  .program-card__number { margin-bottom: 36px; }
  .about-art { min-height: 390px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .news-heading, .cta-band__inner { grid-template-columns: 1fr; display: grid; align-items: start; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .document-item { grid-template-columns: auto 1fr; }
  .document-item .button { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .accessibility-trigger, .accessibility-panel, .button { display: none !important; }
  body { color: #000; background: #fff; }
  .section { padding: 24px 0; }
}

.notice-board { background: #fff9ef; border-block: 1px solid #e5d9c6; padding: clamp(30px,5vw,64px) 0; }
.notice-board__grid { display: grid; grid-template-columns: 1fr 2.8fr; gap: clamp(20px,4vw,68px); align-items: start; }
.notice-board h2 { margin: 0; font-size: clamp(30px,3.2vw,48px); }
.notice-board__links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.notice-board__links a { display: grid; color: #173652; text-decoration: none; border-top: 3px solid #b55836; padding: 14px 0 0; gap: 6px; }
.notice-board__links a:nth-child(2) { border-color: #26757b; }
.notice-board__links a:nth-child(3) { border-color: #ac812f; }
.notice-board__links strong { font-size: 1.1rem; line-height: 1.3; }
.notice-board__links small { color: #465a69; font-size: .92rem; }
.notice-board__links a:hover strong,.notice-board__links a:focus-visible strong { text-decoration: underline; }
.home-album { background:#fffdf8; border:1px solid #ded5c4; border-radius:18px; overflow:hidden; min-width:0; box-shadow:0 9px 24px #4c37100c; }
.home-album figure { margin:0; }
.home-album figure[hidden],.home-album__controls[hidden],.story-body [hidden] { display:none!important; }
.home-album figure>a { display:block; }
.home-album img { display:block; width:100%; aspect-ratio:1.63; object-fit:cover; }
.home-album figcaption { display:grid; gap:5px; padding:19px 24px 14px; }
.home-album time,.board-feature time,.story-mast__date,.story-related time { color:#5d685f; font-size:.85rem; font-weight:650; }
.home-album figcaption a,.board-feature h3 a { color:#163c4a; font:500 clamp(1.35rem,2.1vw,2rem)/1.12 Georgia,serif; text-decoration:none; }
.home-album figcaption a:hover,.board-feature h3 a:hover { text-decoration:underline; text-underline-offset:.14em; }
.home-album__controls { display:flex; align-items:center; gap:12px; padding:0 24px 16px; color:#526057; font-size:.82rem; font-variant-numeric:tabular-nums; }
.home-album__controls button,.album-more { border:1px solid #a7bbb7; background:transparent; color:#174753; cursor:pointer; font:inherit; }
.home-album__controls button { width:44px; height:40px; border-radius:50%; font-size:1.05rem; }
.home-album__controls button:hover,.album-more:hover { background:#e6f2ec; }
.board-feature { padding:0 0 18px; margin-bottom:18px; border-bottom:1px solid #e3d5c1; }
.board-feature h3 { margin:6px 0 0; }
.notice-list .news-card { display:flex; align-items:center; gap:18px; padding:22px 0; border:0; border-top:1px solid #d5e3e2; border-radius:0; box-shadow:none; }
.notice-list .news-card__media { width:108px; flex:0 0 108px; border-radius:8px; }
.notice-list .news-card__body { padding:0; max-width:74ch; }
.notice-list .news-card p { margin:6px 0 0; }
.story-mast { background:#f7f3e8; padding:clamp(20px,3vw,38px) 0 clamp(32px,5vw,64px); border-bottom:1px solid #e6e0cf; }
.story-mast--notice { background:#edf5f1; border-color:#ccdcd6; }
.story-mast .breadcrumbs { margin:0 0 clamp(22px,3vw,42px); color:#496063; }
.story-mast .breadcrumbs a { color:inherit; }
.story-mast__grid { display:grid; gap:clamp(20px,4vw,60px); align-items:center; }
.story-mast--photo .story-mast__grid { grid-template-columns:1fr 1.12fr; }
.story-mast h1 { color:#143d4d; font:500 clamp(2.2rem,4.4vw,4.65rem)/1.04 Georgia,serif; letter-spacing:-.047em; max-width:22ch; margin:0; overflow-wrap:anywhere; text-wrap:balance; }
.story-mast__date { margin:0 0 15px; }
.story-cover { margin:0; }
.story-cover img { display:block; width:100%; max-height:470px; aspect-ratio:1.58; object-fit:cover; border-radius:14px; }
.story-cover figcaption { margin-top:6px; font-size:.87rem; }
.story-reading { display:grid; grid-template-columns:minmax(0,2.5fr) minmax(190px,1fr); gap:clamp(26px,6vw,84px); align-items:start; padding-block:clamp(32px,5vw,64px); }
.story-body { min-width:0; }
.story-body>p { max-width:70ch; line-height:1.77; }
.story-related { padding-top:14px; border-top:3px solid #317a75; }
.story-related h2 { font:500 1.6rem Georgia,serif; margin:0 0 14px; }
.story-related a { display:grid; gap:.25rem; padding:14px 0; border-top:1px solid #dce5e2; color:#193c48; text-decoration:none; }
.story-related a:hover strong { text-decoration:underline; }
.story-body .album-heading { display:flex; align-items:center; gap:12px; margin:1.6em 0 .65em; color:#163d4c; font:500 2rem Georgia,serif; }
.album-heading small { font:600 .83rem system-ui,sans-serif; color:#527068; }
.story-body .gallery,.story-body .wp-block-gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 16px; }
.story-body .gallery .gallery-item,.story-body .wp-block-gallery .wp-block-image { display:block; float:none; width:100%!important; min-width:0; margin:0!important; max-width:none; }
.story-body .gallery br { display:none; }
.story-body .gallery img,.story-body .wp-block-gallery .wp-block-image img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border:0; border-radius:8px; }
.story-body .gallery a,.story-body .wp-block-gallery button { display:block; width:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.album-more { padding:10px 18px; border-radius:24px; }
.photo-viewer-open { overflow:hidden; }
.photo-viewer { width:min(1000px,96vw); max-width:96vw; max-height:94vh; padding:0; margin:auto; border:0; border-radius:12px; color:#fff; background:#132728; }
.photo-viewer::backdrop { background:rgba(5,20,23,.88); }
.photo-viewer__inner { padding:12px 18px; display:grid; gap:10px; }
.photo-viewer__bar,.photo-viewer__foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.photo-viewer__bar span { font-size:.95rem; }
.photo-viewer img { width:100%; height:min(67vh,680px); object-fit:contain; display:block; touch-action:pan-y pinch-zoom; }
.photo-viewer button { min-width:44px; min-height:44px; background:#263e40; color:white; border:1px solid #657e80; border-radius:24px; cursor:pointer; padding:4px 14px; font:inherit; }
.photo-viewer__foot p { margin:0; text-align:center; font-size:.9rem; }
@media(max-width:760px) {
    .story-mast--photo .story-mast__grid,.story-reading { grid-template-columns:1fr; }
    .story-body .gallery,.story-body .wp-block-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
    .notice-list .news-card__media { width:78px; flex-basis:78px; }
    .photo-viewer__inner { padding:10px; }
}
.notice-resources { margin: 18px 0 32px; background: #edf6f5; padding: 22px 26px; border-left: 4px solid #26757b; }
.notice-resources h2 { font-size: 1.25rem; margin: 0 0 8px; }
.notice-resources a { display: block; margin: 6px 0; }
.library-index { margin: 1rem 0 2rem; border-block: 1px solid #cbd8de; padding: 1rem 0; }
.library-index summary { cursor: pointer; font-weight: 700; }
.library-index ul { columns: 2 22rem; padding-left: 1.3rem; }
.library-index li { break-inside: avoid; padding: .25rem .7rem .25rem 0; }

.program-intro { background:#fbf7ee; border-bottom:1px solid #e8dfcd; padding:22px 0 clamp(24px,3.5vw,44px); }
.program-intro .breadcrumbs { margin:0 0 18px; color:#4b6260; }
.program-intro .breadcrumbs a { color:inherit; }
.program-intro__row { display:flex; align-items:flex-end; justify-content:space-between; gap:22px; }
.program-intro__row h1,.program-panel h2 { color:#153e49; font-family:Georgia,serif; font-weight:500; letter-spacing:-.045em; }
.program-intro__row h1 { font-size:clamp(2.8rem,5.1vw,4.65rem); line-height:.99; margin:0 0 12px; }
.program-intro__copy { color:#405a61; max-width:58ch; font-size:clamp(1rem,1.35vw,1.15rem); }
.program-intro__copy p:last-child,.program-description>:last-child { margin-bottom:0; }
.program-actions { display:flex; flex:none; gap:20px; align-items:center; }
.program-actions>a:last-child,.program-description a { color:#195e63; font-weight:650; text-decoration:underline; text-underline-offset:.2em; }
.program-overview { display:grid; grid-template-columns:minmax(0,1.18fr) minmax(0,1fr); gap:clamp(14px,2vw,26px); padding-block:clamp(22px,3vw,44px) clamp(40px,6vw,76px); align-items:start; }
.program-panel { min-width:0; overflow:hidden; border-radius:16px; scroll-margin-top:110px; }
.program-panel__text { min-width:0; padding:clamp(22px,3vw,40px); }
.program-panel h2 { font-size:clamp(1.75rem,2.65vw,2.65rem); line-height:1.08; margin:0 0 16px; }
.program-description { line-height:1.62; color:#304b50; }
.program-description p,.program-description ul { margin:0 0 .85em; }
.program-description ul { padding-inline-start:1.2em; }
.program-description li+li { margin-top:.4em; }
.program-panel--redoviti-programi { grid-column:1/-1; display:grid; grid-template-columns:1.15fr 1fr; align-items:center; background:#e9f2ed; }
.program-hours { display:grid; grid-template-columns:1fr 1fr; border-block:1px solid #b6cec6; margin:1.25rem 0; padding:14px 0; }
.program-hours dt { grid-row:1; font-size:.84rem; color:#3e5d57; }
.program-hours dd { grid-row:2; color:#164d46; font:500 clamp(1.6rem,2.8vw,2.5rem)/1.2 Georgia,serif; letter-spacing:-.035em; margin:4px 0 0; }
.program-hours dt:nth-of-type(2),.program-hours dd:nth-of-type(2) { border-left:1px solid #b6cec6; padding-left:18px; }
.program-photo { position:relative; margin:0; height:100%; min-height:220px; }
.program-photo img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.program-photo figcaption { position:absolute; left:12px; bottom:12px; padding:5px 11px; border-radius:4px; color:#183c37; background:#fffdf5f2; font-size:.8rem; }
.program-panel--program-predskole { background:#fcf5e6; border-top:4px solid #d8a243; }
.program-panel--programi-javnih-potreba { background:#ebf4f9; border-top:4px solid #6b9eb6; }
.program-panel { scroll-margin-top:110px; }
.primary-nav .nav-disclosure {
    display:flex; align-items:center; gap:8px; border:0; border-radius:12px; padding:12px 13px;
    background:transparent; color:var(--ink); font:inherit; font-size:.94rem; font-weight:750; cursor:pointer;
}
.nav-disclosure::after { content:""; width:7px; height:7px; border:solid currentColor; border-width:0 1.6px 1.6px 0; transform:translateY(-2px) rotate(45deg); }
.nav-disclosure[aria-expanded="true"]::after { transform:translateY(2px) rotate(225deg); }
.primary-nav .nav-disclosure:is(:hover,[aria-expanded="true"]), .primary-nav .current-menu-item > .nav-disclosure,
.primary-nav .current-menu-ancestor > .nav-disclosure { background:var(--sky); color:var(--navy); }
.primary-nav .nav-dropdown { top:100%; gap:2px; opacity:1; visibility:visible; transform:none; }
.primary-nav .nav-dropdown[hidden] { display:none; }
.nav-dropdown > li:first-child { margin-bottom:3px; padding-bottom:3px; border-bottom:1px solid var(--line); }
.team-intro { padding:22px 0 clamp(34px,4vw,59px); background:#eaf3ef; border-bottom:1px solid #cedfd6; }
.team-intro .breadcrumbs { margin:0 0 22px; color:#415d54; }
.team-intro .breadcrumbs a { color:inherit; }
.team-intro__row { display:grid; grid-template-columns:1.6fr 1fr; align-items:center; gap:clamp(24px,7vw,96px); }
.team-intro h1,.team-profile h2 { font-family:Georgia,serif; letter-spacing:-.045em; font-weight:500; color:#163f40; }
.team-intro h1 { font-size:clamp(3rem,5.6vw,5.1rem); line-height:1; margin:0 0 15px; }
.team-intro__row > div > p { margin:0; max-width:49ch; color:#38544e; font-size:clamp(1.04rem,1.5vw,1.22rem); }
.team-contact { background:#fff; padding:clamp(18px,2.2vw,28px); border:1px solid #c6d9ce; border-radius:16px; }
.team-contact h2 { font-size:1.15rem; letter-spacing:-.02em; margin:0 0 6px; }
.team-contact p { font-size:.93rem; margin:0 0 12px; }
.team-contact a { display:inline-block; font-weight:750; }
.team-contact a:first-of-type { margin-right:18px; }
.team-content { padding-block:clamp(32px,4vw,60px); }
.team-directory { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,24px); }
.team-profile { display:flex; flex-direction:column; padding:clamp(19px,2.2vw,30px); border:1px solid #d7e2dc; border-top:4px solid #60927f; border-radius:4px 4px 15px 15px; background:#fff; }
.team-profile:nth-of-type(3n + 2) { border-top-color:#c98c43; }
.team-profile:nth-of-type(3n) { border-top-color:#6091aa; }
.team-profile h2 { font-size:clamp(1.55rem,2.1vw,2rem); line-height:1.12; margin:0 0 11px; }
.team-profile p { margin:0 0 17px; color:var(--ink-soft); }
.team-profile a { align-self:flex-start; margin-top:auto; padding-block:4px; font-weight:750; }
.team-profile a::after { content:" →"; }
@media (min-width:1041px) and (max-width:1250px) { .primary-nav .nav-disclosure { padding-inline:7px; gap:5px; } }
@media (max-width:1040px) {
    .primary-nav .nav-disclosure { width:100%; justify-content:space-between; padding:13px 16px; font-size:1rem; }
    .team-directory { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
    .team-intro__row,.team-directory { grid-template-columns:1fr; }
    .team-contact { max-width:34rem; }
    .team-profile { padding:18px 20px; }
    .program-panel { scroll-margin-top:88px; }
}
@media (min-width:1041px) and (max-width:1250px) { .primary-nav a { padding-inline:8px; } .header__inner { gap:16px; } }
@media (max-width:760px) {
    .program-intro__row { display:block; }
    .program-actions { margin-top:16px; }
    .program-actions .button { min-height:42px; padding:9px 17px; }
    .program-overview,.program-panel--redoviti-programi { grid-template-columns:1fr; }
    .program-photo { min-height:0; height:auto; aspect-ratio:2.4; }
}
.entry-content table { border-collapse: collapse; width: 100%; margin: 1rem 0 2rem; }
.entry-content th,.entry-content td { padding: .65rem .85rem; border-bottom: 1px solid #d8e1e2; text-align: left; }
.entry-content thead { background: #eaf3f4; }
.contact-directory { margin-top: 3rem; }
#imenik { scroll-margin-top:110px; }
.contact-intro { background:#e9f2f7; }
.contact-intro .program-intro__copy { margin-bottom:0; }
.contact-intro + .section { padding-block:clamp(32px,5vw,72px); }
.contact-directory dl { display: grid; grid-template-columns: minmax(10rem,1fr) 3fr; margin: 0 0 2.5rem; }
.contact-directory dt,.contact-directory dd { margin: 0; padding: .85rem 0; border-bottom: 1px solid #d8e1e2; }
.contact-directory dt { font-weight: 700; }
@media (max-width: 580px) {
    .contact-directory dl { display: block; }
    .contact-directory dt { padding-bottom: 0; border-bottom: 0; }
    .contact-directory dd { padding-top: .25rem; }
}
@media (max-width: 800px) { .notice-board__grid { grid-template-columns: 1fr; } }
@media (max-width: 580px) {
    .notice-board__links { grid-template-columns: 1fr; gap: 12px; }
    .notice-board__links a { grid-template-columns: 1fr auto; gap: 1px 12px; padding-top: 10px; }
    .notice-board__links small { grid-column: 1; }
    .notice-board__links span { grid-column: 2; grid-row: 1 / 3; align-self: center; }
}
.story-cover > a { display:block; border-radius:14px; cursor:zoom-in; }
@media (max-width:760px) {
    .resource-band > .container { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:400px) {
    .resource-band form div { flex-direction:column; }
    .resource-band form input { flex:none; }
}

/* Watercolour paper sits behind the existing content and photographs. */
@media screen {
    :root { --pah-paper:url("assets/images/pahuljice-akvarel.webp"); }
    .welcome { background:linear-gradient(165deg,#fff8e9 0%,#fff9ed 63%,#f5f6eb 100%); }
    .welcome::before {
        content:""; position:absolute; inset:0 0 auto; height:min(100%,33.333vw); z-index:-1; pointer-events:none;
        background:var(--pah-paper) center top / 100% auto no-repeat;
        opacity:.9; mask-image:linear-gradient(to bottom,#000 0%,#000 61%,transparent 100%);
    }
    .parent-links { background:linear-gradient(#f5f6eb,#fcfaf2); }
    .page-hero,.program-intro,.team-intro,.story-mast { position:relative; isolation:isolate; }
    :is(.page-hero,.program-intro,.team-intro,.story-mast)::before {
        content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
        background:var(--pah-paper) right top / clamp(530px,66vw,1040px) auto no-repeat;
        opacity:.75; mask-image:linear-gradient(to right,transparent 30%,#000 90%);
    }
    .a11y-contrast :is(.welcome,.page-hero,.program-intro,.team-intro,.story-mast)::before { display:none; }
}
@media screen and (max-width:760px) {
    .welcome::before {
        height:clamp(175px,36vw,270px);
        background-position:right top; background-size:max(100%,540px) auto;
        mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.84) 42%,transparent 100%);
    }
    :is(.page-hero,.program-intro,.team-intro,.story-mast)::before {
        background-size:540px auto; opacity:.55;
        mask-image:linear-gradient(220deg,#000 0%,transparent 58%);
    }
}

/* Small details from the watercolour at the top of the home page. */
@media screen {
    .home-sketch::after {
        content: "";
        display: block;
        width: var(--sketch-width);
        aspect-ratio: 1.55;
        background-image: var(--pah-paper);
        background-repeat: no-repeat;
        mask-image: radial-gradient(ellipse 50% 50%, #000 52%, transparent 100%);
        opacity: .85;
        pointer-events: none;
    }
    .home-sketch--notice {
        --sketch-width: clamp(102px, 9vw, 140px);
        position: relative;
    }
    .home-sketch--notice::after {
        margin-top: 8px;
        background-position: left top;
        background-size: 525% auto;
    }
    .home-sketch--journal {
        --sketch-width: clamp(72px, 7.5vw, 114px);
    }
    .home-sketch--journal::after {
        aspect-ratio: 4.2;
        margin-left: 3px;
        background-position: 16.5% 99.5%;
        background-size: 400% auto;
    }
    .home-sketch--locations {
        --sketch-width: clamp(84px, 10vw, 146px);
        position: relative;
        padding-inline-end: var(--sketch-width);
    }
    .home-sketch--locations::after {
        position: absolute;
        inset: 50% 0 auto auto;
        transform: translateY(-50%);
        background-position: left bottom;
        background-size: 550% auto;
    }
    .a11y-contrast .home-sketch::after { display: none; }
    .a11y-contrast .home-sketch { padding-inline-end: 0; }
}
@media screen and (max-width: 800px) {
    .home-sketch--notice {
        --sketch-width: clamp(68px, 16vw, 108px);
        padding-inline-end: var(--sketch-width);
    }
    .home-sketch--notice::after {
        position: absolute;
        inset: 50% 0 auto auto;
        margin: 0;
        transform: translateY(-50%);
    }
}
@media (forced-colors: active) {
    .home-sketch::after { display: none; }
    .home-sketch { padding-inline-end: 0; }
}
