/* Okładka: Archivo variable with width and weight axes, local Polish subsets. */
@font-face{font-family:"Archivo";font-style:normal;font-stretch:62% 125%;font-weight:100 900;font-display:swap;src:url("/fonts/Archivo-Variable-latin.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Archivo";font-style:normal;font-stretch:62% 125%;font-weight:100 900;font-display:swap;src:url("/fonts/Archivo-Variable-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* Layered declarations take precedence over older page-level important shorthands.
   Size spans from their parent, including the title of a card inside a link. */
@layer reference-typography {
  @media screen {
    html body, html body :where(*):not(:where(svg, svg *)) {
      font-family: var(--reference-font) !important;
    }
    html body { font-size: var(--reference-body) !important; font-stretch: 100%; }
    html body :where(*):not(:where(svg, svg *)) { font-size: inherit !important; }
    html body :is(p,li,dt,dd,td,th,caption,blockquote,label,input,select,textarea,summary,legend) {
      font-size: var(--reference-body) !important;
    }
    html body :is(h1,h2,h3,h4,h5,h6) {
      font-stretch: var(--heading-width) !important;
      letter-spacing: -.015em !important;
      text-wrap: balance;
      overflow-wrap: break-word;
    }
    html body :is(h1,h2) {
      font-weight: 800 !important;
      line-height: .95 !important;
      text-transform: uppercase !important;
    }
    html body h1 { font-size: var(--reference-h1) !important; }
    html body h2 { font-size: var(--reference-h2) !important; }
    html body :is(h3,h4,h5,h6) {
      font-size: var(--reference-title) !important;
      font-weight: 700 !important;
      line-height: 1.15 !important;
      text-transform: none !important;
    }
    html body :is(h1,h2,h3,h4,h5,h6) :is(a,span,strong,em) { font: inherit !important; }
    html body :is(.portal-kicker,.directory-kicker,.ref-hub-kind,.directory-meta,figcaption,small) {
      font-size: .875rem !important;
      letter-spacing: 0 !important;
      text-transform: none !important;
    }
    html body :is(.result-value,.ref-home-widget-result output,.price-stats dd,.clinic-stats dd) {
      font-size: 2rem !important;
      line-height: 1.15 !important;
      font-weight: 600 !important;
      font-variant-numeric: tabular-nums;
    }
    html body :is(button, input, select, textarea) { font-size: 1rem !important; }
    html body :is(nav[class*="breadcrumb"],.topic-context) { font-size: .875rem !important; line-height: 1.5 !important; }
    html body :is(b,strong,th,label,legend,button) { font-weight: 600 !important; }
    html body :is(sup,sub) { font-size: .75em !important; }
    html body .tool-result-wrap:has(.tool-actions button:disabled):not(:has(.tool-actions button:enabled)) .tool-result {
      background: var(--reference-surface) !important;
      color: var(--reference-text) !important;
      border-color: var(--reference-line);
    }
    html body .tool-result-wrap:has(.tool-actions button:disabled):not(:has(.tool-actions button:enabled)) .tool-result p { color: inherit !important; }
    html body :is(.b-home-intro h1,.b-home-paths h3,.b-home-partners h2) { color: white !important; }
  }
}

@media screen {
  :root {
    --reference-font: "Archivo", Arial, sans-serif;
    --reference-display: "Archivo", Arial, sans-serif;
    --accent-red: #9d2a2f;
    --accent-red-hover: #7d2024;
    --reference-text: #0c0c0c;
    --reference-muted: #5a5a57;
    --reference-surface: #f1f1ef;
    --reference-line: #d9d9d6;
    --reference-line-strong: var(--reference-text);
    --map-land: #e8efe0;
    --map-outline: #afbaa5;
    --map-marker: var(--reference-text);
    --map-certified: var(--accent-red);
    --font: var(--reference-font);
    --sans: var(--reference-font);
    --serif: var(--reference-display);
    --article-serif: var(--reference-font);
    --bg: #ffffff;
    --paper: #ffffff;
    --surface: var(--reference-surface);
    --stone: var(--reference-surface);
    --limewash: var(--reference-surface);
    --ink: var(--reference-text);
    --night: var(--reference-text);
    --ink-soft: var(--reference-text);
    --muted: var(--reference-muted);
    --ink-2: var(--reference-muted);
    --line: var(--reference-line);
    --hair: var(--reference-line);
    --line-strong: var(--reference-line-strong);
    --green: var(--reference-text);
    --green-hover: var(--reference-text);
    --green-soft: var(--reference-surface);
    --leather: var(--reference-text);
    --leather-soft: var(--reference-surface);
    --sig: var(--reference-text);
    --sig-deep: var(--reference-text);
    --sig-mist: var(--reference-surface);
    --sig-tint: var(--reference-surface);
    --article-track: var(--reference-line);
    --article-range: var(--reference-text);
    --radius: 0px;
    --max: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --head-h: 142px;
    /* Set responsive type in rem to respect the reader’s default size. */
    --heading-width: 75%;
    --reference-h1: clamp(2.5rem, 5vw, 4.5rem);
    --reference-h2: clamp(1.875rem, 3.2vw, 2.75rem);
    --reference-title: clamp(1.25rem, 2vw, 1.375rem);
    --reference-body: clamp(1rem, 1.25vw, 1.0625rem);
    --reference-ui: 1rem;
    --reference-copy-width: 68ch;
    color-scheme: light;
  }

  html { accent-color: var(--reference-text); scrollbar-color: var(--reference-muted) var(--reference-surface); }
  html body {
    margin: 0;
    background: var(--paper);
    color: var(--reference-text);
    font-family: var(--reference-font); font-weight: 400; line-height: 1.6;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
  }
  ::selection { background: var(--reference-surface); color: var(--reference-text); }
  html body :focus-visible { outline: 3px solid var(--accent-red) !important; outline-offset: 3px; }
  html body :is(button,input,select,textarea,summary,output,code,pre,kbd,samp) { font-family: var(--reference-font) !important; }
  html body :is(b,strong) { font-weight: 500; }
  html body a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
  html body main a { color: var(--reference-text); }
  html body a:hover { color: var(--reference-text); }

  html body :is(.meta-line,.guide-meta,.portal-facts,.section-title,.blog-related__title) {
    font-family: var(--reference-font) !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: var(--reference-muted) !important;
  }
  html body :is(.portal-note,.blog-meta,.practice-article-date,.licence-verified,.tool-hint,.directory-small,.directory-meta,.practice-breadcrumb,.tool-breadcrumb) {
    font-family: var(--reference-font);
    line-height: 1.5;
    color: var(--reference-muted);
  }

  /* The role sets colours. Geometry, case and target size are shared. */
  @layer reference-typography {
    html body :is(.portal-button,.button.primary,.b-home-primary,.directory-button:not(:where(.directory-button--secondary,.directory-button--remove)),.gr-btn,
      .ref-home-button,.growth-primary,.ps-primary,.audience-primary,.career-primary,.tool-row-button[type=submit]) {
      --action-fill: var(--accent-red);
      --action-ink: var(--paper);
      --action-border: var(--accent-red);
      --action-hover: var(--accent-red-hover);
    }
    html body :is(.button.secondary,.b-home-secondary,.directory-button--secondary,.directory-button--remove,
      :where(.growth-controls) button:not(.growth-primary),.tool-actions button,.stable-template-downloads a) {
      --action-fill: var(--paper);
      --action-ink: var(--reference-text);
      --action-border: var(--reference-text);
      --action-hover: var(--reference-surface);
    }
    html body :is(.portal-button,.button.primary,.button.secondary,.b-home-primary,.b-home-secondary,
      .directory-button,.gr-btn,.ref-home-button,.growth-controls button,.growth-primary,
      .ps-primary,.audience-primary,.career-primary,.tool-actions button,.tool-row-button[type=submit],.stable-template-downloads a) {
      display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
      min-height: 48px !important;
      padding: .75rem 1.25rem !important;
      border: 1px solid var(--action-border) !important;
      border-radius: 0;
      background: var(--action-fill) !important;
      color: var(--action-ink) !important;
      font: 600 1rem/1.35 var(--reference-font) !important;
      letter-spacing: normal !important;
      text-transform: none !important;
      text-decoration: none;
      box-shadow: none;
    }
    html body :is(.portal-button,.button.primary,.button.secondary,.b-home-primary,.b-home-secondary,
      .directory-button,.gr-btn,.ref-home-button,.growth-controls button,.growth-primary,
      .ps-primary,.audience-primary,.career-primary,.tool-actions button,.tool-row-button[type=submit],.stable-template-downloads a):hover {
      background: var(--action-hover) !important;
    }
  }
  html body .download-link {
    color: var(--reference-text) !important;
    border-color: var(--reference-line-strong);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }
  html body .download-link:hover { color: var(--reference-text) !important; background: var(--reference-surface); }
  html body :is(.tool-page,.cost-calculator,.directory) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    font-family: var(--reference-font); font-weight: 400; line-height: 1.4;
    min-height: 48px;
    padding: 11px 12px;
    background: var(--paper);
    color: var(--reference-text);
    border: 1px solid var(--reference-muted);
    border-radius: var(--radius);
    caret-color: var(--reference-text);
  }
  html body :is(.tool-page,.cost-calculator,.directory) label { font-weight: 500; }

  /* Readers share the same measure, heading scale and compact section rhythm. */
  html body :is(.practice-reading,.blog-article__content,.licence-body) { line-height: 1.65; }
  /* Keep the reading measure on the same left edge as the title and task list. */
  html body .practice-guide .practice-reading { max-width: 880px; margin-inline: 0; }
  html body .practice-reading :is(p,ul,ol):not(#_z) { max-width: 72ch; }
  html body .practice-reading .portal-section p { line-height: 1.65; }
  html body .portal-section { display: block; margin-top: 32px; padding-block: 26px 12px; border-top-color: var(--reference-line); }
  html body .portal-section h2 { margin: 0 0 18px; }
  html body .portal-hero { padding-block: 28px 32px; gap: 36px; }
  html body .portal-hero .portal-lead { line-height: 1.5; max-width: 58ch; }
  html body :is(.reader-intro,.reader-detail,.portal-citation,.tool-measurement) {
    background: var(--reference-surface);
    color: var(--reference-text);
    border: 1px solid var(--reference-line);
    border-radius: var(--radius);
    box-shadow: none;
  }
  html body .practice-decisions li { column-gap: 16px; padding-block: 20px; }
  html body .practice-decisions > li > span { font-family: var(--reference-font); font-weight: 500; line-height: 1.5; color: var(--reference-muted); }
  html body .tool-disclaimer { border-left:1px solid var(--reference-line); }
  html body .blog-article { --blog-header-offset: calc(var(--head-h) + 24px); padding-top: 28px; }
  html body .blog-article__header { margin-bottom: 28px; }
  html body .article-deck { font-family: var(--reference-font); font-weight: 400; line-height: 1.5; max-width: 62ch; }
  html body .blog-body { line-height: 1.7; }
  html body .blog-body h2 { margin: 36px 0 16px; padding-top: 22px; border-top-color: var(--reference-line); }
  html body .blog-body h2::before { display: none; }
  html body .blog-body h3 { margin: 26px 0 12px; }
  html body :is(.blog-toc,.blog-toc-sidebar,.blog-section-bar) { font-family: var(--reference-font); }
  html body :is(.blog-toc a,.blog-toc-sidebar a,.blog-section-bar nav a) { font-family: var(--reference-font); }
  html body :is(.practice-table,.blog-table,.tool-table,.licence-table) { font-family: var(--reference-font); line-height: 1.5; }
  html body :is(.practice-table,.blog-table,.tool-table,.licence-table) :is(th,td) { border-color: var(--reference-line); }
  html body :is(.practice-table,.blog-table,.tool-table,.licence-table) th { font-weight: 500; color: var(--reference-text); }
  html body :is(.practice-table,.blog-table,.tool-table) thead th { background: var(--reference-surface); }

  /* Form and result share the mock's two-column anatomy. */
  html body :is(.tool-result,.cost-result) {
    padding:clamp(20px,3vw,32px);
    background:var(--reference-text) !important;
    color:#fff !important;
    border:1px solid var(--reference-text);
    border-radius:var(--radius);
    box-shadow:none;
  }
  html body :is(.tool-result,.cost-result) :is(h2,h3,p,th,td,caption,.portal-note,.result-big,output,label,strong) { color:#fff !important; }
  html body :is(.tool-result,.cost-result) a { color:#fff !important; text-decoration:underline; }
  html body :is(.tool-result,.cost-result) :is(th,td) { border-color:#767676; }
  html body :is(.tool-result,.cost-result) :is(h2,h3):not(#_z):not(#reference-type-guard) { color:#fff !important; }
  html body .tool-result .tool-table :is(thead,tbody,tr,th,td) { background:transparent !important; color:#fff !important; }
  html body .tool-result tr[data-recommended="true"] { background:#383838 !important; }
  html body .tool-result tr[data-recommended="true"] th { border-left-color:#fff; }
  html body :is(.tool-result,.cost-result) :is(.result-big,output) { font-variant-numeric:tabular-nums; }
  html body :is(.tool-result,.cost-result) output { font-weight:500; }
  html body :is(.cost-error,.directory-field-error,.directory-errors,.directory-status[data-error="true"]) { color: var(--reference-text) !important; }
  html body :is(.tool-tabs,.calculator-tabs) button { font-weight: 500; letter-spacing: 0; text-transform: none; border-radius: var(--radius); }
  html body :is(.tool-tabs,.calculator-tabs) button[aria-selected="true"] { background: var(--reference-text); border-color: var(--reference-text); color: var(--paper); }
  html body .directory-local-nav { padding-block: 16px; gap: 8px 24px; border-color: var(--reference-line); }
  html body .directory-local-nav a { font-family: var(--reference-font); font-weight: 500; line-height: 1.4; letter-spacing: 0; text-transform: none; }
  html body :is(.directory-map-panel,.directory-plan-aside) { background: var(--reference-surface); border: 1px solid var(--reference-line); box-shadow: none; }

  @media (max-width: 959px) {
    :root { --head-h: 80px; }
    html body .site-header .site-in { display: flex; justify-content: space-between; min-height: 76px; gap: 24px; }
    html body .site-header .site-nav { display: none; }
    html body .site-header .nav-toggle { display: flex; }
    html body .site-header.menu-open .site-mobile-nav {
      position: absolute;
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      left: 0;
      right: 0;
      top: 100%;
      max-height: calc(100svh - var(--head-h));
      overflow-y: auto;
      gap: 4px 24px;
      padding: 16px var(--gutter) 24px;
      border-bottom: 1px solid var(--reference-line);
      background: var(--paper);
      box-shadow: 0 12px 20px rgb(24 33 43 / .07);
    }
  }
  @media (max-width: 760px) {
    html body .site-footer .institution-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
    html body .portal-hero { gap: 24px; }
    html body .blog-article { padding-top: 20px; }
  }
  @media (max-width: 600px) {
    :root { --head-h: 72px; }
    html body .site-header .site-in { min-height: 68px; padding-inline: 16px; gap: 16px; }
    html body .site-header .site-mark { flex: 0 1 auto; min-width: 0; }
    html body .site-header .portal-wordmark { width: clamp(220px,72vw,290px); height: auto; }
    html body .site-header.menu-open .site-mobile-nav { grid-template-columns: 1fr; padding-inline: 16px; }
    html body .site-header .site-mobile-nav a { width: 100%; padding-block: 12px; }
    html body .site-footer { padding-block: 32px 24px; }
    html body .site-footer .portal-wordmark { width: 290px; }
    html body .site-footer .institution-footer-columns { gap: 24px 20px; }
    html body .portal-section { margin-top: 24px; padding-block: 22px 8px; }
    html body .portal-hero { padding-block: 22px 26px; }
    html body .blog-body h2 { margin-top: 30px; padding-top: 18px; }
    html body :is(.tool-result,.cost-result) { padding: 20px; }
  }
  /* Shared reading rhythm; the typography layer above owns every screen size. */
  html body :is(main,.site-header,.site-footer) :is(p,li,dt,dd,td,th,blockquote,label,button,input,select,textarea,summary,legend,figcaption):not(#_z):not(#reference-type-guard) {
    line-height: var(--reference-copy-leading,1.6) !important;
    letter-spacing: 0 !important;
  }
  html body :is(a,span,strong,b,small,time,output,em,i):not(#_z):not(#reference-type-guard):not(:where(svg *)) {
    line-height: inherit !important;
  }
  html body :is(p,li,dt,dd,td,blockquote):not(#_z):not(#reference-type-guard) { font-weight: 400 !important; }
  html body :is(strong,b,th,label,legend,button):not(#_z):not(#reference-type-guard) { font-weight: 500 !important; }
  html body :is(button,input,select,textarea,label,summary,legend,table,.site-header nav,.site-footer nav,.licence-toc,.blog-toc,.blog-toc-sidebar,.directory-local-nav,.ref-home-audiences,.gr-zones,.tool-tabs,.calculator-tabs,.ref-home-text-link,.portal-button,.ref-home-link-label,.directory-button,.button,.gr-btn,.ref-home-button,.download-link,.ps-links a,.ps-jumps a,.ref-hub-topics a,.ref-hub-related a,.owner-plan-links a,.home-finder-directory-link,.blog-section-bar nav a,.portal-actions a,.ref-home-standard-actions>a,.ref-home-stable-secondary>a):not(#_z):not(#reference-type-guard) {
    --reference-copy-leading: 1.4;
    line-height: 1.4 !important;
  }
  html body :is(.portal-lead,.article-deck,.licence-lead,.ref-hub-heading>p,.gr-intro):not(#_z):not(#reference-type-guard) {
    --reference-copy-leading: 1.5;
    line-height: 1.5 !important;
  }
  html body :is(.kicker,.portal-kicker,.eyebrow,.meta-line,.guide-meta,.portal-facts,.gr-tag,.gr-audience,.portal-note,.portal-status,.blog-meta,.practice-article-date,.licence-verified,.tool-hint,.directory-small,.directory-meta,.practice-breadcrumb,.tool-breadcrumb,.licence-breadcrumb,.blog-breadcrumb,.ref-hub-article-date,.ref-home-widget-note,.ref-home-source-note,.ref-home-event-source,.home-finder-attribution,.institution-footer-note,.site-credits,.gr-count,.gr-magnets,.home-finder-note,.ref-home-events time,sup,sub,.reader-requirement h3,.reader-nav,.practice-role-label,.tool-cell-label,.licence-table-label,.practice-decisions>li>span,.gr-reqs a,.gr-reqs b,.owner-plan-requirements a,.owner-plan-requirements strong,.ref-hub-kind,.ref-hub-article-note,.ps-source-credit,.ps-status,figcaption,small):not(#_z):not(#reference-type-guard) {
    --reference-copy-leading: 1.5;
    font-family: var(--reference-font) !important;
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
  }
  html body :is(.blog-body,.practice-reading,.licence-body,.reader-main) :is(p,ul,ol,blockquote):not(#_z):not(#reference-type-guard) { max-width: var(--reference-copy-width); }
  html body :is(.blog-body,.practice-reading,.licence-body,.reader-main) p:not(#_z):not(#reference-type-guard) { margin-block: 0 1rem; }
  html body :is(.blog-body,.practice-reading,.licence-body) :is(ul,ol):not(:where(.practice-decisions,.practice-checklist)):not(#_z):not(#reference-type-guard) { margin-block: 0 1rem; }
  html body :is(.blog-body,.licence-body,.practice-alerts,.practice-cases,.practice-decision-text) li+li { margin-top: .375rem; }
  @media (min-width:960px) {
    html body :is(.reader-nav,.licence-toc,.blog-toc-sidebar) { top: calc(var(--head-h) + 24px); max-height: calc(100svh - var(--head-h) - 48px); }
  }
  /* Read the title, introduction, context and action in the same order. */
  html body .portal-hero>div { gap: 1rem; }
  html body .portal-hero>div>:is(h1,p,dl,.portal-status,.portal-actions) { margin-block: 0 !important; }
  html body .portal-hero .portal-lead { order: 2; }
  html body .portal-hero .portal-kicker:not(#_z) { order: 3; }
  html body .portal-hero .portal-facts { order: 4; }
  html body .portal-hero .portal-status { order: 4; padding: 0; background: none; border: 0; }
  html body .portal-hero .portal-actions { order: 5; }
  html body :is(main section[id],main article[id],main h2[id],main h3[id],.ref-home-map-section,.home-finder-map-wrap,.ref-home-audiences) { scroll-margin-top: calc(var(--head-h) + 24px) !important; }

  /* Product mark pages retain their criteria, with the same editorial frame. */
  html body .mark-page .section-heading { display: block; margin-bottom: 24px; }
  html body .mark-page .mark-pillar-grid { gap: 32px; }
  html body .mark-page .mark-pillar-grid article { padding: 0; border: 0; background: none; }
  html body :is(.mark-page,.registry-page) .standard-document-section { display: block; padding-block: 36px; }
  html body :is(.mark-page,.registry-page) .standard-document-copy { width: 100%; max-width: 68ch; }
  html body :is(.mark-page,.registry-page) .standard-document-copy h2 { max-width: none; }
  html body .ref-home-button:disabled { opacity: .5; cursor: not-allowed; }
  html body :is(.mark-criterion-id,.mark-criterion-type,.mark-criterion-pillar,.mark-process-step):not(#_z):not(#reference-type-guard) { font-family: var(--reference-font); line-height: 1.5 !important; }

}

/* B chrome: four reader roles, then the service links shared by the portal. */
@media screen {
  html body .blog-wrap:not(:has(>.blog-article)) {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  html body .site-header.site-header--b {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    padding: 0;
    min-height: 0;
    color: var(--reference-text);
    background: var(--paper);
    border: 0;
    border-bottom: 1px solid var(--reference-line);
    box-shadow: none;
    backdrop-filter: none;
  }
  html body .site-header--b .site-in {
    position: relative;
    display: block;
    width: 100%;
    max-width: var(--max);
    min-height: 0;
    margin-inline: auto;
    padding: 0 var(--gutter);
  }
  html body .site-header--b .site-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    gap: 28px;
  }
  html body .site-header--b .site-mark {
    position: static;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 294px;
    min-height: 44px;
    color: var(--reference-text);
    margin: 0;
    transform: none;
  }
  html body .site-header--b {
    --figure-height: clamp(114px, calc(11vw - 30px), 128px);
    --figure-aspect: 184 / 128;
    --sill: .8767;
    --figure-width: calc(var(--figure-height) * var(--figure-aspect));
    --figure-outset: 0px; /* postać nie wychodzi poza lewą krawędź treści (decyzja 22.11.2026) */
    --compact-height: 72px;
    --lettering-width: clamp(118px, calc(15vw - 92px), 132px);
    --brand-inset: calc(var(--figure-width) - var(--figure-outset) + 10px);
    --portrait-above-edge: calc(var(--figure-height) * var(--sill));
    overflow: visible;
  }
  html body .site-header--b .portal-emblem {
    position: absolute;
    z-index: 1;
    left: calc(var(--gutter) - var(--figure-outset));
    /* The jacket crop meets the border. Only the muzzle and two hooves
       have opaque pixels below this row of the illustration. */
    top: calc(100% - var(--portrait-above-edge));
    width: var(--figure-width);
    height: var(--figure-height);
  }
  html body .site-header--b .portal-emblem img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(1px 3px 2px rgb(35 25 20 / 22%));
  }
  html body .site-header--b:is([data-compact],.menu-open) .portal-emblem {
    left: calc(var(--gutter) - var(--figure-outset) + var(--figure-width) - var(--compact-height) * var(--figure-aspect));
    top: 12px;
    width: calc(var(--compact-height) * var(--figure-aspect));
    height: var(--compact-height);
  }
  html body .site-header--b .portal-lettering {
    position: absolute;
    z-index: 1;
    left: calc(var(--gutter) + var(--brand-inset));
    /* Stałe proporcje liter (2,6 : 1), napis wyśrodkowany względem postaci. */
    bottom: calc((var(--portrait-above-edge) - var(--lettering-width) / 2.6) / 2);
    width: var(--lettering-width);
    height: calc(var(--lettering-width) / 2.6);
    background: var(--paper);
  }
  html body .site-header--b:is([data-compact],.menu-open) .portal-lettering {
    top: 12px;
    bottom: auto;
    width: min(var(--lettering-width), calc(var(--compact-height) * 2.6));
    height: min(calc(var(--lettering-width) / 2.6), var(--compact-height));
  }
  /* Linia pod pierwszym wierszem menu zaczyna się za znakiem, aby napis jej nie przecinał. */
  html body .site-header--b .site-header-services { margin-left: calc(var(--brand-inset) + var(--lettering-width) + 32px); }
  html body .site-header--b .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
  }
  html body .site-header--b :is(.site-nav,.site-mobile-nav,.site-header-services) a:not(#_z):not(#reference-type-guard) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 0;
    border: 0 !important;
    color: var(--reference-text) !important;
    font-family: var(--reference-font) !important; font-weight: 500 !important; line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none;
    white-space: nowrap;
  }
  html body .site-header--b :is(.site-nav,.site-mobile-nav,.site-header-services) a:hover {
    color: var(--reference-text) !important;
  }
  html body .site-header--b :is(.site-nav,.site-mobile-nav,.site-header-services) a[aria-current="page"] {
    color: var(--reference-text) !important;
    text-decoration: underline;
    text-decoration-color: var(--reference-text);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }
  html body .site-header--b .site-header-find:not(#_z):not(#reference-type-guard) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 14px;
    min-height: 44px;
    padding: 8px 0 8px 26px;
    border: 0;
    border-left: 1px solid var(--reference-line);
    color: var(--reference-text);
    font-family: var(--reference-font) !important; font-weight: 500 !important; line-height: 1.4 !important;
    text-decoration: none;
    white-space: nowrap;
  }
  html body .site-header--b .site-header-find:hover,
  html body .site-header--b .site-header-find[aria-current="page"] {
    color: var(--reference-text);
  }
  html body .site-header--b .site-link-arrow {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 1.5;
  }
  html body .site-header--b .site-header-services:not(#_z):not(#reference-type-guard) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0 26px;
    min-height: 40px;
    border-top: 1px solid var(--reference-line);
  }
  html body .site-header--b .site-header-services a:not(#_z):not(#reference-type-guard) {
    min-height: 40px;
    padding: 8px 0;
    color: var(--reference-muted) !important;
    font-weight: 400 !important;
  }
  html body .site-header--b .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--reference-line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--reference-text);
    box-shadow: none;
    cursor: pointer;
  }
  html body .site-header--b .nav-toggle-bar {
    flex: 0 0 1px;
    width: 20px;
    height: 1px;
    margin: 3px 0;
    background: currentColor;
    transition: transform 160ms ease;
  }
  html body .site-header--b .nav-toggle-bar:nth-child(2) { display: block; }
  html body .site-header--b.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html body .site-header--b.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  html body .site-header--b.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  html body .site-header--b .site-mobile-nav { display: none; }
  html body .site-header--b .site-mobile-nav[hidden] { display: none !important; }

  /* The footer preserves the four roles rather than mixing their resources. */
  html body .site-footer.site-footer--b {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 42px 0 24px;
    border: 0;
    border-top: 1px solid #3a3a38;
    background: var(--reference-text);
    color: #e5e5e5;
    font-family: var(--reference-font); font-weight: 400; line-height: 1.5;
    text-align: left;
  }
  html body .site-footer--b .site-in {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  html body .site-footer--b .site-footer-layout {
    display: grid;
    grid-template-columns: minmax(238px,.8fr) minmax(0,2fr);
    gap: 60px;
  }
  html body .site-footer--b .site-mark {
    position: static;
    display: inline-flex;
    width: 268px;
    max-width: 100%;
    color: #fff;
    margin: 0 0 18px;
    padding: 0;
    transform: none;
  }
  html body .site-footer--b .portal-wordmark { width: 100%; height: auto; }
  html body .site-footer--b .portal-emblem { width: 66px; }
  html body .site-footer--b .site-footer-intro {
    --reference-copy-leading: 1.55;
    margin: 0;
    max-width: 34ch;
    color: #e5e5e5;
  }
  html body .site-footer--b .institution-footer-columns {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-content: start;
    gap: 28px 24px;
    margin: 0;
  }
  html body .site-footer--b .institution-footer-columns ul { margin: 0; padding: 0; list-style: none; }
  html body .site-footer--b .institution-footer-columns li { margin: 0; }
  html body .site-footer--b :is(.institution-footer-columns a,.site-footer-services a,.site-credits a) {
    display: block;
    min-height: 36px;
    color: #fff !important;
    padding-block: 7px;
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  html body .site-footer--b :is(.institution-footer-columns a,.site-footer-services a,.site-credits a):hover {
    color: #fff !important;
    text-decoration: underline;
    text-decoration-color: #fff;
  }
  html body .site-footer--b .site-footer-services:not(#_z):not(#reference-type-guard) {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    align-items: start;
    gap: 28px 24px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid #3a3a38;
    font-family: var(--reference-font) !important; font-weight: 400 !important; line-height: 1.5 !important;
  }
  html body .site-footer--b :is(.institution-footer-note,.site-credits) {
    --reference-copy-leading: 1.6;
    margin: 22px 0 0;
    padding: 0;
    max-width: 100ch;
    border: 0;
    color: #e5e5e5 !important;
    font-family: var(--reference-font); font-weight: 400; line-height: 1.6;
  }
  html body .site-footer--b .site-credits { margin-top: 12px; }
  html body .site-footer--b .site-credits a { display: inline; color: inherit !important; }

  @media (max-width: 68.75em) {
    :root { --head-h: 92px; }
    html body .site-header--b {
      --figure-height: 88px;
      --compact-height: 60px;
      --figure-outset: 0px;
      --lettering-width: min(calc(var(--figure-height) * 1.45), calc(100vw - 2 * var(--gutter) - var(--brand-inset) - 58px));
    }
    html body .site-header--b .site-header-main { min-height: 90px; gap: 20px; }
    html body .site-header--b .site-mark { width: 270px; }
    html body .site-header--b .site-nav,
    html body .site-header--b .site-header-services:not(#_z):not(#reference-type-guard),
    html body .site-header--b .site-header-main>.site-header-find:not(#_z):not(#reference-type-guard) { display: none; }
    html body .site-header--b .nav-toggle { display: flex; }
    html body .site-header--b.menu-open .site-mobile-nav:not([hidden]) {
      position: absolute;
      display: grid;
      grid-template-columns: 1fr 1fr;
      left: 0;
      right: 0;
      top: 100%;
      max-height: calc(100svh - var(--head-h));
      overflow-y: auto;
      overscroll-behavior: contain;
      gap: 24px;
      padding: 18px var(--gutter) 28px;
      border-bottom: 1px solid var(--reference-line);
      background: var(--paper);
      box-shadow: 0 16px 28px rgb(38 39 38 / .07);
    }
    html body .site-header--b .site-mobile-nav>div { display: grid; align-content: start; }
    html body .site-header--b .site-mobile-nav a:not(#_z):not(#reference-type-guard) {
      width: 100%;
      min-height: 48px;
      padding: 13px 0;
      border-bottom: 1px solid var(--reference-line) !important;
      white-space: normal;
    }
    html body .site-header--b .site-mobile-nav .site-header-find:not(#_z):not(#reference-type-guard) {
      padding-left: 0;
      border-left: 0;
      color: var(--reference-text) !important;
    }
  }
  @media (max-width: 1000px) {
    html body .site-footer--b .site-footer-layout { grid-template-columns: 1fr; gap: 32px; }
    html body .site-footer--b .site-footer-services:not(#_z):not(#reference-type-guard) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    html body .site-footer--b .institution-footer-columns { grid-template-columns: repeat(4,minmax(0,1fr)); }
  }
  @media (max-width: 700px) {
    html body .site-footer--b .institution-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
  }
  @media (max-width: 37.5em) {
    :root { --head-h: 84px; --gutter: 16px; }
    html body .site-header--b { --figure-height: clamp(60px, calc(23vw - 12px), 80px); --compact-height: 50px; }
    html body .site-header--b .site-header-main { min-height: 83px; gap: 14px; }
    html body .site-header--b .site-mark { width: 245px; max-width: calc(100% - 60px); }
    html body .site-header--b.menu-open .site-mobile-nav:not([hidden]) { grid-template-columns: 1fr; gap: 0; padding: 10px 20px 24px; }
    html body .site-footer--b { padding-block: 32px 24px; }
    html body .site-footer--b .site-mark { width: 255px; }
    html body .site-footer--b .institution-footer-columns { gap: 28px 24px; }
    html body .site-footer--b .institution-footer-columns a { min-height: 44px; }
    html body .site-footer--b .site-footer-services:not(#_z):not(#reference-type-guard) { grid-template-columns: 1fr; margin-top: 28px; }
    html body .site-footer--b .site-footer-services a { min-height: 44px; }
  }
  @media (max-width: 360px) {
    html body .site-header--b .site-mark { width: 215px; }
  }
}

/* Component proportions from the mock; the homepage keeps its map opening. */
@media screen {
  html body .site-header--b .site-mark {
    color: var(--reference-text);
    width: calc(var(--brand-inset) + var(--lettering-width));
  }
  html body .site-footer--b .site-mark { color:#fff; }
  html body .site-header-find { color:var(--reference-text) !important; }
  html body .site-header--b .site-header-services a[aria-current="page"] { color:var(--reference-text) !important; text-decoration-color:var(--reference-text); }
  html body :is(.portal-hero,.home-split) img { aspect-ratio:4/3; height:auto; object-fit:cover; border-radius:var(--radius); }
  html body .portal-hero .portal-lead { line-height:1.6 !important; max-width:56ch; }
  html body :is(.portal-facts,.home-facts) { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; background:var(--surface); }
  html body :is(.portal-facts,.home-facts)>div { padding:18px 16px; border-right:1px solid var(--line); }
  html body :is(.portal-facts,.home-facts)>div:last-child { border-right:0; }
  html body :is(.portal-facts,.home-facts) dd { margin:6px 0 0; font-variant-numeric:tabular-nums; }
  html body :is(table,output,time,.home-finder-count,.gr-count) { font-variant-numeric:tabular-nums; }
  html body .result-big .result-value { display:block; overflow-wrap:anywhere; }
  html body .ref-hub-more { margin-top:24px; }
  html body .ref-hub-more>summary { min-height:44px; padding-block:10px; cursor:pointer; }
  html body .ref-hub-more>summary:focus-visible { outline:3px solid var(--reference-text); outline-offset:3px; }
  html body .ref-hub-more[open]>.ref-hub-materials { margin-top:24px; }
  /* Wpis bloga na tej samej osi co pozostałe strony. */
  html body main.blog-wrap:has(>.blog-article) { width:calc(100% - var(--gutter)*2) !important; max-width:calc(var(--max) - var(--gutter)*2) !important; }
  html body main a svg { transition:transform .2s ease; }
  html body main a:hover svg:last-child { transform:translateX(4px); }
  html body .b-home :is(.b-home-feature>a>img,.b-home-career>img) { height:auto; aspect-ratio:3/2; border-radius:var(--radius); }
  html body .b-home-stable { background:var(--reference-surface); }
  html body .b-home-stable-grid>figure>img { height:auto; aspect-ratio:4/5; border-radius:var(--radius); }
  html body .b-home-resource-list :is(a,article) { min-width:0; }
  html body .b-home :is(.ref-home-field input,.ref-home-field select,.b-home-primary) { border-radius:var(--radius); }
  html body .b-home .ref-home-field :is(input,select) { border-color:var(--reference-muted); }
  html body .b-home .ref-home-widget-result { background:var(--reference-text); color:#fff; padding:24px; border:0; border-radius:var(--radius); }
  html body .b-home .ref-home-widget-result :is(p,output,strong) { color:#fff !important; }
  html body .b-home .ref-home-widget-result .ref-home-widget-placeholder { color:#e5e5e5 !important; }

  html body #centres-nearby[aria-pressed="true"] { background:var(--reference-text) !important; color:#fff !important; border-color:var(--reference-text) !important; }
  html body .site-footer--b :focus-visible,html body :is(.tool-result,.cost-result) :focus-visible { outline-color:#fff !important; }
  @media (max-width:860px) {
    html body :is(.portal-facts,.home-facts) { grid-template-columns:repeat(2,minmax(0,1fr)); }
    html body :is(.portal-facts,.home-facts)>div:nth-child(2n) { border-right:0; }
    html body :is(.portal-facts,.home-facts)>div:nth-child(n+3) { border-top:1px solid var(--line); }
  }
  @media (max-width:620px) {
    html body .ref-hub-materials { grid-template-columns:1fr; }
    html body .b-home-stable-grid>figure>img { max-height:420px; }
  }


}
@media screen and (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto !important; }
  html body *,html body *::before,html body *::after { animation:none !important; transition:none !important; }
}
@media print {
  .ref-hub-more>summary { display:none; }
  .ref-hub-more::details-content { content-visibility:visible !important; }
}

@media screen {
  html body :is(nav[class*="breadcrumb"],.topic-context) {
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: .25rem .6rem; padding: 0; margin: 0 0 1.25rem;
    color: var(--reference-muted);
  }
  html body :is(nav[class*="breadcrumb"],.topic-context) a {
    color: inherit; border: 0; text-decoration: underline;
  }
  html body .ref-hub-materials, html body .topic-results, html body .ref-tool-list {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,24rem),1fr));
    gap: 0 2rem; align-items: stretch;
  }
  html body :is(.ref-hub-material > a,.topic-material) {
    display: grid; grid-template-columns: clamp(5rem,12vw,8.5rem) minmax(0,1fr);
    align-items: start; gap: 1.25rem; padding: 1.25rem 0;
    border: 0; border-top: 1px solid var(--reference-line);
  }
  html body .topic-material--text { grid-template-columns: minmax(0,1fr); }
  html body .topic-material--lead { grid-column: auto; }
  html body :is(.ref-hub-material,.topic-material) img {
    display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; margin: 0;
  }
  html body .topic-material figure { margin: 0; }
  html body :is(.directory-provider-card,.directory-event-card,.foreign-seller) {
    min-width: 0; margin: 0; padding: 1.25rem 0;
    border: 0; border-top: 1px solid var(--reference-line);
    background: var(--paper); border-radius: 0; box-shadow: none; overflow-wrap: anywhere;
  }
  html body :is(.directory-provider-card,.directory-event-card,.foreign-seller) h3 { margin: 0 0 .5rem; }
  html body .action-arrow { display: inline-block; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
  html body .action-arrow--back { transform: rotate(180deg); }
  html body .action-arrow--down { transform: rotate(90deg); }
  html body :is(details, details[class]) > summary { display: list-item; list-style: revert; }
  html body .directory-evidence summary::before { content: none; }
  html body :is(.reader-example,.reader-intro,.tool-measurement,.tool-disclaimer) {
    background: var(--reference-surface); color: var(--reference-text);
    border: 0; padding: 1.25rem;
  }
  html body .stable-sheet { color: var(--reference-text); }
  html body svg text { font-family: var(--reference-font); }
  html body .stable-template-downloads { display: flex; flex-wrap: wrap; gap: .5rem; }
  html body .stable-template-intro > a { color: var(--reference-text); }
  html body .portal-downloads .portal-download {
    border: 0; border-top: 1px solid var(--reference-line); padding: 1.25rem 0;
    background: transparent; text-decoration: none;
  }
  html body .portal-download strong { text-decoration: underline; text-underline-offset: .18em; }
  html body .footer-group { align-self: start; border: 0; padding: 0; margin: 0; color: white; }
  html body .footer-group > summary { min-height: 44px; padding: .5rem 0; cursor: pointer; }
  @media (max-width: 700px) {
    html body .site-footer--b .institution-footer-columns,
    html body .site-footer--b .site-footer-services:not(#_z):not(#reference-type-guard) {
      grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; border: 0;
    }
    html body .site-footer--b .footer-group { border-top: 1px solid #535353; }
    html body .footer-group[open] { padding-bottom: .75rem; }
    html body .b-home-map-filters { flex-wrap: nowrap; overflow-x: auto; padding: 6px; }
    html body .b-home-map-filters button { flex: none; }
  }
  @media (max-width: 620px) {
    html body :is(.blog-table,.price-table table,.stable-summary-table) {
      display: block; width: 100%; min-width: 0; max-width: 100%; border-top: 2px solid var(--ink);
    }
    :is(.blog-table,.price-table table,.stable-summary-table) thead {
      position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden;
    }
    html body :is(.blog-table,.price-table table,.stable-summary-table) :is(tbody,tr,th[scope=row],td) {
      display: block; width: 100%; min-width: 0; overflow-wrap: anywhere;
    }
    html body :is(.blog-table,.price-table table,.stable-summary-table) tbody tr {
      border-bottom: 1px solid var(--line); padding: .875rem 0;
    }
    html body :is(.blog-table,.price-table table,.stable-summary-table) :is(th[scope=row],td) {
      position: static; padding: .375rem .5rem; border: 0;
    }
    html body :is(.blog-table,.price-table table,.stable-summary-table) td::before {
      content: attr(data-label); display: block; color: var(--reference-muted);
      font: 600 .875rem/1.5 var(--reference-font); text-transform: none; letter-spacing: 0;
    }
    html body .stable-summary-table td.stable-lowest::before { color: white; }
  }
}

@media screen {
  .site-nav-section { position:relative; display:flex; align-items:center; gap:2px; }
  .site-submenu summary { list-style:none !important; display:block !important; cursor:pointer; padding:10px 5px; }
  .site-submenu summary::-webkit-details-marker { display:none; }
  .site-submenu ul { position:absolute; z-index:20; top:100%; right:0; min-width:220px; margin:0; padding:8px 16px; list-style:none; background:var(--paper,#fff); border:1px solid var(--line); }
  .site-submenu li { margin:0; }
  .site-mobile-primary .site-nav-section { display:grid; grid-template-columns:1fr auto; align-items:start; }
  .site-mobile-primary .site-submenu[open] { grid-column:1/-1; }
  .site-mobile-primary .site-submenu[open] summary { position:absolute; top:0; right:0; }
  .site-mobile-primary .site-submenu ul { position:static; min-width:0; }
}

@media print {
  .print-contract #przed-kupnem .practice-reading > #szczegoly { display: block !important; }
  [data-omit-from-print],
  body:not(.print-blank-schedule) #wzor-do-druku,
  .print-blank-schedule main > :not(#wzor-do-druku),
  .print-contract main:has(> #przed-kupnem) > :not(#przed-kupnem),
  .print-contract #przed-kupnem > :not(.practice-reading),
  .print-contract #przed-kupnem .practice-reading > :not(#szczegoly),
  .print-contract #przed-kupnem #szczegoly > :not(#wzor-umowy) { display: none !important; }
}

/* Odsyłacze w treści: bordo marki, cienkie blade podkreślenie, pełne po wskazaniu (decyzja właściciela 22.11.2026). */
@layer reference {
  html body main :is(p,li,td,dd,figcaption,blockquote) a:not([class]):not(#_z) {
    color: var(--accent-red) !important;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent-red) 35%, transparent);
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: text-decoration-color .15s;
  }
  html body main :is(p,li,td,dd,figcaption,blockquote) a:not([class]):not(#_z):is(:hover,:focus-visible) {
    color: var(--accent-red-hover) !important;
    text-decoration-color: currentColor;
  }
}

/* Kopyta Przewodnika wystają poniżej belki; treść zaczyna się pod nimi (22.11.2026). */
@layer reference {
  :root { --mascot-overhang: 20px; }
  @media (max-width: 68.75em) { :root { --mascot-overhang: 14px; } }
  html body #main-content:not(.b-home) { margin-top: var(--mascot-overhang) !important; }
}

/* Screen edition. The printable sheets, standalone tool and home cover have their own layout. */
@media screen {
  main:has([data-page-opening]) {
    --opening-paper: #f6f4ee;
    --section-paper: #f6f7f4;
    --section-space: clamp(2rem, 4vw, 3.75rem);
  }
  html body main [data-page-opening] {
    --reference-h1: clamp(2.25rem, 4.2vw, 3.85rem);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3.75rem);
    width: 100%;
    max-width: none !important;
    min-height: 0;
    margin: 0 0 clamp(1.5rem, 3vw, 2.75rem);
    padding: clamp(1.6rem, 3.6vw, 3.25rem) 0;
    border: 0;
    color: var(--reference-text);
    background: var(--opening-paper);
  }
  html body main [data-page-opening="long"] { --reference-h1: clamp(2rem, 3.4vw, 3rem); }
  html body main [data-page-opening="extended"] { --reference-h1: clamp(1.875rem, 3vw, 2.5rem); }
  /* Extend the paper to both screen edges without widening the content or scroll area. */
  [data-page-opening]::before, [data-section-band]::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: inherit;
    box-shadow: 0 0 0 100vmax var(--band-fill, var(--opening-paper));
    clip-path: inset(0 -100vmax);
    pointer-events: none;
  }
  html body main [data-opening-copy] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(.75rem, 1.2vw, 1.15rem);
    grid-column: auto;
    grid-row: auto;
    min-width: 0;
    max-width: none;
    text-align: left;
  }
  html body main [data-opening-copy] > :is(p, nav, h1, dl) { margin: 0 !important; }
  [data-opening-copy] > [data-report-copy] { display: contents; }
  html body main [data-opening-copy] h1 {
    display: block;
    max-width: none;
    min-height: 0;
    margin: 0 !important;
    color: var(--reference-text);
  }
  html body main [data-opening-copy] p { max-width: 62ch; color: var(--reference-text); }
  html body main [data-page-opening] > [data-opening-media] {
    position: static;
    display: block;
    grid-column: auto;
    grid-row: auto;
    order: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  html body main [data-opening-media] picture { display: block; }
  html body main [data-page-opening] [data-opening-media] img {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 200px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0;
  }
  html body main [data-opening-media][data-illustration] img { object-fit: contain; }
  html body main [data-opening-media] figcaption {
    display: block;
    position: static;
    margin: .45rem 0 0;
    padding: 0;
    text-align: left;
    color: var(--reference-muted);
    background: transparent;
  }
  html body main [data-opening-media] figcaption a { color: var(--accent-red); }
  html body main [data-opening-copy] > :is(nav[class*="breadcrumb"], .topic-context) {
    order: -2;
    gap: .2rem .55rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--reference-muted);
  }
  html body main [data-opening-copy] > .opening-action { order: 6; }
  html body main :has(> [data-page-opening]):not(.blog-article) { max-width: none; padding-top: 0; }
  html body main [data-section-band] {
    --band-fill: var(--section-paper);
    position: relative;
    isolation: isolate;
    padding-block: var(--section-space);
    border-block: 0;
    background: var(--section-paper);
  }
  html body main .reading-band {
    padding: clamp(1.25rem, 2.5vw, 2rem);
    margin-block: var(--section-space);
  }
  .reading-band::before { content: none; }
  html body main .reading-band > h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
  main:has([data-page-opening]) :where(form[id], input[id], select[id], #miasta, #wykaz-zdjec, .photo-sources li[id]) {
    scroll-margin-top: calc(var(--head-h) + 1.5rem);
  }
  html body main .submission-panels {
    max-width: 62rem;
    margin-inline: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  html body .submission-panels > fieldset {
    box-sizing: border-box;
    min-width: 0;
    margin: 0 0 1.25rem;
    padding: clamp(1rem, 2.6vw, 2rem);
    border: 0;
    border-radius: .35rem;
    background: var(--opening-paper);
  }
  html body .submission-panels > fieldset > legend {
    float: left;
    width: 100%;
    padding: 0;
    margin: 0 0 1rem;
    color: var(--reference-text);
  }
  html body .submission-panels > fieldset > legend + * { clear: both; }
  html body .submission-panels :is(.directory-form-grid, .growth-grid) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem 1.75rem;
    max-width: 54rem;
  }
  html body .submission-panels :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .65rem .8rem;
    border: 1px solid #888b82;
    background: var(--paper);
  }
  html body .submission-panels :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--accent-red); }
  html body .submission-panels label { min-width: 0; }
  html body .submission-panels > fieldset > input { display: block; max-width: 32rem; margin-bottom: 1rem; }
  html body .submission-panels button[type="submit"]:enabled { color: white; background: var(--accent-red); }
  html body .submission-panels button[type="submit"]:enabled:hover { background: var(--accent-red-hover); }
  .opening-section-icon { width: 1.55rem; height: 1.55rem; vertical-align: .02em; margin-inline-end: .6rem; color: var(--reference-muted); }
  @media (max-width: 899px) {
    html body main [data-page-opening] { align-items: start; gap: 1rem; }
    html body main [data-opening-copy] { display: contents; }
    html body main [data-opening-copy] > * { order: 4; min-width: 0; }
    html body main [data-opening-copy] > :is(.portal-kicker, .blog-kicker) { order: -1; }
    html body main [data-opening-copy] h1 { order: 0; }
    html body main [data-opening-copy] :is(.portal-lead, h1 + p, .tool-lead) { order: 1; }
    html body main [data-page-opening] > [data-opening-media] { order: 2; }
    html body main [data-opening-copy] > :is(nav[class*="breadcrumb"], .topic-context) { order: -2; }
    html body main [data-opening-copy] > :is(a, button) { justify-self: start; }
  }
  @media (min-width: 650px) {
    html body .submission-panels :is(.directory-form-grid, .growth-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 900px) {
    html body main [data-page-opening] { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    html body main [data-page-opening] > [data-opening-copy] { grid-area: 1 / 1; container-type: inline-size; width: 100%; }
    html body main [data-page-opening] > [data-opening-media] { grid-area: 1 / 2; }
    html body main [data-opening-copy] h1 { --reference-h1: clamp(2.25rem, 10.5cqi, 3.75rem); }
    html body main [data-page-opening="long"] h1 { --reference-h1: clamp(1.875rem, 7.4cqi, 2.75rem); }
    html body main [data-page-opening="extended"] h1 { --reference-h1: clamp(1.5rem, 5.9cqi, 2.125rem); }
    html body main [data-page-opening] [data-opening-media] img { max-height: none; }
  }
}
@media print {
  [data-page-opening] .opening-action, [data-page-opening] .opening-breadcrumb, [data-opening-media][data-screen-photo], .opening-section-icon { display: none !important; }
}
