/* Isolated parity layer: intentionally separate from AntiGravity's medicus.css work. */
.medicus-parity-page .wp-block-group.alignfull { margin-block-start: 0; }
.medicus-section--support-content { display:contents; }
.medicus-service-single:has(.medicus-parity-service-hero) > .medicus-service-default-hero { display:none; }
.medicus-parity-service-fallback { box-sizing:border-box; max-width:var(--wp--style--global--wide-size); margin-inline:auto; padding:clamp(4rem, 8vw, 7rem) var(--medicus-container-pad, 1.5rem); }
.medicus-parity-service-fallback h1 { max-width:18ch; margin-block:.75rem 1rem; font-size:clamp(2.4rem, 5vw, 4.5rem); line-height:1.02; }
.medicus-parity-service-fallback > p:last-child { max-width:60ch; color:var(--wp--preset--color--muted); font-size:var(--wp--preset--font-size--large); }
.medicus-parity-hero, .medicus-parity-section, .medicus-parity-guestbook-hero, .medicus-parity-service-hero, .medicus-parity-foundation-hero { padding: clamp(3.5rem, 7vw, 7rem) 1.5rem; }
.medicus-parity-hero--center { text-align: center; }
.medicus-parity-hero--center > * { max-width: 48rem; margin-inline: auto; }
.medicus-parity-hero h1, .medicus-parity-service-hero h1, .medicus-parity-foundation-hero h1 { text-wrap: balance; margin-block: .5rem 1.25rem; }
.medicus-parity-hero p.has-large-font-size { max-width: 44rem; margin-inline: auto; }
.medicus-parity-section > .wp-block-columns, .medicus-parity-service-hero > .wp-block-columns, .medicus-parity-foundation-hero > .wp-block-columns, .medicus-parity-guestbook-hero > .wp-block-columns { gap: clamp(2rem, 6vw, 6rem); }
.medicus-parity-section .wp-block-image img, .medicus-parity-service-hero .wp-block-image img, .medicus-parity-foundation-hero .wp-block-image img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.medicus-parity-gallery img { border-radius: 10px; min-height: 17rem; object-fit: cover; }
.medicus-parity-panel { border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: clamp(1.5rem, 3vw, 2.5rem); }
.medicus-parity-card-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.medicus-parity-card-grid > .wp-block-column, .medicus-parity-steps > .wp-block-column, .medicus-parity-scope > .wp-block-column { margin: 0 !important; border-radius: 10px; padding: 1.5rem; background: #fff; border: 1px solid var(--wp--preset--color--border); box-shadow: 0 8px 24px rgba(14,72,109,.06); }
.medicus-parity-card-grid h3 { margin-top: 0; }
.medicus-parity-stats { padding: 2.25rem 1.5rem; text-align: center; }
.medicus-parity-stats .wp-block-column { border-right: 1px solid rgba(255,255,255,.16); }
.medicus-parity-stats .wp-block-column:last-child { border: 0; }
.medicus-parity-stats strong { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; color: #fff; }
.medicus-parity-donation-cta { padding: clamp(4rem, 8vw, 7rem) 1.5rem; text-align: center; }
.medicus-parity-donation-cta .medicus-placeholder { max-width: 30rem; margin: 2rem auto 0; color: var(--wp--preset--color--foreground); text-align: left; }
.medicus-parity-scope { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.medicus-parity-scope::after { display:none; }
.medicus-parity-scope-last { display:none; }
/* Numeracja przez licznik CSS w obu sekcjach — patrz medicus-process-grid
   wyżej dla tego samego wzorca. Numer nie jest już treścią w bloku. */
.medicus-parity-scope, .medicus-parity-steps { counter-reset: medicus-item; }
.medicus-parity-scope > .wp-block-column, .medicus-parity-steps > .wp-block-column { counter-increment: medicus-item; }
.medicus-parity-scope > .wp-block-column { display:flex; align-items:center; gap:.65rem; min-height:64px; padding:1rem 1.25rem; box-shadow:0 2px 8px rgba(16,24,32,.06); }
.medicus-parity-scope > .wp-block-column p { margin:0; font-weight:600; line-height:1.35; }
.medicus-parity-scope > .wp-block-column::before { content: counter(medicus-item, decimal-leading-zero); display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center; width:1.75rem; height:1.75rem; border:1px solid var(--wp--preset--color--brand-mid); border-radius:50%; background:var(--wp--preset--color--brand-light); color:var(--wp--preset--color--brand); font-size:.76rem; font-weight:700; }
.medicus-parity-scope-last strong { display:inline-flex; align-items:center; justify-content:center; width:2rem; height:2rem; margin-right:.65rem; border:1px solid var(--wp--preset--color--brand-mid); border-radius:50%; background:var(--wp--preset--color--brand-light); color:var(--wp--preset--color--brand); font-size:.8rem; }
.medicus-parity-steps { gap: 1rem; }
.medicus-parity-steps > .wp-block-column { padding:1.5rem; min-height:160px; box-shadow:0 2px 8px rgba(16,24,32,.06); }
.medicus-parity-steps > .wp-block-column::before { content: counter(medicus-item, decimal-leading-zero); display:block; color: var(--wp--preset--color--brand); font-size: 2.5rem; line-height:1; font-weight:800; font-variant-numeric:tabular-nums; }
.medicus-parity-steps p { margin:0; }
.medicus-parity-steps h3 { margin: .85rem 0 .5rem; font-size:1rem; line-height:1.3; }
.medicus-parity-steps .has-small-font-size { line-height:1.55; }
.medicus-parity-guestbook-hero .medicus-gb-summary { margin: 0; }
.medicus-parity-form-intro { max-width: 40rem !important; }
.medicus-parity-blog-filters { padding: 1rem 1.5rem; border-bottom: 1px solid var(--wp--preset--color--border); background: #fff; }
.medicus-parity-blog-filters__row { box-sizing:border-box; max-width:1200px; margin-inline:auto !important; padding-inline:24px; justify-content:flex-start; }
.medicus-parity-blog-filters a { transition:background-color .2s ease,color .2s ease,border-color .2s ease; }
.medicus-parity-featured-post { max-width: 1200px !important; margin: 3rem auto !important; padding-inline: 0; overflow: hidden; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; box-shadow: var(--medicus-shadow); }
@media (min-width: 782px) and (max-width: 1260px) { .medicus-parity-featured-post { margin-inline: 1.5rem !important; max-width: none !important; } }
.medicus-parity-featured-post > .wp-block-post-template > .wp-block-group { display: grid; grid-template-columns: 1.1fr 1fr; }
.medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group { display:grid; grid-template-columns:1.1fr 1fr; min-height:18rem; }
.medicus-parity-featured-post .wp-block-post-featured-image, .medicus-parity-featured-post .wp-block-post-featured-image img { height: 100%; margin: 0; }
.medicus-parity-featured-post .wp-block-post-featured-image img { object-fit: cover; }
.medicus-parity-featured-post__body { padding: clamp(1.5rem, 4vw, 3rem); }
.medicus-parity-blog-grid-section > .medicus-eyebrow { max-width:1200px; margin:0 auto 2rem !important; padding-inline:0; }
@media (min-width: 782px) and (max-width: 1260px) { .medicus-parity-blog-grid-section > .medicus-eyebrow { margin-inline:1.5rem !important; } }
@media (min-width:782px) and (max-width:1023px) {
  .page-id-11 .medicus-parity-blog-grid-section { padding-inline:0; }
  .page-id-11 .medicus-parity-blog-grid-section > .medicus-eyebrow {
    width:auto !important;
    max-width:none !important;
    margin-inline:24px !important;
  }
}
.medicus-parity-blog-grid .wp-block-post-template { gap: 1.5rem; align-items:stretch; }
.medicus-parity-blog-grid .wp-block-post-template > li { display:flex; }
.medicus-parity-blog-grid .wp-block-post-template > li[hidden] { display:none !important; }
.medicus-parity-blog-empty { box-sizing:border-box; width:min(calc(100% - 48px),1152px); margin:0 auto !important; padding:40px 0; color:#5b6570; }
.medicus-parity-blog-empty[hidden], .medicus-parity-blog-grid.is-empty { display:none !important; }
.medicus-parity-post-card { display:flex; flex-direction:column; width:100%; overflow: hidden; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding-bottom: 1.5rem; box-shadow: 0 8px 24px rgba(14,72,109,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.medicus-parity-post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14,72,109,.12); }
.medicus-parity-post-card > :not(.wp-block-post-featured-image) { margin-inline: 1.25rem; }
.medicus-parity-post-card .wp-block-post-featured-image { margin: 0 0 1.25rem; overflow:hidden; border-radius:12px 12px 0 0; }
.medicus-parity-post-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; transition:transform .3s ease; }
.medicus-parity-post-card:hover .wp-block-post-featured-image img { transform:scale(1.03); }
/* Kategoria jako badge-pill (parity), nie podkreślony link */
.medicus-parity-featured-post .wp-block-post-terms, .medicus-parity-post-card .wp-block-post-terms { margin-left: 0 !important; }
.medicus-parity-featured-post .wp-block-post-terms a, .medicus-parity-post-card .wp-block-post-terms a { display:inline-block; padding:.3rem .8rem; border-radius:999px; background:var(--wp--preset--color--brand-light); color:var(--wp--preset--color--brand-dark); font-size:.72rem; font-weight:700; text-decoration:none; }
.medicus-parity-post-card .wp-block-post-excerpt { color:var(--wp--preset--color--muted); line-height:1.6; }
.medicus-parity-post-card .wp-block-post-title { margin-top:.9rem; margin-bottom:.75rem; font-size:1.25rem; line-height:1.25; }
.medicus-parity-post-card .wp-block-read-more, .medicus-parity-featured-post .wp-block-read-more { margin-right:auto !important; }
.medicus-parity-post-card .wp-block-read-more { margin-top:auto !important; padding-top:1rem; }
.medicus-parity-featured-post .wp-block-post-title a, .medicus-parity-post-card .wp-block-post-title a { color:var(--wp--preset--color--foreground); text-decoration:none; }
.medicus-parity-featured-post .wp-block-post-title a:hover, .medicus-parity-post-card .wp-block-post-title a:hover { color:var(--wp--preset--color--brand); }
.medicus-blog-single > .wp-block-post-content { max-width: 48rem; margin: 4rem auto; padding: 0 1.5rem; }
body.medicus-has-section-contract .medicus-blog-single > .wp-block-post-content { max-width:none; margin:0; padding:0; }
.medicus-blog-single h1 { font-size: clamp(2.25rem, 3.35vw, 3rem); }
.medicus-parity-page a:focus-visible, .medicus-parity-page button:focus-visible { outline: 2px solid var(--wp--preset--color--brand); outline-offset: 2px; }
.medicus-parity-services { padding: clamp(3.5rem, 7vw, 6rem) 1.5rem; background:#fff; }
.medicus-parity-services__grid { max-width:1200px; margin:auto; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.25rem; }
.medicus-parity-service-card { display:flex; flex-direction:column; min-height:24rem; padding:1.75rem; border:1px solid var(--wp--preset--color--border); border-radius:12px; box-shadow:0 8px 20px rgba(14,72,109,.055); }
.medicus-parity-service-card__icon { display:grid; place-items:center; width:3rem; height:3rem; border-radius:10px; color:var(--wp--preset--color--brand); background:var(--wp--preset--color--brand-light); }
.medicus-parity-service-card h2 { margin:1.15rem 0 .6rem; font-size:1.15rem; }
.medicus-parity-service-card > p { color:var(--wp--preset--color--muted); margin:0; }
.medicus-parity-service-card ul { list-style:none; padding:0; margin:1rem 0 auto; color:var(--wp--preset--color--muted); font-size:.92rem; line-height:1.85; }
.medicus-parity-service-card li::before { content:'✓'; color:var(--wp--preset--color--brand); margin-right:.5rem; }
.medicus-parity-service-card a { display:inline-flex; gap:.35rem; margin-top:1rem; font-weight:700; text-decoration:none; }
.medicus-parity-help { display:grid; grid-template-columns:1fr minmax(18rem,26rem); gap:clamp(2rem,7vw,7rem); align-items:center; padding:clamp(3.5rem,7vw,6rem) max(1.5rem,calc((100% - 1200px)/2)); background:var(--wp--preset--color--brand-light); }
.medicus-parity-help h2 { font-size:clamp(1.75rem,3vw,2.5rem); margin:.4rem 0 1rem; }
.medicus-parity-help > div > p:not(.medicus-eyebrow) { color:var(--wp--preset--color--muted); max-width:37rem; }
.medicus-parity-help img { width:100%; border-radius:12px; aspect-ratio:4/3; object-fit:cover; }
.medicus-parity-help__outline { display:inline-flex; align-items:center; gap:.5rem; min-height:48px; margin-left:.75rem; padding:.75rem 1.75rem; background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:10px; color:var(--wp--preset--color--foreground); font-weight:600; text-decoration:none; transition:border-color .2s, color .2s; }
.medicus-parity-help__outline:hover { border-color:var(--wp--preset--color--brand); color:var(--wp--preset--color--brand); }
.medicus-parity-service-testimonial { padding:4rem 1.5rem; }
.medicus-parity-testimonial { max-width:40rem; margin:auto; padding:2rem 2.25rem; border:1px solid var(--wp--preset--color--border); border-radius:12px; text-align:center; background:#fff; box-shadow:0 2px 8px rgba(16,24,32,.06); }
.medicus-parity-testimonial__stars { color:var(--wp--preset--color--brand); letter-spacing:.15rem; font-size:1.15rem; margin:0; }
.medicus-parity-testimonial blockquote { margin:1rem auto 1.5rem; max-width:34rem; font-size:1rem; line-height:1.55; font-weight:700; }
.medicus-parity-testimonial__author { display:flex; align-items:center; justify-content:center; gap:.85rem; text-align:left; }
.medicus-parity-testimonial__author p { margin:0; }
.medicus-parity-testimonial__author small { color:var(--wp--preset--color--muted); }
.medicus-parity-testimonial__author a { font-size:.8rem; color:var(--wp--preset--color--muted); text-decoration:underline; text-underline-offset:3px; }
.medicus-parity-testimonial__author a:hover { color:var(--wp--preset--color--brand); }
.medicus-parity-testimonial__avatar { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--wp--preset--color--brand-light); color:var(--wp--preset--color--brand); font-weight:700; flex-shrink:0; }
.medicus-parity-scope-last { margin:0!important; padding:0 1.5rem 3rem; text-align:center; }
.medicus-parity-scope-last p { max-width:22rem; margin:0 auto; padding:1.15rem 1.25rem; border:1px solid var(--wp--preset--color--border); border-radius:10px; background:#fff; font-weight:600; }
.medicus-parity-scope-last strong { color:var(--wp--preset--color--brand); margin-right:.5rem; }
.medicus-parity-support-hero, .medicus-parity-support-section, .medicus-parity-support-levels, .medicus-parity-support-widget, .medicus-parity-support-types { padding:clamp(3.5rem,7vw,6rem) max(1.5rem,calc((100% - 1200px)/2)); }
.medicus-parity-support-hero { display:grid; grid-template-columns:1fr 1fr; gap:clamp(2rem,7vw,6rem); align-items:center; background:var(--wp--preset--color--foundation-light); }
.medicus-parity-support-hero h1 { margin:.4rem 0 1rem; font-size:clamp(2.25rem,3.35vw,3rem); line-height:1.25; }
.medicus-parity-support-section h2, .medicus-parity-support-levels h2, .medicus-parity-support-widget h2 { margin:.4rem 0 1rem; font-size:2.25rem; line-height:1.25; }
.medicus-parity-support-hero > div > p:not(.medicus-eyebrow) { font-size:1.2rem; color:var(--wp--preset--color--muted); }
.medicus-parity-support-hero img { width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:12px; }
.medicus-parity-support-spending { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; }
.medicus-parity-support-spending article, .medicus-parity-support-types article { padding:2rem; text-align:center; background:var(--wp--preset--color--foundation-light); border:1px solid #f2c9c5; border-radius:12px; }
.medicus-parity-support-spending strong { font-size:3rem; color:var(--wp--preset--color--foundation); }
.medicus-parity-support-levels { background:var(--wp--preset--color--foundation-light); }
.medicus-parity-support-toggle { display:flex; gap:.75rem; margin:1.5rem 0; }
.medicus-parity-support-toggle button, .medicus-parity-support-level-grid button { cursor:pointer; background:#fff; border:1px solid #f2c9c5; border-radius:10px; padding:.85rem 1.1rem; font:inherit; }
.medicus-parity-support-toggle button.is-selected { background:var(--wp--preset--color--foundation); color:#fff; border-color:var(--wp--preset--color--foundation); }
/* Wybrana kwota jak w prototypie: biała karta, czerwona ramka 2px, check w rogu */
.medicus-parity-support-level-grid button { position:relative; }
.medicus-parity-support-level-grid button.is-selected { background:#fff; border:2px solid var(--wp--preset--color--foundation); box-shadow:0 4px 12px rgba(194,59,50,.12); }
.medicus-parity-support-level-grid button.is-selected::after { content:''; position:absolute; top:1rem; right:1rem; width:18px; height:18px; background:var(--wp--preset--color--foundation); -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>') center / contain no-repeat; mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21.801 10A10 10 0 1 1 17 3.335"/><path d="m9 11 3 3L22 4"/></svg>') center / contain no-repeat; }
.medicus-parity-support-badge { position:absolute; top:-0.7rem; left:50%; transform:translateX(-50%); padding:.2rem .7rem; border-radius:999px; background:var(--wp--preset--color--foundation); color:#fff; font-size:.7rem; font-weight:700; white-space:nowrap; }
.medicus-parity-support-level-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; }
.medicus-parity-support-level-grid button { min-height:13rem; padding:1.5rem; text-align:left; display:flex; flex-direction:column; gap:1rem; }
.medicus-parity-support-level-grid strong { font-size:2rem; color:var(--wp--preset--color--foundation); }
.medicus-parity-support-widget__selected { margin:.5rem 0 0; color:var(--wp--preset--color--foundation); font-weight:700; }
.medicus-parity-support-widget { text-align:center; }
.medicus-parity-support-widget > div { max-width:38rem; margin:2rem auto 0; padding:3rem; background:var(--wp--preset--color--foundation-light); border:2px dashed #e6a49d; border-radius:12px; }
.medicus-parity-support-widget b { display:block; font-size:3rem; color:var(--wp--preset--color--foundation); }
.medicus-parity-support-types { display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; background:var(--wp--preset--color--foundation-light); }
.medicus-parity-support-types article { background:#fff; text-align:left; }
.medicus-parity-support-types li { margin:.45rem 0; }
.medicus-parity-article-hero { padding:clamp(3.5rem,7vw,6rem) max(1.5rem,calc((100% - 860px)/2)); background:var(--wp--preset--color--surface); }
.medicus-parity-article-hero > p:first-child { color:var(--wp--preset--color--muted); font-size:.9rem; }
.medicus-parity-article-hero > p:first-child span { color:var(--wp--preset--color--brand); font-weight:700; background:var(--wp--preset--color--brand-light); padding:.35rem .7rem; border-radius:999px; }
.medicus-parity-article-hero h1 { margin:1.1rem 0; font-size:clamp(2.25rem,3.35vw,3rem); line-height:1.25; }
.medicus-parity-article-hero > p:last-child { color:var(--wp--preset--color--muted); font-size:1.25rem; line-height:1.65; }
.medicus-parity-article-image { max-width:1200px; margin:3rem auto; padding:0 1.5rem; }
.medicus-parity-article-image img { width:100%; aspect-ratio:21/9; object-fit:cover; border-radius:12px; }
.medicus-parity-article-layout { display:grid; grid-template-columns:minmax(0,1fr) 18rem; max-width:1200px; gap:5rem; margin:0 auto; padding:0 1.5rem 5rem; }
.medicus-parity-article-layout article { max-width:48rem; color:var(--wp--preset--color--muted); font-size:1.05rem; line-height:1.8; }
.medicus-parity-article-layout h2 { color:var(--wp--preset--color--foreground); margin-top:2.5rem; font-size:1.75rem; }
.medicus-parity-article-layout .lead { font-size:1.15rem; }
.medicus-parity-alarm, .medicus-parity-expert { padding:1.75rem; margin:2rem 0; border-radius:12px; background:var(--wp--preset--color--brand-light); color:var(--wp--preset--color--foreground); }
/* `strong` obok `b`: bloki Gutenberga generują strong, kod parity generował b. */
.medicus-parity-alarm b, .medicus-parity-alarm > p:first-child strong { display:block; color:var(--wp--preset--color--brand); text-transform:uppercase; font-size:.8rem; letter-spacing:.08em; }
.medicus-parity-alarm > p:first-child { margin-bottom:.5rem; }
.medicus-parity-alarm ul { margin:0; padding-left:1.2rem; }
/* Nota ekspercka: zwykły pogrubiony nagłówek, nie wersaliki jak w ramce alarmowej. */
.medicus-parity-expert > p:first-child strong { display:block; color:var(--wp--preset--color--foreground); }
.medicus-parity-expert > p { margin:0 0 1rem; }
.medicus-parity-expert > p:last-child { margin-bottom:0; }
.medicus-parity-expert .medicus-source { font-size:.85rem; color:var(--wp--preset--color--muted); }
.medicus-parity-alarm li { margin:.55rem 0; }
.medicus-parity-alarm li::marker { color:var(--wp--preset--color--brand); }
.medicus-parity-expert { background:var(--wp--preset--color--surface); border:1px solid var(--wp--preset--color--brand-mid); }
/* Pasek boczny przykleja sie PONIZEJ naglowka strony (76px) i paska
   administracyjnego. Przy top:2rem gorna czesc karty „Bezplatna
   konsultacja" chowala sie pod nawigacja przy przewijaniu. */
.medicus-parity-article-sidebar { display:grid; align-content:start; gap:1rem; position:sticky; top:calc(var(--medicus-header) + var(--wp-admin--admin-bar--height, 0px) + 1.5rem); height:max-content; }
.medicus-parity-article-sidebar section { display:grid; gap:.85rem; padding:1.5rem; border-radius:12px; background:var(--wp--preset--color--surface); border:1px solid var(--wp--preset--color--border); }
.medicus-parity-article-sidebar section:first-child { background:var(--wp--preset--color--brand-light); border-color:var(--wp--preset--color--brand-mid); }
.medicus-parity-article-sidebar a { font-size:.92rem; font-weight:600; text-decoration:none; }
.medicus-parity-article-sidebar__related a { color:var(--wp--preset--color--foreground); transition:color .2s; }
.medicus-parity-article-sidebar__related a:hover { color:var(--wp--preset--color--brand); }
.medicus-parity-related { padding:4.5rem max(1.5rem,calc((100% - 1200px)/2)); background:var(--wp--preset--color--surface); }
.medicus-parity-related > div { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.medicus-parity-related a { overflow:hidden; background:#fff; border:1px solid var(--wp--preset--color--border); border-radius:12px; color:var(--wp--preset--color--foreground); text-decoration:none; }
.medicus-parity-related img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; }
.medicus-parity-related small, .medicus-parity-related h3 { display:block; margin:1rem 1.15rem; }
.medicus-parity-related small { color:var(--wp--preset--color--brand); font-weight:700; }
.medicus-parity-related h3 { font-size:1rem; }
.medicus-parity-article-cta { text-align:center; padding:5rem 1.5rem; background:var(--wp--preset--color--brand); color:#fff; }
.medicus-parity-article-cta h2 { margin:.5rem 0; font-size:clamp(2rem,4vw,3rem); }
.medicus-parity-article-cta a:not(.wp-element-button) { display:inline-block; margin:.7rem; padding:.75rem 1rem; border:1px solid rgba(255,255,255,.7); border-radius:10px; color:#fff; text-decoration:none; }
/* Fundacja — misja, zarząd, programy (parity z Foundation.tsx) */
.medicus-parity-mission { max-width: 48rem !important; margin-inline: auto; font-size: clamp(1.5rem, 2.1vw, 1.875rem); font-weight: 500; line-height: 1.375; color: var(--wp--preset--color--foreground); text-wrap: balance; }
.medicus-parity-card-grid--foundation > .wp-block-column { border-color: #f3d0cc; border-radius: 16px; padding: 2rem; transition: border-color .2s, box-shadow .25s; }
.medicus-parity-card-grid--foundation > .wp-block-column:hover { border-color: #f3d0cc; box-shadow: none; transform:none; }
.medicus-parity-card-grid--foundation h3 { margin: 0 0 .65rem; font-size: 1.125rem; }
.medicus-parity-card-grid--foundation p { margin: 0; color: var(--wp--preset--color--muted); font-size: .875rem; }
.medicus-parity-board { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.medicus-parity-board__row { display: flex; align-items: center; gap: 1rem; }
.medicus-parity-board__avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(194, 59, 50, .2); color: var(--wp--preset--color--foundation); font-weight: 700; flex-shrink: 0; }
/* Zdjecie osoby (obrazek wyrozniajacy) zamiast inicjalow. */
.medicus-parity-board__avatar--photo { background: none; overflow: hidden; }
.medicus-parity-board__avatar--photo .medicus-parity-board__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.medicus-parity-board__row p { margin: 0; }
.medicus-parity-board__row p + p { color: var(--wp--preset--color--muted); font-size: .875rem; }
.medicus-parity-donation-cta__lead { max-width: 28rem; margin-inline: auto; color: rgba(255, 255, 255, .8); font-size: 1.125rem; }
.medicus-parity-foundation-hero .medicus-pill--foundation { margin-bottom: 1.5rem; }

@media (max-width: 1023px) {
  .medicus-parity-hero, .medicus-parity-section, .medicus-parity-guestbook-hero, .medicus-parity-service-hero, .medicus-parity-foundation-hero { padding: 3.25rem 1.25rem; }
  .medicus-parity-card-grid, .medicus-parity-scope { grid-template-columns: 1fr; }
  .medicus-parity-stats .wp-block-column { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .medicus-parity-featured-post { margin: 2rem 1.25rem; }
  .medicus-parity-featured-post > .wp-block-post-template > .wp-block-group { display: block; }
  .medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group { display:block; }
  .medicus-parity-services__grid { grid-template-columns:1fr; }
  .medicus-parity-service-card { min-height:auto; }
  .medicus-parity-help { grid-template-columns:1fr; padding:3.25rem 1.25rem; }
  .medicus-parity-support-hero, .medicus-parity-support-spending, .medicus-parity-support-level-grid, .medicus-parity-support-types { grid-template-columns:1fr; }
  .medicus-parity-support-hero, .medicus-parity-support-section, .medicus-parity-support-levels, .medicus-parity-support-widget, .medicus-parity-support-types { padding:3.25rem 1.25rem; }
  .medicus-parity-article-layout { grid-template-columns:1fr; gap:2rem; padding-bottom:3.25rem; }
  .medicus-parity-article-sidebar { position:static; }
  .medicus-parity-related > div { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion: reduce) { .medicus-parity-post-card { transition: none; } }

/* At small-tablet widths the React view already uses the denser scope and
   steps grids. Core Columns would otherwise stay stacked until 782px. */
@media (min-width:640px) and (max-width:781px) {
  .medicus-service-single .medicus-parity-scope {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .medicus-service-single .medicus-parity-steps {
    flex-wrap:nowrap !important;
  }
  .medicus-service-single .medicus-parity-steps > .wp-block-column {
    flex:1 1 0 !important;
    min-width:0;
  }
}

/* Blog precision pass: match the React 1152px editorial grid and its compact
   vertical rhythm. Gutenberg's flow gap and the former 4:3 thumbnails made the
   archive almost 500px taller at desktop widths. */
@media (min-width: 782px) {
  .wp-site-blocks .entry-content > .medicus-parity-featured-post {
    width: min(calc(100% - 3rem), 1152px);
    max-width: 1152px !important;
    margin: 40px auto 32px !important;
  }
  .medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    height:auto;
    min-height:341px;
  }
  .medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group > * {
    box-sizing:border-box;
    width:100% !important;
    max-width:none !important;
    min-width:0;
    margin:0 !important;
  }
  .medicus-parity-featured-post .wp-block-post-featured-image,
  .medicus-parity-featured-post .wp-block-post-featured-image a,
  .medicus-parity-featured-post .wp-block-post-featured-image img {
    display:block;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    margin:0 !important;
    aspect-ratio:auto !important;
  }
  .medicus-parity-featured-post__body {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    padding:40px;
  }
  .medicus-parity-featured-post__body > * {
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
    margin-block-start: 0 !important;
  }
  .medicus-parity-featured-post__body .wp-block-post-terms {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:28px;
    margin:0 !important;
  }
  .medicus-parity-featured-post__body .wp-block-post-terms::after {
    content:"◷  7 min czytania";
    color:#5b6570;
    font-size:12px;
    font-weight:400;
    line-height:20px;
  }
  .medicus-parity-featured-post__body .wp-block-post-title {
    margin:20px 0 16px !important;
    font-size:30px !important;
    line-height:37.5px;
    letter-spacing:-.6px;
  }
  .medicus-parity-featured-post__body .wp-block-post-excerpt {
    margin:0 0 24px !important;
    color:#5b6570;
    font-size:16px;
    line-height:26px;
  }
  .medicus-parity-featured-post__body .wp-block-post-excerpt p {
    margin:0;
    font-size:inherit;
    line-height:inherit;
  }
  .medicus-parity-featured-post__body .wp-block-read-more {
    align-self:flex-start;
    width:auto !important;
    margin:0 !important;
    font-size:14px;
    font-weight:600;
    line-height:20px;
  }
  .medicus-parity-blog-grid-section {
    padding: 0 1.5rem 4rem;
  }
  .medicus-parity-blog-grid-section > .medicus-eyebrow,
  .medicus-parity-blog-grid {
    width: min(100%, 1152px);
    max-width: 1152px !important;
  }
  .medicus-parity-blog-grid-section > .medicus-eyebrow {
    margin-bottom: 2rem !important;
  }
  .medicus-parity-blog-grid .wp-block-post-template {
    gap: 1.5rem;
  }
  .medicus-parity-post-card > * {
    margin-block-start: 0 !important;
  }
  .medicus-parity-post-card > :not(.wp-block-post-featured-image) {
    width: auto !important;
    max-width: none !important;
    margin-inline: 1.5rem !important;
  }
  .medicus-parity-post-card .wp-block-post-featured-image {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    margin-bottom: 0 !important;
  }
  .medicus-parity-post-card .wp-block-post-featured-image a {
    height: 100%;
  }
  .medicus-parity-post-card .wp-block-post-featured-image img {
    aspect-ratio: 16 / 9 !important;
  }
  .medicus-parity-post-card .wp-block-post-title {
    margin-block: 1rem 0.75rem !important;
    font-size: 1.125rem;
    line-height: 1.375;
  }
  .medicus-parity-post-card .wp-block-post-excerpt {
    margin-bottom: 1.25rem !important;
    font-size: 0.875rem;
    line-height: 1.625;
  }
  .medicus-parity-post-card .wp-block-read-more {
    min-height: 20px;
    margin-top: auto !important;
    padding-top: 0;
    line-height: 20px;
  }
  .medicus-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem !important;
  }
  .medicus-blog-card-meta .wp-block-post-terms {
    width: auto !important;
    margin: 0 !important;
  }
  .medicus-blog-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--wp--preset--color--muted);
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* Home w prototypie pokazuje skrócone karty usług; pełne listy zostają na /uslugi. */
body.home .medicus-service-card__features { display:none; }
body.home .medicus-service-card {
  min-height:245px;
  padding:1.75rem !important;
}
body.home .medicus-service-card > p:first-child {
  height:40px;
  margin:0 !important;
  line-height:0;
}
body.home .medicus-service-card .medicus-icon-tile {
  width:40px;
  height:40px;
}
body.home .medicus-service-card .wp-block-post-title {
  margin:1.25rem 0 0 !important;
  font-size:1.125rem;
  line-height:1.5rem;
}
body.home .medicus-service-card .wp-block-post-excerpt {
  margin:0.75rem 0 0 !important;
  font-size:0.875rem;
  line-height:1.625;
}
body.home .medicus-service-card > p:empty { display:none; }
body.home .medicus-service-card .wp-block-read-more {
  margin-top:auto !important;
  font-size:0.875rem;
  line-height:1.25rem;
}
body.home .medicus-section--home-process { padding-block:80px; }

@media (min-width:782px) {
  .medicus-breadcrumbs { padding-block:16px !important; }
  body:not(.home) .medicus-breadcrumbs { padding-block:16px !important; }
  .medicus-home-hero__grid { min-height:calc(100svh - 76px); height:auto; max-height:none; }
  body.home .medicus-home-hero__copy > .wp-block-group.medicus-reveal.is-visible { transform:none; }
  body.home .entry-content > .medicus-section.has-brand-light-background-color { padding-block:60px; }
  body.home .medicus-video { min-height:0; }
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns { transform:translateY(48px); }
}

@media (min-width:1024px) {
  .page-id-11 .entry-content > * { margin-block-start:0 !important; }
  .page-id-11 .medicus-parity-hero {
    box-sizing:border-box;
    height:auto;
    padding-block:clamp(61.44px,6vw,80px);
  }
  .page-id-11 .medicus-parity-hero h1 {
    font-size:54px;
    line-height:67.5px;
  }
  .page-id-11 .medicus-parity-featured-post {
    box-sizing:border-box;
    min-height:343px;
  }
  .page-id-11 .medicus-parity-blog-grid-section {
    box-sizing:border-box;
    min-height:1062px;
    padding-bottom:96px;
  }
  .page-id-11 .medicus-parity-blog-grid-section.is-filtered {
    height:auto;
  }
  .page-id-11 .medicus-final-cta {
    box-sizing:border-box;
    min-height:560px;
  }
  .page-id-12 .entry-content > *,
  .page-id-13 .entry-content > * { margin-block-start:0 !important; }
  .page-id-12 .medicus-parity-foundation-hero {
    box-sizing:border-box;
    min-height:575px;
    padding:80px 0;
  }
  .page-id-12 .medicus-parity-foundation-hero > .wp-block-columns {
    box-sizing:border-box;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:1200px;
    max-width:calc(100% - 48px) !important;
    min-height:414px;
    margin:0 auto !important;
    padding-inline:24px;
    gap:48px !important;
  }
  .page-id-12 .medicus-parity-foundation-hero figure,
  .page-id-12 .medicus-parity-foundation-hero img {
    width:552px;
    max-width:100%;
    height:414px;
    margin:0;
  }
  .page-id-12 .medicus-parity-stats {
    box-sizing:border-box;
    min-height:184px;
    padding-block:40px;
  }
  .page-id-12 .medicus-section--foundation-mission {
    box-sizing:border-box;
    min-height:271px;
    padding-block:80px;
  }
  .page-id-12 .medicus-section--foundation-audience {
    box-sizing:border-box;
    min-height:525px;
    padding-block:80px;
  }
  .page-id-12 .medicus-section--foundation-programs {
    box-sizing:border-box;
    min-height:812px;
    padding-block:112px;
  }
  .page-id-12 .medicus-section--foundation-programs > .medicus-section-header {
    width:1152px;
    max-width:calc(100% - 48px) !important;
    min-height:73px;
    margin-bottom:56px !important;
  }
  .page-id-12 .medicus-parity-card-grid--foundation {
    width:1152px;
    max-width:calc(100% - 48px) !important;
    gap:20px !important;
  }
  .page-id-12 .medicus-section--foundation-transparency {
    box-sizing:border-box;
    min-height:628px;
    padding-block:80px;
  }
  .page-id-12 .medicus-parity-donation-cta {
    box-sizing:border-box;
    min-height:685px;
    padding-block:96px;
  }
  .page-id-12 .medicus-section--compact:has(.medicus-faq-grid) {
    box-sizing:border-box;
    min-height:484px;
    padding-block:80px;
  }
  .page-id-13 .medicus-parity-support-hero {
    box-sizing:border-box;
    min-height:574px;
    padding-block:80px;
  }
  .page-id-13 .medicus-parity-support-section {
    box-sizing:border-box;
    min-height:483px;
    padding-block:80px;
  }
  .page-id-13 .medicus-parity-support-levels {
    box-sizing:border-box;
    min-height:609px;
    padding-block:80px;
  }
  .page-id-13 .medicus-parity-support-widget {
    box-sizing:border-box;
    min-height:633px;
    padding-block:80px;
  }
  .page-id-13 .medicus-parity-support-types {
    box-sizing:border-box;
    min-height:480px;
    padding-block:80px;
  }
  .page-id-13 .medicus-section:has(.medicus-faq-grid) {
    box-sizing:border-box;
    min-height:568px;
    padding-block:80px;
  }
  .page-id-13 .medicus-faq-grid > .wp-block-column:first-child > p:not(.medicus-eyebrow),
  .page-id-13 .medicus-faq-grid > .wp-block-column:first-child > .wp-block-button,
  .page-id-13 .medicus-faq-grid .medicus-contact-hours { display:none; }
  .page-id-6 .entry-content > *,
  .page-id-7 .entry-content > * { margin-block-start:0 !important; }
  .page-id-6 .medicus-parity-hero,
  .page-id-7 .medicus-hero-center {
    box-sizing:border-box;
    min-height:416px;
    padding-block:80px;
  }
  .page-id-6 .medicus-parity-hero h1,
  .page-id-7 .medicus-hero-center h1 {
    font-size:54px;
    line-height:67.5px;
  }
  .page-id-6 .entry-content > .medicus-section:not(.medicus-final-cta) {
    box-sizing:border-box;
    min-height:1043px;
    padding-block:112px;
  }
  .page-id-6 .medicus-parity-help {
    box-sizing:border-box;
    min-height:475px;
    padding-block:80px;
    margin:0 !important;
  }
  .page-id-6 .medicus-section--services-contact {
    box-sizing:border-box;
    min-height:401.5px;
    padding-block:80px;
  }
  .page-id-6 .medicus-section--compact:has(.medicus-faq-grid) {
    box-sizing:border-box;
    min-height:484px;
    padding-block:80px;
  }
  .page-id-6 .medicus-final-cta,
  .page-id-7 .medicus-final-cta {
    box-sizing:border-box;
    min-height:560px;
  }
  .page-id-7 .medicus-anchor-nav {
    box-sizing:border-box;
    min-height:77px;
  }
  .page-id-7 .medicus-service-article {
    box-sizing:border-box;
    width:812px;
    max-width:calc(100% - 48px) !important;
    min-height:340px;
    margin:0 auto 24px !important;
    padding:40px;
  }
  .page-id-7 .medicus-section--all-services-senior-care {
    margin-top:80px !important;
    margin-bottom:38px !important;
  }
  .page-id-7 .medicus-section--all-services-equipment {
    margin-bottom:66px !important;
  }
  .page-id-7 .medicus-section--all-services-help {
    box-sizing:border-box;
    min-height:400px;
    padding-block:80px;
  }
  .single-post .medicus-blog-single > .wp-block-post-content { margin:0; }
  .single-post .medicus-parity-article-hero {
    box-sizing:border-box;
    min-height:421px;
    padding:80px 24px;
  }
  .single-post .medicus-parity-article-hero > * {
    width:720px;
    max-width:100%;
    margin-inline:auto;
  }
  .single-post .medicus-parity-article-hero > p:first-child { margin-block:0 20px; }
  .single-post .medicus-parity-article-hero h1 {
    margin-block:0 20px;
    font-size:48px;
    line-height:60px;
  }
  .single-post .medicus-parity-article-hero > p:last-child {
    margin-block:0;
    font-size:18px;
    line-height:1.625;
  }
  .single-post .medicus-parity-article-image {
    box-sizing:border-box;
    width:1152px;
    max-width:calc(100% - 48px);
    height:493.7px;
    position:relative;
    top:40px;
    margin:0 auto 80px !important;
    padding:0;
  }
  .single-post .medicus-parity-article-image img {
    width:100%;
    height:493.7px;
  }
  .single-post .medicus-parity-article-layout {
    box-sizing:border-box;
    grid-template-columns:772px 288px;
    width:1200px;
    max-width:calc(100% - 48px);
    min-height:1377.5px;
    margin:0 auto !important;
    padding:0 24px 128px;
    gap:84px;
  }
  .single-post .medicus-parity-article-layout article {
    width:772px;
    max-width:100%;
    color:var(--wp--preset--color--muted);
    font-size:16px;
    line-height:28.8px;
  }
  .single-post .medicus-parity-article-layout article > p {
    margin:0 0 24px;
  }
  .single-post .medicus-parity-article-layout article h2 {
    margin:40px 0 16px;
    font-size:24px;
    line-height:32px;
  }
  .single-post .medicus-parity-article-layout .lead {
    font-size:18px;
    line-height:32.4px;
  }
  .single-post .medicus-parity-alarm,
  .single-post .medicus-parity-expert { margin:32px 0; }
  .single-post .medicus-parity-alarm { padding:32px; }
  .single-post .medicus-parity-alarm > b,
  .single-post .medicus-parity-alarm > p:first-child strong {
    display:block;
    line-height:16px;
  }
  .single-post .medicus-parity-alarm > p:first-child { margin:0; }
  .single-post .medicus-parity-alarm ul {
    display:grid;
    gap:12px;
    margin:20px 0 0;
    padding:0;
    list-style:none;
  }
  .single-post .medicus-parity-alarm li {
    min-height:24px;
    margin:0;
    line-height:24px;
  }
  .single-post .medicus-parity-expert {
    padding:28px;
    font-size:16px;
    line-height:28.8px;
  }
  .single-post .medicus-parity-expert > b {
    display:block;
    margin:0 0 8px;
    line-height:28.8px;
  }
  .single-post .medicus-parity-expert > p {
    margin:0;
    font-size:14px;
    line-height:22.75px;
  }
  /* Nagłówek noty w wersji blokowej: akapit z pogrubieniem zamiast <b>. */
  .single-post .medicus-parity-expert > p:first-child {
    margin:0 0 8px;
    font-size:16px;
    line-height:28.8px;
  }
  /* Podpis autora: akapit z klasą zamiast <small>. */
  .single-post .medicus-parity-expert > small,
  .single-post .medicus-parity-expert > .medicus-source {
    display:block;
    margin:12px 0 0;
    font-size:14px;
    line-height:20px;
  }
  .single-post .medicus-parity-related {
    box-sizing:border-box;
    min-height:503px;
    padding:72px max(24px,calc((100% - 1200px)/2));
  }
  .single-post .medicus-parity-related > * {
    width:1152px;
    max-width:100%;
    margin-inline:auto;
  }
  .single-post .medicus-final-cta {
    box-sizing:border-box;
    min-height:560px;
  }
  /* About page: share the React 1200/1152 wrapper and minimum section rhythm. */
  .page-id-8 .entry-content > * { margin-block-start:0 !important; }
  .page-id-8 .medicus-section--about-hero {
    box-sizing:border-box;
    min-height:574px;
    padding:80px 0;
  }
  .page-id-8 .medicus-section--about-hero > .wp-block-columns {
    box-sizing:border-box;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:1200px;
    max-width:calc(100% - 48px) !important;
    min-height:414px;
    margin:0 auto !important;
    padding-inline:24px;
    gap:48px !important;
  }
  .page-id-8 .medicus-section--about-hero > .wp-block-columns > .wp-block-column {
    width:auto !important;
    flex-basis:auto !important;
  }
  .page-id-8 .medicus-section--about-hero figure,
  .page-id-8 .medicus-section--about-hero img {
    width:100%;
    max-width:552px;
    height:414px;
    margin:0;
  }
  .page-id-8 .medicus-stats-band {
    box-sizing:border-box;
    min-height:184px;
    padding-block:40px;
  }
  .page-id-8 .medicus-section--about-founder {
    box-sizing:border-box;
    min-height:904px;
    padding-block:112px;
  }
  .page-id-8 .medicus-section--about-founder > .wp-block-columns {
    box-sizing:border-box;
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:1200px;
    max-width:calc(100% - 48px) !important;
    min-height:680px;
    margin:0 auto !important;
    padding-inline:24px;
    gap:64px !important;
  }
  .page-id-8 .medicus-section--about-founder .medicus-founder-photo,
  .page-id-8 .medicus-section--about-founder .medicus-founder-photo img {
    width:544px;
    max-width:544px;
    min-height:680px;
    margin:0;
  }
  .page-id-8 .medicus-section--about-gallery {
    box-sizing:border-box;
    min-height:726px;
    padding:80px 0;
  }
  .page-id-8 .medicus-section--about-gallery > .medicus-section-header {
    position:relative;
    box-sizing:border-box;
    width:1200px;
    max-width:calc(100% - 48px) !important;
    min-height:118px;
    margin:0 auto 40px !important;
    padding-inline:24px;
  }
  .page-id-8 .medicus-about-gallery__controls {
    position:absolute;
    right:24px;
    bottom:0;
    display:flex;
    gap:8px;
  }
  .medicus-about-gallery__controls button {
    display:grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border:1px solid var(--wp--preset--color--border);
    border-radius:50%;
    background:#fff;
    color:var(--wp--preset--color--foreground);
    font:inherit;
    cursor:pointer;
    transition:border-color .2s,color .2s,transform .2s;
  }
  .medicus-about-gallery__controls button:hover {
    border-color:var(--wp--preset--color--brand);
    color:var(--wp--preset--color--brand);
    transform:translateY(-1px);
  }
  .medicus-about-gallery {
    box-sizing:border-box;
    display:flex;
    width:1200px;
    max-width:calc(100% - 48px) !important;
    height:408px;
    margin:0 auto !important;
    padding:0 24px 8px;
    gap:20px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
  }
  .medicus-about-gallery::-webkit-scrollbar { display:none; }
  .medicus-about-gallery article {
    display:flex;
    flex:0 0 320px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:400px;
    padding:24px;
    scroll-snap-align:start;
    border-radius:12px;
    background:var(--wp--preset--color--surface);
    color:var(--wp--preset--color--muted);
    text-align:center;
  }
  .medicus-about-gallery article span {
    width:24px;
    height:24px;
    background:currentColor;
    -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M14.5 4 16 7h3a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3l1.5-3z"/><circle cx="12" cy="13" r="3"/></svg>') center/contain no-repeat;
    mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M14.5 4 16 7h3a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3l1.5-3z"/><circle cx="12" cy="13" r="3"/></svg>') center/contain no-repeat;
  }
  .medicus-about-gallery article p { margin:12px 0 0; }
  .page-id-8 .medicus-section--about-values {
    box-sizing:border-box;
    min-height:812px;
    padding-block:112px;
  }
  .page-id-8 .medicus-section--about-values > .alignwide {
    box-sizing:border-box;
    width:1200px;
    max-width:calc(100% - 48px) !important;
    margin-inline:auto !important;
    padding-inline:24px;
  }
  .page-id-8 .medicus-section--about-values > .medicus-section-header {
    min-height:73px;
    margin-bottom:56px !important;
  }
  .page-id-8 .medicus-section--about-trust {
    box-sizing:border-box;
    min-height:512px;
    padding-block:80px;
  }
  .page-id-8 .medicus-section--about-trust > * {
    width:768px;
    max-width:calc(100% - 48px) !important;
  }
  .page-id-8 .entry-content > .medicus-final-cta {
    box-sizing:border-box;
    min-height:560px;
  }
  /* Service detail: the React composition uses a 1200px wrapper with 24px
     inner gutters. Reset Gutenberg's global column gap before sizing cards. */
  .medicus-service-single .medicus-parity-service-hero {
    min-height:574px;
    padding:80px 0;
  }
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns {
    box-sizing:border-box;
    width:1200px;
    max-width:calc(100% - 48px) !important;
    min-height:414px;
    margin:0 auto !important;
    padding-inline:24px;
    gap:48px !important;
    transform:none;
  }
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns > .wp-block-column {
    width:auto !important;
    flex-basis:auto !important;
  }
  /* Kolumna z tekstem może się zawijać, kolumna ze zdjęciem trzyma stałą
     szerokość. Bez tego dłuższy tytuł usługi rozpychał kolumnę tekstu,
     a zdjęcie wychodziło poza prawą krawędź ekranu. */
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns > .wp-block-column:first-child {
    min-width:0;
  }
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns > .wp-block-column:last-child {
    flex:0 0 552px;
    max-width:552px;
  }
  .medicus-service-single .medicus-parity-service-hero figure,
  .medicus-service-single .medicus-parity-service-hero img {
    width:552px;
    max-width:100%;
    height:414px;
    margin:0;
    /* Zdjęcia usług mają różne proporcje — kadrujemy zamiast rozciągać. */
    object-fit:cover;
  }
  .medicus-service-single .medicus-section--service-audience,
  .medicus-service-single .medicus-section--service-scope,
  .medicus-service-single .medicus-section--service-process {
    padding:80px 0;
  }
  .medicus-service-single .entry-content > * { margin-block-start:0 !important; }
  .medicus-service-single .medicus-section--service-audience {
    min-height:474px;
  }
  .medicus-service-single .medicus-parity-section > .alignwide,
  .medicus-service-single .medicus-parity-section > .wp-block-columns {
    box-sizing:border-box;
    width:1200px;
    max-width:calc(100% - 48px) !important;
    margin-inline:auto !important;
    padding-inline:24px;
  }
  .medicus-service-single .medicus-section--service-audience > .wp-block-columns {
    gap:96px !important;
  }
  .medicus-service-single .medicus-section--service-scope {
    min-height:557px;
  }
  .medicus-service-single .medicus-section--service-scope .medicus-section-header {
    min-height:73px;
    padding-inline:24px;
  }
  .medicus-service-single .medicus-parity-scope {
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:stretch;
    width:1200px;
    height:auto;
    margin-top:56px !important;
    padding-inline:24px;
    gap:16px !important;
  }
  .medicus-service-single .medicus-parity-scope::after { display:none; }
  .medicus-service-single .medicus-parity-scope > .wp-block-column {
    width:auto !important;
    min-height:74px;
    height:auto;
    padding:16px 20px;
  }
  .medicus-service-single .medicus-section--service-process {
    min-height:496.5px;
  }
  .medicus-service-single .medicus-parity-steps {
    width:1200px;
    margin-top:56px !important;
    padding-inline:24px;
    gap:16px !important;
  }
  .medicus-service-single .medicus-parity-steps > .wp-block-column {
    width:auto !important;
    min-height:207.5px;
    padding:28px;
  }
  .medicus-service-single .medicus-parity-service-testimonial {
    min-height:467px;
    padding:80px 24px;
  }
  .medicus-service-single .medicus-parity-testimonial {
    box-sizing:border-box;
    width:768px;
    max-width:100%;
    min-height:307px;
    padding:48px 64px;
  }
  .medicus-service-single .medicus-parity-scope-last { display:none; }
  .medicus-service-single .medicus-section--compact:has(.medicus-faq-grid) {
    box-sizing:border-box;
    min-height:568px;
    padding-block:80px;
  }
  .medicus-service-single .medicus-final-cta {
    box-sizing:border-box;
    min-height:560px;
  }
  body.home .medicus-home-hero__media figure {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
  }
  body.home .medicus-home-hero__media {
    height:auto;
    align-self:stretch;
  }
  body.home .medicus-home-hero__media img {
    width:100%;
    height:100%;
  }
  body.home .entry-content > .medicus-partners {
    min-height:210px;
    padding-block:56px;
  }
  body.home .entry-content > .medicus-stats {
    min-height:134px;
    padding-block:29px;
    gap:1px;
  }
  body.home .medicus-stats > div { padding-block:8px; }
  body.home .medicus-stats strong { line-height:36px; }
  body.home .medicus-section--home-services > .alignwide,
  body.home .medicus-section--home-services > .wp-block-query {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
  }
  body.home .medicus-section--home-services .medicus-section-header {
    width:100%;
    max-width:1152px !important;
    min-height:192.5px;
    margin-bottom:56px !important;
  }
  body.home .medicus-section--home-services .medicus-section-header h2 {
    margin-top:12px !important;
  }
  body.home .medicus-section--home-services .medicus-section-header h2 + p {
    margin-top:16px !important;
    line-height:1.625;
  }
  body.home .medicus-section--home-services .wp-block-query {
    margin-top:0 !important;
  }
  body.home .medicus-section--home-services .wp-block-post-template {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px !important;
  }
  body.home .medicus-section--home-process {
    padding-block:112px;
  }
  body.home .medicus-section--home-process > .alignwide {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
  }
  body.home .medicus-section--home-process > .alignwide > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-section--home-process > .alignwide > h2 {
    margin:4px 0 16px !important;
  }
  body.home .medicus-section--home-process > .alignwide > h2 + p {
    margin:0 !important;
    line-height:28px;
  }
  body.home .medicus-process-grid {
    width:100% !important;
    max-width:none !important;
    margin:36px 0 0 !important;
    gap:16px !important;
  }
  body.home .medicus-process-grid > .wp-block-column {
    min-height:0;
    height:auto;
    padding:24px;
  }
  body.home .medicus-process-grid > .wp-block-column::before {
    margin:0 0 20px !important;
    font-size:48px;
    line-height:48px;
  }
  body.home .medicus-process-grid h3 {
    margin:0 0 8px !important;
    font-size:16px;
    line-height:24px;
  }
  body.home .medicus-process-grid p {
    margin:0 !important;
    font-size:14px;
    line-height:22.75px;
  }
  body.home .medicus-section--home-process > .alignwide > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-section--home-process > .alignwide > h2 {
    max-width:672px;
    margin:4px 0 16px !important;
  }
  body.home .medicus-section--home-process > .alignwide > h2 + p {
    max-width:672px;
    margin:0 !important;
    line-height:28px;
  }
  body.home .medicus-process-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px !important;
    margin-top:56px !important;
  }
  body.home .medicus-process-grid > .wp-block-column {
    min-height:207.5px;
    padding:28px;
  }
  body.home .medicus-process-grid > .wp-block-column::before {
    margin:0 0 20px !important;
    font-size:48px;
    line-height:48px;
  }
  body.home .medicus-process-grid h3 {
    margin:0 0 8px !important;
    font-size:18px;
    line-height:28px;
  }
  body.home .medicus-process-grid p {
    margin:0 !important;
    font-size:14px;
    line-height:1.625;
  }
  body.home .entry-content > .medicus-testimonials {
    padding-block:112px;
  }
  body.home .medicus-testimonials > .alignwide,
  body.home .medicus-testimonials > .medicus-slider,
  body.home .medicus-testimonials > .medicus-review-logos {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
  }
  body.home .medicus-testimonials > .wp-block-columns {
    min-height:73px;
    gap:24px !important;
  }
  body.home .medicus-testimonials > .wp-block-columns .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-testimonials > .wp-block-columns h2 {
    margin:4px 0 0 !important;
  }
  body.home .medicus-testimonials > .medicus-slider {
    height:391.5px;
    min-height:391.5px;
    margin-top:48px !important;
    padding:48px 64px;
  }
  body.home .medicus-testimonials > .medicus-slider > .wp-block-query,
  body.home .medicus-testimonials > .medicus-slider > .medicus-slider__footer,
  body.home .medicus-testimonials > .medicus-slider > .medicus-slider__progress {
    width:100%;
    max-width:none !important;
    margin-inline:0 !important;
  }
  body.home .medicus-slider__slide,
  body.home .medicus-slider__slide > * {
    width:100%;
    max-width:none !important;
  }
  body.home .medicus-slider__quote,
  body.home .medicus-slider .wp-block-post-excerpt__excerpt {
    width:auto;
    max-width:52ch !important;
    font-size:26px;
    line-height:1.375;
  }
  body.home .medicus-testimonials > .medicus-review-logos {
    min-height:34px;
    height:34px;
    margin-top:40px !important;
  }
  body.home .entry-content > .medicus-section--home-founder {
    padding-block:112px;
  }
  body.home .entry-content > .medicus-section--home-founder > .wp-block-columns {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    min-height:660px;
    gap:96px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo,
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo img {
    width:528px;
    max-width:528px;
    min-height:660px;
    margin:0;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-badge {
    right:-24px;
    bottom:-20px;
    width:160px;
    padding:20px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-badge__value {
    margin:0 0 2px;
    font-size:24px;
    line-height:32px;
    text-align:left;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-badge__label {
    font-size:14px;
    line-height:1.375;
    text-align:left;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child {
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 {
    margin:0 0 8px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 + p {
    margin:0 0 28px !important;
    font-size:20px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 + p + p {
    margin:0 0 20px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 + p + p + p {
    margin:0 0 36px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-check-list {
    display:grid;
    gap:12px;
    min-height:116px;
    margin:0 0 36px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-check-list li {
    margin:0 !important;
    line-height:20px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-check-list li {
    min-height:20px;
    margin:0;
    line-height:20px;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > p:last-child,
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > p:last-child a {
    margin:0 !important;
    font-size:14px;
    line-height:20px;
  }
  body.home .entry-content > .medicus-video {
    min-height:0;
    padding-block:80px;
  }
  body.home .medicus-video > .alignwide {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
  }
  body.home .medicus-video .medicus-section-header {
    min-height:147.5px;
    margin-bottom:40px !important;
  }
  body.home .medicus-video .medicus-section-header > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-video .medicus-section-header > h2 {
    margin:4px 0 16px !important;
  }
  body.home .medicus-video .medicus-section-header > h2 + p {
    margin:0 !important;
    line-height:1.625;
  }
  body.home .medicus-video-player {
    width:1152px;
    height:648px;
    margin-top:0;
  }
  body.home .entry-content > .medicus-section--home-foundation > .wp-block-columns {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:center;
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    min-height:465px;
    gap:80px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 {
    margin:26px 0 20px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 + p {
    margin:0 0 16px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 + p + p {
    margin:0 0 36px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-buttons {
    margin:0 !important;
    gap:12px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-button__link {
    min-height:58px;
    padding:16px 28px;
  }
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo,
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo img {
    width:536px;
    height:402px;
    margin:0;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:last-child {
    display:flex;
    align-items:center;
    align-self:stretch;
  }
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo,
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo img {
    aspect-ratio:4 / 3;
    object-fit:cover;
  }
  body.home .medicus-faq-grid {
    display:grid !important;
    grid-template-columns:340px minmax(0,1fr);
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    min-height:408px;
    gap:80px !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > h2 {
    margin:4px 0 20px !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > h2 + p {
    margin:0 0 32px !important;
    font-size:15px;
    line-height:1.625;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child .wp-block-buttons,
  body.home .medicus-faq-grid > .wp-block-column:first-child .wp-block-button {
    width:100%;
    margin:0 !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child .wp-block-button__link {
    width:100%;
    min-height:52px;
    padding:14px 24px;
  }
  body.home .medicus-faq-grid details {
    box-sizing:border-box;
    min-height:70px;
    margin:0 0 14px !important;
  }
  body.home .medicus-faq-grid summary { padding:22px 24px; }
  body.home .medicus-faq-grid .medicus-faq-panel__inner { padding:0 24px 22px; }
  body.home .medicus-faq-grid details:last-child { margin-bottom:0 !important; }
  body.home .medicus-final-cta > .medicus-eyebrow,
  body.home .medicus-final-cta > .medicus-final-cta__title {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
  }
  body.home .medicus-final-cta > .medicus-eyebrow {
    margin:0 auto 16px !important;
  }
  body.home .medicus-final-cta > .medicus-final-cta__title {
    margin:0 auto 20px !important;
    font-size:52px !important;
    line-height:65px !important;
  }
  body.home .medicus-final-cta > .medicus-final-cta__lead {
    width:448px;
    max-width:448px !important;
    margin:0 auto 40px !important;
    font-size:18px !important;
    line-height:1.625;
  }
  body.home .medicus-final-cta > .wp-block-buttons {
    margin:0 auto !important;
    gap:16px !important;
  }
}

.page-id-11 .medicus-parity-blog-grid-section.is-filtered {
  box-sizing:border-box;
  height:auto;
  padding-top:40px;
}
.page-id-11 .medicus-parity-blog-grid-section.is-filtered > .medicus-eyebrow {
  margin-bottom:32px !important;
}

/* Home FAQ and final CTA share the same responsive shell as their React
   counterparts. Core's constrained Columns otherwise expand to the viewport
   below 1024px and the CTA switches to a row 40px too early. */
body.home .medicus-final-cta__lead {
  width:min(100%,448px);
  max-width:448px !important;
  font-size:18px !important;
  font-weight:400;
  line-height:1.625;
}
body.home .medicus-final-cta > .wp-block-buttons {
  gap:16px !important;
}
body.home .entry-content > .medicus-section--home-foundation .medicus-pill--foundation {
  margin-bottom:28px !important;
}
body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 {
  margin-top:0 !important;
}

@media (max-width:1023px) {
  body.home .entry-content > .medicus-partners {
    box-sizing:border-box;
    min-height:190px;
    padding-block:49px;
  }
  body.home .medicus-partners > .medicus-eyebrow {
    margin:0 0 32px !important;
  }
  body.home .entry-content > .medicus-stats {
    box-sizing:border-box;
    padding-block:32px;
  }
  body.home .medicus-stats > div {
    border-right:0;
  }
  body.home .medicus-stats strong {
    margin-bottom:4px;
    line-height:36px;
  }
  body.home .medicus-stats span {
    display:block;
    line-height:20px;
  }
  body.home .medicus-section--home-services {
    padding-inline:0;
    padding-block:clamp(72px,8vw,112px);
  }
  body.home .medicus-section--home-services > .alignwide,
  body.home .medicus-section--home-services > .wp-block-query {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    margin-inline:auto !important;
  }
  body.home .medicus-section--home-services .medicus-section-header {
    margin-bottom:clamp(36px,4vw,41px) !important;
  }
  body.home .medicus-section--home-services .medicus-section-header > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-section--home-services .medicus-section-header > h2 {
    margin:4px 0 16px !important;
  }
  body.home .medicus-section--home-services .medicus-section-header > h2 + p {
    margin:0 !important;
    line-height:1.625;
  }
  body.home .medicus-section--home-services .wp-block-post-template {
    gap:20px !important;
  }
  body.home .medicus-service-card {
    box-sizing:border-box;
    height:auto;
    min-height:0;
    padding:28px !important;
  }
  body.home .medicus-service-card > p:first-child {
    height:48px;
    margin:0 0 20px !important;
    line-height:0;
  }
  body.home .medicus-service-card .medicus-icon-tile {
    width:48px;
    height:48px;
    margin:0;
  }
  body.home .medicus-service-card .wp-block-post-title {
    margin:0 0 8px !important;
    color:#161a1e;
    font-size:17px;
    line-height:25.5px;
  }
  body.home .medicus-service-card .wp-block-post-title a {
    color:inherit;
  }
  body.home .medicus-service-card .wp-block-post-excerpt {
    margin:0 !important;
    font-size:14px;
    line-height:22.75px;
  }
  body.home .medicus-service-card .wp-block-read-more {
    margin-top:20px !important;
    color:var(--wp--preset--color--brand);
    font-size:14px;
    line-height:20px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-check-list {
    display:grid;
    gap:12px;
    height:116px;
    margin:0 0 36px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-check-list li {
    min-height:20px;
    margin:0 !important;
    line-height:20px;
  }
  body.home .medicus-section--home-process {
    padding-block:clamp(72px,8vw,112px);
  }
  body.home .medicus-section--home-process > .alignwide {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    margin-inline:auto !important;
  }
  body.home .medicus-section--home-process > .alignwide > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-section--home-process > .alignwide > h2 {
    margin:4px 0 16px !important;
  }
  body.home .medicus-section--home-process > .alignwide > h2 + p {
    margin:0 !important;
    line-height:28px;
  }
  body.home .medicus-process-grid {
    width:100% !important;
    max-width:none !important;
    margin:36px 0 0 !important;
    gap:16px !important;
  }
  body.home .medicus-process-grid > .wp-block-column {
    min-height:0;
    height:auto;
    padding:24px;
  }
  body.home .medicus-process-grid > .wp-block-column::before {
    margin:0 0 20px !important;
    font-size:48px;
    line-height:48px;
  }
  body.home .medicus-process-grid h3 {
    margin:0 0 8px !important;
    font-size:16px;
    line-height:24px;
  }
  body.home .medicus-process-grid p {
    margin:0 !important;
    font-size:14px;
    line-height:22.75px;
  }
  body.home .medicus-section:has(> .medicus-faq-grid) {
    box-sizing:border-box;
    min-height:0;
    height:auto;
    padding-block:clamp(72px,8vw,112px);
  }
  body.home .medicus-faq-grid {
    box-sizing:border-box;
    display:flex !important;
    flex-direction:column;
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    height:auto;
    margin-inline:auto !important;
    gap:48px !important;
  }
  body.home .medicus-faq-grid > .wp-block-column {
    width:100%;
    flex:0 0 auto !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > h2 {
    margin:4px 0 20px !important;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > h2 + p {
    margin:0 0 32px !important;
    font-size:15px;
    line-height:1.625;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > .wp-block-button,
  body.home .medicus-faq-grid > .wp-block-column:first-child > .wp-block-button .wp-block-button__link {
    box-sizing:border-box;
    width:100%;
  }
  body.home .medicus-faq-grid > .wp-block-column:first-child > .wp-block-button .wp-block-button__link {
    min-height:52px;
    padding:14px 24px;
  }
  body.home .medicus-faq-grid .medicus-contact-hours {
    width:100%;
    max-width:none !important;
    margin:20px 0 0 !important;
    padding:16px;
  }
  body.home .medicus-faq-grid details {
    box-sizing:border-box;
    min-height:0;
    margin:0 0 12px !important;
  }
  body.home .medicus-faq-grid summary { padding:24px; }
  body.home .medicus-faq-grid .medicus-faq-panel__inner { padding:0 24px 24px; }
  body.home .medicus-faq-grid summary {
    line-height:22px;
  }
  body.home .medicus-faq-grid details:last-child {
    margin-bottom:0 !important;
  }
}

@media (max-width:639px) {
  body.home .entry-content > .medicus-stats {
    padding-block:28px;
  }
  body.home .medicus-faq-grid summary { padding:20px; }
  body.home .medicus-faq-grid .medicus-faq-panel__inner { padding:0 20px 20px; }
  body.home .medicus-final-cta > .wp-block-buttons {
    flex-direction:column;
    align-items:center;
  }
}

@media (max-width:479px) {
  body.home .entry-content > .medicus-stats {
    padding-block:24px;
  }
}

/* Service cards keep the same 48px icon and type rhythm at every breakpoint;
   only the grid changes responsively in the React implementation. */
body.home .medicus-service-card > p:first-child {
  height:48px;
  margin:0 0 20px !important;
  line-height:0;
}
body.home .medicus-service-card .medicus-icon-tile {
  width:48px;
  height:48px;
  margin:0;
}
body.home .medicus-service-card .medicus-icon {
  stroke-width:1.75;
}
body.home .medicus-service-card .wp-block-post-title {
  margin:0 0 8px !important;
  color:#161a1e;
  font-size:17px;
  line-height:25.5px;
}
body.home .medicus-service-card .wp-block-post-title a,
body.home .medicus-service-card .wp-block-post-title a:hover {
  color:inherit;
}
body.home .medicus-service-card .wp-block-post-excerpt {
  margin:0 !important;
  font-size:14px;
  line-height:22.75px;
}
body.home .medicus-service-card .wp-block-read-more {
  margin-top:20px !important;
}
body.home .medicus-faq-grid summary::after {
  color:var(--wp--preset--color--brand);
}

@media (min-width:1200px) {
  body.home .medicus-faq-grid {
    grid-template-columns:340px 730px;
    width:1151px;
    gap:81px !important;
  }
}

@media (max-width:1023px) {
  body.home .medicus-final-cta {
    padding-block:clamp(72px,8vw,82px);
  }
  body.home .medicus-final-cta > .medicus-final-cta__title {
    margin-top:16px !important;
  }
  body.home .medicus-final-cta > .medicus-final-cta__lead {
    margin-top:20px !important;
  }
}

/* The 1024px boundary already uses two-column React layouts, but the full
   1440px media sizes must fluidly shrink inside the available 976px canvas. */
@media (min-width:1024px) and (max-width:1199px) {
  /* React switches to its lg composition at 1024px, while the 1200px shell
     still spans the viewport. Do not subtract the 24px gutters twice. */
  .page-id-8 .medicus-section--about-hero > .wp-block-columns,
  .page-id-8 .medicus-section--about-founder > .wp-block-columns,
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns,
  .medicus-service-single .medicus-parity-scope,
  .medicus-service-single .medicus-parity-steps {
    width:100%;
    max-width:100% !important;
  }
  body.home .medicus-section--home-services {
    box-sizing:border-box;
    min-height:907px;
  }
  body.home .medicus-section--home-process {
    box-sizing:border-box;
    min-height:597px;
    padding-block:80px;
  }
  body.home .entry-content > .medicus-testimonials {
    box-sizing:border-box;
    min-height:750px;
    padding-block:80px;
  }
  body.home .entry-content > .medicus-section--home-founder {
    box-sizing:border-box;
    min-height:713px;
    padding-block:81.5px;
  }
  body.home .entry-content > .medicus-section--home-founder > .wp-block-columns {
    min-height:550px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo,
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo img {
    height:550px;
    object-fit:cover;
  }
  body.home .entry-content > .medicus-video {
    box-sizing:border-box;
    min-height:859px;
    padding-block:61.5px;
  }
  body.home .medicus-video .medicus-section-header {
    min-height:147.5px;
  }
  body.home .entry-content > .medicus-section--home-foundation {
    box-sizing:border-box;
    min-height:656px;
  }
  .page-id-8 .medicus-section--about-hero {
    min-height:470px;
    padding-block:61px;
  }
  .page-id-8 .medicus-section--about-hero > .wp-block-columns {
    min-height:348px;
  }
  .page-id-8 .medicus-section--about-hero figure,
  .page-id-8 .medicus-section--about-hero img {
    max-width:none;
    height:348px;
  }
  .page-id-8 .medicus-section--about-founder {
    min-height:733px;
    padding-block:80px;
  }
  .page-id-8 .medicus-section--about-founder > .wp-block-columns {
    min-height:573px;
  }
  .page-id-8 .medicus-section--about-founder .medicus-founder-photo,
  .page-id-8 .medicus-section--about-founder .medicus-founder-photo img {
    width:100%;
    max-width:none;
    min-height:570px;
    object-fit:cover;
  }
  .page-id-8 .entry-content > .medicus-final-cta {
    min-height:499px;
  }
  .medicus-service-single .medicus-parity-service-hero {
    box-sizing:border-box;
    min-height:470px;
    padding-block:61px;
  }
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns {
    min-height:348px;
  }
  .medicus-service-single .medicus-parity-service-hero figure,
  .medicus-service-single .medicus-parity-service-hero img {
    height:348px;
    object-fit:cover;
  }
  .medicus-service-single .medicus-section--service-process {
    min-height:444px;
  }
  .medicus-service-single .medicus-parity-service-testimonial {
    min-height:429px;
    padding-block:61px;
  }
  .medicus-service-single .medicus-section--compact:has(.medicus-faq-grid) {
    min-height:530px;
    padding-block:61px;
  }
  .medicus-service-single .medicus-final-cta {
    min-height:499px;
  }
  body.home .medicus-video-player,
  body.home .medicus-video-player video {
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:16 / 9;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo,
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo img,
  body.home .medicus-rounded-photo,
  body.home .medicus-rounded-photo img {
    width:100%;
    max-width:100%;
    height:auto;
  }
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo,
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo img {
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:4 / 3;
    object-fit:cover;
  }
  .medicus-service-single .medicus-parity-service-hero figure,
  .medicus-service-single .medicus-parity-service-hero img {
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:4 / 3;
  }
  .medicus-service-single .medicus-parity-service-hero > .wp-block-columns > .wp-block-column {
    flex:1 1 0 !important;
    min-width:0;
  }
}

/* Home testimonials: final geometry contract shared with the React slider.
   Core Columns and constrained-layout block gaps otherwise introduce a second
   breakpoint at 782px and push the controls outside the clipped card. */
body.home .medicus-testimonials > .wp-block-columns {
  align-items:flex-end !important;
  justify-content:space-between;
}
body.home .medicus-testimonials > .wp-block-columns > .wp-block-column:first-child {
  flex:0 1 auto;
}
body.home .medicus-testimonials > .wp-block-columns > .wp-block-column:last-child {
  flex:0 0 auto;
  align-self:flex-end;
}
body.home .medicus-testimonials__score {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  margin:0 !important;
  font-size:14px;
  line-height:20px;
}
body.home .medicus-testimonials__score .medicus-slider__stars {
  flex:0 0 auto;
  gap:4px;
  vertical-align:0;
}
body.home .medicus-testimonials__score .medicus-icon {
  width:16px;
  height:16px;
}
body.home .medicus-testimonials__score > a {
  display:block;
  line-height:20px;
}
body.home .medicus-slider__name-row {
  align-items:baseline !important;
  gap:4px !important;
}
body.home .medicus-slider__name,
body.home .medicus-slider__location {
  line-height:20px;
}
body.home .medicus-slider__location {
  font-weight:400;
}
body.home .medicus-slider__source-row {
  margin:4px 0 0 !important;
  font-weight:400;
  line-height:20px;
}
body.home .medicus-slider__source {
  font-weight:400;
  line-height:20px;
}
body.home .medicus-slider__slide {
  min-height:var(--medicus-slider-slide-height,0px);
}

@media (max-width:1023px) {
  body.home .entry-content > .medicus-testimonials {
    padding-block:clamp(72px,8vw,112px);
  }
  body.home .medicus-testimonials > .wp-block-columns {
    display:flex !important;
    flex-direction:column;
    align-items:flex-start !important;
    gap:24px !important;
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    min-height:0;
    height:auto;
  }
  body.home .medicus-testimonials > .wp-block-columns > .wp-block-column {
    width:100%;
    flex:0 0 auto !important;
    align-self:stretch;
  }
  body.home .medicus-testimonials > .wp-block-columns .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-testimonials > .wp-block-columns h2 {
    margin:4px 0 0 !important;
  }
  body.home .medicus-testimonials__score {
    text-align:left;
  }
  body.home .medicus-testimonials > .medicus-slider {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    margin-top:48px !important;
  }
  body.home .medicus-testimonials > .medicus-review-logos {
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    margin-top:40px !important;
  }

  body.home .entry-content > .medicus-video {
    box-sizing:border-box;
    min-height:0;
    height:auto;
    padding-block:clamp(56px,6vw,80px);
  }
  body.home .medicus-video > .alignwide {
    box-sizing:border-box;
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    margin-inline:auto !important;
  }
  body.home .medicus-video .medicus-section-header {
    width:100%;
    max-width:672px !important;
    min-height:0;
    height:auto;
    margin:0 0 40px !important;
  }
  body.home .medicus-video .medicus-section-header > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .medicus-video .medicus-section-header > h2 {
    margin:4px 0 16px !important;
  }
  body.home .medicus-video .medicus-section-header > h2 + p {
    margin:0 !important;
    line-height:1.625;
  }
  body.home .medicus-video-player,
  body.home .medicus-video-player video {
    width:100%;
    max-width:100%;
    height:auto;
    aspect-ratio:16 / 9;
  }
  body.home .medicus-video-player {
    margin:0 !important;
  }

  body.home .entry-content > .medicus-section--home-foundation {
    box-sizing:border-box;
    min-height:0;
    height:auto;
    padding-block:clamp(72px,8vw,112px);
  }
  body.home .entry-content > .medicus-section--home-foundation > .wp-block-columns {
    box-sizing:border-box;
    display:flex !important;
    flex-direction:column;
    align-items:stretch !important;
    width:100%;
    max-width:1200px !important;
    height:auto;
    margin-inline:auto !important;
    padding-inline:24px;
    gap:48px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation > .wp-block-columns > .wp-block-column {
    width:100%;
    flex:0 0 auto !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .medicus-pill {
    margin:0 0 28px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 {
    margin:0 0 20px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 + p {
    margin:0 0 16px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-column:first-child > h2 + p + p {
    margin:0 0 36px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-buttons {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    margin:0 !important;
    gap:12px !important;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-button,
  body.home .entry-content > .medicus-section--home-foundation .wp-block-button__link {
    width:100%;
    box-sizing:border-box;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-button__link {
    min-height:58px;
    padding:16px 28px;
  }
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo,
  body.home .entry-content > .medicus-section--home-foundation .medicus-rounded-photo img {
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    margin:0;
    aspect-ratio:4 / 3;
    object-fit:cover;
  }

  body.home .entry-content > .medicus-section--home-founder {
    padding-block:clamp(72px,8vw,112px);
  }
  body.home .entry-content > .medicus-section--home-founder > .wp-block-columns {
    box-sizing:border-box;
    width:min(calc(100% - 3rem),1152px);
    max-width:1152px !important;
    margin-inline:auto !important;
    row-gap:48px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-media {
    width:100%;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo {
    width:min(100%,384px);
    max-width:384px;
    margin-inline:auto;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-photo img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:4 / 5;
    object-fit:cover;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-badge {
    right:16px;
    bottom:-20px;
    box-sizing:border-box;
    width:160px;
    padding:20px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-badge__value {
    margin:0 0 2px;
    font-size:24px;
    line-height:32px;
    text-align:left;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-founder-badge__label {
    font-size:14px;
    line-height:1.375;
    text-align:left;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 {
    margin:0 0 8px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 + p {
    margin:0 0 28px !important;
    font-size:20px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 + p + p {
    margin:0 0 20px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > h2 + p + p + p {
    margin:0 0 36px !important;
    line-height:28px;
  }
  body.home .entry-content > .medicus-section--home-founder .medicus-check-list {
    display:grid;
    gap:12px;
    margin:0 0 36px !important;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > p:last-child {
    margin:0 !important;
    line-height:20px;
  }
  body.home .entry-content > .medicus-section--home-founder .wp-block-column:last-child > p:last-child a {
    font-size:14px;
    line-height:20px;
  }
}

/* Gutenberg changes columns at 782px; the reference keeps its large
   two-column compositions stacked until Tailwind's 1024px `lg` boundary. */
@media (min-width:782px) and (max-width:1023px) {
  .medicus-parity-hero > .wp-block-columns,
  .medicus-parity-service-hero > .wp-block-columns,
  .medicus-parity-foundation-hero > .wp-block-columns,
  .medicus-parity-guestbook-hero > .wp-block-columns,
  .page-id-8 .medicus-section--about-hero > .wp-block-columns,
  .page-id-8 .medicus-section--about-founder > .wp-block-columns {
    flex-wrap:wrap !important;
  }
  .medicus-parity-hero > .wp-block-columns > .wp-block-column,
  .medicus-parity-service-hero > .wp-block-columns > .wp-block-column,
  .medicus-parity-foundation-hero > .wp-block-columns > .wp-block-column,
  .medicus-parity-guestbook-hero > .wp-block-columns > .wp-block-column,
  .page-id-8 .medicus-section--about-hero > .wp-block-columns > .wp-block-column,
  .page-id-8 .medicus-section--about-founder > .wp-block-columns > .wp-block-column {
    flex-basis:100% !important;
    width:100% !important;
  }
  .medicus-parity-services__grid,
  .medicus-parity-blog-grid .wp-block-post-template,
  .medicus-parity-scope,
  .medicus-parity-card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group {
    display:block;
    height:auto;
    min-height:0;
  }
  .medicus-parity-featured-post .wp-block-post-featured-image img {
    aspect-ratio:16 / 9;
  }
  .medicus-parity-article-layout {
    grid-template-columns:1fr;
    gap:2rem;
  }
  .medicus-parity-article-sidebar { position:static; }
  body.home .medicus-section:has(.medicus-founder-photo) > .wp-block-columns,
  body.home .medicus-section.has-foundation-light-background-color > .wp-block-columns {
    flex-wrap:wrap !important;
  }
  body.home .medicus-section:has(.medicus-founder-photo) > .wp-block-columns > .wp-block-column,
  body.home .medicus-section.has-foundation-light-background-color > .wp-block-columns > .wp-block-column {
    flex-basis:100% !important;
    width:100% !important;
  }

  /* Contact: React only introduces the phone-band row and the
     form/sidebar grid at its 1024px `lg` boundary. */
  .page-id-9 .medicus-phone-band > .wp-block-columns,
  .page-id-9 .medicus-section--contact-form > .wp-block-columns {
    flex-wrap:wrap !important;
  }
  .page-id-9 .medicus-phone-band > .wp-block-columns > .wp-block-column,
  .page-id-9 .medicus-section--contact-form > .wp-block-columns > .wp-block-column {
    flex-basis:100% !important;
    width:100% !important;
  }

  /* Jobs: stacked large compositions, with the benefits retaining the
     reference `sm:grid-cols-2` arrangement. */
  .page-id-10 .medicus-section--jobs-hero > .wp-block-columns,
  .page-id-10 .medicus-section--jobs-recruitment > .wp-block-columns {
    flex-wrap:wrap !important;
  }
  .page-id-10 .medicus-section--jobs-hero > .wp-block-columns > .wp-block-column,
  .page-id-10 .medicus-section--jobs-recruitment > .wp-block-columns > .wp-block-column {
    flex-basis:100% !important;
    width:100% !important;
  }
  .page-id-10 .medicus-section--jobs-benefits > .wp-block-columns {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .page-id-10 .medicus-section--jobs-benefits > .wp-block-columns > .wp-block-column {
    width:auto !important;
    min-width:0;
  }

  /* About: value cards use two columns from `sm`, never three before lg. */
  .page-id-8 .medicus-section--about-values > .wp-block-columns {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .page-id-8 .medicus-section--about-values > .wp-block-columns > .wp-block-column {
    width:auto !important;
    min-width:0;
  }

  /* Foundation: stats stay 2x2 and the two narrative compositions remain
     stacked until the same `lg` boundary as the React source. */
  .page-id-12 .medicus-parity-stats > .wp-block-columns {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .page-id-12 .medicus-parity-stats > .wp-block-columns > .wp-block-column {
    width:auto !important;
    min-width:0;
  }
  .page-id-12 .medicus-section--foundation-audience > .wp-block-columns,
  .page-id-12 .medicus-section--foundation-transparency > .wp-block-columns {
    flex-wrap:wrap !important;
  }
  .page-id-12 .medicus-section--foundation-audience > .wp-block-columns > .wp-block-column,
  .page-id-12 .medicus-section--foundation-transparency > .wp-block-columns > .wp-block-column {
    flex-basis:100% !important;
    width:100% !important;
  }

  .medicus-service-single .medicus-section--service-audience > .wp-block-columns {
    flex-wrap:wrap !important;
  }
  .medicus-service-single .medicus-section--service-audience > .wp-block-columns > .wp-block-column {
    flex-basis:100% !important;
    width:100% !important;
  }
}

/* Support follows sm (640px) and lg (1024px), not Gutenberg's 782px
   Columns breakpoint. These two grids are deliberately denser on tablets. */
@media (min-width:640px) and (max-width:1023px) {
  body.home .entry-content > .medicus-section--home-foundation .wp-block-buttons {
    flex-direction:row;
    align-items:center;
  }
  body.home .entry-content > .medicus-section--home-foundation .wp-block-button,
  body.home .entry-content > .medicus-section--home-foundation .wp-block-button__link {
    width:auto;
  }
  .page-id-8 .medicus-section--about-values > .wp-block-columns,
  .page-id-12 .medicus-parity-card-grid--foundation,
  .page-id-12 .medicus-parity-stats > .wp-block-columns {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .page-id-8 .medicus-section--about-values > .wp-block-columns > .wp-block-column,
  .page-id-12 .medicus-parity-card-grid--foundation > .wp-block-column,
  .page-id-12 .medicus-parity-stats > .wp-block-columns > .wp-block-column {
    width:auto !important;
    min-width:0;
  }
  .page-id-11 .medicus-parity-hero {
    padding-block:clamp(3.5rem,6vw,5rem);
  }
  .page-id-11 .medicus-parity-hero h1 {
    font-size:48px;
    line-height:60px;
  }
  .page-id-11 .medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group > * {
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
  }
  .page-id-11 .medicus-parity-featured-post .medicus-parity-featured-post__body {
    margin-top:0 !important;
    padding:28px;
  }
  .page-id-11 .medicus-parity-featured-post {
    margin-top:40px !important;
    margin-bottom:32px !important;
  }

  .page-id-13 .medicus-parity-support-spending {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .page-id-13 .medicus-parity-support-level-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .page-id-12 .medicus-parity-foundation-hero {
    padding:clamp(3.5rem,6vw,5rem) 0;
  }
  .page-id-12 .medicus-parity-foundation-hero > .wp-block-columns {
    width:1200px;
    max-width:100% !important;
    margin-inline:auto !important;
    padding-inline:24px;
    gap:48px !important;
  }
  .page-id-12 .medicus-parity-foundation-hero h1 {
    font-size:48px !important;
    line-height:60px;
    margin-top:0;
  }
  .page-id-12 .medicus-parity-foundation-hero h1 mark {
    display:block;
  }
  .page-id-12 .medicus-parity-donation-cta {
    box-sizing:border-box;
    min-height:632px;
    padding-block:64px;
  }
  .page-id-12 .medicus-parity-donation-cta > .medicus-eyebrow {
    color:#fff;
  }
  .page-id-12 .medicus-parity-donation-cta .medicus-placeholder {
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:center;
    width:576px;
    max-width:100%;
    min-height:316px;
    margin-top:40px;
    padding:40px 48px;
    border:0;
    border-radius:12px;
    background:#fff;
    text-align:center;
  }
  .page-id-12 .medicus-parity-donation-cta .medicus-placeholder > * {
    margin-inline:auto;
  }

  .page-id-8 .medicus-stats-band .medicus-stats,
  .page-id-12 .medicus-parity-stats > .wp-block-columns {
    padding:40px 24px;
    gap:1px;
  }
  .page-id-8 .medicus-stats-band .medicus-stats > div,
  .page-id-12 .medicus-parity-stats > .wp-block-columns > .wp-block-column {
    padding:20px 24px;
  }
  .page-id-12 .medicus-parity-stats {
    padding:0;
  }

  /* All services: reproduce the 812px React article and its compact internal
     grid. Gutenberg's constrained layout otherwise adds 43px side margins to
     every child and stretches each card by more than 150px. */
  .page-id-7 .medicus-service-article {
    box-sizing:border-box;
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    align-items:center;
    column-gap:16px;
    width:812px;
    max-width:calc(100% - 48px) !important;
    min-height:324px;
    margin:0 auto 24px !important;
    padding:28px;
  }
  .page-id-7 .medicus-service-article > * {
    width:auto !important;
    max-width:none !important;
    margin-inline:0 !important;
  }
  .page-id-7 .medicus-service-article__head {
    grid-column:1;
    grid-row:1;
    height:48px;
    margin:0 !important;
  }
  .page-id-7 .medicus-service-article__head .medicus-icon-tile {
    width:48px;
    height:48px;
    margin:0;
  }
  .page-id-7 .medicus-service-article > h2 {
    grid-column:2;
    grid-row:1;
    margin:0 !important;
  }
  .page-id-7 .medicus-service-article > :is(p,ul,.wp-block-buttons) {
    grid-column:1 / -1;
  }
  .page-id-7 .medicus-service-article > p {
    margin:16px 0 0 !important;
    line-height:26px;
  }
  .page-id-7 .medicus-service-article > ul {
    margin:24px 0 0 !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:32px;
    row-gap:10px;
  }
  .page-id-7 .medicus-service-article > ul > li {
    margin:0;
    font-size:14px;
    line-height:20px;
  }
  .page-id-7 .medicus-service-article > .wp-block-buttons {
    margin:28px 0 0 !important;
    gap:12px;
  }
  .page-id-7 .medicus-section--all-services-senior-care {
    margin-top:clamp(3.5rem,6vw,5rem) !important;
  }
  .page-id-7 .medicus-section--all-services-equipment {
    margin-bottom:clamp(3.5rem,6vw,5rem) !important;
  }

  .single-post .medicus-parity-related > div {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* The React support FAQ contains only its label and heading in the leading
   column. WordPress keeps reusable contact helpers in the block markup; they
   must not alter this page's geometry at any breakpoint. */
.page-id-13 .medicus-faq-grid > .wp-block-column:first-child > p:not(.medicus-eyebrow),
.page-id-13 .medicus-faq-grid > .wp-block-column:first-child > .wp-block-button,
.page-id-13 .medicus-faq-grid .medicus-contact-hours {
  display:none;
}

/* The React layout keeps its compact navigation and service-card flow up to
   the `lg` boundary. Core blocks switch at 782px, so these explicit rules
   prevent an intermediate three-column layout between the two systems. */
@media (max-width:1023px) {
  .page-id-6 .medicus-parity-hero {
    padding-inline:24px;
  }
  .page-id-6 .entry-content > .medicus-section .wp-block-query {
    width:calc(100% - 48px);
    margin-inline:auto;
  }
  .medicus-parity-blog-filters {
    overflow:hidden;
  }
  .medicus-parity-blog-filters__row {
    justify-content:flex-start;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
  }
  .medicus-parity-blog-filters__row::-webkit-scrollbar {
    display:none;
  }
  .medicus-parity-services__grid {
    grid-template-columns:1fr !important;
  }
  .page-id-6 .entry-content > .medicus-section .wp-block-post-template {
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
  .page-id-6 .medicus-service-card {
    gap:0;
    min-height:0;
    padding:28px !important;
  }
  .page-id-6 .medicus-service-card > * {
    margin-block-start:0 !important;
  }
  .page-id-6 .medicus-service-card > p:first-child {
    height:48px;
    margin:0 0 20px !important;
    line-height:0;
  }
  .page-id-6 .medicus-service-card .medicus-icon-tile {
    margin:0;
  }
  .page-id-6 .medicus-service-card > p:empty {
    display:none;
  }
  .page-id-6 .medicus-service-card .wp-block-post-title {
    margin:0 0 12px !important;
    font-size:20px;
    line-height:28px;
  }
  .page-id-6 .medicus-service-card .wp-block-post-excerpt {
    margin:0 0 20px !important;
    font-size:14px;
    line-height:22.75px;
  }
  .page-id-6 .medicus-service-card__features {
    gap:8px;
    margin:0 0 28px !important;
  }
  .page-id-6 .medicus-service-card__features li {
    min-height:20px;
    font-size:14px;
    line-height:20px;
  }
  .page-id-6 .medicus-service-card .wp-block-read-more {
    min-height:20px;
    margin:0 !important;
    font-size:14px;
    line-height:20px;
  }
  .medicus-parity-blog-grid .wp-block-post-template {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.home .medicus-section--home-services .wp-block-post-template {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (min-width:640px) and (max-width:1023px) {
  .page-id-6 .medicus-parity-hero {
    padding-block:72px;
  }
  .page-id-6 .medicus-parity-hero h1 {
    font-size:48px;
    line-height:60px;
  }
}

@media (min-width:768px) and (max-width:1023px) {
  body.home .medicus-process-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (min-width:640px) and (max-width:767px) {
  body.home .medicus-process-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media (max-width:639px) {
  .medicus-parity-blog-grid .wp-block-post-template,
  body.home .medicus-section--home-services .wp-block-post-template {
    grid-template-columns:1fr !important;
  }
  body.home .medicus-process-grid {
    display:grid !important;
    grid-template-columns:1fr !important;
  }
}

@media (min-width:1024px) and (max-width:1199px) {
  .single-post .medicus-parity-article-layout {
    width:100%;
    max-width:100%;
    grid-template-columns:minmax(0,1fr) 240px;
    gap:32px;
  }
  .single-post .medicus-parity-article-layout article {
    width:auto;
  }
}

.entry-content.is-layout-flow > * { margin-block-start:0 !important; }

/* Final responsive hero sizing. Gutenberg assigns percentage flex bases to
   Columns below 782px and a viewport-height minimum above it; explicit bases
   keep the media/copy boundary identical to the React breakpoints. */
@media (max-width:1023px) {
  body.home .medicus-home-hero__grid {
    height:auto;
    min-height:0;
    max-height:none;
  }
}
@media (max-width:639px) {
  body.home .medicus-home-hero__media {
    flex:0 0 350px !important;
    height:350px;
    min-height:350px;
  }
  /* Mobile React shells retain a 24px gutter inside full-width sections. */
  .page-id-8 .medicus-section--about-hero,
  .page-id-12 .medicus-parity-foundation-hero {
    padding-block:56px;
  }
  .page-id-8 .medicus-section--about-hero > .wp-block-columns,
  .page-id-12 .medicus-parity-foundation-hero > .wp-block-columns {
    box-sizing:border-box;
    display:grid !important;
    width:100%;
    max-width:100% !important;
    margin:0 !important;
    padding-inline:24px;
    gap:48px !important;
  }
  .page-id-8 .medicus-section--about-hero > .wp-block-columns > .wp-block-column,
  .page-id-12 .medicus-parity-foundation-hero > .wp-block-columns > .wp-block-column {
    width:100% !important;
    margin:0 !important;
  }
  .page-id-8 .medicus-section--about-hero .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  .page-id-8 .medicus-section--about-hero h1,
  .page-id-12 .medicus-parity-foundation-hero h1 {
    font-size:48px !important;
    line-height:60px;
  }
  .page-id-8 .medicus-section--about-hero h1 {
    margin:4px 0 20px !important;
  }
  .page-id-8 .medicus-section--about-hero h1 + p {
    margin:0 0 24px !important;
    font-size:20px !important;
    line-height:32.5px;
  }
  .page-id-8 .medicus-section--about-hero h1 + p + p {
    margin:0 !important;
    line-height:26px;
  }
  .page-id-8 .medicus-section--about-hero figure,
  .page-id-8 .medicus-section--about-hero img,
  .page-id-12 .medicus-parity-foundation-hero figure,
  .page-id-12 .medicus-parity-foundation-hero img {
    width:100%;
    height:auto;
    margin:0;
    aspect-ratio:4 / 3;
    object-fit:cover;
  }
  .page-id-12 .medicus-parity-foundation-hero .medicus-eyebrow {
    margin:0 0 28px !important;
  }
  .page-id-12 .medicus-parity-foundation-hero h1 {
    margin:0 0 20px !important;
    max-width:302px;
  }
  .page-id-12 .medicus-parity-foundation-hero h1 mark {
    display:block;
  }
  .page-id-12 .medicus-parity-foundation-hero h1 + p {
    margin:0 0 32px !important;
    font-size:20px !important;
    line-height:32.5px;
  }
  .page-id-12 .medicus-parity-foundation-hero .wp-block-buttons {
    margin:0 !important;
  }

  /* Gutenberg's constrained children otherwise lose the 24px card body
     inset and make every blog card roughly 50px taller than React. */
  .page-id-11 .medicus-parity-blog-grid-section,
  .page-id-11 .medicus-parity-blog-grid {
    width:100%;
    max-width:100% !important;
  }
  .page-id-11 .medicus-parity-hero {
    box-sizing:border-box;
    min-height:355px;
    padding:56px 24px;
  }
  .page-id-11 .medicus-parity-hero > .medicus-eyebrow {
    margin:0 0 12px !important;
  }
  .page-id-11 .medicus-parity-hero > h1 {
    margin:4px 0 24px !important;
  }
  .page-id-11 .medicus-parity-featured-post {
    box-sizing:border-box;
    width:auto;
    max-width:none !important;
    margin:40px 24px 32px !important;
  }
  .page-id-11 .medicus-parity-featured-post .medicus-parity-featured-post__body {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    margin-top:0 !important;
    padding:28px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-terms {
    display:flex;
    align-items:center;
    gap:12px;
    width:100%;
    min-height:28px;
    margin:0 !important;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-terms::after {
    content:"◷  7 min czytania";
    color:#5b6570;
    font-size:12px;
    font-weight:400;
    line-height:20px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-title {
    margin:20px 0 16px !important;
    font-size:30px !important;
    line-height:37.5px;
    letter-spacing:-.6px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-excerpt {
    margin:0 0 24px !important;
    font-size:16px;
    line-height:26px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-excerpt p {
    margin:0;
    font-size:inherit;
    line-height:inherit;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-read-more {
    align-self:flex-start;
    margin:0 !important;
    font-size:14px;
    font-weight:600;
    line-height:20px;
  }
  .page-id-11 .medicus-parity-blog-grid-section {
    padding:0 0 80px;
  }
  .page-id-11 .medicus-parity-blog-grid-section > .medicus-eyebrow {
    width:auto;
    max-width:none !important;
    margin:0 24px 46px !important;
  }
  .page-id-11 .medicus-parity-blog-grid .wp-block-post-template {
    box-sizing:border-box;
    width:100%;
    padding-inline:24px;
  }
  .page-id-11 .medicus-parity-post-card {
    width:100%;
    min-height:0;
    padding:0 0 24px !important;
    overflow:hidden;
  }
  .page-id-11 .medicus-parity-post-card > figure {
    margin-bottom:0 !important;
  }
  .page-id-11 .medicus-parity-post-card > figure,
  .page-id-11 .medicus-parity-post-card > figure img {
    width:100%;
    height:auto;
    margin:0 !important;
    aspect-ratio:16 / 9;
    object-fit:cover;
  }
  .page-id-11 .medicus-parity-post-card > :not(figure) {
    width:auto !important;
    max-width:none !important;
    margin-inline:24px !important;
  }
  .page-id-11 .medicus-parity-post-card > .medicus-blog-card-meta {
    justify-content:flex-start;
    min-height:28px;
    margin:24px 24px 16px !important;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-post-title {
    margin:0 24px 12px !important;
    font-size:18px;
    line-height:24.75px;
    letter-spacing:0;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-post-excerpt {
    margin:0 24px 20px !important;
    font-size:14px;
    line-height:22.75px;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-post-excerpt p {
    margin:0;
    font-size:inherit;
    line-height:inherit;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-read-more {
    align-self:flex-start;
    margin:0 24px !important;
    padding:0;
    font-size:14px;
    line-height:20px;
  }

  .page-id-8 .medicus-stats-band,
  .page-id-12 .medicus-parity-stats {
    box-sizing:border-box;
    padding-block:16px;
  }
  .page-id-8 .medicus-section--about-founder {
    padding-block:72px;
  }
  .page-id-8 .medicus-section--about-founder > .wp-block-columns {
    box-sizing:border-box;
    width:100%;
    max-width:100% !important;
    padding-inline:24px;
  }
  .page-id-8 .medicus-section--about-gallery {
    padding-block:56px;
    padding-inline:0;
  }
  .page-id-8 .medicus-section--about-values {
    padding-block:72px;
  }
  .page-id-8 .medicus-section--about-trust {
    padding-block:56px;
  }
  .page-id-12 .medicus-parity-foundation-hero {
    padding-inline:0;
  }
  .page-id-12 .medicus-section--foundation-mission {
    padding-block:56px;
  }
  .page-id-12 .medicus-section--foundation-programs {
    padding-block:72px;
    padding-inline:0;
  }
  .page-id-12 .medicus-section--foundation-programs > .medicus-section-header,
  .page-id-12 .medicus-section--foundation-programs > .medicus-parity-card-grid {
    box-sizing:border-box;
    width:100%;
    max-width:100% !important;
    padding-inline:24px;
  }
  .page-id-12 .medicus-parity-card-grid--foundation > .wp-block-column h3 {
    margin-bottom:12px !important;
    font-size:18px !important;
    line-height:28px;
  }
  .page-id-12 .medicus-section--foundation-transparency,
  .page-id-12 .medicus-section--compact:has(.medicus-faq-grid) {
    padding-block:56px;
  }
  .page-id-12 .medicus-parity-donation-cta {
    padding-block:56px;
  }
}
@media (min-width:640px) and (max-width:767px) {
  body.home .medicus-home-hero__media {
    flex:0 0 clamp(350px, calc(64.7vw - 38px), 458px) !important;
  }
}
@media (min-width:768px) and (max-width:1023px) {
  body.home .medicus-home-hero__media {
    flex:0 0 540px !important;
  }
}

/* Home hero: React keeps a strict 340/440/540px media scale below `lg`,
   a 460px reading measure and a 28/32px CTA rhythm. Gutenberg's default
   figure ratio and block gaps otherwise change both the crop and section
   height at every responsive boundary. */
body.home .medicus-home-hero__copy > .wp-block-group > .medicus-pill {
  margin:0 0 28px !important;
}
body.home .medicus-home-hero__title {
  margin-top:0 !important;
  margin-bottom:24px !important;
}
body.home .medicus-home-hero__lead {
  width:100%;
  max-width:460px !important;
  margin:0 0 28px !important;
}
body.home .medicus-home-hero__actions {
  margin:0 0 32px !important;
  gap:12px !important;
}
body.home .medicus-home-hero__proof,
body.home .medicus-home-hero__proof .medicus-inline-icon {
  line-height:20px;
}
body.home .medicus-home-hero__media figure,
body.home .medicus-home-hero__media img {
  display:block;
  width:100%;
  max-width:none;
  height:100% !important;
  aspect-ratio:auto !important;
  object-fit:cover;
}

@media (max-width:1023px) {
  body.home .medicus-home-hero__media {
    position:relative;
    overflow:hidden;
  }
  body.home .medicus-home-hero__media figure {
    position:absolute;
    inset:0;
    width:100%;
    height:100% !important;
  }
  body.home .medicus-home-hero__media img {
    position:absolute;
    inset:0;
  }
}

@media (max-width:639px) {
  body.home .medicus-home-hero__media {
    flex:0 0 340px !important;
    height:340px;
    min-height:340px;
    max-height:340px;
  }
  body.home .medicus-home-hero__copy > .wp-block-group {
    padding-block:56px;
  }
  body.home .medicus-home-hero__actions {
    flex-direction:column;
    align-items:stretch;
  }
  body.home .medicus-home-hero__actions .wp-block-button,
  body.home .medicus-home-hero__actions .wp-block-button__link {
    box-sizing:border-box;
    width:100%;
  }
  body.home .medicus-consultation-card > p:last-child {
    display:none;
  }
  body.home .medicus-consultation-card__head {
    margin-bottom:0;
  }
}

@media (min-width:640px) and (max-width:767px) {
  body.home .medicus-home-hero__media {
    flex:0 0 440px !important;
    height:440px;
    min-height:440px;
    max-height:440px;
  }
  body.home .medicus-home-hero__copy > .wp-block-group {
    padding-block:64px;
  }
}

@media (min-width:768px) and (max-width:1023px) {
  body.home .medicus-home-hero__media {
    height:540px;
    min-height:540px;
    max-height:540px;
  }
  body.home .medicus-home-hero__copy > .wp-block-group {
    padding-block:64px;
  }
}

@media (min-width:1024px) and (max-width:1279px) {
  body.home .medicus-home-hero__title {
    font-size:54px !important;
    line-height:1.06 !important;
  }
  body.home .medicus-home-hero__actions .wp-block-button__link {
    white-space:normal;
  }
}

@media (min-width:1024px) {
  body.home .medicus-home-hero__copy,
  body.home .medicus-home-hero__copy > .wp-block-group {
    transform:none !important;
  }
}

/* React keeps the stacked blog card through 1023px. Gutenberg changes its
   Columns behaviour at 782px, so 640–781 needs the same explicit shell used
   by the neighbouring responsive ranges. */
@media (min-width:640px) and (max-width:781px) {
  .page-id-11 .medicus-parity-featured-post {
    box-sizing:border-box;
    width:calc(100% - 48px);
    max-width:none !important;
    margin:40px 24px 32px !important;
  }
  .page-id-11 .medicus-parity-featured-post > .wp-block-post-template > li > .wp-block-group > * {
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
  }
  .page-id-11 .medicus-parity-featured-post .medicus-parity-featured-post__body {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    margin-top:0 !important;
    padding:28px;
  }
  .page-id-11 .medicus-parity-featured-post__body > * {
    width:100% !important;
    max-width:none !important;
    margin-inline:0 !important;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-terms {
    display:flex;
    align-items:center;
    gap:12px;
    min-height:28px;
    margin:0 !important;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-terms::after {
    content:"◷  7 min czytania";
    color:#5b6570;
    font-size:12px;
    font-weight:400;
    line-height:20px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-title {
    margin:20px 0 16px !important;
    font-size:30px !important;
    line-height:37.5px;
    letter-spacing:-.6px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-excerpt {
    margin:0 0 24px !important;
    color:#5b6570;
    font-size:16px;
    line-height:26px;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-post-excerpt p {
    margin:0;
    font-size:inherit;
    line-height:inherit;
  }
  .page-id-11 .medicus-parity-featured-post__body .wp-block-read-more {
    align-self:flex-start;
    width:auto !important;
    margin:0 !important;
    font-size:14px;
    font-weight:600;
    line-height:20px;
  }
  .page-id-11 .medicus-parity-blog-grid-section {
    padding:0 0 80px;
  }
  .page-id-11 .medicus-parity-blog-grid-section > .medicus-eyebrow {
    box-sizing:border-box;
    width:auto;
    max-width:none !important;
    margin:0 24px 32px !important;
  }
  .page-id-11 .medicus-parity-blog-grid .wp-block-post-template {
    box-sizing:border-box;
    width:100%;
    padding-inline:24px;
  }
  .page-id-11 .medicus-parity-post-card {
    width:100%;
    min-height:0;
    padding:0 0 24px !important;
    overflow:hidden;
  }
  .page-id-11 .medicus-parity-post-card > figure {
    margin-bottom:0 !important;
  }
  .page-id-11 .medicus-parity-post-card > :not(figure) {
    width:auto !important;
    max-width:none !important;
    margin-inline:24px !important;
  }
  .page-id-11 .medicus-parity-post-card > .medicus-blog-card-meta {
    justify-content:flex-start;
    min-height:28px;
    margin:24px 24px 16px !important;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-post-title {
    margin:0 24px 12px !important;
    font-size:18px;
    line-height:24.75px;
    letter-spacing:0;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-post-excerpt {
    margin:0 24px 20px !important;
    font-size:14px;
    line-height:22.75px;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-post-excerpt p {
    margin:0;
    font-size:inherit;
    line-height:inherit;
  }
  .page-id-11 .medicus-parity-post-card > .wp-block-read-more {
    align-self:flex-start;
    margin:0 24px !important;
    padding:0;
    font-size:14px;
    line-height:20px;
  }
  .page-id-11 .medicus-parity-blog-grid-section.is-filtered {
    padding-top:40px;
    padding-bottom:80px;
  }
}

@media (min-width:640px) {
  .page-id-11 .medicus-parity-hero > .medicus-eyebrow {
    margin:0 0 16px !important;
  }
  .page-id-11 .medicus-parity-hero > h1 {
    width:100%;
    max-width:720px;
    margin:0 auto 24px !important;
    font-size:48px !important;
    line-height:60px;
  }
  .page-id-11 .medicus-parity-hero > p.has-large-font-size {
    width:100%;
    max-width:672px;
    margin:0 auto !important;
    font-size:20px !important;
    line-height:32.5px;
  }
}

@media (min-width:1024px) {
  .page-id-11 .medicus-parity-hero > h1 {
    font-size:54px !important;
    line-height:67.5px;
  }
}

body:not(.home) .medicus-breadcrumbs {
  box-sizing:border-box;
  min-height:52px;
}

body.page-id-11 {
  padding-bottom:0;
}

/* GiveWP na /wesprzyj: realny formularz zamiast placeholdera — auto-wysokość
   (nadpisuje pixel-parity height z .page-id-13) i czysta karta bez dashed. */
.medicus-parity-support-widget--give,
.page-id-13 .medicus-parity-support-widget--give {
  height: auto;
}
.medicus-parity-support-widget--give .give-form-wrap,
.medicus-parity-support-widget--give > div {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.medicus-parity-support-widget--give iframe {
  width: 100%;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  background: #fff;
}
.medicus-parity-support-widget--give small {
  display: block;
  margin-top: 1rem;
  color: var(--wp--preset--color--muted);
}

/* Wpłacam.ngo.pl na /wesprzyj: osadzony formularz zbiórki (iframe) + przelew
   tradycyjny zamiast placeholdera. Auto-wysokość jak w wariancie --give
   (nadpisuje pixel-parity z .page-id-13). */
.medicus-parity-support-widget--wplacam,
.page-id-13 .medicus-parity-support-widget--wplacam {
  height: auto;
}
.medicus-parity-support-widget--wplacam .medicus-support-pay {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}
.medicus-support-pay__online,
.medicus-support-pay__transfer {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
}
.medicus-support-pay__online + .medicus-support-pay__transfer {
  margin-top: 1.25rem;
}
/* Ramka z samym formularzem wplacam: formularz sam jest karta, wiec ciasniejszy
   odstep — bez podwojnej bialej ramy wokol cudzego interfejsu. */
.medicus-support-pay__online--embed {
  padding: 0.75rem;
}
.medicus-support-pay h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
}
.medicus-support-pay p {
  margin: 0 0 1.25rem;
  color: var(--wp--preset--color--muted);
}
.medicus-support-pay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.medicus-support-pay__actions .wp-element-button {
  background: var(--wp--preset--color--foundation);
}
.medicus-support-pay__actions .medicus-support-pay__secondary {
  background: transparent;
  color: var(--wp--preset--color--foundation);
  border: 2px solid var(--wp--preset--color--foundation);
}
.medicus-support-pay__transfer dl {
  margin: 0;
  display: grid;
  gap: .6rem;
}
.medicus-support-pay__transfer dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: .75rem;
  align-items: baseline;
}
.medicus-support-pay__transfer dt {
  color: var(--wp--preset--color--muted);
  font-size: .9rem;
}
.medicus-support-pay__transfer dd {
  margin: 0;
  font-weight: 700;
}
.medicus-parity-support-widget--wplacam small {
  display: block;
  margin-top: 1rem;
  color: var(--wp--preset--color--muted);
  text-align: center;
}
/* Osadzony formularz wpłacam: iframe na pełną szerokość karty; wysokość
   zostawiamy z atrybutu height kodu embed (formularz jest przewijalny),
   min-height chroni przed zapadnięciem gdyby kod przyszedł bez height. */
.medicus-support-embed iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
}
@media (max-width: 640px) {
  .medicus-support-pay__transfer dl > div {
    grid-template-columns: 1fr;
    gap: .1rem;
  }
}

/* Galeria na stronie O nas — wersja na telefon i tablet.
   Wcześniej cała galeria miała style dopiero od 1024 px, więc na mniejszych
   ekranach zostawała goła lista podpisów bez kart i bez przewijania. */
@media (max-width:1023px) {
  .medicus-about-gallery {
    box-sizing:border-box;
    display:flex;
    gap:12px;
    margin:0;
    padding:0 var(--medicus-pad-mobile, 1.25rem) 4px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  .medicus-about-gallery::-webkit-scrollbar { display:none; }
  .medicus-about-gallery article {
    display:flex;
    flex:0 0 78%;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:200px;
    padding:20px;
    scroll-snap-align:center;
    border-radius:12px;
    background:var(--wp--preset--color--surface);
    color:var(--wp--preset--color--muted);
    text-align:center;
  }
  .medicus-about-gallery article span {
    width:24px;
    height:24px;
    background:currentColor;
    -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M14.5 4 16 7h3a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3l1.5-3z"/><circle cx="12" cy="13" r="3"/></svg>') center/contain no-repeat;
    mask:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M14.5 4 16 7h3a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h3l1.5-3z"/><circle cx="12" cy="13" r="3"/></svg>') center/contain no-repeat;
  }
  .medicus-about-gallery article p { margin:12px 0 0; font-size:.95rem; }
  /* Strzałki sterujące są zbyt małe na dotyk, na telefonie wystarczy przesuwanie palcem. */
  .medicus-about-gallery__controls { display:none; }
}

/* ── /wesprzyj: sekcje sa teraz blokami, nie sklejonym HTML-em ─────────────
   Bloki wnosza wlasne odstepy (24px miedzy elementami) i owijki (figure
   wokol obrazka, <p> wokol procentu). Ponizsze reguly odtwarzaja odstepy
   sprzed rozbicia na bloki, zeby strona wygladala identycznie. */
.medicus-parity-support-hero > .wp-block-group > .medicus-eyebrow { margin-block: 12px; }
.medicus-parity-support-hero > .wp-block-group > h1 { margin-block: .4rem 1rem; }
.medicus-parity-support-hero > .wp-block-group > p:not(.medicus-eyebrow) { margin-block: 1em; }
.medicus-parity-support-hero > .wp-block-image { margin: 0; }
.medicus-parity-support-section > .medicus-eyebrow { margin-block: 0; }
.medicus-parity-support-section > h2 { margin-block: .4rem 1rem; }
.medicus-parity-support-section > .medicus-parity-support-spending { margin-block-start: 0; }
/* Karty sa elementami siatki, a domyslny odstep miedzy blokami (24px)
   siedzi na nich jako margines i powieksza wiersz siatki. */
.medicus-parity-support-spending > article,
.medicus-parity-support-types > article { margin-block: 0; }
.medicus-parity-support-spending article > * { margin-block: 0; }
.medicus-parity-support-spending article > h3 { margin-block-start: 18px; }
.medicus-parity-support-spending article > p:not(.medicus-support-value) { margin-block: 18px 16px; }
.medicus-parity-support-types article > * { margin-block: 0; }
.medicus-parity-support-types article > p { margin-block: 16px; }
.medicus-parity-support-types article > ul { margin-block: 16px; }
.medicus-parity-support-types article > ul + * { margin-block-start: 16px; }
/* Uklad przeplywowy bloku zeruje margines ostatniego dziecka; wczesniej
   ostatnia lista miala 16px na dole i to ona wyznaczala wysokosc karty. */
.medicus-parity-support-types article > :last-child { margin-block-end: 16px; }
