/*
 * Typografia motywu spmalaslonca2026.
 * Spójne, czytelne nagłówki i interfejs bez nadmiernie ściśniętych liter.
 */

:root {
  --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;
}

body {
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: 0;
}

p,
li,
dd,
dt,
td,
th,
input,
select,
textarea,
button {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.site-title-line,
.archive-header h1,
.school-hero__card h1,
.school-home-section-heading h2,
.school-home-tile__title,
.spmalaslonca2026-feature-widget__heading,
.spmalaslonca2026-feature-widget__title,
.widget-title,
.contact-panel h2,
.spm-post-gallery h2,
.single-post-nav__title {
  font-family: var(--font-heading);
  font-weight: 700;
  text-wrap: normal;
}

h1,
.entry-title,
.archive-header h1,
.school-hero__card h1 {
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h2,
.school-home-section-heading h2,
.spmalaslonca2026-feature-widget__heading,
.contact-panel h2,
.spm-post-gallery h2 {
  line-height: 1.18;
  letter-spacing: -0.005em;
}

h3,
.school-home-tile__title,
.spmalaslonca2026-feature-widget__title,
.single-post-nav__title {
  line-height: 1.24;
  letter-spacing: 0;
}

h4,
h5,
h6,
.widget-title {
  line-height: 1.28;
  letter-spacing: 0;
}

.entry-content {
  font-weight: 400;
  line-height: 1.76;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-weight: 700;
}

.entry-content h2 {
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.entry-content h3 {
  line-height: 1.24;
  letter-spacing: 0;
}

.entry-content h4,
.entry-content h5 {
  line-height: 1.3;
  letter-spacing: 0;
}

.entry-content h6 {
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.single-entry-hero .entry-title {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.site-title-line {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.school-hero__card h1 {
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.school-home-section-heading h2 {
  line-height: 1.16;
}

.menu-item a,
.header-action__label,
.school-home__button,
.school-home-tile__action,
.spmalaslonca2026-feature-widget__more,
.read-more,
.back-to-news,
.entry-categories a,
.post-meta,
.single-post-nav__label,
.contact-item__label,
.contact-hours__row dd {
  font-family: var(--font-ui);
  font-weight: 700;
}

.single-post-nav__label,
.contact-item__label {
  letter-spacing: 0.045em;
}

.entry-content strong,
.entry-content b,
.entry-content th {
  font-weight: 700;
}

@media (max-width: 760px) {
  .single-entry-hero .entry-title,
  .school-hero__card h1 {
    line-height: 1.14;
    letter-spacing: -0.005em;
  }
}


/* 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;
}

/* 1.6.88: globalny system nagłówków H1/H2. */
h1,
.entry-title,
.archive-header h1,
.school-hero__card h1,
.editor-styles-wrapper h1,
.editor-styles-wrapper .wp-block-post-title {
  color: #27423d;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 3.7vw, 3.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.006em;
}

h2,
.entry-content h2,
.school-home-section-heading h2,
.contact-panel h2,
.spm-post-gallery h2,
.editor-styles-wrapper h2 {
  color: #27423d;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 2.65vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.004em;
}

/* Tytuł pojedynczego wpisu: pełna szerokość układu, ale czytelne dwie linie. */
.single-post .single-entry-hero--full {
  text-align: center;
}

.single-post .single-entry-hero--full .entry-title {
  width: 100%;
  max-width: 30ch;
  margin-inline: auto;
  color: #27423d;
  font-size: clamp(2.4rem, 3.75vw, 3.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.006em;
  text-align: center;
  text-wrap: normal;
}

.single-post .single-entry-hero--full .single-entry-hero__meta-row {
  width: 100%;
  justify-content: center;
  margin-top: clamp(20px, 2vw, 26px);
  text-align: center;
}

.single-post .single-entry-hero--full .post-meta,
.single-post .single-entry-hero--full .entry-categories--top {
  justify-content: center;
  text-align: center;
}

@media (max-width: 760px) {
  h1,
  .entry-title,
  .archive-header h1,
  .school-hero__card h1,
  .editor-styles-wrapper h1,
  .editor-styles-wrapper .wp-block-post-title,
  .single-post .single-entry-hero--full .entry-title {
    font-size: clamp(2.05rem, 9vw, 2.8rem);
    line-height: 1.14;
    letter-spacing: 0;
  }

  h2,
  .entry-content h2,
  .school-home-section-heading h2,
  .contact-panel h2,
  .spm-post-gallery h2,
  .editor-styles-wrapper h2 {
    font-size: clamp(1.6rem, 7vw, 2.05rem);
  }
}

/* 1.6.89: końcowy rytm typografii pojedynczego wpisu. */
.single-post .single-entry-hero--full .entry-title {
  max-width: 30ch;
  font-size: clamp(2.3rem, 3.55vw, 3.38rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.004em;
}

.single-post .single-entry-hero--full .single-entry-hero__meta-row {
  margin-top: clamp(16px, 1.5vw, 20px);
}

.single-post--body-card .entry-content {
  line-height: 1.82;
}

.single-post--body-card .entry-content > p,
.single-post--body-card .entry-content > h2,
.single-post--body-card .entry-content > h3,
.single-post--body-card .entry-content > h4,
.single-post--body-card .entry-content > h5,
.single-post--body-card .entry-content > h6,
.single-post--body-card .entry-content > ul,
.single-post--body-card .entry-content > ol,
.single-post--body-card .entry-content > blockquote,
.single-post--body-card .entry-content > table,
.single-post--body-card .entry-content > .wp-block-table {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.single-post--body-card .entry-content > p {
  margin-bottom: 1.7em;
}

.single-post--body-card .entry-content > .wp-block-video,
.single-post--body-card .entry-content > video,
.single-post--body-card .entry-content > .wp-block-embed {
  margin-top: 32px;
}

@media (max-width: 760px) {
  .single-post .single-entry-hero--full .entry-title {
    max-width: 22ch;
    font-size: clamp(2rem, 8.6vw, 2.7rem);
    line-height: 1.15;
  }

  .single-post--body-card .entry-content {
    line-height: 1.76;
  }
}


/* 1.6.91: naturalne łamanie tytułów i mocniejsza, spójna typografia H1/H2. */
h1,
.entry-title,
.archive-header h1,
.school-hero__card h1,
.editor-styles-wrapper h1,
.editor-styles-wrapper .wp-block-post-title {
  font-weight: 900;
  text-wrap: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h2,
.entry-content h2,
.school-home-section-heading h2,
.contact-panel h2,
.spm-post-gallery h2,
.editor-styles-wrapper h2 {
  font-weight: 900;
  text-wrap: normal;
}

.single-post .single-entry-hero--full .entry-title {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  font-weight: 900;
  text-align: center;
  text-wrap: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.single-post .single-entry-hero--full .single-entry-hero__meta-row {
  justify-content: center;
}

.single-post .single-entry-hero--full .post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.single-post .single-entry-hero--full .posted-on {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff0bd;
  color: var(--pc-text);
  font-weight: 700;
  line-height: 1.1;
}

.single-post .single-entry-hero--full .posted-on::before {
  content: "\1F4C5";
  margin-right: 7px;
  font-size: .95em;
  line-height: 1;
}

@media (max-width: 760px) {
  .single-post .single-entry-hero--full .entry-title {
    max-width: 100%;
  }
}

/* 1.6.92: pełna szerokość bez dodatkowego wcięcia dla bezpośredniej treści wpisu. */
.single-post--body-card .entry-content > p,
.single-post--body-card .entry-content > h2,
.single-post--body-card .entry-content > h3,
.single-post--body-card .entry-content > h4,
.single-post--body-card .entry-content > h5,
.single-post--body-card .entry-content > h6,
.single-post--body-card .entry-content > ul,
.single-post--body-card .entry-content > ol,
.single-post--body-card .entry-content > blockquote,
.single-post--body-card .entry-content > table,
.single-post--body-card .entry-content > .wp-block-table {
  max-width: none;
  margin-inline: 0;
}

/* 1.6.93: bardziej przyjazny, szkolny tytuł pojedynczego wpisu. */
.single-post .single-entry-hero--full .entry-title {
  font-family: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-weight: 700;
  letter-spacing: -0.018em;
}
