/*
Theme Name: ZSNR2 Green
Description: Zielony motyw Zespołu Szkół nr 2 w Płońsku, zgodny z przekazaną referencją.
Version: 1.0.24
Template: Buntington2
Requires at least: 6.8
Requires PHP: 7.4
Text Domain: zsnr2-green
*/
@font-face{font-family:"Manrope";src:url("assets/manrope.ttf") format("truetype");font-style:normal;font-weight:200 800;font-display:swap}
:root{--green:#2b4217;--green-dark:#243a10;--ink:#182015;--muted:#51564e;--line:#d5ddcf;--soft:#f3f5ef;--container:1120px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--ink);font-family:"Manrope",Arial,sans-serif;font-size:1rem;line-height:1.4;-webkit-font-smoothing:antialiased}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:3px}button,input{font:inherit}button{cursor:pointer}img{display:block;max-width:100%;height:auto}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--green);font-weight:600;line-height:1.12}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #759950;outline-offset:4px}.container{width:min(82.5%,var(--container));margin-inline:auto}.skip-link{position:fixed;top:-80px;left:20px;background:white;border:2px solid var(--green);padding:10px 18px;z-index:200}.skip-link:focus{top:10px}.brand-row{min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;gap:17px;align-items:center;color:#161c14;text-decoration:none!important}.brand>img{width:68px;height:68px;object-fit:contain}.brand>span{display:flex;flex-direction:column}.brand strong{color:var(--green);font-size:1.8125rem;letter-spacing:-0.5px;font-weight:600;line-height:1.13}.brand span span{font-size:1.125rem;line-height:1.35;margin-top:2px}.header-actions{display:flex;gap:15px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;min-height:41px;border-radius:5px;font-weight:600;font-size:1rem;line-height:1.1;border:1px solid #b3c49e;text-decoration:none!important}.button-outline{background:#fafbf8}.button-solid{background:linear-gradient(110deg,#38511e,#263d10);border-color:var(--green);color:white;box-shadow:0 2px 4px #2b421719}.button:hover{filter:brightness(.96)}.nav-band{background:linear-gradient(105deg,#2d4517,#263d10);color:#fff}.primary-menu{display:flex;list-style:none;justify-content:space-between;align-items:stretch;gap:0;margin:0;padding:0;min-height:43px}.primary-menu>li{position:relative;display:flex;align-items:stretch}.primary-menu>li>a,.primary-menu>li>.submenu-toggle{position:relative;display:flex;align-items:center;border:0;border-radius:0;background:none;color:#fff;font-size:0.9375rem;white-space:nowrap;font-weight:500;padding:12px 0;text-transform:none;line-height:1.2;text-decoration:none}.primary-menu>li>a:hover,.primary-menu>li>.submenu-toggle:hover{color:#e6eddf}.primary-menu>.current-menu-item>a:after,.primary-menu>.current_page_item>a:after{content:"";position:absolute;height:2px;bottom:5px;left:0;right:0;background:#dfe8d7}.sub-menu{display:none;list-style:none;position:absolute;left:-14px;top:100%;width:274px;z-index:50;margin:0;padding:7px;background:white;border:1px solid var(--line);box-shadow:0 8px 25px #1c34171a;border-radius:0 0 5px 5px}.sub-menu a,.sub-menu .submenu-toggle{display:block;width:100%;padding:9px 10px;font-size:0.9375rem;color:var(--green);line-height:1.2;text-align:left;border:0;background:none;text-decoration:none}.sub-menu a:hover,.sub-menu button:hover{background:var(--soft)}.sub-menu li{position:relative}.sub-menu .sub-menu{top:0;left:100%}.submenu-open>.sub-menu{display:block}.submenu-arrow{padding:0!important;width:24px!important;position:absolute!important;right:0;top:3px}.sub-menu li:has(>.submenu-arrow)>a{padding-right:30px}.primary-menu>.menu-item-has-children>.submenu-toggle:not(.submenu-arrow){padding-right:0}.primary-menu>li:nth-last-child(-n+2)>.sub-menu{left:auto;right:0}.mobile-menu-toggle{display:none}.school-banner{margin-top:18px;margin-bottom:15px;overflow:hidden;border-radius:7px}.reference-crop{display:block;position:relative;overflow:hidden;aspect-ratio:var(--crop-w)/var(--crop-h);width:100%}.reference-crop>img{position:absolute;max-width:none;width:calc(1041 / var(--crop-w) * 100%);height:auto;left:calc(var(--crop-x) / var(--crop-w) * -100%);top:calc(var(--crop-y) / var(--crop-h) * -100%)}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:30px;align-items:start}.main-column{min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-heading h1,.section-heading h2{font-size:1.75rem;letter-spacing:-0.45px;font-weight:600}.text-link{font-size:0.9375rem;font-weight:600;line-height:1.25}.section-heading>.text-link{font-size:0.875rem;white-space:nowrap}.text-link span{display:inline-block;margin-left:4px}.featured-news{display:grid;grid-template-columns:1fr 1fr;border:1px solid #e1e5dc;border-radius:6px;overflow:hidden;min-height:220px}.featured-photo{min-height:100%;overflow:hidden}.featured-photo img{width:100%;height:100%;object-fit:cover;object-position:center 44%}.featured-copy{display:flex;align-items:flex-start;flex-direction:column;padding:16px 18px 18px}.news-meta{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;font-size:0.75rem;line-height:1.2;margin-bottom:7px}.news-meta>span{text-transform:uppercase;font-size:0.75rem;font-weight:600;color:var(--green)}.news-meta time{font-size:0.75rem;color:#4d5149}.featured-copy h2{font-size:1.4375rem;letter-spacing:-0.27px;line-height:1.12;margin-bottom:9px}.featured-copy p{font-size:0.9375rem;line-height:1.4;margin-bottom:12px}.news-row{display:grid;grid-template-columns:118px minmax(0,1fr);gap:17px;padding:12px 0 10px;border-bottom:1px solid #edf0e9;align-items:center}.news-row:last-child{border-bottom:0}.news-thumbnail{width:118px;height:69px;border-radius:5px;overflow:hidden;background:#e9eee3}.news-thumbnail img{width:100%;height:100%;object-fit:cover}.news-thumbnail span{height:100%;display:flex;align-items:center;justify-content:center;font-size:0.8125rem;font-weight:600}.news-row h2{font-size:1.25rem;font-weight:600;line-height:1.12;letter-spacing:-0.18px;margin-bottom:4px}.news-row .news-meta{margin-bottom:3px}.news-row p{font-size:0.875rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.quick-links{background:linear-gradient(145deg,#f5f6f2,#edf1e8);border:1px solid #e4e9dd;border-radius:6px;padding:12px 17px 11px;margin-top:3px}.quick-links h2{font-size:1.5rem;letter-spacing:-0.32px;margin-bottom:10px}.quick-links ul{list-style:none;margin:0;padding:0}.quick-links a{display:flex;align-items:flex-start;gap:15px;justify-content:space-between;font-size:0.875rem;font-weight:600;line-height:1.19;padding:6px 0}.quick-links a>span:last-child{flex-shrink:0;font-size:1rem;line-height:1}.schools{position:relative;z-index:0;margin-top:20px;padding:16px 0 17px}.schools:before{content:"";position:absolute;inset:0 -20px 0 -30vw;background:linear-gradient(105deg,#f7f8f4,#f6f7f3);z-index:-1}.schools .section-heading{margin-bottom:12px}.school-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.school-card{display:flex;align-items:flex-start;flex-direction:column;border:1px solid var(--line);border-radius:5px;background:#ffffffc9;padding:13px 15px 15px;min-height:143px}.eyebrow{display:block;font-size:0.75rem;line-height:1.15;text-transform:uppercase;color:var(--green);margin-bottom:5px}.school-card h3{font-size:1.25rem;letter-spacing:-0.27px;font-weight:600;line-height:1.15;margin-bottom:9px}.school-card p{font-size:0.875rem;line-height:1.3;margin-bottom:13px}.school-card .text-link{margin-top:auto;font-size:0.875rem}.partners{padding-top:30px}.section-heading-rule{justify-content:flex-start;margin-bottom:22px;gap:24px}.section-heading-rule h2{font-size:1.8125rem;white-space:nowrap}.section-heading-rule>span{height:1px;background:#92aa7e;flex:1;margin-top:10px}.partner-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 17px}.partner-card{display:flex;align-items:center;justify-content:center;height:134px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden;padding:15px 23px;transition:border-color .15s,box-shadow .15s}.partner-card:hover{border-color:#9bb087;box-shadow:0 3px 12px #2b42170c}.partner-art{width:100%;max-width:290px}.partner-art-1{max-width:265px}.partner-art-2{width:100px}.partner-art-5{width:175px}.location-contact{display:grid;grid-template-columns:1.55fr 1fr;gap:44px;margin-top:61px;padding-top:17px;border-top:1px solid #e1e6dc;margin-bottom:35px}.map-frame{position:relative;height:225px;padding:7px;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#f3f5ef}.map-frame iframe{border:0;width:100%;height:100%;display:block;border-radius:3px}.map-open{position:absolute;left:16px;top:16px;background:#fff;border:1px solid #dde4d8;box-shadow:0 2px 4px #00000017;border-radius:4px;padding:7px 12px;font-size:0.9375rem;font-weight:600}.contact-card{min-height:225px;border:1px solid var(--line);border-radius:6px;padding:10px 18px 14px;background:#fff}.address-row{display:flex;gap:16px;align-items:flex-start}.contact-icon{width:24px;flex:0 0 24px;color:var(--green);margin-top:1px}.contact-icon svg{display:block;width:24px;height:24px;fill:currentColor}.address-row h3{font-size:1.125rem;line-height:1.18;letter-spacing:-0.09px;margin-bottom:5px}.address-row p{font-size:1rem;line-height:1.15}.phone-row{display:flex;gap:16px;align-items:center;padding-top:11px;margin-top:8px;border-top:1px solid #edf0e8;font-size:1.0625rem}.phone-row .contact-icon svg{width:22px;height:22px}.social{margin-top:10px}.social h3{font-size:1.125rem;margin-bottom:8px}.social-links{display:flex;align-items:center;gap:10px}.social-links a{display:flex;align-items:center;justify-content:center;width:37px;height:34px;background:var(--green);color:white;border-radius:6px}.social-links a:first-child{border-radius:50%;width:35px;height:35px}.social-links svg{width:24px;height:24px;fill:white}.site-footer{border-top:1px solid #89a173}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:30px;min-height:82px}.footer-brand{gap:13px}.footer-brand>img{width:51px;height:51px}.footer-brand strong{font-size:1.375rem;letter-spacing:-0.32px}.footer-brand span span{font-size:1.0625rem;margin-top:0}.site-footer nav{display:flex;gap:30px;font-size:0.875rem;font-weight:600}.inner-page{padding-top:28px;padding-bottom:60px;min-height:60vh}.breadcrumbs{font-size:0.875rem;display:flex;flex-wrap:wrap;gap:9px;color:#62695c;margin-bottom:25px}.article-page{max-width:850px;margin-inline:auto}.article-page header{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:26px}.article-page h1{font-size:2.375rem;letter-spacing:-0.45px;line-height:1.12}.article-page header time{display:block;margin-top:12px;color:var(--muted)}.entry-content{font-family:"Manrope",Arial,sans-serif;font-size:1.0625rem;line-height:1.65;overflow-wrap:anywhere}.entry-content p,.entry-content>div{margin-bottom:16px}.entry-content h2,.entry-content h3,.entry-content h4{font-family:"Manrope",sans-serif;line-height:1.2;margin:24px 0 13px}.entry-content h2{font-size:1.8125rem}.entry-content h3{font-size:1.5rem}.entry-content img{margin-inline:auto}.entry-content figure{margin:18px 0}.entry-content a{text-decoration:underline}.entry-content iframe,.entry-content video{max-width:100%}.entry-content table{border-collapse:collapse;max-width:100%;font-size:0.9375rem}.entry-content td,.entry-content th{padding:9px;border:1px solid var(--line)}.entry-content input[type=hidden]{display:none}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:24px}.archive-card{border:1px solid var(--line);border-radius:6px;padding:22px;display:flex;align-items:flex-start;flex-direction:column}.archive-card h2{font-size:1.5rem;margin-bottom:15px}.archive-card p{font-size:1rem;margin-bottom:20px}.archive-card>.text-link{margin-top:auto}.search-form{display:flex;gap:8px}.search-field{border:1px solid var(--line);padding:10px;border-radius:4px;max-width:100%}.search-submit{border:0;border-radius:4px;background:var(--green);color:white;padding:10px 18px}.pagination{margin-top:28px;text-align:center}.page-numbers{display:inline-block;padding:5px 9px}.page-numbers.current{background:var(--soft);border-radius:3px}
@media(min-width:1500px){.brand-row{min-height:94px}.featured-news{min-height:235px}}
@media(max-width:1150px){.container{width:86%}.brand strong{font-size:1.625rem}.brand>img{width:60px;height:60px}.brand-row{min-height:76px}.brand span span{font-size:1rem}.primary-menu>li>a,.primary-menu>li>.submenu-toggle{font-size:0.8125rem}.primary-menu{min-height:38px}.content-grid{grid-template-columns:minmax(0,1fr) 245px;gap:24px}.featured-news{min-height:185px}.featured-copy{padding:12px 14px}.featured-copy h2{font-size:1.3125rem}.featured-copy p{font-size:0.875rem}.news-row{grid-template-columns:104px minmax(0,1fr);gap:15px;padding:10px 0}.news-thumbnail{width:104px;height:60px}.news-row h2{font-size:1.125rem}.news-row p{font-size:0.8125rem}.school-card{padding:11px 13px 13px}.school-card h3{font-size:1.125rem}.school-card p{font-size:0.8125rem}.school-card .text-link{font-size:0.8125rem}.quick-links{padding:11px 15px}.quick-links a{font-size:0.8125rem;padding:5px 0}.quick-links h2{font-size:1.375rem}.section-heading h1,.section-heading h2{font-size:1.5625rem}.section-heading>.text-link{font-size:0.8125rem}.school-cards{gap:12px}.partner-card{height:115px;padding:14px 22px}.partners{padding-top:26px}.location-contact{margin-top:52px;gap:35px}.map-frame,.contact-card{height:195px;min-height:195px}.address-row h3{font-size:1rem}.address-row p{font-size:0.875rem}.contact-card{padding:10px 14px}.phone-row{padding-top:8px;margin-top:6px;font-size:1rem}.social{margin-top:8px}.social h3{font-size:1rem;margin-bottom:5px}.social-links a{height:30px;width:34px}.social-links a:first-child{width:30px;height:30px}.social-links svg{width:21px;height:21px}.footer-inner{min-height:72px}.site-footer nav{font-size:0.8125rem;gap:24px}.footer-brand strong{font-size:1.25rem}.footer-brand span span{font-size:1rem}.footer-brand>img{width:47px;height:47px}}
@media(max-width:950px){.container{width:90%}.brand strong{font-size:1.5625rem}.header-actions{gap:9px}.button{padding:9px 12px;font-size:0.875rem}.primary-menu>li>a,.primary-menu>li>.submenu-toggle{font-size:0.75rem}.content-grid{grid-template-columns:minmax(0,1fr) 225px;gap:20px}.featured-news{grid-template-columns:46% 54%;min-height:200px}.featured-copy h2{font-size:1.25rem}.news-meta{gap:8px;font-size:0.6875rem}.news-meta>span,.news-meta time{font-size:0.6875rem}.featured-copy p{font-size:0.8125rem}.school-cards{gap:8px}.school-card{padding:11px 9px}.school-card h3{font-size:1.0625rem}.school-card p{font-size:0.75rem}.school-card .text-link{font-size:0.8125rem}.location-contact{gap:25px}.site-footer nav{gap:15px}.footer-brand strong{font-size:1.125rem}.footer-brand span span{font-size:0.875rem}.partner-card{padding:15px}.partner-art-5{width:150px}}
@media(max-width:760px){.container{width:calc(100% - 36px)}.brand-row{padding-block:14px;gap:15px;min-height:0;flex-wrap:wrap}.brand{gap:11px}.brand>img{width:54px;height:54px}.brand strong{font-size:1.5rem;letter-spacing:-0.32px}.brand span span{font-size:0.9375rem}.header-actions{margin-left:auto}.button{font-size:0.875rem;min-height:36px;padding:8px 12px}.mobile-menu-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:transparent;color:white;padding:9px 0;font-size:1rem;font-weight:500}.hamburger{font-size:1.375rem;line-height:1}.primary-menu{display:block;min-height:0}.primary-menu>li{display:block}.primary-menu>li>a,.primary-menu>li>.submenu-toggle{width:100%;font-size:0.9375rem;padding:12px 0;text-align:left}.primary-menu>li>a:after{display:none}#primary-navigation{display:none;padding-bottom:10px}#primary-navigation.is-open{display:block}.sub-menu{position:static;width:100%;box-shadow:none;border-radius:4px;margin-bottom:5px}.sub-menu .sub-menu{position:static;border:0;border-left:2px solid var(--line);border-radius:0;margin:0 0 3px 9px;width:calc(100% - 9px)}.sub-menu a,.sub-menu .submenu-toggle{font-size:0.9375rem}.school-banner{margin-top:15px;margin-bottom:18px}.hero-photo{aspect-ratio:4.4}.hero-photo>img{top:calc(var(--crop-y) / var(--crop-h) * -100%);height:calc(1510 / var(--crop-h) * 100%);width:calc(1041 / var(--crop-w) * 100%);object-fit:fill}.content-grid{display:flex;flex-direction:column;gap:25px}.main-column{width:100%}.section-heading{margin-bottom:13px}.section-heading h1,.section-heading h2{font-size:1.6875rem}.section-heading>.text-link{font-size:0.8125rem}.featured-news{grid-template-columns:1fr 1fr;min-height:210px}.featured-copy{padding:15px}.featured-copy h2{font-size:1.4375rem}.featured-copy p{font-size:0.875rem}.news-row{grid-template-columns:104px minmax(0,1fr);gap:14px}.news-row h2{font-size:1.1875rem}.news-row p{font-size:0.875rem}.news-meta>span,.news-meta time{font-size:0.6875rem}.school-card{padding:13px;min-height:154px}.school-card h3{font-size:1.25rem}.school-card p{font-size:0.875rem}.school-card .text-link{font-size:0.875rem}.schools:before{right:-18px;left:-18px}.quick-links{width:100%;padding:16px 19px;margin-top:0}.quick-links h2{font-size:1.5625rem}.quick-links ul{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.quick-links a{padding:8px 0;font-size:0.9375rem}.partners{padding-top:30px}.partner-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.partner-card{height:125px;padding:15px 20px}.partner-art-2{width:86px}.partner-art-5{width:153px}.location-contact{grid-template-columns:1fr;gap:25px;margin-top:35px;padding-top:20px;margin-bottom:28px}.map-frame{height:240px}.contact-card{height:auto;min-height:220px;padding:15px 19px}.address-row h3{font-size:1.1875rem}.address-row p{font-size:1rem}.phone-row{font-size:1.125rem;padding-top:12px;margin-top:12px}.social h3{font-size:1.125rem}.social-links a{height:35px;width:40px}.social-links a:first-child{width:35px;height:35px}.footer-inner{padding-block:18px;flex-wrap:wrap;gap:18px}.site-footer nav{gap:23px;font-size:0.875rem}.footer-brand>img{width:48px;height:48px}.footer-brand strong{font-size:1.3125rem}.footer-brand span span{font-size:1rem}.inner-page{padding-top:20px}.article-page h1{font-size:2rem}.entry-content{font-size:1rem;line-height:1.6}.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.brand-row{gap:12px}.brand>img{width:47px;height:47px}.brand strong{font-size:1.375rem}.brand span span{font-size:0.875rem}.header-actions{margin-left:58px}.button{min-height:34px;padding:8px 13px}.school-banner{border-radius:5px}.section-heading{align-items:baseline;gap:8px}.section-heading h1,.section-heading h2{font-size:1.625rem}.section-heading>.text-link{font-size:0.75rem}.featured-news{display:flex;flex-direction:column}.featured-photo{height:190px;min-height:190px}.featured-photo img{height:190px;object-position:center 43%}.featured-copy{padding:17px 16px 19px}.featured-copy h2{font-size:1.5625rem;max-width:310px}.featured-copy p{font-size:1rem}.featured-copy .text-link{font-size:1rem}.news-meta{margin-bottom:7px}.news-meta>span,.news-meta time{font-size:0.75rem}.news-row{grid-template-columns:85px minmax(0,1fr);gap:12px;padding:13px 0}.news-thumbnail{width:85px;height:64px}.news-row h2{font-size:1.125rem;line-height:1.15}.news-row .news-meta{gap:8px}.news-row .news-meta>span,.news-row .news-meta time{font-size:0.625rem}.news-row p{font-size:0.8125rem}.school-cards{grid-template-columns:1fr;gap:11px}.school-card{min-height:0;padding:15px 17px}.school-card h3{font-size:1.4375rem}.school-card p{font-size:0.9375rem;max-width:290px}.school-card .text-link{font-size:0.9375rem}.quick-links ul{grid-template-columns:1fr}.quick-links a{font-size:0.9375rem;padding:7px 0}.partners .section-heading h2{font-size:1.625rem}.section-heading-rule{gap:15px}.partner-grid{gap:10px}.partner-card{height:102px;padding:12px}.partner-art-2{width:65px}.partner-art-5{width:110px}.map-frame{height:225px}.footer-inner{gap:20px}.site-footer nav{width:100%;justify-content:space-between;gap:10px;font-size:0.75rem}.archive-grid{grid-template-columns:1fr}.article-page h1{font-size:1.875rem}.breadcrumbs{font-size:0.75rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
/* Match the proportions of the supplied 1041 px composition. */
@media(min-width:761px){.featured-news{height:220px;min-height:0;grid-template-rows:minmax(0,1fr)}.featured-photo{min-height:0}.featured-copy{overflow:hidden}.quick-links a{gap:7px;padding:5px 0;line-height:1.16;letter-spacing:-0.07px;font-weight:500}.schools{margin-top:14px}.school-card h3{margin-bottom:7px}.school-card p{margin-bottom:10px}}
@media(min-width:951px) and (max-width:1150px){.container{width:82.5%}.brand-row{min-height:72px}.primary-menu>li>a,.primary-menu>li>.submenu-toggle{padding-block:11px}.content-grid{grid-template-columns:minmax(0,1fr) 230px;gap:24px}.school-banner{margin-top:14px;margin-bottom:14px}.news .section-heading{margin-bottom:11px}.featured-news{height:180px}.featured-copy{padding:12px 14px}.featured-copy h2{font-size:1.25rem}.featured-copy p{font-size:0.8125rem;line-height:1.35;margin-bottom:9px}.featured-copy>.text-link{font-size:0.875rem}.news-thumbnail{width:100px;height:57px}.news-row{grid-template-columns:100px minmax(0,1fr);padding-block:8px;gap:14px}.quick-links{padding:10px 14px}.quick-links a{font-size:0.75rem;letter-spacing:-0.05px;padding:4px 0}.quick-links h2{margin-bottom:8px}.school-cards{grid-template-columns:1.1fr 1fr 1fr}.school-card{min-height:116px;padding:11px 13px}.school-card h3{font-size:1.0625rem;letter-spacing:-0.32px}.school-card p{font-size:0.75rem;line-height:1.3}.school-card>.text-link{font-size:0.8125rem}.schools{padding-top:14px;padding-bottom:15px}.partners{padding-top:23px}.section-heading-rule{margin-bottom:18px}.partner-card{height:110px}.partner-grid{row-gap:15px}.location-contact{margin-top:48px}.map-frame,.contact-card{height:185px;min-height:185px}}
@media(min-width:761px) and (max-width:950px){.featured-news{height:200px}}
@media(min-width:951px) and (max-width:1150px){.schools{margin-top:6px}.school-card{padding-block:10px}.school-card .eyebrow{font-size:0.6875rem;line-height:1.1;margin-bottom:4px}.school-card h3{line-height:1.1;margin-bottom:5px}.school-card:last-child h3{font-size:1rem;letter-spacing:-0.36px}.school-card p{line-height:1.25;margin-bottom:8px}.quick-links a{position:relative;padding:3px 15px 3px 0;gap:0}.quick-links a>span:last-child{position:absolute;right:0;top:3px}}
.contact-intro{min-height:0;padding-bottom:0}.contact-intro h1{font-size:2.25rem}.contact-intro>p{margin-top:14px}.contact-page .location-contact{margin-top:25px;margin-bottom:55px}
/* Keep the navigation available after the school header scrolls out of view. */
.nav-band{position:sticky;top:0;z-index:100;box-shadow:0 2px 7px #18201524}
.admin-bar .nav-band{top:32px}

.nav-layout {
    display: grid;
    grid-template-columns: 0px minmax(0, 1fr);
    align-items: center;
    transition: grid-template-columns 160ms ease-out;
}
.nav-band.has-docked-logo .nav-layout { grid-template-columns: 48px minmax(0, 1fr); }
.nav-layout :is(#primary-navigation, .mobile-menu-toggle) { grid-area: 1 / 2; min-width: 0; }
.nav-school-logo {
    grid-area: 1 / 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 38px;
    border-radius: 6px;
}
.nav-school-logo[hidden] { display: none; }
.nav-school-logo[inert] { pointer-events: none; }
.nav-school-logo img { width: 34px; height: 36px; object-fit: contain; }
.site-header .brand img.is-in-flight { visibility: hidden; }
@media (max-width: 760px) {
    .nav-layout #primary-navigation { grid-area: 2 / 1 / auto / -1; }
}

#main-content{scroll-margin-top:62px}
.back-to-top{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:90;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:46px;min-height:46px;padding:10px 13px;border:1px solid #ffffff70;border-radius:8px;background:var(--green);color:white;box-shadow:0 3px 12px #18201538;font-size:0.875rem;font-weight:600}
.back-to-top[hidden]{display:none}
.back-to-top:hover{background:var(--green-dark)}
.back-to-top svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.back-to-top:focus-visible{outline-color:#759950}
@media(max-width:782px){.admin-bar .nav-band{top:46px}}
@media(max-width:760px){#primary-navigation.is-open{max-height:calc(100vh - 90px);max-height:calc(100dvh - 90px);overflow-y:auto;overscroll-behavior:contain}.back-to-top{right:max(14px,env(safe-area-inset-right));bottom:calc(14px + env(safe-area-inset-bottom));width:46px;height:46px;padding:10px;border-radius:50%}.back-to-top span{display:none}}
@media(max-width:600px){.admin-bar .nav-band{top:0}}
.banner-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 18 / 5;
    background: var(--soft);
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}
.banner-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility 0s linear .6s;pointer-events:none}
.banner-slide.is-active{opacity:1;visibility:visible;transition-delay:0s;z-index:1}
.school-banner-image{display:block;width:100%;height:100%;object-fit:contain}
@media (min-width: 481px) {
    .banner-slide.is-active::before {
        content: "";
        position: absolute;
        inset: -24px;
        background: linear-gradient(#20341566, #20341566), var(--banner-art) center / cover no-repeat;
        filter: blur(16px);
    }
    .school-banner-image { position: relative; }
}
.banner-controls {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}
.banner-controls button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #fff;
    background: #223619e6;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    pointer-events: auto;
}
.banner-controls button:hover { background: #172910; }
.banner-arrow { top: 50%; transform: translateY(-50%); }
.banner-previous { left: 8px; }
.banner-next, .banner-rotation { right: 8px; }
.banner-rotation { top: 8px; }
@media (hover: hover) and (pointer: fine) {
    .banner-viewport:not(:hover):not(:has(:focus-visible)) .banner-controls button {
        opacity: 0;
        pointer-events: none;
    }
}
.banner-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){.banner-slide{transition:none}}
.document-preview{margin:20px 0 30px}.document-preview>iframe{display:block;width:100%;height:680px;border:1px solid var(--line);border-radius:5px;background:var(--soft)}.document-preview>p{font:15px "Manrope",sans-serif;padding-top:8px}
.article-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:30px}.article-gallery img{width:100%;aspect-ratio:1.48;object-fit:cover;border-radius:5px}.article-gallery a:focus-visible{outline-offset:3px}
@media(max-width:760px){.hero-photo{--crop-w:576!important;--crop-x:234!important}.article-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
/* Typography matched visually to the PDF's "01 Klasyczny szkolny" reference. */
body{line-height:1.6}
.brand,.brand>span{min-width:0}
.brand-row>.brand{max-width:100%}
.brand strong{font-weight:600;line-height:1.25}
.section-heading h1,.section-heading h2{font-weight:600;line-height:1.25}
.featured-copy h2,.news-row h2,.school-card h3{font-weight:600;line-height:1.35}
.featured-copy p,.news-row p,.school-card p{line-height:1.65}
.quick-links a{font-weight:500;line-height:1.45;letter-spacing:normal}
.text-link{font-weight:500}
.entry-content{line-height:1.75}
@media(min-width:761px){.featured-news{height:auto;min-height:260px}.featured-copy{overflow:visible}.featured-copy h2{font-size:1.375rem}.school-card h3{font-size:1.125rem}.news-row h2{font-size:1.125rem}}
@media(min-width:761px) and (max-width:1150px){.featured-news{min-height:230px}.featured-copy h2{font-size:1.25rem}}
@media(max-width:760px){.brand strong{font-size:1.4375rem}.featured-copy h2{font-size:1.4375rem}.news-row h2{font-size:1.125rem}}
@media(max-width:480px){.brand strong{font-size:1.3125rem}.primary-menu>li>a,.primary-menu>li>.submenu-toggle{font-size:0.875rem}.featured-copy h2{font-size:1.4375rem}}
@media(max-width:360px){.news .section-heading,.schools .section-heading{flex-wrap:wrap;row-gap:6px}}
