/*
Theme Name: O Płodności
Theme URI: https://oplodnosci.pl/
Author: Natalia Suszczewicz
Description: Lekki motyw redakcyjny dla portalu wiedzy O Płodności.
Version: 0.7.0
Text Domain: o-plodnosci
*/

:root {
  --opl-ink: #172f29;
  --opl-forest: #193e33;
  --opl-forest-deep: #102e27;
  --opl-cream: #f3efe4;
  --opl-paper: #faf7ef;
  --opl-orange: #d56e42;
  --opl-yellow: #e6b760;
  --opl-mint: #c7e4cd;
  --opl-line: rgba(23, 47, 41, 0.2);
  --opl-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --opl-sans: "Avenir Next", Avenir, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--opl-ink);
  background: var(--opl-cream);
  font-family: var(--opl-sans);
  font-size: 16px;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.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;
}
.screen-reader-text:focus {
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  color: var(--opl-forest);
  background: white;
}

.page-shell {
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  color: var(--opl-cream);
  background: var(--opl-forest);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-header__inner {
	position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: 230px 1fr 44px;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--opl-orange);
  font-family: var(--opl-serif);
  font-size: 23px;
  font-style: italic;
  line-height: 1;
}
.brand__copy { display: flex; flex-direction: column; gap: 2px; }
.brand strong { font-size: 12px; letter-spacing: 0.1em; }
.brand small { font-size: 11px; letter-spacing: 0.11em; opacity: 0.68; }
.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-nav li { position: relative; }
.site-nav a {
  display: inline-block;
  padding: 8px 0 6px;
  border-bottom: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
}
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: currentColor; }
.nav-chevron { display: inline-block; margin-left: 4px; color: var(--opl-yellow); font-size: 13px; transition: transform .18s ease; }
.menu-item-has-children:hover .nav-chevron,
.menu-item-has-children:focus-within .nav-chevron { transform: rotate(180deg); }
.knowledge-menu {
  position: absolute;
  top: calc(100% + 24px);
  left: 50%;
  width: min(900px, calc(100vw - 72px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 28px;
  color: var(--opl-ink);
  background: var(--opl-paper);
  border: 1px solid rgba(23,47,41,.12);
  box-shadow: 0 28px 70px rgba(10,31,25,.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-43%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.knowledge-menu::before {
  content: "";
  position: absolute;
  inset: -25px 0 auto;
  height: 25px;
}
.menu-mega:hover .knowledge-menu,
.menu-mega:focus-within .knowledge-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-43%, 0);
}
.knowledge-menu > div { padding: 2px 26px 4px; border-right: 1px solid rgba(23,47,41,.14); }
.knowledge-menu > div:first-child { padding-left: 6px; }
.knowledge-menu > div:last-child { padding-right: 6px; border-right: 0; }
.knowledge-menu a {
  display: block;
  padding: 7px 0;
  border: 0;
  color: #536760;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.knowledge-menu a:hover, .knowledge-menu a:focus-visible { color: var(--opl-orange); border: 0; }
.knowledge-menu .knowledge-menu__title {
  margin-bottom: 8px;
  color: var(--opl-ink);
  font-family: var(--opl-serif);
  font-size: 24px;
  font-weight: 600;
}
.menu-webinars .webinar-menu { width: min(430px, calc(100vw - 72px)); grid-template-columns: 1fr; transform: translate(-50%, 8px); }
.menu-webinars:hover .webinar-menu, .menu-webinars:focus-within .webinar-menu { transform: translate(-50%, 0); }
.menu-webinars .webinar-menu > div { padding: 2px 6px 4px; border-right: 0; }
.knowledge-menu .knowledge-menu__footer-link { margin-top: 13px; padding-top: 15px; color: var(--opl-orange); border-top: 1px solid rgba(23,47,41,.14); font-weight: 800; }
.webinar-menu__note { display: block; margin-top: 17px; padding-top: 16px; color: #61736d; border-top: 1px solid rgba(23,47,41,.14); font-size: 11px; font-weight: 700; line-height: 1.5; }
.header-search {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 18px;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: white;
  background: transparent;
}
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; }

.hero {
  color: var(--opl-cream);
  background: var(--opl-forest);
}
.hero__inner {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 72px;
  padding-block: 64px 76px;
}
.hero__copy { position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--opl-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow--warm { color: var(--opl-yellow); }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--opl-serif);
  font-size: clamp(62px, 6.2vw, 98px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .84;
}
.hero h1 em { color: var(--opl-orange); font-weight: 500; }
.hero__lead {
  max-width: 650px;
  margin: 34px 0 0;
  color: rgba(243, 239, 228, .74);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button--cream { color: var(--opl-ink); background: var(--opl-cream); }
.button--ghost { color: var(--opl-cream); background: transparent; border-color: rgba(255,255,255,.35); }
.button--outline { color: var(--opl-ink); background: transparent; border-color: rgba(23,47,41,.4); }
.credential-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(243,239,228,.55);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.credential-line span::before { content: "•"; margin-right: 8px; color: var(--opl-orange); }
.hero__portrait {
  position: relative;
  width: min(100%, 470px);
  justify-self: end;
  padding: 32px 36px 0;
}
.hero__portrait figure {
  position: relative;
  z-index: 2;
  aspect-ratio: .79;
  margin: 0;
  overflow: hidden;
  border-radius: 220px 220px 16px 16px;
  filter: saturate(.8) contrast(.96);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.orbit { position: absolute; border: 1px solid rgba(230,183,96,.35); border-radius: 50%; }
.orbit--one { inset: 6px 7px 22px 5px; transform: rotate(-8deg); }
.orbit--two { inset: 35px -10px 60px 50px; transform: rotate(13deg); }
.portrait-note {
  position: absolute;
  z-index: 3;
  right: -18px;
  bottom: 26px;
  width: 224px;
  display: block;
  padding: 22px;
  color: var(--opl-ink);
  background: var(--opl-yellow);
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.portrait-note small { display: block; margin-bottom: 12px; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.portrait-note strong { display: block; white-space: nowrap; font-family: var(--opl-serif); font-size: 28px; font-weight: 600; line-height: .9; }
.portrait-note span { float: right; margin-top: 12px; }
.portrait-note:hover, .portrait-note:focus-visible { background: #edc36f; outline: none; }

.intro {
  display: grid;
  grid-template-columns: minmax(70px,.4fr) minmax(0,1fr);
  gap: 60px;
  padding-block: 110px 78px;
}
.section-index { margin: 6px 0 0; color: var(--opl-orange); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.intro__copy { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, .55fr); align-items: end; gap: 44px; }
.intro__copy h2 { max-width: 900px; }
.intro h2, .section-heading h2, .profile-strip h2, .archive-header h1 {
  margin: 0;
  font-family: var(--opl-serif);
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: .88;
}
.intro__copy p { margin: 0; color: #52645e; font-size: 17px; line-height: 1.75; }
.topic-grid { display: grid; grid-template-columns: repeat(3,1fr); padding-bottom: 120px; }
.topic-card {
  position: relative;
  min-height: 290px;
  padding: 28px 66px 34px 0;
  border-top: 1px solid #a8b1aa;
  border-right: 1px solid #c5cbc5;
}
.topic-card:nth-child(3n+2), .topic-card:nth-child(3n+3) { padding-left: 32px; }
.topic-card:nth-child(n+4) { border-bottom: 1px solid #c5cbc5; }
.topic-card h3 { max-width: 300px; margin: 18px 0 12px; font-family: var(--opl-serif); font-size: 29px; font-weight: 600; line-height: .98; }
.topic-card p { max-width: 315px; margin: 0; color: #64736e; font-size: 15px; line-height: 1.65; }
.topic-card__arrow { position: absolute; right: 28px; bottom: 28px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #8f9c96; border-radius: 50%; }

.profile-strip { color: var(--opl-cream); background: var(--opl-forest-deep); }
.profile-strip__inner { display: grid; grid-template-columns: .74fr 1.26fr; gap: clamp(52px,8vw,120px); align-items: center; padding-block: 104px; }
.profile-strip__photo { position: relative; max-width: 450px; }
.profile-strip__photo::before { content: ""; position: absolute; inset: -18px 34px 34px -18px; border: 1px solid rgba(230,183,96,.35); }
.profile-strip__photo img { position: relative; z-index: 1; aspect-ratio: .86; width: 100%; object-fit: cover; object-position: 68% 24%; }
.profile-strip h2 { font-size: clamp(48px,5.2vw,76px); }
.profile-strip__copy > p:not(.eyebrow) { max-width: 650px; color: rgba(243,239,228,.76); font-size: 17px; line-height: 1.8; }
.profile-strip .text-link { color: var(--opl-mint); }

.lectures { padding-block: 105px 120px; background: #e6dfd0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading h2 { font-size: clamp(44px,5vw,72px); }
.lecture-grid, .post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 50px; }
.lecture-card { overflow: hidden; background: var(--opl-paper); }
.lecture-card__visual {
  position: relative;
  min-height: 235px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg,#75958f,#203d37);
}
.lecture-card:nth-child(3n+1) .lecture-card__visual { background: linear-gradient(135deg,#d9865f,#6d342f); }
.lecture-card:nth-child(3n+3) .lecture-card__visual { background: linear-gradient(145deg,#c6a25d,#6e572e); }
.lecture-card__visual::before { content: ""; position: absolute; width: 68%; aspect-ratio: 1; border: 22px solid rgba(255,255,255,.12); border-radius: 50%; }
.lecture-card__visual::after { content: ""; position: absolute; width: 88%; height: 52%; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; transform: rotate(-16deg); }
.lecture-card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.lecture-card__visual.has-thumbnail::before { z-index: 1; inset: 0; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; background: linear-gradient(180deg,rgba(16,46,39,.05),rgba(16,46,39,.52)); }
.lecture-card__visual.has-thumbnail::after { display: none; }
.lecture-card__visual.has-thumbnail:hover img { transform: scale(1.025); }
.lecture-card__visual.has-portrait img { object-fit: contain; background: var(--opl-forest-deep); }
.play-button { position: relative; z-index: 2; display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(255,255,255,.13); backdrop-filter: blur(8px); }
.play-button::after { content: ""; width: 0; height: 0; margin-left: 4px; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid white; }
.lecture-card__body { padding: 26px 26px 30px; }
.lecture-card__body small, .post-card small { color: var(--opl-orange); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lecture-card h3 { min-height: 58px; margin: 12px 0 25px; font-family: var(--opl-serif); font-size: 24px; font-weight: 600; line-height: 1.05; }
.text-link { display: inline-block; padding: 0 0 5px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 800; }

.latest-posts { padding-block: 104px 120px; background: var(--opl-cream); }
.latest-posts__layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(46px, 7vw, 96px); align-items: start; margin-top: 58px; }
.news-column__intro { max-width: 530px; margin: 0 0 30px; color: #64736e; font-size: 13px; line-height: 1.7; }
.news-list { padding: 0; margin: 0; border-bottom: 1px solid var(--opl-line); list-style: none; counter-reset: news; }
.news-list li { border-top: 1px solid var(--opl-line); counter-increment: news; }
.news-list a { display: grid; grid-template-columns: 92px minmax(0, 1fr) 28px; gap: 22px; align-items: center; min-height: 112px; padding: 18px 0; transition: color .18s ease, padding .18s ease; }
.news-list a:hover, .news-list a:focus-visible { padding-left: 12px; color: var(--opl-orange); outline: none; }
.news-list time { color: #77857f; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.news-list strong { font-family: var(--opl-serif); font-size: clamp(23px, 2.3vw, 31px); font-weight: 600; line-height: 1.04; }
.news-list a > span { justify-self: end; color: var(--opl-orange); font-size: 20px; }
.news-list__empty { padding: 32px; border: 1px solid var(--opl-line); background: rgba(255,255,255,.25); }
.news-list__empty p { margin: 0 0 24px; color: #52645e; font-family: var(--opl-serif); font-size: 27px; line-height: 1.15; }
.social-feed { min-width: 0; padding: 30px; background: #e6dfd0; border: 1px solid rgba(23,47,41,.12); }
.social-feed__heading h3 { margin: 0 0 28px; font-family: var(--opl-serif); font-size: 35px; font-weight: 600; line-height: .98; }
.facebook-feed { width: 100%; overflow: hidden; background: white; }
.facebook-feed iframe { display: block; width: 100%; max-width: 500px; height: 580px; border: 0; overflow: hidden; }
.social-feed__links { display: grid; gap: 20px; margin-top: 24px; }
.social-feed__links > .text-link { width: max-content; max-width: 100%; }
.instagram-profile-card { display: grid; gap: 6px; padding: 22px 24px; color: var(--opl-cream); background: var(--opl-forest); transition: transform .18s ease, background .18s ease; }
.instagram-profile-card:hover, .instagram-profile-card:focus-visible { background: var(--opl-forest-deep); transform: translateY(-2px); outline: none; }
.instagram-profile-card span { color: var(--opl-yellow); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.instagram-profile-card strong { font-family: var(--opl-serif); font-size: 25px; font-weight: 600; }
.instagram-profile-card small { color: rgba(243,239,228,.66); font-size: 10px; }
.post-card { padding: 30px 32px 34px; border: 1px solid var(--opl-line); background: rgba(255,255,255,.23); }
.post-card h3 { margin: 36px 0 14px; font-family: var(--opl-serif); font-size: 29px; line-height: 1.02; }
.post-card p { min-height: 70px; margin: 0 0 24px; color: #64736e; font-size: 15px; line-height: 1.7; }

.site-footer { color: var(--opl-cream); background: var(--opl-forest-deep); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 36px; padding-block: 50px; }
.site-footer p, .site-footer__meta { margin: 0; color: rgba(243,239,228,.54); font-size: 9px; letter-spacing: .1em; }

.archive-main { min-height: 70vh; padding-bottom: 110px; }
.archive-header { padding-block: 88px 64px; }
.archive-header h1 { max-width: 840px; }
.entry-card { padding: 30px 0; border-top: 1px solid var(--opl-line); }
.entry-card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #77857f; font-size: 12px; font-weight: 700; }
.entry-card h2 { margin: 0 0 10px; font-family: var(--opl-serif); font-size: 34px; }
.entry-card p { max-width: 760px; color: #64736e; line-height: 1.7; }
.pagination { margin-top: 44px; }

.single-main { min-height: 70vh; }
.single-hero { padding-block: 90px 64px; }
.single-hero h1 { max-width: 980px; margin: 0; font-family: var(--opl-serif); font-size: clamp(48px,7vw,92px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.single-content { width: min(780px, calc(100% - 72px)); margin-inline: auto; padding-bottom: 110px; font-family: Georgia, serif; font-size: 18px; line-height: 1.8; }
.single-content :where(p, li, span, div) { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; }
.single-content h2, .single-content h3 { color: var(--opl-ink); font-family: var(--opl-serif); line-height: 1.05; }
.single-content a { color: var(--opl-orange); text-decoration: underline; }
.single-content img { margin: 34px auto; }
.single-content figure { max-width: 100%; margin: 38px auto; }
.single-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-family: var(--opl-sans); font-size: 14px; }
.single-content th, .single-content td { padding: 10px 12px; border: 1px solid var(--opl-line); vertical-align: top; }
.single-content blockquote { margin: 36px 0; padding: 12px 0 12px 28px; border-left: 3px solid var(--opl-yellow); color: #52645e; }
.single-hero__author { margin: 28px 0 0; color: #596c65; font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.single-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; margin: 10px 0 34px; border: 0; }
.video-embed { margin: 10px 0 40px; background: var(--opl-forest-deep); box-shadow: 0 24px 65px rgba(16,46,39,.16); }
.video-embed iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; margin: 0; border: 0; }
.video-placeholder { display: grid; place-items: center; aspect-ratio: 16/9; margin-bottom: 34px; color: white; background: linear-gradient(145deg,#75958f,#203d37); }
.video-placeholder p { font-family: var(--opl-sans); font-size: 15px; }
.video-placeholder--external { min-height: 260px; aspect-ratio: auto; padding: 34px; text-align: center; }

/* Strony wiedzy */

.page-hero {
  padding-block: 82px 88px;
  color: var(--opl-cream);
  background: var(--opl-forest);
}
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--opl-serif);
  font-size: clamp(58px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .86;
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 50px; color: rgba(243,239,228,.68); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { color: var(--opl-yellow); }
.breadcrumbs--light { margin-bottom: 42px; }
.knowledge-page__body { padding-block: 88px 120px; }
.knowledge-content { max-width: 1080px; }
.knowledge-content > p:first-child,
.legacy-intro p {
  max-width: 900px;
  margin: 0 0 60px;
  color: #40564f;
  font-family: var(--opl-serif);
  font-size: clamp(25px, 3.3vw, 40px);
  line-height: 1.12;
}
.knowledge-content > p { color: #50645d; font-size: 17px; line-height: 1.8; }
.knowledge-content > h2 { margin: 72px 0 24px; font-family: var(--opl-serif); font-size: 42px; font-weight: 600; line-height: 1; }
.knowledge-content a { color: var(--opl-orange); text-decoration: underline; text-underline-offset: 3px; }
.legacy-list { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--opl-line); }
.legacy-item { position: relative; min-height: 145px; padding: 28px 34px 30px 0; border-bottom: 1px solid var(--opl-line); }
.legacy-item:nth-child(odd) { padding-right: 44px; border-right: 1px solid var(--opl-line); }
.legacy-item:nth-child(even) { padding-left: 34px; }
.legacy-item h2 { margin: 0 0 14px; font-family: var(--opl-serif); font-size: 26px; font-weight: 600; line-height: 1.04; }
.legacy-item p { margin: 0; color: #6a7974; font-size: 13px; font-weight: 700; letter-spacing: .03em; line-height: 1.5; }
.events-list .legacy-item p { font-size: 16px; font-weight: 500; letter-spacing: 0; line-height: 1.65; }
.events-list .legacy-item p + p { margin-top: 15px; }
.events-list .legacy-item a { font-weight: 800; }
.knowledge-content--with-articles > .legacy-list { display: none; }
.imported-articles { margin-top: 66px; }
.imported-articles__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--opl-line); }
.imported-articles__heading h2 { margin: 0; font-family: var(--opl-serif); font-size: 44px; font-weight: 600; line-height: 1; }
.imported-articles__heading p { margin: 0; color: #6a7974; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.legacy-list--linked { margin-top: 0; border-top: 0; }
.legacy-item--link { display: flex; flex-direction: column; color: var(--opl-ink) !important; text-decoration: none !important; transition: color .18s ease, background .18s ease; }
.legacy-item__link-label { margin-top: auto; padding-top: 22px; color: var(--opl-orange); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-status { display: inline-flex; align-items: center; width: max-content; margin: 0 0 15px; padding: 6px 9px; color: #68532a; background: #efe0b9; font-family: var(--opl-sans); font-size: 8px; font-weight: 800; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.entry-card__meta .article-status { margin: 0; }
.legacy-item--link:hover, .legacy-item--link:focus-visible { color: var(--opl-orange) !important; background: rgba(230,183,96,.11); outline: none; }
.legacy-notice { margin: 20px 0 64px; padding: 22px 24px; color: #584a2c; background: #efe0b9; border-left: 4px solid var(--opl-yellow); font-size: 15px; line-height: 1.65; }
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 28px 0 44px; }
.region-grid span { padding: 15px 16px; border: 1px solid var(--opl-line); font-size: 14px; font-weight: 700; }
.section-directory { margin-top: 96px; padding-top: 68px; border-top: 1px solid var(--opl-line); }
.section-directory > h2 { margin: 0 0 34px; font-family: var(--opl-serif); font-size: 45px; font-weight: 600; }
.section-directory__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.section-directory__card { min-height: 120px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 24px; color: var(--opl-ink); background: #e9e2d4; transition: transform .18s ease, background .18s ease; }
.section-directory__card:hover, .section-directory__card:focus-visible { background: var(--opl-yellow); transform: translateY(-3px); outline: none; }
.section-directory__card strong { max-width: 230px; font-family: var(--opl-serif); font-size: 23px; line-height: 1; }

/* Baza lekarzy */

.doctor-database__body { padding-block: 88px 120px; }
.doctor-tools { margin: 58px 0 30px; }
.doctor-search { max-width: 680px; }
.doctor-search label { display: block; margin-bottom: 10px; color: #5d6f69; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.doctor-search input { width: 100%; min-height: 58px; padding: 0 18px; color: var(--opl-ink); background: rgba(255,255,255,.42); border: 1px solid var(--opl-line); border-radius: 0; outline: none; }
.doctor-search input:focus { border-color: var(--opl-orange); box-shadow: 0 0 0 3px rgba(213,110,66,.12); }
.doctor-regions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.doctor-region { min-height: 42px; padding: 0 16px; color: #40564f; background: transparent; border: 1px solid var(--opl-line); cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.doctor-region:hover, .doctor-region:focus-visible { border-color: var(--opl-orange); outline: none; }
.doctor-region.is-active { color: white; background: var(--opl-forest); border-color: var(--opl-forest); }
.doctor-results-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; margin: 40px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--opl-line); }
.doctor-results-bar strong { font-family: var(--opl-serif); font-size: 28px; }
.doctor-results-bar span { color: #71807b; font-size: 11px; }
.doctor-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.doctor-card { min-width: 0; padding: 28px; border: 1px solid var(--opl-line); background: rgba(255,255,255,.26); }
.doctor-card[hidden] { display: none; }
.doctor-card__region { margin: 0 0 20px; color: var(--opl-orange); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.doctor-card h2 { margin: 0 0 14px; font-family: var(--opl-serif); font-size: 29px; font-weight: 600; line-height: 1.04; overflow-wrap: anywhere; }
.doctor-card__specialization { min-height: 54px; margin: 0 0 24px; color: #50645d; font-size: 14px; line-height: 1.55; }
.doctor-card dl { margin: 0; }
.doctor-card dl > div { padding: 14px 0; border-top: 1px solid var(--opl-line); }
.doctor-card dt { margin-bottom: 6px; color: #7b8883; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.doctor-card dd { margin: 0; color: #40564f; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.doctor-card__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.doctor-card__links a { color: var(--opl-orange); font-size: 10px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.doctor-empty { margin: 40px 0; padding: 34px; background: #e9e2d4; font-family: var(--opl-serif); font-size: 26px; }

/* O mnie */

.about-page__hero { color: var(--opl-cream); background: var(--opl-forest); }
.about-page__inner { min-height: 690px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(54px,8vw,130px); padding-block: 74px 88px; }
.about-page__portrait { position: relative; max-width: 450px; padding: 28px 32px 0; }
.about-page__portrait img { position: relative; z-index: 2; aspect-ratio: .79; width: 100%; object-fit: cover; object-position: center 18%; border-radius: 220px 220px 16px 16px; }
.about-page__copy h1 { max-width: 760px; margin: 0; font-family: var(--opl-serif); font-size: clamp(58px,6.4vw,90px); font-weight: 500; letter-spacing: -.045em; line-height: .86; }
.about-page__credentials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.about-page__credentials span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.2); color: rgba(243,239,228,.76); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.about-biography { display: grid; grid-template-columns: .38fr 1fr; gap: clamp(50px,8vw,120px); padding-block: 104px 120px; }
.about-biography aside strong { display: block; max-width: 280px; color: #52645e; font-family: var(--opl-serif); font-size: 24px; line-height: 1.2; }
.about-biography__content { max-width: 800px; }
.about-biography__content p { margin: 0 0 24px; color: #465c55; font-family: Georgia, serif; font-size: 18px; line-height: 1.82; }
.about-biography__content p:first-child { color: var(--opl-ink); font-family: var(--opl-serif); font-size: 30px; line-height: 1.35; }
.about-biography__content a { color: var(--opl-orange); text-decoration: underline; text-underline-offset: 3px; }
.about-social-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 42px; }
.about-social-link { display: grid; gap: 7px; min-height: 112px; padding: 22px; color: var(--opl-cream) !important; background: var(--opl-forest); text-decoration: none !important; transition: transform .18s ease, background .18s ease; }
.about-social-link:hover, .about-social-link:focus-visible { background: var(--opl-forest-deep); transform: translateY(-3px); outline: none; }
.about-social-link span { color: var(--opl-yellow); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.about-social-link strong { align-self: end; font-family: var(--opl-serif); font-size: 21px; font-weight: 600; line-height: 1.08; }

/* Curriculum vitae */
.cv-section { padding-block: 104px 130px; background: var(--opl-paper); }
.cv-intro { display: grid; grid-template-columns: 1fr minmax(320px,.72fr); gap: 80px; align-items: end; padding-bottom: 70px; border-bottom: 1px solid var(--opl-line); }
.cv-intro h2 { margin: 0; font-family: var(--opl-serif); font-size: clamp(52px,6vw,82px); font-weight: 500; letter-spacing: -.04em; line-height: .9; }
.cv-intro > p { max-width: 610px; margin: 0; color: #50645d; font-size: 18px; line-height: 1.65; }
.cv-layout { display: grid; grid-template-columns: minmax(230px,.32fr) minmax(0,1fr); gap: clamp(54px,8vw,120px); padding-top: 68px; }
.cv-sidebar { position: relative; }
.cv-tabs { position: sticky; top: 28px; display: grid; border-top: 1px solid var(--opl-line); }
.cv-tabs button { width: 100%; padding: 14px 28px 14px 0; color: #64736e; background: transparent; border: 0; border-bottom: 1px solid var(--opl-line); text-align: left; font-size: 14px; font-weight: 700; cursor: pointer; }
.cv-tabs button::after { content: "→"; float: right; color: var(--opl-orange); opacity: 0; transform: translateX(-7px); transition: opacity .18s ease, transform .18s ease; }
.cv-tabs button[aria-selected="true"] { color: var(--opl-ink); }
.cv-tabs button[aria-selected="true"]::after { opacity: 1; transform: translateX(0); }
.cv-tabs button:focus-visible { outline: 2px solid var(--opl-orange); outline-offset: 3px; }
.cv-sidebar > img { width: 100%; aspect-ratio: .82; margin-top: 42px; object-fit: cover; object-position: 50% 25%; filter: contrast(.96); }
.cv-panels { min-width: 0; }
.cv-panel[hidden] { display: none; }
.cv-panel > h3 { margin: 0 0 46px; font-family: var(--opl-serif); font-size: clamp(42px,5vw,66px); font-weight: 500; letter-spacing: -.035em; line-height: .95; }
.cv-panel__label { margin: 0 0 26px; color: var(--opl-orange); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cv-panel__lead { margin: -25px 0 34px; color: #65756f; font-size: 17px; }
.cv-timeline { border-top: 1px solid var(--opl-line); }
.cv-timeline article { display: grid; grid-template-columns: 140px 1fr; gap: 38px; padding: 28px 0 30px; border-bottom: 1px solid var(--opl-line); }
.cv-timeline time, .cv-publications time { color: var(--opl-orange); font-size: 13px; font-weight: 800; line-height: 1.45; }
.cv-timeline h4, .cv-memberships h4 { margin: 0 0 9px; font-family: var(--opl-serif); font-size: 25px; font-weight: 600; line-height: 1.1; }
.cv-timeline p, .cv-publications p, .cv-memberships p { margin: 0; color: #536760; font-size: 16px; line-height: 1.7; }
.cv-publications { display: grid; gap: 20px; }
.cv-publications article { display: grid; grid-template-columns: 76px 1fr; gap: 24px; padding: 26px; background: #f0eadf; }
.cv-publications a, .cv-memberships a { color: var(--opl-orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cv-memberships { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cv-memberships article { min-height: 220px; padding: 30px; background: #f0eadf; }
.cv-memberships a { display: inline-block; margin-top: 20px; font-size: 13px; }
.cv-skills { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--opl-line); }
.cv-skills li { position: relative; padding: 28px 20px 28px 40px; border-bottom: 1px solid var(--opl-line); color: #455b54; font-family: var(--opl-serif); font-size: 25px; line-height: 1.25; }
.cv-skills li::before { content: "•"; position: absolute; left: 8px; color: var(--opl-orange); }

/* Tematyczne archiwum webinarów */
.archive-header__lead { max-width: 660px; margin: 28px 0 0; color: #5c6f68; font-size: 18px; line-height: 1.7; }
.free-access-note { display: inline-flex; gap: 10px; margin: 22px 0 0; padding: 10px 14px; color: #40554e; background: #e8dfca; border-left: 3px solid var(--opl-orange); font-size: 13px; line-height: 1.5; }
.free-access-note strong { color: var(--opl-forest); }
.lecture-topics { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 0 68px; }
.lecture-topics a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--opl-line); border-radius: 24px; font-size: 14px; font-weight: 700; }
.lecture-topics a:hover, .lecture-topics a:focus-visible { color: var(--opl-paper); background: var(--opl-forest); outline: none; }
.lecture-topics span { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 5px; color: var(--opl-ink); background: var(--opl-yellow); border-radius: 50%; font-size: 10px; }
.lecture-groups { padding-bottom: 120px; }
.lecture-topic-group { padding: 72px 0 26px; border-top: 1px solid var(--opl-line); scroll-margin-top: 24px; }
.lecture-topic-group:first-child { padding-top: 0; border-top: 0; }
.lecture-topic-group > header h2 { max-width: 850px; margin: 0; font-family: var(--opl-serif); font-size: clamp(40px,5vw,66px); font-weight: 500; letter-spacing: -.035em; line-height: .95; }
.lecture-topic-group .lecture-grid { margin-top: 40px; }

/* Ujednolicone ilustracje w artykułach ze starego serwisu */
.single-content img.article-illustration { width: auto; max-width: 100%; max-height: 680px; padding: clamp(16px,3vw,30px); background: #fffdf7; border: 1px solid rgba(23,47,41,.12); border-radius: 12px; box-shadow: 0 18px 46px rgba(18,47,39,.09); object-fit: contain; }
.single-content img.article-illustration[width] { width: auto; }
.single-content .article-figures { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--opl-line); }
.single-content .article-figures figure { margin: 42px auto 64px; }
.single-content .article-figures img { display: block; margin-bottom: 18px; }
.single-content .article-figures figcaption { color: #52645e; font-family: var(--opl-sans); font-size: 15px; font-weight: 700; line-height: 1.5; text-align: center; }
.single-content .article-figures__note { padding: 22px 24px; color: #52645e; background: #f0eadf; border-left: 3px solid var(--opl-orange); font-family: var(--opl-sans) !important; font-size: 15px !important; }
.single-content .author-contact { margin-top: 58px; padding: 30px 34px; background: #f0eadf; border-top: 3px solid var(--opl-orange); }
.single-content .author-contact h2 { margin-top: 0; }
.single-content .author-contact p { margin-bottom: 0; }
.single-content .article-illustration-figure { margin: 46px auto 62px; }
.single-content .article-illustration-figure img { display: block; margin: 0 auto 18px; }
.single-content .article-illustration-figure figcaption { color: #52645e; font-family: var(--opl-sans); font-size: 15px; font-weight: 700; line-height: 1.5; text-align: center; }
.single-content .article-note { margin: 46px 0; padding: 24px 28px; color: #40554e; background: #f0eadf; border-left: 3px solid var(--opl-orange); }
.single-content .article-note p { margin: 0; font-family: var(--opl-sans); font-size: 16px; line-height: 1.65; }
.single-related-content { padding-bottom: 104px; }
.related-lectures { margin-top: 92px; padding-top: 64px; border-top: 1px solid var(--opl-line); }
.related-lectures__heading h2 { max-width: 850px; margin: 0; font-family: var(--opl-serif); font-size: clamp(39px,4.8vw,62px); font-weight: 500; letter-spacing: -.035em; line-height: .98; }
.related-lectures .lecture-grid { margin-top: 42px; }
.single-related-content .related-lectures .lecture-grid { grid-template-columns: minmax(0, 520px); }
.knowledge-page__body > .related-lectures { margin-bottom: 110px; }
.legacy-item__date { display: block; margin-top: 12px; color: #687973; font-size: 13px; font-weight: 700; }

@media (max-width: 1050px) {
  .site-header__inner { grid-template-columns: 210px 1fr 42px; }
  .site-nav ul { gap: 14px; }
  .knowledge-menu { width: min(820px, calc(100vw - 40px)); transform: translate(-39%, 8px); }
  .menu-mega:hover .knowledge-menu, .menu-mega:focus-within .knowledge-menu { transform: translate(-39%, 0); }
  .hero__inner { gap: 32px; }
  .hero h1 { font-size: clamp(58px,7.8vw,82px); }
  .portrait-note { right: 0; }
}

@media (max-width: 860px) {
  body.admin-bar .site-header { top: 46px; }
  .page-shell { width: min(100% - 40px, 680px); }
	.related-lectures .lecture-grid, .single-related-content .related-lectures .lecture-grid { grid-template-columns: 1fr; }
  .site-header__inner { grid-template-columns: 1fr 44px; }
  .site-header .header-search { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .site-nav { display: none; grid-column: 1 / -1; padding: 0 0 24px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: flex-start; flex-direction: column; gap: 4px; }
  .site-nav a { font-size: 13px; }
  .site-nav li { width: 100%; }
  .knowledge-menu,
  .menu-mega:hover .knowledge-menu,
  .menu-mega:focus-within .knowledge-menu {
    position: static;
    width: 100%;
    max-height: 52vh;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 6px 0 12px;
    padding: 20px;
    overflow-y: auto;
    color: var(--opl-cream);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .knowledge-menu::before { display: none; }
  .knowledge-menu > div, .knowledge-menu > div:first-child, .knowledge-menu > div:last-child { padding: 0; border: 0; }
  .knowledge-menu a { color: rgba(243,239,228,.7); font-size: 12px; }
  .knowledge-menu .knowledge-menu__title { color: var(--opl-yellow); font-size: 22px; }
	.menu-webinars .webinar-menu, .menu-webinars:hover .webinar-menu, .menu-webinars:focus-within .webinar-menu { width: 100%; transform: none; }
	.webinar-menu__note { color: rgba(243,239,228,.72); border-top-color: rgba(255,255,255,.14); }
  .hero__inner { grid-template-columns: 1fr; padding-block: 68px 88px; }
  .hero__inner::before { display: none; }
  .hero__copy { order: 1; }
  .hero__portrait { order: 2; justify-self: center; width: min(100%,450px); margin-top: 20px; }
  .intro { grid-template-columns: 1fr; gap: 34px; padding-block: 84px 60px; }
  .intro__copy { grid-template-columns: 1fr; gap: 32px; }
  .topic-grid, .lecture-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .topic-card:nth-child(n) { padding-left: 0; border-right: 0; border-bottom: 1px solid #c5cbc5; }
  .topic-card:nth-child(odd) { padding-right: 36px; border-right: 1px solid #c5cbc5; }
  .topic-card:nth-child(even) { padding-left: 30px; }
  .profile-strip__inner { grid-template-columns: 1fr; }
  .profile-strip__photo { width: min(85%,450px); }
  .latest-posts__layout { grid-template-columns: 1fr; }
  .social-feed { width: min(100%, 560px); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .section-directory__grid { grid-template-columns: 1fr 1fr; }
  .region-grid { grid-template-columns: 1fr 1fr; }
	.doctor-grid { grid-template-columns: 1fr 1fr; }
  .about-page__inner, .about-biography { grid-template-columns: 1fr; }
  .about-page__portrait { width: min(86%,450px); justify-self: center; }
  .cv-intro { grid-template-columns: 1fr; gap: 28px; }
  .cv-layout { grid-template-columns: 1fr; }
  .cv-sidebar > img { display: none; }
  .cv-tabs { position: static; grid-template-columns: repeat(3,1fr); }
  .cv-tabs button { padding: 14px 16px 14px 0; }
}

@media (max-width: 580px) {
  .page-shell { width: calc(100% - 32px); }
  .brand small { display: none; }
  .hero__inner { min-height: auto; padding-block: 58px 72px; }
  .hero h1 { font-size: clamp(50px,16vw,72px); }
  .hero__lead { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .hero__portrait { padding-inline: 18px; }
  .portrait-note { right: 0; width: 200px; }
  .portrait-note strong { font-size: 23px; }
  .topic-grid, .lecture-grid, .post-grid { grid-template-columns: 1fr; }
  .topic-card:nth-child(n) { min-height: 250px; padding: 26px 54px 30px 0; border-right: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .lectures, .latest-posts { padding-block: 80px; }
  .single-content { width: calc(100% - 32px); font-size: 17px; }
  .legacy-list, .section-directory__grid, .region-grid { grid-template-columns: 1fr; }
	.doctor-grid { grid-template-columns: 1fr; }
	.doctor-results-bar, .imported-articles__heading { align-items: flex-start; flex-direction: column; }
  .legacy-item:nth-child(n) { min-height: 0; padding: 25px 0; border-right: 0; }
  .knowledge-page__body { padding-block: 68px 84px; }
  .page-hero { padding-block: 62px 68px; }
  .breadcrumbs { margin-bottom: 38px; }
  .about-page__inner { min-height: auto; padding-block: 58px 72px; }
  .about-page__copy h1 { font-size: clamp(48px,15vw,68px); }
  .about-biography { padding-block: 78px 86px; }
  .about-social-links { grid-template-columns: 1fr; }
  .cv-section { padding-block: 76px 90px; }
  .cv-intro { padding-bottom: 50px; }
  .cv-layout { gap: 44px; padding-top: 48px; }
  .cv-tabs { display: flex; gap: 8px; padding-bottom: 12px; overflow-x: auto; border: 0; }
  .cv-tabs button { flex: 0 0 auto; width: auto; padding: 11px 14px; border: 1px solid var(--opl-line); border-radius: 22px; font-size: 13px; }
  .cv-tabs button::after { display: none; }
  .cv-tabs button[aria-selected="true"] { color: var(--opl-paper); background: var(--opl-forest); }
  .cv-timeline article, .cv-publications article { grid-template-columns: 1fr; gap: 10px; }
  .cv-memberships { grid-template-columns: 1fr; }
  .cv-skills li { padding-left: 30px; font-size: 22px; }
  .lecture-topics { padding-bottom: 48px; }
  .news-list a { grid-template-columns: 1fr 24px; gap: 10px 16px; min-height: 0; padding-block: 24px; }
  .news-list time { grid-column: 1 / -1; }
  .news-list a > span { grid-column: 2; grid-row: 2; }
  .social-feed { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
