/* Shared chrome: deliberately scoped to survive older page-specific CSS. */
:root { --site-width: 1140px; --site-gutter: 24px; }
body.site-layout { padding-top: 0; -webkit-font-smoothing: antialiased; }
body.site-layout.site-error { display: block; padding: 0; }
body.site-error .site-error-content { min-height: calc(100svh - 73px); padding: 48px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.site-header, .site-header *, .site-section-bar, .site-section-bar * { box-sizing: border-box; }
body .site-header {
  position: relative; inset: auto; width: 100%; height: auto; padding: 0; margin: 0;
  border: 0; border-bottom: 1px solid #e2e8f0; background: #fff; color: #17243b;
  box-shadow: none; backdrop-filter: none; z-index: 20;
  font-family: Inter, sans-serif; font-size: 16px; line-height: 1.5;
}
body .site-header-inner {
  width: min(var(--site-width), calc(100% - var(--site-gutter) * 2)); max-width: none;
  min-height: 72px; padding: 0; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
body .site-logo {
  display: inline-block; flex: none; margin: 0; padding: 0; font-family: Inter, sans-serif;
  font-size: 27px; font-weight: 800; letter-spacing: -1px; line-height: 1.25;
  color: #1e293b; text-decoration: none; white-space: nowrap; transform: none;
}
body .site-logo span { color: #2563eb; }
body .site-nav {
  display: flex; align-items: center; justify-content: flex-end; gap: 20px;
  position: static; width: auto; max-width: none; height: auto; margin: 0; padding: 0;
  background: transparent; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible;
}
body .site-header .site-nav-link, body .site-section-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.5;
  letter-spacing: normal; text-transform: none; color: #40506a; text-decoration: none; white-space: nowrap;
  box-shadow: none; transform: none; transition: color 120ms ease;
}
body .site-header .site-nav-link::after, body .site-section-nav a::after {
  content: ''; position: absolute; display: block; inset: auto 0 5px;
  width: auto; max-width: none; height: 2px; margin: 0; padding: 0; border: 0;
  background: currentColor; border-radius: 2px; opacity: 0; transform: scaleX(.35);
  transform-origin: left; transition: transform 160ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease;
}
body .site-header .site-nav-link:hover, body .site-section-nav a:hover { color: #1d4ed8; text-decoration: none; }
body .site-header .site-nav-link[aria-current], body .site-section-nav a[aria-current] { color: #1d4ed8; text-decoration: none; }
body .site-header .site-nav-link:is(:hover,:focus-visible,[aria-current])::after,
body .site-section-nav a:is(:hover,:focus-visible,[aria-current])::after { opacity: 1; transform: scaleX(1); }
body .site-header .site-nav-link:active, body .site-section-nav a:active { color: #172554; }
body .site-header .site-service-link { margin-left: 4px; padding-left: 20px; border-left: 1px solid #dce3ec; }
body .site-header .site-service-link::after { left: 20px; }
body .site-menu-toggle { display: none; min-width: 84px; min-height: 44px; margin: 0; padding: 8px 12px; gap: 8px; align-items: center; justify-content: center; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; font: 600 14px/1.5 Inter,sans-serif; color: #17243b; cursor: pointer; }
body .site-menu-toggle { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
body .site-menu-toggle:is(:hover,[aria-expanded="true"]) { color: #1d4ed8; border-color: #2563eb; background: #eff6ff; }
body .site-menu-toggle:active { background: #dbeafe; }
body .site-section-bar { position: relative; width: 100%; margin: 0; padding: 0; background: #f7f9fc; border-bottom: 1px solid #e2e8f0; }
body .site-section-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0 24px;
  width: min(var(--site-width), calc(100% - var(--site-gutter) * 2)); max-width: none;
  min-height: 52px; margin: 0 auto; padding: 4px 0; position: static; border: 0; background: transparent;
  font: 14px/1.5 Inter,sans-serif; box-shadow: none; opacity: 1; visibility: visible;
}
body .site-section-label { font: 700 14px/1.5 Inter,sans-serif; color: #17243b; margin-right: 4px; }
body .site-section-nav a { font-weight: 500; white-space: normal; }
body .site-skip { position: absolute; z-index: 1000; top: -100px; left: 16px; margin: 0; padding: 12px 16px; background: #fff; color: #1d4ed8; border: 2px solid #1d4ed8; border-radius: 6px; font: 600 16px/1.5 Inter,sans-serif; }
body .site-skip:focus { top: 8px; }
.site-header :focus-visible, .site-section-nav :focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; border-radius: 3px; }
/* Align outer page edges; text columns retain their own reading widths. */
body.site-layout .container, body.site-layout .container-wide, body.site-layout .portal-shell {
  box-sizing: border-box; width: min(var(--site-width), calc(100% - var(--site-gutter) * 2));
  max-width: none; margin-left: auto; margin-right: auto; padding-left: 0; padding-right: 0;
}
body.site-layout .container .container { width: 100%; }
body.site-layout :is(.breadcrumbs,.breadcrumb) { padding-left: 0; padding-right: 0; }
body.site-layout :is(.breadcrumbs,.breadcrumb) a { margin-left: 0; margin-right: 0; }
body.site-layout .site-table-region { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; margin-block: 24px; }
body.site-layout .site-table-region table { margin-block: 0; }
body.site-layout .site-table-region:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
body.site-layout .page-main, body.site-layout main.portal-shell { padding-top: 32px; }
body.site-layout.portal-article .reading-column { max-width: 69ch; }
body.site-section-dokumenty article.container { max-width: 72ch; }
body.site-layout.portal main > .section-heading { padding-top: 24px; }
body.site-layout.portal main > .section-heading h1 { font-size: clamp(2rem,3.5vw,2.7rem); }
/* The same article preview should look familiar in the portal and its archive. */
body.site-layout.portal .articles-grid { gap: 28px; }
body.site-layout.portal .article-card {
  display: flex; flex-direction: column; min-width: 0; padding: 28px;
  background: #fff; border: 1px solid #dce3ed; border-radius: 12px;
}
body.site-layout.portal .article-card .card-meta { gap: 10px; margin-bottom: 12px; font-size: 14px; color: #59677c; }
body.site-layout.portal .article-card .card-category { background: #eff6ff; color: #1d4ed8; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
body.site-layout.portal .article-card :is(h2,h3) { font-size: 20px; line-height: 1.35; letter-spacing: -.02em; margin: 0 0 12px; }
body.site-layout.portal .article-card .card-summary { font-size: 15px; line-height: 1.6; color: #475569; margin: 0 0 16px; }
body.site-layout.portal .article-card .card-link { align-self: flex-start; margin-top: auto; padding: 8px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
body.site-layout.portal .article-card a:hover { text-decoration: underline; }
/* The former fixed sales header no longer needs an oversized hero offset. */
body.site-layout.sales-page .hero { padding-top: 64px; }
@media (max-width: 1100px) {
  body .site-header-inner { gap: 0 16px; }
  body .site-nav { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 4px 24px; padding: 8px 0 16px; }
  .site-nav-ready body .site-menu-toggle { display: inline-flex; }
  .site-nav-ready body .site-nav { display: none; }
  .site-nav-ready body .site-nav.is-open { display: flex; }
  body .site-header .site-service-link { margin: 0; padding: 0; border: 0; }
  body .site-header .site-service-link::after { left: 0; }
}
@media (max-width: 600px) {
  :root { --site-gutter: 16px; }
  body .site-section-nav { gap: 0 20px; padding: 8px 0; }
  body .site-section-label { flex-basis: 100%; padding: 2px 0; }
  body .site-section-nav a { min-height: 44px; font-size: 13px; }
  body .site-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 16px; }
  .site-nav-ready body .site-nav.is-open { display: grid; }
  body.site-layout.sales-page .hero { padding-top: 40px; }
  body.site-layout.portal .article-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  body .site-header *, body .site-header *::after, body .site-section-nav *, body .site-section-nav *::after { transition: none !important; }
}
