/*
Theme Name: Gościejewo – Szkoła Podstawowa
Description: Motyw Szkoły Podstawowej im. Noblistów Polskich w Gościejewie. Menu boczne, aktualności, wydarzenia i skróty na istniejących treściach szkoły.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gosciejewo
*/

@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "DM Sans";
	src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
	--sidebar-w: clamp(204px, 13.5vw, 256px);
	--green: #3d5033;
	--deep: #32432c;
	--ink: #242a21;
	--quiet: #535c4c;
	--paper: #fbfaf6;
	--cream: #f4f2e9;
	--sage: #e7e9d8;
	--line: #d5d8c6;
	--gold: #c2b16f;
}
html.gosc-large { font-size: 118.75%; }
body.gosc-site { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 "DM Sans", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
.gosc-site *, .gosc-site *::before, .gosc-site *::after { box-sizing: border-box; }
.gosc-site :where(h1,h2,h3,p,ul,ol,figure) { margin-top: 0; }
.gosc-site :where(a) { color: var(--green); text-underline-offset: .2em; }
.gosc-site :where(button,input,textarea,select) { color: inherit; font: inherit; }
.gosc-site :where(button,summary) { cursor: pointer; }
.gosc-site :where(button) { background: none; border: 0; padding: 0; }
.gosc-site :where(img) { max-width: 100%; height: auto; }
.gosc-site :where(h1,h2,h3) { overflow-wrap: anywhere; }
.gosc-site [hidden] { display: none !important; }
.gosc-site :focus-visible { outline: 3px solid #a86919; outline-offset: 3px; }
.gosc-site .icon { height: 1.32em; width: 1.32em; flex: none; display: inline-block; vertical-align: middle; }
.gosc-site .screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 100001; top: 10px; left: 10px; padding: .75rem 1rem; color: #182313; background: white; }
.gosc-site summary { list-style: none; }
.gosc-site summary::-webkit-details-marker { display: none; }
.site-frame { position: relative; margin-inline-start: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
#main-content { flex: 1; min-width: 0; }
#main-content:focus { outline: 0; }
.mobile-head, .mobile-close, .nav-veil { display: none; }

/* Menu i znak szkoły */
.school-sidebar { --top: 0px; position: fixed; inset: var(--top) auto 0 0; width: var(--sidebar-w); z-index: 20; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #79866b #34452e; color: #fffef0; background: linear-gradient(153deg,#435438 0%,#35462f 60%,#30402b 100%); }
.admin-bar .school-sidebar { --top: var(--wp-admin--admin-bar--height, 32px); }
.sidebar-inner { min-height: 100%; display: flex; flex-direction: column; }
.school-brand { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.55rem,2.25vw,2.7rem) clamp(1.35rem,1.9vw,2.3rem) 1.45rem; color: inherit; text-decoration: none; }
.book-mark { width: 74px; height: auto; }
.school-brand .book-mark, .school-brand .brand-logo { align-self: center; width: 69px; max-height: 57px; object-fit: contain; margin-bottom: .86rem; color: #f1efd5; }
.school-brand .brand-logo { width: auto; max-width: 100%; }
.brand-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem,1.76vw,2rem); font-weight: 400; line-height: 1.045; letter-spacing: -.035em; }
.brand-patron { margin-top: .62rem; font-size: .68rem; letter-spacing: .03em; color: #dedfc9; }
.school-brand::after { content: ""; display: block; width: 35px; height: 2px; background: #c7c99b; margin-top: 1.05rem; }
.main-nav { padding: 0 .62rem; }
.site-menu, .site-menu ul, .quick-menu, .quick-menu ul { padding: 0; margin: 0; list-style: none; }
.site-menu > li + li { margin-top: .11rem; }
.site-menu :is(a,summary) { display: flex; align-items: center; gap: .75rem; min-height: 2.62rem; padding: .47rem .84rem; color: inherit; text-decoration: none; font-size: .89rem; line-height: 1.25; border-radius: 6px; }
.site-menu :is(a,summary) span { min-width: 0; overflow-wrap: anywhere; }
.site-menu :is(a,summary) > .icon:first-child { width: 1.23rem; height: 1.23rem; color: #e5e9cf; }
.site-menu summary > .icon:last-child, .quick-menu summary > .icon:last-child { width: .7rem; height: .7rem; margin-left: auto; opacity: .8; }
.site-menu details[open] > summary > .icon:last-child, .quick-menu details[open] > summary > .icon:last-child { transform: rotate(180deg); }
.site-menu :is(a,summary):hover, .site-menu details[open] > summary { background-color: #ffffff13; }
.site-menu [aria-current="page"], .site-menu .current-menu-item > summary { background-color: #e2e6b92e; font-weight: 570; }
.school-sidebar :focus-visible { outline-color: #f0d777; outline-offset: 0; }
.site-menu .sub-menu, .site-menu details > a { margin: .1rem .45rem .4rem 1.45rem; border-left: 1px solid #adba9280; }
.site-menu .sub-menu :is(a,summary), .site-menu details > a { min-height: 2rem; font-size: .81rem; padding: .37rem .7rem; color: #f5f6e9; }
.sidebar-foot { flex: 1; display: flex; align-items: flex-start; padding: 1.1rem 1.35rem clamp(3.4rem,10.5vh,8rem); background: url("assets/pola.svg") center bottom / 100% auto no-repeat; min-height: 9.5rem; }
.bip-link { display: inline-flex; align-items: center; gap: .52rem; background: #35462f; border-top: 1px solid #92a08070; color: #f3f2dc; padding: .83rem .1rem .45rem; text-decoration: none; }
.bip-link strong { font-family: Georgia,serif; font-size: 1.15rem; line-height: 1; }
.bip-link span { font-size: .65rem; line-height: 1.2; }
.bip-link .icon { width: .95rem; margin-left: .28rem; }
.bip-link:hover span { text-decoration: underline; }

/* Narzędzia i wyszukiwarka */
.site-tools { position: absolute; z-index: 8; top: clamp(.95rem,1.4vw,1.6rem); right: clamp(.9rem,1.6vw,1.9rem); display: flex; align-items: center; background: #fffef8f7; border: 1px solid #c9c8b5; border-radius: .65rem; padding: .12rem .22rem; color: #252c21; box-shadow: 0 2px 9px #3443280e; }
.site-tools > button, .search-pop > summary { height: 2.25rem; width: 2.55rem; display: grid; place-items: center; border-radius: .4rem; color: inherit; }
.site-tools :is(button,summary):hover, .site-tools [aria-pressed="true"] { background: #e5e8d5; color: #22321c; }
.site-tools .js-control { display: none; }
.gosc-js .site-tools .js-control { display: grid; }
.text-control > span { font-weight: 600; font-size: .76rem; letter-spacing: -.09em; }
.text-control > span > span { font-size: 1.07rem; }
.site-tools .icon { width: 1.22rem; height: 1.22rem; }
.search-panel { position: absolute; top: calc(100% + .55rem); right: 0; width: min(21rem,calc(100vw - 2rem)); padding: .7rem; background: var(--paper); box-shadow: 0 .45rem 1.5rem #26311e25; border: 1px solid var(--line); border-radius: .6rem; }
.school-search { display: flex; align-items: stretch; width: 100%; max-width: 31rem; background: var(--paper); border: 1px solid #7c856e; border-radius: .4rem; color: var(--ink); }
.school-search label { flex: 1; min-width: 0; }
.school-search input { color: var(--ink); background: transparent; width: 100%; padding: .64rem .8rem; border: 0; font-size: 1rem; }
.school-search button { display: grid; place-items: center; padding: .6rem .85rem; background: var(--green); color: #fff; border-radius: 0 .3rem .3rem 0; }

/* Powitanie */
.welcome { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(500px,35.6vw,690px); background: #f4e6d1; overflow: hidden; }
.welcome .scene-image, .school-life .scene-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.meadow-photo { position: absolute; z-index: -2; inset: 0 0 0 35%; }
.meadow-photo .scene-image { object-position: 56% center; }
.meadow-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg,transparent 8%,#fff8eb65 33%,#fdf8ed32 65%,transparent 90%); }
.school-photo-frame { position: absolute; z-index: -1; inset: 0 auto 0 0; width: 52.6%; background: #f9f6eb; clip-path: polygon(0 0,100% 0,73% 100%,0 100%); }
.school-photo { position: absolute; inset: 0 4px 0 0; clip-path: polygon(0 0,100% 0,73% 100%,0 100%); }
.school-photo .scene-image { object-position: 68% 53%; }
.school-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#1a221c52,transparent 25%); }
.photo-place, .school-life figcaption { position: absolute; display: flex; align-items: center; gap: .42rem; font-size: .73rem; line-height: 1.4; font-weight: 500; color: white; text-shadow: 0 1px 4px #171d14; }
.photo-place { left: 1.65rem; bottom: 1.45rem; padding: .38rem .68rem; border: 1px solid #ffffed80; border-radius: 2rem; color: #fff; background: #273325a3; }
.photo-place .icon, .school-life figcaption .icon { width: 1rem; height: 1rem; }
.welcome-copy { width: 47.35%; margin-left: 52.65%; padding: 5.9rem clamp(1.25rem,3.25vw,4rem) 5.4rem 0; }
.welcome-kicker { margin: 0 0 1.45rem; color: #373e31; font-size: clamp(.6rem,.67vw,.77rem); line-height: 1.75; letter-spacing: .19em; font-weight: 700; text-transform: uppercase; word-spacing: .17em; }
.welcome h1 { color: #20261e; font-size: clamp(2.36rem,3.04vw,4.25rem); font-weight: 390; line-height: 1.015; letter-spacing: -.052em; margin: 0; white-space: pre-line; }
.welcome-rule { display: block; width: 3.6rem; height: 3px; border-radius: 1px; margin: 1.35rem 0 1.04rem; background: #546540; }
.welcome-intro { max-width: 26rem; color: #30372c; font-size: clamp(.97rem,1.12vw,1.3rem); line-height: 1.48; margin: 0 0 1.65rem; white-space: pre-line; text-wrap: pretty; }
.primary-button, .calendar-button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; font-weight: 550; line-height: 1.3; text-decoration: none; }
.primary-button { padding: .8rem 1.24rem; border-radius: 99px; background: var(--green); color: #fffef5; font-size: .9rem; }
.primary-button:hover { background: #2c3e24; }
.primary-button .icon, .calendar-button .icon, .text-link .icon { width: 1.05rem; height: 1.05rem; }

/* Pasek wydarzeń */
.events-band { display: flex; align-items: center; gap: clamp(1rem,2vw,2.7rem); min-height: 8rem; padding: 1.35rem clamp(1.15rem,1.95vw,2.65rem); background: url("assets/galazka.svg") right -.6rem top -.15rem / 4.7rem auto no-repeat, var(--cream); border-bottom: 1px solid var(--line); }
.events-heading { display: flex; align-items: flex-start; gap: .9rem; flex: 0 0 auto; padding-right: clamp(1rem,1.65vw,2rem); border-right: 1px solid #a4ac8d; }
.events-heading > .icon { width: 2rem; height: 2rem; color: #526440; margin-top: .1rem; }
.events-heading h2 { max-width: 8.1rem; margin: 0; color: var(--ink); font-size: 1.15rem; line-height: 1.13; font-weight: 650; letter-spacing: -.03em; }
.events-heading p { margin: .16rem 0 0; font-size: .92rem; line-height: 1.3; }
.calendar-empty { display: flex; align-items: center; justify-content: center; gap: .8rem; flex: 1 1 auto; min-width: 0; }
.calendar-empty p { margin: 0; color: var(--quiet); font-size: .87rem; }
.calendar-stem { height: 1px; flex: 1; background: #bab88f; position: relative; }
.calendar-stem:first-child::before, .calendar-stem:last-child::after { content: ""; position: absolute; width: 6px; height: 6px; top: -2.5px; border: 1.5px solid #9a9152; border-radius: 50%; background: var(--cream); }
.calendar-stem:last-child::after { right: 0; }
.leaf-medallion { display: grid; flex: none; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: 50%; background: #e1e5ce; color: var(--green); }
.leaf-medallion .icon { width: 1.45rem; height: 1.45rem; }
.calendar-button { flex: 0 0 auto; padding: .7rem .88rem; background: #ffffff50; color: var(--green); border: 1px solid #7f8d6e; border-radius: .55rem; font-size: .8rem; }
.calendar-button:hover { background: var(--sage); }
.event-timeline { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; align-items: flex-start; list-style: none; padding: 0; margin: 0; text-align: center; }
.event-timeline li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; position: relative; padding: 0 .25rem; font-size: .79rem; line-height: 1.27; overflow-wrap: anywhere; }
.event-timeline time { font-weight: 650; color: var(--green); }
.timeline-node { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; background: #dfe4ca; color: var(--green); border: 2px solid var(--cream); border-radius: 50%; margin: .3rem auto; position: relative; }
.timeline-node .icon { width: 1.08rem; height: 1.08rem; }
.event-timeline li::before { content: ""; position: absolute; height: 1px; background: #acb18a; left: 0; right: 0; top: 2.4rem; }
.event-timeline a { text-underline-offset: .13rem; }

/* Zdjęcie, aktualności i skróty */
.school-desk { display: grid; grid-template-columns: minmax(0,.89fr) minmax(0,1.12fr) minmax(0,1fr); }
.school-desk h2 { color: var(--green); font-size: clamp(1.25rem,1.55vw,1.75rem); letter-spacing: -.045em; line-height: 1.2; font-weight: 620; margin: 0; }
.school-life { position: relative; min-height: 17rem; margin: 0; background: var(--sage); overflow: hidden; }
.school-life .scene-image { position: absolute; inset: 0; object-position: 49% 54%; }
.school-life::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent,#142214aa); }
.school-life figcaption { bottom: 1.15rem; left: 1.4rem; right: 1rem; z-index: 1; }
.news-panel { min-width: 0; padding: clamp(1.25rem,1.85vw,2.2rem); }
.section-heading { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 1.25rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); font-weight: 600; font-size: .75rem; text-decoration: none; border-bottom: 1px solid #929e7f; }
.text-link:hover { border-bottom-color: currentColor; }
.news-story + .news-story { margin-top: 1.5rem; }
.gosc-js .news-story + .news-story { margin-top: 0; }
.news-story-top { display: grid; grid-template-columns: minmax(5rem,31%) minmax(0,1fr); align-items: start; gap: .9rem; }
.story-image { width: 100%; aspect-ratio: 1.33; overflow: hidden; background: var(--cream); border-radius: .4rem; }
.post-image, .archive-image > img { width: 100%; height: 100%; display: block; object-fit: cover; }
.post-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(130deg,#e5e6cf,#c7d2b5); color: #637754; }
.post-placeholder .book-mark { width: 38%; max-height: 55%; }
.news-story time, .archive-card time, .page-heading time { display: block; font-size: .74rem; color: var(--quiet); font-weight: 500; }
.news-story h3 { margin: .24rem 0 0; font-size: clamp(1rem,1.19vw,1.34rem); font-weight: 650; line-height: 1.25; letter-spacing: -.028em; }
.news-story h3 a, .archive-card h2 a { color: inherit; text-decoration: none; }
.news-story h3 a:hover, .archive-card h2 a:hover { text-decoration: underline; }
.news-story, .archive-card { position: relative; }
.news-story h3 a::after, .archive-card h2 a::after { content: ""; position: absolute; inset: 0; }
.welcome h1, .school-desk :is(h2,h3), .events-heading h2, .page-heading h1 { font-family: "DM Sans",Arial,sans-serif; }
.story-excerpt { font-size: .86rem; line-height: 1.5; margin: .9rem 0 0; color: var(--quiet); }
.reel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: .85rem; }
.reel-dots, .reel-arrows { display: flex; align-items: center; }
.reel-dots button { position: relative; width: 1.5rem; height: 1.65rem; display: grid; place-items: center; }
.reel-dots button::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #aab19b; }
.reel-dots button[aria-pressed="true"]::before { background: var(--green); width: .58rem; height: .58rem; }
.reel-arrows { gap: .35rem; }
.reel-arrows button { width: 1.9rem; height: 1.9rem; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.reel-arrows button:hover { background: var(--sage); }
.reel-arrows .icon { width: 1rem; height: 1rem; }
.reel-arrows [data-step="-1"] .icon { transform: rotate(180deg); }
.shortcuts-panel { container: school-shortcuts / inline-size; align-self: stretch; min-width: 0; margin: .6rem .62rem .6rem 0; padding: clamp(1rem,1.4vw,1.65rem); border-radius: .6rem; background: linear-gradient(112deg,#e5e8d5,#eef0e3); }
.shortcuts-panel h2 { display: flex; gap: .52rem; align-items: center; margin-bottom: 1rem; }
.shortcuts-panel h2 .icon { width: 1.45rem; height: 1.45rem; }
.quick-menu { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
.quick-menu > li { min-width: 0; }
.quick-menu a, .quick-menu summary { display: flex; align-items: center; gap: .55rem; height: 100%; min-height: 3.1rem; padding: .62rem .68rem; color: #303829; background: #fbfbf3d9; border-radius: .42rem; text-decoration: none; font-size: .81rem; line-height: 1.24; font-weight: 540; }
.quick-menu a span, .quick-menu summary span { min-width: 0; overflow-wrap: anywhere; }
.quick-menu a:hover, .quick-menu summary:hover { background: #fff; box-shadow: inset 0 0 0 1px #b5c19e; }
.quick-menu .icon { color: var(--green); width: 1.4rem; height: 1.4rem; }
.quick-menu a > .icon:last-child { width: .9rem; height: .9rem; margin-left: auto; }
.quick-menu .sub-menu a, .quick-menu details > a { background: var(--paper); margin-top: .2rem; }
@container school-shortcuts (max-width: 21rem) {
	.quick-menu a > .icon:last-child { display: none; }
	.quick-menu a { gap: .45rem; padding-inline: .6rem; }
}
.school-footer { border-top: 1px solid var(--line); padding: 1.1rem clamp(1.1rem,2vw,2.7rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; color: var(--quiet); background: var(--paper); font-size: .76rem; }
.school-footer nav { display: flex; gap: 1rem; }

/* Wpisy, podstrony, dokumenty i galerie */
.interior { max-width: 91rem; margin-inline: auto; padding: 4.8rem clamp(1.4rem,4vw,5rem) 4rem; }
.singular-interior { max-width: 76rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; margin: 0 0 1.65rem; color: var(--quiet); font-size: .79rem; }
.breadcrumb a { font-weight: 550; }
.page-heading { margin-bottom: 2rem; }
.page-heading h1 { margin: 0; max-width: 32ch; color: var(--deep); font-size: clamp(2.05rem,3.5vw,3.9rem); line-height: 1.09; letter-spacing: -.05em; font-weight: 480; }
.page-heading h1::after { content: ""; display: block; width: 3.25rem; height: 3px; background: #8b996c; margin-top: 1.17rem; }
.page-heading time { margin-bottom: .66rem; }
.page-heading > p, .archive-description { margin-top: 1.1rem; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,16.5rem),1fr)); gap: clamp(.9rem,1.8vw,1.9rem); }
.archive-card { border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; }
.archive-image { aspect-ratio: 16/9; overflow: hidden; background: var(--sage); }
.archive-card-body { padding: 1.2rem; }
.archive-card h2 { font-size: 1.2rem; line-height: 1.23; letter-spacing: -.025em; margin: .35rem 0 .55rem; }
.archive-card p { margin: 0; font-size: .92rem; color: var(--quiet); }
.school-article .entry-content { min-width: 0; display: flow-root; overflow-wrap: anywhere; }
.entry-content :where(h2,h3,h4) { color: var(--deep); line-height: 1.25; margin-block: 1.4em .65em; }
.entry-content :where(p,ul,ol,figure,table) { margin-bottom: 1.15rem; }
.entry-content :where(img,video,iframe,object,embed,figure,.wp-caption,.wp-block-image) { max-width: 100%; }
.entry-content :where(img) { height: auto; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { max-width: 100%; border-collapse: collapse; }
.entry-content :where(th,td) { padding: .42rem .56rem; border: 1px solid var(--line); }
.entry-content :where(iframe,object,embed) { vertical-align: middle; }
.entry-content :where(figcaption,.wp-caption-text,.gallery-caption) { color: var(--quiet); font-size: .85rem; margin: .4rem 0; }
.entry-content blockquote { margin: 1.5rem 0; border-left: 3px solid #9da87e; padding: .5rem 1.4rem; background: var(--cream); }
.entry-content :where(pre) { max-width: 100%; padding: .85rem; background: var(--cream); overflow-x: auto; }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: .25rem 1.25rem .6rem 0; }
.alignright { float: right; margin: .25rem 0 .6rem 1.25rem; }
.gallery { display: flex; flex-wrap: wrap; gap: .6rem; }
.gallery .gallery-item { flex: 1 1 9rem; text-align: center; margin: 0; max-width: 100%; }
.gallery .gallery-icon img { vertical-align: middle; }
.article-cover { margin-bottom: 1.5rem; }
.article-cover img { max-height: 34rem; width: auto; max-width: 100%; border-radius: .4rem; }
.navigation.pagination, .page-links, .post-navigation, .comments-area { margin-top: 2.4rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.page-numbers, .page-links a, .post-page-numbers { padding: .44rem .82rem; color: var(--green); background: var(--cream); border-radius: .3rem; text-decoration: none; }
.page-numbers.current, .post-page-numbers.current { color: white; background: var(--green); }
.post-navigation .nav-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.post-navigation .nav-links > div { max-width: min(28rem,100%); }
.post-navigation small { display: block; color: var(--quiet); }
.comment-list { padding-left: 1.25rem; }
.comments-area :where(input:not([type="checkbox"]),textarea) { max-width: 100%; padding: .5rem; border: 1px solid var(--line); border-radius: .3rem; }
.comments-area label { display: block; }
.comments-area input[type="submit"], .post-password-form input[type="submit"] { background: var(--green); color: #fff; padding: .5rem .9rem; border: 0; border-radius: .3rem; cursor: pointer; }
.calendar-agenda { border-radius: .55rem; background: var(--cream); padding: clamp(1rem,2vw,1.9rem); margin-bottom: 2rem; }
.calendar-agenda h2 { margin: 0 0 1rem; font-size: 1.35rem; color: var(--green); letter-spacing: -.025em; }
.calendar-agenda p, .calendar-agenda ol { margin: 0; }
.calendar-agenda ol { list-style: none; padding: 0; }
.calendar-agenda li { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; padding-block: .55rem; border-bottom: 1px solid var(--line); }
.calendar-agenda time { color: var(--quiet); font-weight: 600; }

@media (min-width: 961px) and (max-height: 780px) {
	.school-brand { padding-top: 1.1rem; padding-bottom: 1rem; }
	.school-brand .book-mark { width: 56px; margin-bottom: .55rem; }
	.site-menu :is(a,summary) { min-height: 2.35rem; }
	.sidebar-foot { min-height: 7rem; }
}
@media (min-width: 961px) and (max-width: 1190px) {
	.school-desk { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
	.shortcuts-panel { grid-column: 1/-1; margin: .5rem; }
	.shortcuts-panel h2 { margin-bottom: .6rem; }
	.quick-menu { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.calendar-empty { gap: .5rem; }
	.calendar-empty p { max-width: 15rem; }
	.events-band { gap: 1rem; }
}
@media (max-width: 960px) {
	.site-frame { margin-left: 0; min-height: calc(100vh - 4.1rem); }
	.mobile-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .63rem 1.1rem; background: var(--deep); color: #fffef3; }
	.mobile-head a { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; font: 400 .93rem/1.12 Georgia,serif; }
	.mobile-head strong { font-weight: 400; }
	.mobile-head .book-mark { width: 2.75rem; }
	.mobile-open { display: none; color: inherit; align-items: center; gap: .45rem; padding: .42rem .7rem; border: 1px solid #bdc7a6; border-radius: .4rem; font-size: .9rem; }
	.gosc-js .mobile-open { display: inline-flex; }
	.school-sidebar { position: relative; width: 100%; inset: auto; }
	.school-sidebar .school-brand { display: none; }
	.sidebar-foot { min-height: auto; background: none; padding: 1rem; }
	.gosc-js .school-sidebar { position: fixed; inset: var(--top) auto 0 0; z-index: 100; width: min(22rem,89vw); visibility: hidden; transform: translateX(-101%); }
	.gosc-nav-open .school-sidebar { visibility: visible; transform: none; }
	.gosc-nav-open { overflow: hidden; }
	.gosc-js .mobile-close { display: grid; place-items: center; align-self: flex-end; margin: .65rem .75rem 0; width: 2.4rem; height: 2.4rem; color: #f6f7eb; }
	.gosc-js .school-sidebar .school-brand { display: flex; padding: 0 1.6rem 1.1rem; }
	.gosc-js .school-brand .book-mark, .gosc-js .school-brand .brand-logo { align-self: flex-start; width: 3.1rem; margin-bottom: .55rem; }
	.gosc-js .brand-title { font-size: 1.56rem; }
	.gosc-js .school-brand::after { margin-top: .7rem; }
	.gosc-js .sidebar-foot { padding: 1.1rem 1.5rem 4rem; background: url("assets/pola.svg") right bottom / 48% auto no-repeat; }
	.gosc-nav-open .nav-veil { display: block; position: fixed; inset: 0; z-index: 99; background: #17201179; }
	.site-menu :is(a,summary) { min-height: 2.7rem; }
	.welcome { min-height: 30rem; }
	.welcome-copy { padding: 5rem 1.4rem 4rem 0; }
	.welcome h1 { font-size: clamp(2.1rem,4.1vw,3.2rem); }
	.school-desk { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
	.shortcuts-panel { grid-column: 1/-1; margin: .6rem; }
	.quick-menu { grid-template-columns: repeat(3,minmax(0,1fr)); }
	.school-life { min-height: 15.5rem; }
	.events-band { gap: 1rem; }
	.calendar-stem { display: none; }
}
@media (max-width: 680px) {
	.welcome { display: block; min-height: auto; padding-top: clamp(13rem,48vw,17rem); }
	.school-photo-frame { inset: 0 0 auto; width: 100%; height: clamp(13rem,48vw,17rem); clip-path: polygon(0 0,100% 0,100% 81%,0 100%); }
	.school-photo { inset: 0 0 3px; clip-path: polygon(0 0,100% 0,100% 81%,0 100%); }
	.school-photo .scene-image { object-position: 55% 52%; }
	.meadow-photo { inset: 9rem 0 0; }
	.meadow-photo .scene-image { object-position: 65% 65%; }
	.meadow-photo::after { background: linear-gradient(90deg,#fff5e6b3,#fff6e055 70%,transparent); }
	.photo-place { top: .9rem; bottom: auto; left: .95rem; font-size: .7rem; }
	.welcome-copy { margin-left: 0; width: 100%; padding: .8rem 1.38rem 2.65rem; }
	.welcome-kicker { font-size: .61rem; letter-spacing: .14em; margin-bottom: .9rem; }
	.welcome h1 { font-size: clamp(2.05rem,7.65vw,3rem); line-height: 1.065; }
	.welcome-rule { margin: 1rem 0 .75rem; width: 2.9rem; }
	.welcome-intro { font-size: .98rem; margin-bottom: 1.1rem; max-width: 23rem; }
	.primary-button { padding: .72rem 1.13rem; }
	.site-tools { top: .8rem; right: .83rem; }
	.site-tools > button, .search-pop > summary { width: 2.25rem; height: 2.14rem; }
	.events-band { display: grid; grid-template-columns: 1fr auto; gap: .8rem; padding: 1.35rem 1.2rem 1.05rem; }
	.events-heading { padding: 0; border-right: 0; align-items: center; gap: .65rem; }
	.events-heading > .icon { width: 1.6rem; height: 1.6rem; }
	.events-heading h2 { font-size: .99rem; max-width: none; }
	.events-heading p { font-size: .8rem; margin: 0; }
	.calendar-button { grid-column: 2; grid-row: 1; font-size: .73rem; gap: .3rem; padding: .55rem; }
	.calendar-empty { grid-column: 1/-1; justify-content: flex-start; padding-top: .65rem; gap: .55rem; border-top: 1px solid var(--line); }
	.calendar-empty p { font-size: .82rem; }
	.leaf-medallion { width: 1.65rem; height: 1.65rem; }
	.leaf-medallion .icon { width: .95rem; height: .95rem; }
	.event-timeline { grid-column: 1/-1; display: grid; grid-template-columns: repeat(auto-fit,minmax(7rem,1fr)); gap: .65rem; }
	.event-timeline li { padding: .5rem; border-top: 1px solid var(--line); gap: .23rem; }
	.event-timeline li::before, .timeline-node { display: none; }
	.school-desk { display: flex; flex-direction: column; }
	.news-panel { order: 1; padding: 1.45rem 1.25rem 1.1rem; }
	.section-heading { margin-bottom: .9rem; }
	.news-story-top { grid-template-columns: minmax(0,31%) minmax(0,1fr); }
	.news-story h3 { font-size: 1.1rem; }
	.shortcuts-panel { order: 2; margin: .25rem .8rem 1rem; }
	.quick-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.school-life { order: 3; min-height: clamp(12rem,56vw,19rem); }
	.school-footer { padding: 1.1rem; }
	.interior { padding: 4.4rem 1.2rem 2.3rem; }
	.page-heading h1 { font-size: 2rem; }
	.entry-content table { display: block; width: max-content; max-width: 100%; overflow-x: auto; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: auto; }
}
@media (max-width: 360px) {
	.calendar-button { max-width: 7.4rem; }
	.quick-menu { gap: .33rem; }
	.quick-menu a { padding: .54rem; gap: .34rem; }
}

/* Preferencje czytelnika */
.gosc-contrast { --paper: #fff; --cream: #fff; --sage: #e6ebda; --ink: #10160d; --quiet: #283221; --green: #26391d; --deep: #172612; --line: #667259; }
.gosc-contrast .school-sidebar, .gosc-contrast .mobile-head, .gosc-contrast .bip-link { background: #172612; }
.gosc-contrast .welcome-copy { background: #fff; padding: 1.5rem; margin-block: 4rem; border: 2px solid #26391d; }
.gosc-contrast .events-band, .gosc-contrast .shortcuts-panel { background: #f2f4ec; }
.gosc-contrast .quick-menu a, .gosc-contrast .calendar-button { background: #fff; border: 1px solid #45523e; }
.gosc-contrast .site-tools { background: #fff; border-color: #26391d; }
.gosc-contrast .entry-content :where(p,li,td,th,span,strong,h2,h3,h4) { color: #111 !important; background-color: #fff !important; }
.gosc-contrast .entry-content a { color: #152e06 !important; background-color: #fff !important; text-decoration: underline !important; }
.gosc-contrast :focus-visible { outline-color: #b04a00; }
.gosc-contrast .school-sidebar :focus-visible { outline-color: #fff59a; }
@media (max-width: 680px) { .gosc-contrast .welcome-copy { margin: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.primary-button, .calendar-button, .site-menu a, .site-menu summary, .quick-menu a { transition: background-color .16s ease; }
}
@media print {
	.school-sidebar, .mobile-head, .site-tools, .skip-link, .nav-veil, .reel-controls, .post-navigation, .school-footer nav { display: none !important; }
	.site-frame { margin: 0; display: block; }
	.interior { padding: 0; }
	.gosc-site { color: #000; background: #fff; }
}
