:root {
  --pc-text: #24312f;
  --pc-muted: #687874;
  --pc-green: #4f8f6a;
  --pc-green-dark: #326449;
  --pc-yellow: #f2b72d;
  --pc-cream: #fff8e8;
  --pc-paper: #fffdf7;
  --pc-border: rgba(36, 49, 47, .12);
  --pc-shadow: 0 18px 45px rgba(36, 49, 47, .10);
  --pc-radius: 22px;
  --pc-width: 1180px;
  --pc-shell-width: 1400px;
  --pc-shell-gutter: 48px;
  --pc-shell-gutter-mobile: 28px;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-heading: "Trebuchet MS", "Segoe UI", system-ui, Arial, sans-serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--pc-text);
  font-family: var(--font-body);
  line-height: 1.65;
  background: #fbf7ec;
}
a { color: var(--pc-green-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { display: block; max-width: 100%; height: auto; }
.site-container { width: min(var(--pc-width), calc(100% - 32px)); margin: 0 auto; }
.site-shell { width: min(var(--pc-shell-width), calc(100% - var(--pc-shell-gutter))); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* 1.6.76: dostępny link pomijający rozbudowany nagłówek. */
.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  margin: 0;
  padding: .75rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #111;
  background: #fff;
  border: 3px solid #111;
  border-radius: .35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .22);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

#main-content:focus {
  outline: none;
}

.entry-content {
  color: #2f3d3b;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, .98rem + .18vw, 1.125rem);
  font-weight: 500;
  line-height: 1.76;
}

.entry-content p {
  margin: 0 0 1.45em;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.65em 0 .62em;
  color: var(--pc-green-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.entry-content h2 {
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.3rem);
}

.entry-content h3 {
  font-size: clamp(1.45rem, 1.25rem + .75vw, 1.85rem);
}

.entry-content h4 {
  font-size: clamp(1.22rem, 1.12rem + .4vw, 1.45rem);
}

.entry-content h5 {
  font-size: 1.12rem;
}

.entry-content h6 {
  font-size: 1rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.45em;
  padding-left: 1.45em;
}

.entry-content li {
  margin-bottom: .48em;
  padding-left: .18em;
}

.entry-content li::marker {
  color: var(--pc-green);
  font-weight: 900;
}

.entry-content a {
  color: var(--pc-green-dark);
  font-weight: 700;
  text-decoration-thickness: .09em;
  text-underline-offset: .2em;
}

.entry-content a:hover,
.entry-content a:focus-visible {
  color: #a87b08;
}

.entry-content strong,
.entry-content b {
  color: #24312f;
  font-weight: 800;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-left: 5px solid var(--pc-yellow);
  border-radius: 0 18px 18px 0;
  background: #fff9e9;
  color: #33433f;
  font-size: 1.06em;
}

.entry-content blockquote > :last-child {
  margin-bottom: 0;
}

.entry-content hr {
  height: 1px;
  margin: 2.2em 0;
  border: 0;
  background: var(--pc-border);
}

.entry-content table {
  width: 100%;
  margin: 1.8em 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--pc-border);
  border-radius: 16px;
  background: #fff;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--pc-border);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: #fff0bd;
  color: #24312f;
  font-family: var(--font-ui);
  font-weight: 800;
}

.entry-content tr:last-child td {
  border-bottom: 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
  margin-top: 8px;
  color: var(--pc-muted);
  font-size: .9rem;
  line-height: 1.5;
  text-align: center;
}
.entry-title { margin: 0 0 .4em; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--pc-muted); font-size: .94rem; font-weight: 700; }
.read-more, .back-to-news { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 9px 18px 8px; border: 1px solid #e2ad24; border-bottom-width: 3px; border-radius: 14px; color: #173e32; background: linear-gradient(180deg, #ffdc72 0%, #f7c43f 100%); font-weight: 800; line-height: 1; text-decoration: none; box-shadow: 0 8px 18px rgba(222, 164, 24, .20); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.read-more:hover, .read-more:focus-visible, .back-to-news:hover, .back-to-news:focus-visible { transform: translateY(-2px); color: #102f26; background: linear-gradient(180deg, #ffe58d 0%, #f8c640 100%); text-decoration: none; box-shadow: 0 12px 25px rgba(222, 164, 24, .28); }
.read-more:active, .back-to-news:active { transform: translateY(1px); }


/* 1.6.75: zabezpieczenie pełnej szerokości headera na single */
body.single,
body.single-post {
  overflow-x: hidden;
}


/* 1.6.75: ujednolicenie fontów — nowoczesny, szkolny charakter */
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title-line,
.spmalaslonca2026-feature-widget__heading,
.school-home-section-heading h2,
.school-home-tile__title {
  font-family: var(--font-heading);
}

button,
input,
select,
textarea,
.menu-item a,
.header-action__label,
.school-home__button,
.school-home-tile__action,
.spmalaslonca2026-feature-widget__more,
.read-more,
.back-to-news {
  font-family: var(--font-ui);
}


/* v1.6.87 centered single title */
.single-post .entry-header{
    text-align:center;
}
.single-post .entry-title{
    margin-left:auto;
    margin-right:auto;
    text-align:center;
    max-width:24ch;
}
.single-post .entry-meta{
    justify-content:center;
    text-align:center;
}
