/* Shared editorial family: written testimonies, films and articles. */
.entry-view { color: var(--text); }
/* Keep the WordPress toolbar from covering the site navigation during editing. */
body.admin-bar:has(.entry-view) { padding-top: 0; }
body.admin-bar:has(.entry-view) .site-header { position: relative; top: auto; }
body.admin-bar:has(.entry-view) .fixed-mini-navbar { top: calc(20px + var(--wp-admin--admin-bar--height, 32px)); }
@media (min-width: 992px) {
  body.admin-bar:has(.entry-view) :is(.site-header__nav,.site-header__actions) { top: calc(20px + var(--wp-admin--admin-bar--height, 32px)); }
}
.entry-hero { padding: var(--sp-32) 0 var(--sp-48); }
.entry-breadcrumbs { margin-bottom: var(--sp-32); }
.entry-chevron { display: inline-block; flex: 0 0 16px; width: 16px; height: 16px; background: currentColor; mask: url('../images/chevron.svg') center / contain no-repeat; }
.entry-chevron--left { transform: rotate(180deg); }
.entry-chevron--up { transform: rotate(-90deg); }
.entry-chevron--down { transform: rotate(90deg); }
.entry-hero__grid { display: grid; gap: 40px; align-items: center; }
.entry-hero__copy { min-width: 0; max-width: 960px; }
.entry-kicker { display: block; margin: 0 0 var(--sp-16); }
.entry-hero h1 { color: var(--text); font-size: var(--fs-48); font-weight: var(--fw-bold); line-height: 1.125; letter-spacing: .2px; text-wrap: balance; overflow-wrap: anywhere; margin: 0 0 var(--sp-24); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--text-soft); font-size: 14px; line-height: 1.6; }
.entry-meta__author { color: var(--accent); font-weight: 500; }
.entry-meta > * + * { padding-left: 18px; border-left: 1px solid var(--border-strong); }
.entry-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.entry-topics:empty { display: none; }
.entry-topics a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; background: var(--accent-pale); border: 1px solid var(--border-strong); border-radius: 30px; color: var(--accent); font-size: 12px; }
.entry-topics a:hover { background: var(--accent-soft); }
.entry-actions { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 28px; }
.entry-share { display: flex; align-items: center; gap: 12px; }
.entry-actions__label { font-size: 12px; color: var(--text-soft); }
.entry-share .single-hero__share { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.entry-share .single-hero__share a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: background .15s, color .15s; }
.entry-share .single-hero__share a:hover { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.entry-favorite { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--border-strong); border-radius: 30px; color: var(--accent); font-size: 13px; font-weight: 500; }
.entry-favorite::after { content: 'Zapisz'; }
.entry-favorite.is-active::after { content: 'Zapisane'; }
.entry-favorite.is-active svg { fill: currentColor; }
.entry-favorite:hover { background: var(--accent-soft); }
.entry-copy-status { position: absolute; top: 100%; left: 0; padding-top: 5px; font-size: 12px; color: var(--accent); }
.entry-cover { margin: 0; min-width: 0; }
.entry-cover__image { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--bg-card); border-radius: var(--r-16); }
.entry-cover figcaption { color: var(--text-soft); font-size: 12px; line-height: 1.5; margin-top: 10px; padding-inline: 4px; }
.entry-cover figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.entry-film { position: relative; margin-top: var(--sp-32); aspect-ratio: 16 / 9; border: 4px solid var(--bg-card); border-radius: var(--r-16); overflow: hidden; background: var(--ink); }
.entry-film .sw-video-player__icon { background: transparent; box-shadow: none; }
.entry-film .sw-video-player__icon img { width: 100%; height: 100%; }
.entry-film iframe, .entry-film > video { width: 100%; height: 100%; border: 0; }
.entry-reading { padding-block: var(--sp-32) var(--sp-80); }
.entry-reading__main { max-width: 740px; min-width: 0; margin-inline: auto; width: 100%; }
.entry-reading--toc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2.3fr); align-items: start; gap: var(--sp-40); }
.entry-reading--toc .entry-reading__main { margin-inline: 0; }
.entry-rail { min-width: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.entry-toc summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-16); min-height: 44px; cursor: pointer; color: var(--text); font-size: var(--fs-16); font-weight: var(--fw-medium); list-style: none; }
.entry-toc summary::-webkit-details-marker { display: none; }
.entry-toc[open] summary .entry-chevron { transform: rotate(-90deg); }
.entry-toc nav { max-height: calc(100dvh - var(--header-h) - 130px); overflow-y: auto; overscroll-behavior: contain; }
.entry-toc ol { margin: var(--sp-12) 0 0; padding: 0; list-style: none; }
.entry-toc li { margin: 0; }
.entry-toc a { display: block; padding: 10px 12px; color: var(--text-soft); font-size: 14px; line-height: 1.45; border-radius: 5px; }
.entry-toc a:hover, .entry-toc a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.entry-prose { font-size: 18px; line-height: 1.85; color: var(--text-soft); overflow-wrap: break-word; }
.entry-prose > :first-child { margin-top: 0; }
.entry-prose--lead > p:first-child { color: var(--text); font-size: 21px; line-height: 1.65; margin-bottom: 32px; }
.entry-prose p { font-size: inherit; line-height: inherit; margin: 0 0 1.35em; }
.entry-prose h2, .entry-prose h3, .entry-prose h4, .entry-prose h5, .entry-prose h6 { color: var(--text); font-weight: var(--fw-medium); letter-spacing: .2px; line-height: 1.32; text-wrap: balance; }
.entry-prose h2 { color: var(--accent); font-size: var(--fs-28); margin: var(--sp-48) 0 var(--sp-24); }
.entry-prose h3 { font-size: var(--fs-20); margin: var(--sp-32) 0 var(--sp-16); }
.entry-prose h4, .entry-prose h5, .entry-prose h6 { font-size: 20px; margin: 1.5em 0 .6em; }
.entry-prose h2 + h3 { margin-top: 1em; }
.entry-prose :is(h2,h3,h4,h5,h6), #entry-title { scroll-margin-top: calc(var(--header-h) + 48px); }
.entry-prose strong { color: var(--text); font-weight: 700; }
.entry-prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-prose a:hover { text-decoration-thickness: 2px; }
.entry-prose ul, .entry-prose ol { padding-left: 1.4em; margin: 0 0 1.5em; }
.entry-prose ul { list-style: disc; }
.entry-prose ol { list-style: decimal; }
.entry-prose li { font-size: inherit; line-height: inherit; padding-left: .3em; margin: .55em 0; }
.entry-prose li::marker { color: var(--accent); font-weight: 500; }
.entry-prose li > p { margin-bottom: .5em; }
.entry-prose li > :is(ul,ol) { margin-bottom: .5em; }
.entry-prose blockquote { margin: 36px 0; padding: 28px 32px; border: 0; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-pale); color: var(--text); font-size: 20px; line-height: 1.65; }
.entry-prose blockquote p:last-child { margin-bottom: 0; }
.entry-prose blockquote cite { display: block; margin-top: 16px; color: var(--text-soft); font-size: 14px; font-style: normal; }
.entry-prose figure { margin: 32px 0; max-width: 100%; }
.entry-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-prose figcaption { color: var(--text-soft); font-size: 13px; line-height: 1.6; margin-top: 10px; }
.entry-prose iframe, .entry-prose video { max-width: 100%; }
.entry-prose .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.entry-prose .wp-block-embed__wrapper iframe { width: 100%; height: 100%; }
.entry-prose .wp-block-table { overflow-x: auto; }
.entry-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-prose th, .entry-prose td { padding: 12px 16px; border: 1px solid var(--border-strong); text-align: left; }
.entry-prose th { background: var(--accent-pale); color: var(--text); }
.entry-prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--border-strong); }
.entry-prose pre { overflow-x: auto; padding: 20px; background: var(--bg-alt); border-radius: 10px; font-size: 15px; }
.entry-prose .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; text-decoration: none; background: var(--btn-primary-bg); color: var(--btn-primary-text); border-radius: var(--r-30); padding: var(--sp-8) var(--sp-24); font-size: var(--fs-14); font-weight: var(--fw-medium); line-height: 1.4; letter-spacing: -.28px; }
.entry-audio { padding: 24px; border: 1px solid var(--border-strong); border-radius: 16px; margin-bottom: 36px; background: var(--bg-card); }
.entry-audio .entry-kicker { margin-bottom: 8px; }
.entry-audio h2 { font-size: 22px; margin-bottom: 16px; color: var(--text); }
.entry-audio audio { display: block; width: 100%; }
.entry-end { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-16); margin-top: var(--sp-48); }
.entry-view :is(a,button,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.entry-pages { display: flex; gap: 16px; margin-top: 32px; }
@media (min-width: 1080px) {
  .entry-hero__grid--image { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 64px; }
  .entry-view--video .entry-hero__copy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 32px; max-width: none; }
  .entry-view--video .entry-hero__copy > :is(.entry-kicker,h1) { grid-column: 1 / -1; }
  .entry-view--video .entry-meta, .entry-view--video .entry-topics { grid-column: 1; }
  .entry-view--video .entry-actions { grid-column: 2; grid-row: 3 / span 2; align-self: center; justify-self: end; margin-top: 0; }
}
@media (max-width: 1079px) {
  .entry-cover { max-width: 740px; width: 100%; }
  .entry-cover__image { aspect-ratio: 16 / 9; }
  .entry-reading--toc { grid-template-columns: minmax(0,1fr); gap: var(--sp-32); }
  .entry-reading--toc .entry-reading__main { margin-inline: auto; }
  .entry-rail { position: static; }
  .entry-toc nav { max-height: none; overflow: visible; }
}
@media (max-width: 767px) {
  .entry-hero { padding-block: 24px 32px; }
  .entry-breadcrumbs { margin-bottom: 28px; font-size: 12px; gap: 6px 8px; }
  .entry-hero__grid { gap: 28px; }
  .entry-hero h1 { font-size: 34px; line-height: 1.12; margin-bottom: 22px; }
  .entry-meta { font-size: 13px; gap: 8px 12px; }
  .entry-meta > * + * { padding-left: 12px; }
  .entry-share { gap: 8px; }
  .entry-actions__label { display: none; }
  .entry-actions { gap: 12px; margin-top: 24px; }
  .entry-share .single-hero__share { gap: 6px; }
  .entry-favorite { padding-inline: 12px; }
  .entry-cover__image, .entry-film { border-radius: 12px; border-width: 3px; }
  .entry-film { margin-top: 28px; }
  .entry-reading { padding-block: 32px 48px; }
  .entry-prose { font-size: 17px; line-height: 1.8; }
  .entry-prose--lead > p:first-child { font-size: 20px; }
  .entry-prose h2 { font-size: var(--fs-24); margin-top: var(--sp-40); }
  .entry-prose h3 { font-size: var(--fs-20); }
  .entry-prose blockquote { padding: 22px; font-size: 19px; }
}
@media (max-width: 480px) {
  body:has(.entry-view) .site-header__brand__logo { width: clamp(56px, calc(100vw - 252px), 110px); height: auto; }
  body:has(.entry-view) .fixed-mini-navbar:not(.is-open) { width: 196px; }
  body:has(.entry-view) .fixed-mini-navbar__icons { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { .entry-view * { scroll-behavior: auto !important; transition: none !important; } }
