:root{
  --green:#2e8b2f;
  --green-dark:#1f5f20;
  --yellow:#f4d300;
  --white:#ffffff;

  --bg:#f6f9f6;
  --text:#0f1a10;
  --muted:#4c5b4e;

  --card:#ffffff;
  --border:rgba(15,26,16,.12);
  --shadow:0 14px 30px rgba(0,0,0,.10);

  --radius:16px;
  --max:1100px;
  --focus:0 0 0 4px rgba(244,211,0,.45);

 
  --font-scale: 1;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: calc(16px * var(--font-scale));
  color:var(--text);
  background: linear-gradient(180deg, #eef6ee 0%, var(--bg) 35%, #fff 100%);
}

a{color:inherit}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline:none;
  box-shadow:var(--focus);
  border-radius:10px;
}

.container{max-width:var(--max); margin:0 auto; padding:0 16px}


.topbar{
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  color:var(--white);
  border-bottom: 4px solid var(--yellow);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.logo{
  width:64px; height:64px;
  display:block;
  border-radius:14px;
  background: rgba(255,255,255,.12);
  padding:6px;
}

.brand{
  display:flex; flex-direction:column; gap:2px;
  min-width:0;
}

.brand h1{
  font-size:20px; margin:0; line-height:1.2;
  letter-spacing:.2px;
}

.brand p{
  margin:0;
  font-size:13px;
  opacity:.9;
}


.a11y-panel{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.a11y-btn{
  background: rgba(255,255,255,.14);
  color:#fff;
  border:2px solid rgba(244,211,0,.95);
  border-radius:999px;
  padding:6px 12px;
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  line-height:1;
}
.poster-wrap{
  display: block;
}

.a11y-btn:hover{
  background: var(--yellow);
  color:#000;
}


.nav{
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
}

.menu{
  display:flex; gap:8px; flex-wrap:wrap;
}

.menu a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:600;
  color:var(--green-dark);
}

.menu a:hover{
  background:#f2fbf2;
  border-color: rgba(46,139,47,.20);
}

.menu a[aria-current="page"]{
  background: rgba(244,211,0,.25);
  border-color: rgba(244,211,0,.55);
  color:#122214;
}


.main{ padding:18px 0 28px; }

.grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:16px;
}

@media (max-width: 920px){
  .grid{grid-template-columns: 1fr}
}


.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.card-header{ padding:14px 14px 0 14px; }

.card-title{
  margin:0;
  font-size:16px;
  color:var(--green-dark);
  font-weight:800;
}

.card-body{ padding:14px; }


.gov-header{
  margin: 16px 0;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.gov-header img{
  max-width:100%;
  height:auto;
  display:block;
}


.news-list{display:flex; flex-direction:column; gap:12px}

.news-item{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: #fbfffb;
}

.news-thumb{
  width:92px; height:68px;
  border-radius:12px;
  border:1px solid rgba(46,139,47,.18);
  overflow:hidden;
  background: linear-gradient(135deg, rgba(46,139,47,.18), rgba(244,211,0,.18));
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}

.news-thumb img{width:100%; height:100%; object-fit:cover}

.news-meta{
  display:flex; flex-wrap:wrap; gap:8px;
  font-size:12px; color:var(--muted);
}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(46,139,47,.10);
  border:1px solid rgba(46,139,47,.18);
}

.news-title{
  margin:6px 0 6px 0;
  font-size:15px;
}

.news-desc{
  margin:0;
  color:var(--muted);
  line-height:1.35;
  font-size:13px;
}


.news-actions{ margin-top:12px; }
.more-btn{ text-decoration:none; display:inline-block; font-weight:900; }


.pager{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; margin-top:14px;
}

.pager .pages{
  display:flex; flex-wrap:wrap; gap:6px;
}

.btn{
  border:1px solid rgba(46,139,47,.22);
  background:#fff;
  padding:8px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
  color:var(--green-dark);
}

.btn:hover{background:#f2fbf2}
.btn[disabled]{opacity:.55; cursor:not-allowed}
.page-btn{ min-width:40px; }

.page-btn.active{
  background: rgba(244,211,0,.25);
  border-color: rgba(244,211,0,.65);
}


.sidebar-stack{display:flex; flex-direction:column; gap:16px}


.calendar-top{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
}

.cal-title{
  font-weight:900;
  color:var(--green-dark);
}

.cal-grid{
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:6px;
}

.cal-dow{
  font-size:11px;
  color:var(--muted);
  text-align:center;
  padding:6px 0;
}

.cal-day{
  text-align:center;
  padding:10px 0;
  border-radius:12px;
  border:1px solid rgba(15,26,16,.10);
  background:#fff;
  font-weight:800;
  user-select:none;
}

.cal-day.muted{
  opacity:.45;
  background:#f7faf7;
}

.cal-day.today{
  border-color: rgba(244,211,0,.85);
  background: rgba(244,211,0,.28);
}

.cal-day:hover{
  background:#f2fbf2;
}


.links{
  display:flex; flex-direction:column; gap:8px;
}

.link{
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(46,139,47,.22);
  background:#fff;
  font-weight:800;
  color:var(--green-dark);
}

.link:hover{background:#f2fbf2}


.footer{
  margin-top:18px;
  color:var(--muted);
  font-size:12px;
  padding:14px 0 30px;
}

.hr{
  height:1px;
  background:var(--border);
  border:0;
  margin:16px 0;
}


.doc{ line-height:1.6; color:#162217; }
.doc h2{margin:0 0 8px 0; color:var(--green-dark)}
.doc h3{margin:18px 0 6px 0; color:#173019}
.doc p{margin:10px 0}
.doc .spacer{height:12px}
.doc ul{margin:8px 0 8px 18px}
.doc li{margin:6px 0}

.doc .callout{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(244,211,0,.60);
  background: rgba(244,211,0,.18);
}

.breadcrumbs{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
}

.breadcrumbs a{
  color:var(--green-dark);
  text-decoration:none;
  font-weight:700;
}

.breadcrumbs a:hover{ text-decoration:underline; }

.breadcrumbs span{ margin:0 6px; }


body.high-contrast{
  background:#000 !important;
  color:#fff !important;
  font-size: calc(16px * var(--font-scale)) !important; 
}

body.high-contrast a{
  color:#ffeb3b !important;
  text-decoration:underline !important;
  font-weight:900;
}

body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4{
  color:#ffeb3b !important;
  font-weight:900;
}


body.high-contrast .doc,
body.high-contrast .doc p,
body.high-contrast .doc li,
body.high-contrast .doc ul,
body.high-contrast .doc ol{
  color:#fff !important;
}

body.high-contrast .doc .callout{
  background:#000 !important;
  color:#fff !important;
  outline:3px solid #ffeb3b !important;
  outline-offset:-3px;
  border:none !important;
}


body.high-contrast .topbar,
body.high-contrast .nav,
body.high-contrast .card,
body.high-contrast .news-item,
body.high-contrast .footer,
body.high-contrast .gov-header{
  background:#000 !important;
  outline:3px solid #ffeb3b !important;
  outline-offset:-3px;
  border:none !important;
  box-shadow:none !important;
}


body.high-contrast .menu a{
  color:#fff !important;
  border:1px solid transparent !important;
}

body.high-contrast .menu a[aria-current="page"]{
  background:#ffeb3b !important;
  color:#000 !important;
}


body.high-contrast .badge{
  background:#000 !important;
  color:#ffeb3b !important;
  outline:2px solid #ffeb3b !important;
  outline-offset:-2px;
  border:none !important;
  font-weight:900;
}


body.high-contrast .btn,
body.high-contrast .a11y-btn{
  background:#000 !important;
  color:#fff !important;
  outline:3px solid #ffeb3b !important;
  outline-offset:-3px;
  border:none !important;
  font-weight:900;
}


body.high-contrast .cal-title{ color:#ffeb3b !important; }
body.high-contrast .cal-dow{ color:#fff !important; font-weight:800; }
body.high-contrast .cal-grid{ gap:10px; }

body.high-contrast .cal-day{
  background:#000 !important;
  color:#fff !important;
  outline:3px solid #ffeb3b !important;
  outline-offset:-3px;
  border:none !important;
  border-radius:12px;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

body.high-contrast .cal-day.muted{ opacity:.35; }

body.high-contrast .cal-day.today{
  background:#ffeb3b !important;
  color:#000 !important;
  font-weight:900;
}


body.high-contrast #calPrev,
body.high-contrast #calNext{
  background:#000 !important;
  color:#fff !important;
  outline:3px solid #ffeb3b !important;
  outline-offset:-3px;
  border:none !important;
  border-radius:12px !important;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}


body.high-contrast .links .link{
  background:#000 !important;
  color:#ffeb3b !important;
  outline:3px solid #ffeb3b !important;
  outline-offset:-3px;
  border:none !important;
  border-radius:12px !important;
  padding:12px 14px !important;
  text-decoration:underline !important;
  font-weight:900 !important;
}

body.high-contrast .links .link:hover{
  background:#ffeb3b !important;
  color:#000 !important;
}


body.high-contrast :focus{
  outline:4px solid #ffeb3b !important;
  outline-offset:2px;
}
body.high-contrast .news-item,
body.high-contrast .news-title,
body.high-contrast .news-desc,
body.high-contrast .news-meta,
body.high-contrast .news-meta span{
  color:#ffffff !important;
}


body.high-contrast .news-meta .badge{
  color:#ffffff !important;
  background:#000 !important;
  border:2px solid #ffeb3b !important;
}

body.high-contrast .more-btn{
  color:#ffffff !important;
  background:#000 !important;
  border:3px solid #ffeb3b !important;
  text-decoration:underline;
  font-weight:900;
}


body.high-contrast .links .link{
  color:#ffffff !important;          
  background:#000 !important;
  border:3px solid #ffeb3b !important;
  font-weight:900;
  text-decoration:underline;
}


body.high-contrast .links .link:hover{
  background:#ffeb3b !important;
  color:#000 !important;
}


body.high-contrast .pager .btn,
body.high-contrast .page-btn{
  color:#ffffff !important;
  background:#000 !important;
  border:3px solid #ffeb3b !important;
  font-weight:900;
}

body.high-contrast .page-btn.active{
  background:#ffeb3b !important;
  color:#000 !important;
}
body.high-contrast .news-title,
body.high-contrast .news-desc,
body.high-contrast .news-item p{
  color:#ffffff !important;
}


body.high-contrast .news-meta,
body.high-contrast .badge{
  color:#ffeb3b !important;
}

/* Przycisk „Więcej” */
body.high-contrast .more-btn{
  color:#ffffff !important;
  border-color:#ffeb3b !important;
}


body.high-contrast .links .link{
  background:#000 !important;
  color:#ffffff !important;              
  border:3px solid #ffeb3b !important;
  font-weight:900;
  text-decoration:underline;
}

body.high-contrast .links .link:hover{
  background:#ffeb3b !important;
  color:#000 !important;
}


body.high-contrast .footer,
body.high-contrast .footer div{
  color:#ffffff !important;
}


body.high-contrast .footer .hr{
  background:#ffeb3b !important;
}


body.high-contrast *{
  text-shadow:none !important;
}

.eu-banner {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.eu-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 10px 0;
}