/* Wspólny standard dokumentów. Zakres: wyłącznie strony dolnego menu stopki. */
body.ujw-document-page {
 --doc-bg:#f5f7fa; --doc-paper:#fff; --doc-ink:#24354b; --doc-title:#004996;
 --doc-line:#dce3eb; --doc-accent:#976949; --doc-pad:clamp(20px,4vw,56px);
 background:var(--doc-bg);
}
body.ujw-document-page #primary {
 width:min(calc(100% - 32px),1040px); max-width:1040px;
 margin:36px auto 56px; padding:0; min-width:0; background:transparent;
}
body.ujw-document-page #primary > :is(.ujw-standard-entry__article,.ck-section) {
 padding:0; margin:0; border:1px solid var(--doc-line); border-top:4px solid var(--doc-accent);
 border-radius:12px; background:var(--doc-paper); box-shadow:0 8px 28px #14233708; min-width:0;
}
body.ujw-document-page #primary .ujw-entry-hero {
 background:transparent; color:var(--doc-title); padding:0; margin:0; min-height:0;
}
body.ujw-document-page #primary .ujw-entry-hero::before,
body.ujw-document-page #primary .ujw-entry-hero::after {display:none;}
body.ujw-document-page #primary .ujw-entry-hero__inner {
 display:block; width:auto; max-width:none; min-height:0; padding:0; margin:0;
}
body.ujw-document-page #primary .ujw-entry-hero__content {max-width:none;padding:0;margin:0;}
body.ujw-document-page #primary .ujw-entry-eyebrow {display:none;}
body.ujw-document-page #primary h1 {
 color:var(--doc-title); font-size:clamp(1.75rem,3vw,2.5rem); font-weight:700;
 line-height:1.2; letter-spacing:-.025em; text-transform:none; text-align:left;
 padding:36px var(--doc-pad) 28px; margin:0; max-width:none; width:auto;
 border-bottom:1px solid var(--doc-line); overflow-wrap:anywhere;
}
body.ujw-document-page #primary :is(.ujw-entry-body,.ck-content) {
 width:auto; max-width:none; margin:0; padding:28px var(--doc-pad) 44px;
 color:var(--doc-ink); font-size:1rem; line-height:1.75; min-width:0;
}
body.ujw-document-page #primary :is(.ujw-rich-content,.ck-document) {
 width:100%; max-width:none; margin:0; padding:0; min-width:0; color:var(--doc-ink);
}
body.ujw-document-page #primary :is(p,li,dd,dt,td,th,a) {overflow-wrap:anywhere;}
body.ujw-document-page #primary :is(p,ul,ol,dl) {margin-top:0;margin-bottom:1.15em;}
body.ujw-document-page #primary :is(ul,ol) {padding-left:1.5em;margin-left:0;}
body.ujw-document-page #primary li {margin-bottom:.5em;padding-left:.15em;}
body.ujw-document-page #primary li > :is(ul,ol) {margin-top:.65em;}
body.ujw-document-page #primary h2 {
 color:var(--doc-title); font-size:1.45em; font-weight:650; line-height:1.35;
 text-transform:none; letter-spacing:-.015em; margin:1.8em 0 .8em; padding-top:1em;
 border-top:1px solid var(--doc-line); overflow-wrap:anywhere;
}
body.ujw-document-page #primary h3 {
 color:var(--doc-title); font-size:1.15em; font-weight:650; line-height:1.45;
 text-transform:none; letter-spacing:normal; margin:1.5em 0 .7em; overflow-wrap:anywhere;
}
body.ujw-document-page #primary :is(.ujw-rich-content,.ck-content,.ck-document) > h2:first-child {
 margin-top:0; padding-top:0; border-top:0;
}
body.ujw-document-page #primary a:not(.wp-block-button__link):not(.ujw-button) {
 color:var(--doc-title); text-decoration:underline; text-decoration-thickness:1px;
 text-underline-offset:.2em;
}
body.ujw-document-page #primary a:hover {text-decoration-thickness:2px;}
body.ujw-document-page #primary a:focus-visible {outline:3px solid var(--doc-title);outline-offset:4px;border-radius:2px;}
body.ujw-document-page #primary .ck-document-review {
 background:#f7f3ed; color:var(--doc-ink); padding:18px 22px; border-left:4px solid var(--doc-accent);
 border-radius:0 8px 8px 0; margin-bottom:28px;
}
body.ujw-document-page #primary :is(.ujw-html-sitemap__grid,.ck-site-map) {
 display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start;
}
body.ujw-document-page #primary :is(.ujw-html-sitemap__section,.ck-site-map > section) {
 background:var(--doc-paper); color:var(--doc-ink); padding:22px;
 border:1px solid var(--doc-line); border-radius:8px; min-width:0; margin:0;
}
body.ujw-document-page #primary :is(.ujw-html-sitemap__section,.ck-site-map > section) > h2 {
 margin:0 0 1em; padding:0 0 .8em; border:0; border-bottom:2px solid var(--doc-line); font-size:1.2em;
}
body.ujw-document-page #primary :is(.ujw-html-sitemap__section,.ck-site-map > section) ul {margin-bottom:0;}
body.ujw-document-page #primary .wp-block-table {max-width:100%;overflow-x:auto;}
html.ujw-a11y-large-text body.ujw-document-page #primary :is(.ujw-entry-body,.ck-content) {font-size:1.2rem;}
html.ujw-a11y-larger-text body.ujw-document-page #primary :is(.ujw-entry-body,.ck-content) {font-size:1.4rem;}
html.ujw-a11y-high-contrast body.ujw-document-page {--doc-bg:#000;--doc-paper:#000;--doc-ink:#fff;--doc-title:#fff;--doc-line:#fff;--doc-accent:#fff;}
html.ujw-a11y-yellow-on-black body.ujw-document-page {--doc-bg:#000;--doc-paper:#000;--doc-ink:#ff0;--doc-title:#ff0;--doc-line:#ff0;--doc-accent:#ff0;}
html.ujw-a11y-black-on-yellow body.ujw-document-page {--doc-bg:#ff0;--doc-paper:#ff0;--doc-ink:#000;--doc-title:#000;--doc-line:#000;--doc-accent:#000;}
html:is(.ujw-a11y-high-contrast,.ujw-a11y-yellow-on-black,.ujw-a11y-black-on-yellow) body.ujw-document-page #primary,
html:is(.ujw-a11y-high-contrast,.ujw-a11y-yellow-on-black,.ujw-a11y-black-on-yellow) body.ujw-document-page #primary :is(article,section,header,div,nav,p,h1,h2,h3,li,a,strong,span) {
 background-color:var(--doc-paper)!important; color:var(--doc-ink)!important; border-color:var(--doc-line)!important; box-shadow:none;
}
@media(max-width:700px) {
 body.ujw-document-page {--doc-pad:20px;}
 body.ujw-document-page #primary {width:calc(100% - 24px);margin-block:24px 36px;}
 body.ujw-document-page #primary h1 {padding-block:24px 20px;}
 body.ujw-document-page #primary :is(.ujw-entry-body,.ck-content) {padding:24px var(--doc-pad) 28px;}
 body.ujw-document-page #primary :is(.ujw-html-sitemap__grid,.ck-site-map) {grid-template-columns:minmax(0,1fr);}
 body.ujw-document-page #primary :is(.ujw-html-sitemap__section,.ck-site-map > section) {padding:16px;}
}

/* Mapa: sekcje w jednym ciągu, bez pustych pól między nierównymi kafelkami. */
body.ujw-document-page #primary .ujw-html-sitemap__grid {grid-template-columns:minmax(0,1fr);}
body.ujw-document-page #primary .ujw-html-sitemap__section > ul {columns:2;column-gap:2rem;}
body.ujw-document-page #primary .ujw-html-sitemap__section > ul > li {break-inside:avoid;}
body.ujw-document-page #primary .ujw-sitemap-expand {margin:.5em 0;min-width:0;}
body.ujw-document-page #primary .ujw-sitemap-expand summary {cursor:pointer;color:var(--doc-title);padding:.5em 0;font-weight:600;overflow-wrap:anywhere;}
body.ujw-document-page #primary .ujw-sitemap-expand summary:focus-visible {outline:3px solid var(--doc-title);outline-offset:3px;}
body.ujw-document-page #primary .ujw-sitemap-expand > ul {margin-top:.6em;}
@media(max-width:700px) {body.ujw-document-page #primary .ujw-html-sitemap__section > ul {columns:1;}}
html.ujw-a11y-larger-text body.ujw-document-page #primary .ujw-html-sitemap__section > ul {columns:1;}

/* Oddzielny odstęp na znacznik listy, także dla zagnieżdżeń i powiększonego tekstu. */
body.ujw-document-page #primary .ujw-html-sitemap__section li {
 padding-left:1.35em;
}
body.ujw-document-page #primary .ujw-html-sitemap__section li::before {
 left:.15em;
 width:.35em;
 height:.35em;
 top:calc(7px + .525em);
 background:currentColor;
}
