/* ==========================================================
   OŠ "Kiseljak 2" – stil javnog dijela stranice
   Boje preuzete iz znaka škole: plava, zelena i zlatna
   ========================================================== */
:root {
    --blue: #1d5fa7;
    --blue-dark: #123f73;
    --green: #6fae3a;
    --green-dark: #4b8424;
    --gold: #f2b316;
    --gold-soft: #fff4d6;
    --red: #d6332b;
    --ink: #1c2633;
    --muted: #5d6b7c;
    --line: #e3e8ef;
    --bg: #ffffff;
    --tint: #f4f8f3;
    --radius: 14px;
    --shadow: 0 10px 30px -12px rgba(18, 63, 115, .25);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--blue-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }

/* ---------- Zaglavlje ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: auto; height: 58px; object-fit: contain; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--blue-dark); line-height: 1.1; }
.brand small { color: var(--muted); font-size: .85rem; }

.main-nav { display: flex; gap: 2px; }
.main-nav a {
    text-decoration: none; color: var(--ink); font-weight: 600;
    padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap;
}
.main-nav a:hover { background: var(--tint); color: var(--green-dark); }
.main-nav a.active { background: var(--blue); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); margin: 5px 0; transition: .2s; }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; background: #fff; padding: 12px 20px 20px;
        border-bottom: 3px solid var(--gold); box-shadow: var(--shadow);
    }
    .nav-open .main-nav { display: flex; }
    .main-nav a { padding: 12px 14px; }
}

/* ---------- Dugmad ---------- */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: 999px;
    font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--blue-dark); box-shadow: 0 6px 18px -6px rgba(242, 179, 22, .8); }
.btn-light { background: rgba(255, 255, 255, .15); color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--green-dark); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Početna: hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(18, 63, 115, .92) 0%, rgba(18, 63, 115, .75) 45%, rgba(75, 132, 36, .35) 100%);
}
.hero-content { position: relative; padding-top: 70px; padding-bottom: 70px; max-width: 1160px; }
.hero-content > * { max-width: 640px; }
.hero-logo { width: auto; height: 140px; margin-bottom: 20px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.25rem; opacity: .95; color: #fff; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .82rem; color: var(--green-dark); margin-bottom: .4em; }
.hero .eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Sekcije ---------- */
.section { padding: 80px 0; }
.section-tinted { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.lead { font-size: 1.2rem; color: var(--muted); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -150px; position: relative; z-index: 2; }
.value { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 5px solid; }
.value-blue { border-color: var(--blue); }
.value-green { border-color: var(--green); }
.value-gold { border-color: var(--gold); }
.value-icon { font-size: 2rem; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.stat strong { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--blue); line-height: 1; margin-bottom: 6px; }
.stat span { color: var(--muted); }
.stat-wide { grid-column: span 2; background: var(--blue); }
.stat-wide a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }

/* ---------- Kartice novosti ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card-media { aspect-ratio: 16 / 10; background: var(--tint); display: block; }
.news-card-media > img { width: 100%; height: 100%; object-fit: cover; }
.news-card-placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue) 0 50%, var(--green) 50% 100%);
}
.news-card-placeholder img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; opacity: .95; }
.news-card-body { padding: 22px; }
.news-card time { font-size: .85rem; font-weight: 700; color: var(--green-dark); }
.news-card h3 { margin: 6px 0 10px; }
.news-card h3 a { color: var(--blue-dark); text-decoration: none; }
.news-card h3 a:hover { color: var(--blue); }
.news-card p { color: var(--muted); margin: 0; }

/* ---------- Podstranice ---------- */
.page-hero {
    background:
        radial-gradient(circle at 92% 20%, rgba(242, 179, 22, .35) 0 90px, transparent 91px),
        linear-gradient(120deg, var(--blue-dark), var(--blue) 60%, var(--green-dark));
    color: #fff; padding: 70px 0 64px;
}
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .lead { color: rgba(255, 255, 255, .88); margin: 0; }

.prose p { color: #334255; }
.framed { margin: 0; background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.framed img { width: 100%; height: auto; border-radius: 8px; }
.framed figcaption { text-align: center; color: var(--muted); font-size: .9rem; padding-top: 10px; }

.emblem { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.emblem > img { border-radius: 50%; box-shadow: var(--shadow); width: 220px; height: 220px; }
.symbols { list-style: none; padding: 0; margin: 0; }
.symbols li { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; transform: translateY(1px); }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }
.dot-gold { background: var(--gold); }
.dot-mix { background: linear-gradient(90deg, var(--blue) 50%, var(--green) 50%); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel { border-radius: var(--radius); padding: 34px; background: var(--gold-soft); border-left: 6px solid var(--gold); }
.panel:last-child { background: #eef4fb; border-color: var(--blue); }
.panel p { margin: 0; }

.contact-box { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-list li { padding: 16px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { font-weight: 700; color: var(--green-dark); }

/* ---------- Osoblje ---------- */
.staff-group + .staff-group { margin-top: 60px; }
.group-title { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--line); margin-bottom: 28px; }
.tag { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.tag-nastavnici { background: var(--green); }
.tag-strucni { background: var(--gold); }
.tag-tehnicko { background: #7b8794; }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.staff-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 22px; text-align: center; transition: box-shadow .2s, transform .2s;
}
.staff-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.staff-photo { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 4px solid var(--gold-soft); }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; }
.initials {
    width: 100%; height: 100%; display: grid; place-items: center;
    font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff; background: var(--blue);
}
.initials-nastavnici { background: var(--green); }
.initials-tehnicko { background: #7b8794; }
.initials-strucni { background: var(--gold); color: var(--blue-dark); }
.staff-card h3 { margin-bottom: 4px; }
.staff-card .role { font-weight: 600; color: var(--green-dark); margin: 0; }
.staff-card .subject { color: var(--muted); font-size: .95rem; margin: 4px 0 0; }
.staff-card .bio { font-size: .95rem; color: #435163; margin: 12px 0 0; }
.staff-card .mail { display: inline-block; margin-top: 12px; font-size: .9rem; word-break: break-all; }

/* ---------- Članak ---------- */
.article { padding: 56px 0 70px; }
.article time { display: block; color: var(--green-dark); font-weight: 700; margin: 18px 0 6px; }
.link-back { text-decoration: none; font-weight: 600; }
.article-image { width: 100%; border-radius: var(--radius); margin: 18px 0 30px; box-shadow: var(--shadow); }
.article-body { font-size: 1.15rem; }
.notice { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 8px; }

/* ---------- Paginacija ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .disabled { color: #a9b3bf; }

/* ---------- Podnožje ---------- */
.site-footer { background: var(--blue-dark); color: rgba(255, 255, 255, .85); padding-top: 60px; border-top: 6px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: auto; height: 66px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.site-footer .muted { color: rgba(255, 255, 255, .65); }
.site-footer h4 { color: var(--gold); margin: 0 0 12px; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.footer-bottom { margin-top: 40px; padding: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; text-align: center; color: rgba(255, 255, 255, .6); }

/* ---------- Obavijest: danas neradni dan ---------- */
.off-banner { background: #fdecea; border-bottom: 1px solid #f3c4bf; color: #8d1f1b; padding: 10px 0; font-size: .98rem; }
.off-banner .container { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.off-banner a { margin-left: auto; font-weight: 700; color: #8d1f1b; }

/* ---------- Kalendar rada ---------- */
.calendar-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.calendar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.calendar-head h2 { margin: 0; font-size: 1.6rem; text-align: center; flex: 1; }
.cal-nav {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
    background: var(--tint); color: var(--blue-dark); text-decoration: none; font-size: 1.6rem; line-height: 1;
}
.cal-nav:hover { background: var(--blue); color: #fff; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-weekday { text-align: center; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 0; }
.cal-weekday.is-weekend { color: #a0a9b5; }
.cal-day {
    position: relative; min-height: 84px; padding: 8px; border-radius: 10px;
    background: #eef6e8; border: 2px solid transparent; color: var(--ink); text-decoration: none;
    display: flex; flex-direction: column; gap: 4px; transition: transform .12s, border-color .12s; overflow: hidden;
}
.cal-day:hover { transform: translateY(-2px); border-color: var(--green); }
.cal-day .num { font-weight: 700; font-size: 1.05rem; }
.cal-day.is-weekend { background: #f1f3f6; color: #8a95a3; }
.cal-day.is-off { background: #fdecea; color: #a12620; }
.cal-day.is-off:hover { border-color: #d6332b; }
.cal-day.is-outside { opacity: .38; }
.cal-day.is-today .num { background: var(--gold); color: var(--blue-dark); border-radius: 999px; padding: 0 8px; align-self: flex-start; }
.cal-day.is-selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 95, 167, .15); }
.cal-reason { font-size: .74rem; line-height: 1.25; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.calendar-legend .link-arrow { margin-left: auto; }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.lg-work { background: #eef6e8; border: 1px solid #cfe5bf; }
.lg-off { background: #fdecea; border: 1px solid #f3c4bf; }
.lg-weekend { background: #f1f3f6; border: 1px solid #dde2e8; }
.lg-today { background: var(--gold); }

.calendar-side { display: grid; gap: 20px; }
.day-info { border-radius: var(--radius); padding: 22px; background: #eef6e8; border-left: 6px solid var(--green); scroll-margin-top: 100px; }
.day-info.is-off { background: #fdecea; border-color: #d6332b; }
.day-info.is-weekend { background: #f1f3f6; border-color: #a0a9b5; }
.day-info h3 { margin: 4px 0 8px; font-size: 1.5rem; }
.day-info.is-off h3 { color: #a12620; }
.day-info p { margin: 0 0 6px; }
.day-date { font-weight: 700; color: var(--muted); }
.day-reason { font-size: 1.1rem; }
.day-period { color: var(--muted); font-size: .95rem; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-box h3 { font-size: 1.15rem; }
.off-list { list-style: none; padding: 0; margin: 0; }
.off-list li { padding: 10px 0; border-top: 1px dashed var(--line); display: grid; gap: 2px; }
.off-list a { font-weight: 700; color: #a12620; text-decoration: none; }
.off-list a:hover { text-decoration: underline; }
.off-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Dokumenti ---------- */
.narrow-wide { max-width: 940px; }
.doc-group + .doc-group { margin-top: 48px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-item {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: box-shadow .2s;
}
.doc-item:hover { box-shadow: var(--shadow); }
.doc-icon {
    width: 56px; height: 64px; border-radius: 8px; display: grid; place-items: center;
    font-weight: 700; font-size: .78rem; color: #fff; background: #7b8794; letter-spacing: .03em;
    clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.doc-pdf { background: #d6332b; }
.doc-word { background: var(--blue); }
.doc-excel { background: var(--green-dark); }
.doc-ppt { background: #e07a1f; }
.doc-image { background: #8e5bc4; }
.doc-zip { background: #5d6b7c; }
.doc-title { font-weight: 700; font-size: 1.1rem; color: var(--blue-dark); text-decoration: none; }
.doc-title:hover { color: var(--blue); text-decoration: underline; }
.doc-text p { margin: 4px 0 0; color: #435163; font-size: .97rem; }
.doc-meta { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.btn-doc { background: var(--tint); color: var(--green-dark); border: 1px solid #cfe5bf; padding: 9px 18px; }
.btn-doc:hover { background: var(--green); color: #fff; }

/* ---------- Učenici škole (generacije) ---------- */
.generation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.generation { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.generation:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.generation-photo { display: block; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; cursor: zoom-in; }
.generation-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.generation:hover .generation-photo img { transform: scale(1.04); }
.generation figcaption { padding: 16px 18px; text-align: center; border-top: 4px solid var(--gold); }
.generation figcaption strong { font-size: 1.12rem; color: var(--blue-dark); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 35, .88); }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; margin: 0 auto; }
.lightbox-caption { color: #fff; text-align: center; font-weight: 700; font-size: 1.15rem; margin: 14px 0 0; }
.lightbox-close {
    position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%;
    border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}

/* ---------- Responzivnost ---------- */
/* ---------- Radni nenastavni dani (narandžasto) ---------- */
.cal-day.is-nonteaching { background: #fff1dc; color: #9a5300; }
.cal-day.is-nonteaching:hover { border-color: #e08a1e; }
.lg-nonteaching { background: #fff1dc; border: 1px solid #f3cf9a; }
.day-info.is-nonteaching { background: #fff1dc; border-color: #e08a1e; }
.day-info.is-nonteaching h3 { color: #9a5300; }
.off-list a.is-nonteaching { color: #9a5300; }
.off-list em { font-style: normal; font-weight: 600; }
.off-banner.is-nonteaching { background: #fff1dc; border-color: #f3cf9a; color: #7a4300; }
.off-banner.is-nonteaching a { color: #7a4300; }

/* ---------- Galerija (O nama) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #e9eef4; cursor: zoom-in; box-shadow: 0 6px 18px -10px rgba(18, 63, 115, .35); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lightbox-nav {
    position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-nav[hidden] { display: none; }
.contact-values { display: flex; flex-direction: column; gap: 2px; }

@media (max-width: 960px) {
    .card-grid { grid-template-columns: 1fr 1fr; }
    .values { grid-template-columns: 1fr; margin-top: -90px; }
    .split, .contact-box, .footer-grid { grid-template-columns: 1fr; }
    .emblem { grid-template-columns: 1fr; justify-items: center; text-align: left; }
    .calendar-layout { grid-template-columns: 1fr; }
    .generation-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .card-grid, .two-col { grid-template-columns: 1fr; }
    .hero { min-height: 560px; }
    .section { padding: 56px 0; }
    .contact-list li { grid-template-columns: 1fr; gap: 2px; }
    .emblem > img { width: 160px; height: 160px; }
    .generation-grid { grid-template-columns: 1fr; }
    .calendar-card { padding: 12px; }
    .calendar-grid { gap: 3px; }
    .cal-day { min-height: 52px; padding: 5px; border-radius: 7px; }
    .cal-day .num { font-size: .95rem; }
    .cal-reason { display: none; }
    .cal-day.is-nonteaching::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #e08a1e; margin-top: auto; }
    .cal-day.is-off::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #d6332b; margin-top: auto; }
    .doc-item { grid-template-columns: 44px 1fr; }
    .doc-icon { width: 44px; height: 52px; font-size: .7rem; }
    .btn-doc { grid-column: 1 / -1; text-align: center; }
    .off-banner a { margin-left: 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
}
