.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.signature-gradient,
.industrial-gradient {
  background: linear-gradient(135deg, #002651 0%, #193c6c 100%);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1px #002651;
}

#mobile-nav.is-open {
  display: flex !important;
}

/* —— Yoast breadcrumbs (below fixed nav) —— */
.kml-breadcrumbs-bar {
  margin-top: 5rem;
  border-bottom: 1px solid rgba(26, 28, 31, 0.08);
  background: rgba(248, 249, 252, 0.92);
}

.kml-yoast-breadcrumbs {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #5c6570;
}

.kml-yoast-breadcrumbs a {
  color: #193c6c;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.kml-yoast-breadcrumbs a:hover {
  color: #002651;
  text-decoration: underline;
}

.kml-yoast-breadcrumbs .breadcrumb_last,
.kml-yoast-breadcrumbs span.breadcrumb_last,
.kml-yoast-breadcrumbs strong {
  color: #1a1c1f;
  font-weight: 600;
}

.kml-breadcrumb-sep {
  display: inline-block;
  margin: 0 0.5rem;
  color: #9aa3ad;
  font-weight: 400;
  user-select: none;
}

/* Less top padding on main when breadcrumbs bar is present */
body.kml-has-breadcrumbs main.pt-20,
body.kml-has-breadcrumbs main.pt-32,
body.kml-has-breadcrumbs .kml-material-layout.pt-20 {
  padding-top: 1.25rem !important;
}

@media (min-width: 768px) {
  body.kml-has-breadcrumbs main.pt-20,
  body.kml-has-breadcrumbs main.pt-32,
  body.kml-has-breadcrumbs .kml-material-layout.pt-20 {
    padding-top: 1.5rem !important;
  }
}

/* Brand badge — line + uppercase label (replaces grey pill boxes) */
.kml-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #002651;
}

.kml-badge::before {
  content: '';
  display: block;
  width: 1.75rem;
  height: 2px;
  flex-shrink: 0;
  background: #002651;
}

.dark .kml-badge {
  color: #d6e3ff;
}

.dark .kml-badge::before {
  background: #d6e3ff;
}

.kml-badge--tight {
  margin-bottom: 1rem;
}

/* —— Primary menu (dropdown) —— */
.kml-nav-item.has-dropdown:hover .kml-nav-chevron,
.kml-nav-item.has-dropdown:focus-within .kml-nav-chevron,
.kml-nav-item.has-dropdown.is-dropdown-open .kml-nav-chevron {
  transform: rotate(180deg);
}

.kml-nav-dropdown {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%) translateY(0.5rem);
  min-width: 18rem;
  max-width: min(92vw, 56rem);
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

/* Invisible bridge — pointer path from nav link to panel (no dead zone) */
.kml-nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.75rem;
  background: transparent;
}

.kml-nav-item.has-dropdown:hover .kml-nav-dropdown,
.kml-nav-item.has-dropdown:focus-within .kml-nav-dropdown,
.kml-nav-item.has-dropdown.is-dropdown-open .kml-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Desktop mega-menu: flush under header, centered to header/viewport */
@media (min-width: 1024px) {
  .kml-header .kml-nav {
    align-self: stretch;
    align-items: stretch;
    height: 100%;
  }

  .kml-header .kml-nav > li {
    display: flex;
    align-items: center;
    height: 100%;
  }

  .kml-header .kml-nav > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    height: 100%;
    line-height: 1;
  }

  .kml-header .kml-nav-chevron {
    font-size: 1.125rem !important;
    line-height: 1 !important;
    width: 1.125rem;
    height: 1.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /*
   * Mega panels must position against .kml-header (not the short/tall li).
   * Override Tailwind `relative` on .kml-nav-item so top:100% = bottom of header.
   */
  .kml-header .kml-nav-item.has-dropdown:has(.kml-nav-dropdown--mega) {
    position: static;
  }

  .kml-header .kml-nav-dropdown--mega,
  .kml-header .kml-nav-dropdown--mega.kml-nav-dropdown--materialy {
    position: absolute;
    left: 50%;
    right: auto;
    top: 100%;
    width: min(56rem, calc(100vw - 2rem));
    max-width: none;
    min-width: 0;
    padding-top: 0.5rem !important; /* small gap so top radius is visible */
    margin-top: 0 !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  .kml-header .kml-nav-dropdown--mega::before {
    left: 50%;
    right: auto;
    width: min(76rem, calc(100vw - 2rem));
    transform: translateX(-50%);
    height: 0.5rem; /* hover bridge across the 0.5rem gap */
  }

  .kml-header .kml-nav-item.has-dropdown:hover .kml-nav-dropdown--mega,
  .kml-header .kml-nav-item.has-dropdown:focus-within .kml-nav-dropdown--mega,
  .kml-header .kml-nav-item.has-dropdown.is-dropdown-open .kml-nav-dropdown--mega {
    transform: translateX(-50%) translateY(0) !important;
  }

  .kml-header .kml-nav-dropdown--materialy {
    width: min(76rem, calc(100vw - 2rem));
  }

  .kml-header .kml-nav-dropdown-inner--materialy,
  .kml-header .kml-nav-dropdown-inner--oferta {
    padding: 1rem;
    border-radius: 0.875rem;
  }
}

.kml-nav-dropdown-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem 2rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 38, 81, 0.12);
}

.dark .kml-nav-dropdown-inner {
  background: #0f172a;
  border-color: #334155;
}

.kml-nav-dropdown-heading {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #002651;
  margin-bottom: 0.5rem;
}

.kml-nav-dropdown-heading:hover {
  color: #193c6c;
}

.kml-nav-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kml-nav-dropdown-list a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #475569;
}

.kml-nav-dropdown-list a:hover {
  color: #002651;
}

.kml-nav-dropdown-inner--materialy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  padding: 1rem;
  box-sizing: border-box;
}

.kml-nav-materialy-col {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  border-right: 1px solid #eef1f6;
  min-width: 0;
}

.kml-nav-materialy-col:first-child {
  padding-left: 0.25rem;
}

.kml-nav-materialy-col:last-child {
  border-right: 0;
  padding-right: 0.25rem;
}

.kml-nav-materialy-col li {
  margin: 0;
}

/* Match Oferta detail-list typography + hover */
.kml-nav-materialy-col a {
  display: block;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.1rem;
  border-radius: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: #002651;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.kml-nav-materialy-col a:hover {
  background: #f1f5fb;
  color: #001a38;
}

.kml-nav-dropdown-inner--flat {
  min-width: 22rem;
}

.kml-nav-dropdown-list--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 2rem;
  column-count: unset;
}

@media (min-width: 1024px) {
  .kml-nav-dropdown-list--columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kml-nav-dropdown-list--columns li {
  break-inside: avoid;
  margin-bottom: 0;
  min-width: 0;
}

.kml-nav-mobile-sub.is-open {
  display: flex !important;
}

.kml-nav-mobile-toggle[aria-expanded='true'] .material-symbols-outlined {
  transform: rotate(45deg);
}

/* Offer product sidebar — sticky within scroll (not pinned to viewport top) */
.kml-material-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: flex-start;
  z-index: 10;
  max-height: calc(100vh - 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.admin-bar .kml-material-sidebar {
  top: calc(5.5rem + 32px);
  max-height: calc(100vh - 5.5rem - 32px);
}

@media (max-width: 782px) {
  body.admin-bar .kml-material-sidebar {
    top: calc(5.5rem + 46px);
    max-height: calc(100vh - 5.5rem - 46px);
  }
}

/* WordPress admin bar offset */
body.admin-bar nav.fixed {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar nav.fixed {
    top: 46px;
  }
}

/* —— Video below CTA —— */
.kml-cta-video-section {
  --kml-video-min-h: 14rem;
  width: 100%;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .kml-cta-video-section {
    --kml-video-min-h: 32rem;
    padding: 0;
  }
}

.kml-cta-video-section__inner {
  position: relative;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  min-height: var(--kml-video-min-h);
  padding: 1.5rem 1rem 2rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, #f3f3f7 0%, #e8e8ec 45%, #d6e3ff 100%);
  border: 1px solid rgba(0, 38, 81, 0.08);
  box-shadow: 0 24px 48px rgba(0, 38, 81, 0.08);
}

.dark .kml-cta-video-section__inner {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 50%, #193c6c 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.kml-cta-video-section__glow {
  pointer-events: none;
  position: absolute;
  inset: 10% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 199, 255, 0.35) 0%, transparent 70%);
  filter: blur(24px);
}

.kml-cta-video-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: var(--kml-video-min-h);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #002651;
  box-shadow: 0 12px 32px rgba(0, 38, 81, 0.2);
}

.kml-cta-video-frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact — white form card border */
.kml-kontakt-form-card {
  background: #fff;
}

/* Contact Form 7 — contact page layout */
.kml-cf7-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kml-cf7-form .wpcf7-form > p {
  margin: 0;
}

.kml-cf7-form .kml-cf7-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .kml-cf7-form .kml-cf7-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kml-cf7-form .kml-cf7-field--full {
    grid-column: 1 / -1;
  }
}

.kml-cf7-form .kml-cf7-field {
  margin: 0;
}

.kml-cf7-form label.kml-cf7-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #002651;
  font-family: 'Space Grotesk', sans-serif;
}

.kml-cf7-form p > label:not(.kml-cf7-label) {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #002651;
  margin-bottom: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.kml-cf7-form .wpcf7-form-control-wrap {
  display: block;
}

.kml-cf7-form input[type='text'],
.kml-cf7-form input[type='email'],
.kml-cf7-form input[type='tel'],
.kml-cf7-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  background: #f4f4f4;
  color: #1a1c1f;
  font-size: 0.9375rem;
  font-family: Inter, system-ui, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.kml-cf7-form input::placeholder,
.kml-cf7-form textarea::placeholder {
  color: #9ca3af;
}

.kml-cf7-form textarea {
  min-height: 10rem;
  resize: vertical;
}

.kml-cf7-form input:focus,
.kml-cf7-form textarea:focus {
  outline: none;
  border-color: #193c6c;
  box-shadow: 0 0 0 2px rgba(25, 60, 108, 0.2);
  background: #fff;
}

.kml-cf7-form .kml-cf7-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0.5rem 0 0;
}

.kml-cf7-form .wpcf7-submit {
  background: #002651;
  color: #fff;
  padding: 1rem 2.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8125rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background 0.2s;
}

.kml-cf7-form .wpcf7-submit:hover {
  background: #193c6c;
}

.kml-cf7-form .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: #991b1b;
  margin-top: 0.25rem;
}

.kml-cf7-form .wpcf7-form-control.wpcf7-not-valid {
  border-color: #f87171;
}

/* Global form messages — success (green) / error (red) styling */
.kml-cf7-form .wpcf7-response-output {
  display: block;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.5;
  font-family: Inter, system-ui, sans-serif;
}

.kml-cf7-form .wpcf7-response-output:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}

.kml-cf7-form .wpcf7-mail-sent-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.kml-cf7-form .wpcf7-mail-sent-ng,
.kml-cf7-form .wpcf7-aborted,
.kml-cf7-form .wpcf7-validation-errors,
.kml-cf7-form .wpcf7-acceptance-missing,
.kml-cf7-form .wpcf7-spam-blocked {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* GDPR consent (acceptance) — checkbox left, label right */
.kml-cf7-form .wpcf7-form-control-wrap[data-name='zgoda-rodo'],
.kml-cf7-form .wpcf7-acceptance {
  display: block;
  margin: 0.25rem 0 0;
}

.kml-cf7-form .wpcf7-acceptance .wpcf7-list-item {
  display: block;
  margin: 0;
}

.kml-cf7-form .wpcf7-acceptance .wpcf7-list-item label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #49454f;
  cursor: pointer;
  margin: 0;
}

.kml-cf7-form .wpcf7-acceptance .wpcf7-list-item label input[type='checkbox'] {
  order: 0;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: #193c6c;
  cursor: pointer;
}

.kml-cf7-form .wpcf7-acceptance .wpcf7-list-item-label {
  order: 1;
  flex: 1;
  display: block;
}

.kml-cf7-form .wpcf7-acceptance .wml-list-item-label a {
  color: #193c6c;
  text-decoration: underline;
}

/* Homepage hero — vertical breathing room around badge + CTAs */
.kml-home-hero__content {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Footer — homepage layout */
.kml-social-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.kml-social-icon-fallback {
  font-size: 1.25rem;
}

.kml-footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1e3a8a;
  margin: 0 0 0.625rem;
}

.dark .kml-footer-col-title {
  color: #60a5fa;
}

.kml-footer-link {
  font-size: 0.875rem;
  color: #64748b;
  text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.kml-footer-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.dark .kml-footer-link {
  color: #94a3b8;
}

.dark .kml-footer-link:hover {
  color: #93c5fd;
}

/* Footer SEO catalog — structure band (above main footer columns) */
.kml-site-footer {
  --kml-footer-bg: #e9edf2;
  --kml-footer-catalog-bg: #f9fbfd;
  background-color: var(--kml-footer-bg) !important;
  padding-top: 2rem !important;
  padding-bottom: 1.25rem !important;
}

.dark .kml-site-footer {
  --kml-footer-bg: #0f172a;
  --kml-footer-catalog-bg: #1e2d47;
}

.kml-footer-catalog {
  width: 100%;
  box-sizing: border-box;
  display: flow-root;
  background-color: var(--kml-footer-catalog-bg) !important;
  padding-top: 1.25rem !important;
  padding-bottom: 1.25rem !important;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-bottom: 1px solid #dde3ea;
}

.dark .kml-footer-catalog {
  border-bottom-color: #243044;
}

.kml-footer-catalog__inner {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  background-color: transparent;
}

.kml-footer-catalog .kml-footer-links {
  margin-bottom: 0;
}

.kml-footer-catalog .kml-footer-links li:last-child {
  margin-bottom: 0;
}

.kml-footer-main {
  padding-top: 1.25rem !important;
  gap: 1.5rem !important;
  background-color: var(--kml-footer-bg) !important;
}

.kml-footer-bottom {
  margin-top: 1.5rem !important;
  padding-top: 1rem !important;
}

.kml-site-footer .kml-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kml-site-footer .kml-footer-link {
  line-height: 1.35;
  display: block;
}

.kml-site-footer .kml-footer-brand {
  margin-bottom: 0.75rem !important;
}

.kml-site-footer .kml-footer-intro {
  margin-bottom: 0.75rem !important;
  line-height: 1.45;
}

.kml-site-footer .kml-footer-social {
  margin-top: 0.5rem !important;
}

.kml-footer-catalog .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem 1.75rem;
}

@media (min-width: 640px) {
  .kml-footer-catalog .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .kml-footer-catalog .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Footer newsletter — no white background / border (overrides Tailwind forms) */
.kml-site-footer .kml-footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0.5rem;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dark .kml-site-footer .kml-footer-newsletter-form {
  border-bottom-color: #475569;
}

.kml-site-footer .kml-footer-newsletter-input,
.kml-site-footer .kml-footer-newsletter-form input[type='email'] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
  -webkit-appearance: none;
  appearance: none;
}

.kml-site-footer .kml-footer-newsletter-input:focus,
.kml-site-footer .kml-footer-newsletter-form input[type='email']:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

.dark .kml-site-footer .kml-footer-newsletter-input,
.dark .kml-site-footer .kml-footer-newsletter-form input[type='email'] {
  color: #e2e8f0;
}

.kml-site-footer .kml-footer-newsletter-input::placeholder,
.kml-site-footer .kml-footer-newsletter-form input[type='email']::placeholder {
  color: #94a3b8;
}

.kml-site-footer .kml-footer-newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.kml-site-footer .kml-footer-newsletter .wpcf7-form input[type='email'],
.kml-site-footer .kml-footer-newsletter .wpcf7-form input[type='text'] {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Product sidebar (offer / material) — title without h3 in document outline */
.kml-material-sidebar-heading {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 700;
  color: #193c6c;
}

.dark .kml-material-sidebar-heading {
  color: #93c5fd;
}

/* HTML specs — columns below dimensions table (product / material) */
.kml-material-specs {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #43474f;
}

.kml-material-specs__group:not(:last-child) {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(116, 119, 128, 0.18);
}

.kml-material-specs__title {
  margin: 0 0 0.625rem;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: #002651;
  letter-spacing: -0.01em;
}

.kml-material-specs__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kml-material-specs__list li {
  position: relative;
  margin: 0;
  padding: 0.4rem 0 0.4rem 1.125rem;
  border-bottom: 1px solid rgba(116, 119, 128, 0.1);
}

.kml-material-specs__list li:last-child {
  border-bottom: none;
}

.kml-material-specs__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #193c6c;
}

.dark .kml-material-specs {
  color: #cbd5e1;
}

.dark .kml-material-specs__title {
  color: #d6e3ff;
}

.dark .kml-material-specs__group:not(:last-child) {
  border-bottom-color: rgba(148, 163, 184, 0.25);
}

.dark .kml-material-specs__list li {
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

.dark .kml-material-specs__list li::before {
  background: #89a7de;
}

/* Same layout without classes (p strong + ul from ACF editor) */
.kml-material-specs > p {
  margin: 0 0 0.625rem;
}

.kml-material-specs > p > strong {
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #002651;
  letter-spacing: -0.01em;
}

.kml-material-specs > ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.kml-material-specs > ul:not(:last-child) {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(116, 119, 128, 0.18);
}

.kml-material-specs > ul > li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.125rem;
  border-bottom: 1px solid rgba(116, 119, 128, 0.1);
}

.kml-material-specs > ul > li:last-child {
  border-bottom: none;
}

.kml-material-specs > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #193c6c;
}

.dark .kml-material-specs > p > strong {
  color: #d6e3ff;
}

.dark .kml-material-specs > ul:not(:last-child) {
  border-bottom-color: rgba(148, 163, 184, 0.25);
}

.dark .kml-material-specs > ul > li::before {
  background: #89a7de;
}

/* Dimensions table in HTML (product / material) */
.kml-material-specs__table-wrap {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(116, 119, 128, 0.22);
  box-shadow: 0 1px 3px rgba(0, 38, 81, 0.06);
}

.kml-material-specs__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
  line-height: 1.25;
  text-align: left;
}

.kml-material-specs__table thead tr {
  background: #002651;
  color: #ffffff;
}

.kml-material-specs__table th {
  padding: 0.5rem 0.625rem;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  border: none;
}

.kml-material-specs__table th:not(:first-child) {
  text-align: center;
}

.kml-material-specs__table td {
  padding: 0.3rem 0.5rem;
  font-size: 0.75rem;
  color: #43474f;
  border-bottom: 1px solid rgba(116, 119, 128, 0.1);
}

.kml-material-specs__table td:not(:first-child) {
  text-align: center;
}

.kml-material-specs__table tbody tr:nth-child(even) {
  background: #f3f3f7;
}

.kml-material-specs__table tbody tr:last-child td {
  border-bottom: none;
}

.kml-material-specs__table tbody td:first-child {
  font-weight: 600;
  color: #1a1c20;
}

.dark .kml-material-specs__table-wrap {
  border-color: rgba(148, 163, 184, 0.25);
}

.dark .kml-material-specs__table thead tr {
  background: #193c6c;
}

.dark .kml-material-specs__table td {
  color: #cbd5e1;
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

.dark .kml-material-specs__table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

.dark .kml-material-specs__table tbody td:first-child {
  color: #f1f5f9;
}

/* SEO section — highlighted box (BLUF-style on hub landings) */
.kml-seo-highlight-box {
  padding: 1.5rem 1.75rem;
  border-left: 4px solid #002651;
  background: #ffffff;
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0 8px 32px rgba(26, 28, 31, 0.06);
}

@media (min-width: 768px) {
  .kml-seo-highlight-box {
    padding: 2rem 2.5rem;
    padding-left: 1.75rem;
  }
}

.kml-seo-highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background: #002651;
  color: #ffffff;
  border-radius: 0.5rem;
}

.kml-seo-highlight-icon .material-symbols-outlined {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
}

.kml-seo-highlight-title {
  color: #002651;
}

.kml-seo-highlight-lead {
  color: #43474f;
}

/* Full width — no border (contrast with highlight variant) */
.kml-seo-block-full {
  max-width: 48rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.kml-seo-block--two_col > .grid {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(116, 119, 128, 0.22);
}

.kml-seo-block--split > .grid {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(116, 119, 128, 0.22);
}

/* Hub catalog tiles (Materials / Production) — hover without Tailwind CDN group-hover */
.kml-hub-catalog-tile {
  position: relative;
  transition: background-color 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-media {
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-media img {
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-shade {
  z-index: 1;
  background: transparent;
  transition: background-color 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-content {
  position: relative;
  z-index: 2;
}

.kml-hub-catalog-tile .kml-hub-tile-eyebrow {
  color: #43474f;
  transition: color 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-title {
  color: #002651;
  transition: color 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-text {
  color: #43474f;
  transition: color 0.5s ease;
}

.kml-hub-catalog-tile .kml-hub-tile-bullet {
  color: #002651;
  transition: color 0.5s ease;
}

@media (hover: hover) {
  .kml-hub-catalog-tile:hover,
  .kml-hub-catalog-tile:focus-within {
    background-color: #002651 !important;
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-media,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-media {
    opacity: 0.5;
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-media img,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-media img {
    filter: grayscale(0);
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-shade,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-shade {
    background: rgba(0, 38, 81, 0.55);
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-eyebrow,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-eyebrow {
    color: #a9c7ff !important;
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-title,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-title {
    color: #d6e3ff !important;
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-text,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-text {
    color: #a9c7ff !important;
  }

  .kml-hub-catalog-tile:hover .kml-hub-tile-bullet,
  .kml-hub-catalog-tile:focus-within .kml-hub-tile-bullet {
    color: #d6e3ff !important;
  }
}

/* Oferta - katalog (siatka 12 kolumn + pas obrobki CNC) */
.kml-oferta-catalog .kml-oferta-catalog__grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

.kml-oferta-catalog .kml-oferta-catalog__grid > * {
  min-width: 0;
}

.kml-oferta-catalog .kml-hub-catalog-tile .kml-hub-tile-title {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.kml-oferta-mid-seo {
  grid-column: 1 / -1;
}

.kml-oferta-obrobka-band {
  grid-column: 1 / -1;
  width: 100%;
}

.kml-oferta-obrobka-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
}

.kml-oferta-obrobka-band__tile {
  min-width: 0;
  width: 100%;
}

.kml-oferta-obrobka-band__tile > * {
  width: 100% !important;
  max-width: 100%;
  min-height: 12rem;
  height: 100%;
}

.kml-oferta-obrobka-band__tile--main > * {
  min-height: 14rem;
}

.kml-oferta-card--feature .kml-oferta-feature-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kml-oferta-card--feature .kml-oferta-feature-tags li {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

.kml-oferta-card--feature h3 {
  color: #d6e3ff;
}

.kml-oferta-card--feature .kml-oferta-feature-icon {
  line-height: 1;
  color: #d6e3ff;
}

.kml-oferta-card--feature .kml-oferta-feature-icon .material-symbols-outlined,
.kml-oferta-card--feature .kml-oferta-feature-icon svg {
  font-size: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
}

.kml-oferta-obrobka-band__tile .kml-oferta-col-span-1,
.kml-oferta-obrobka-band__tile .kml-oferta-col-span-2,
.kml-oferta-obrobka-band__tile .kml-oferta-col-span-3,
.kml-oferta-obrobka-band__tile .kml-oferta-col-span-4,
.kml-oferta-obrobka-band__tile .kml-oferta-col-span-5,
.kml-oferta-obrobka-band__tile .kml-oferta-col-span-6,
.kml-oferta-obrobka-band__tile [class*='md:col-span-'] {
  grid-column: auto !important;
}

.kml-oferta-projektowanie-row {
  grid-column: 1 / -1;
  width: 100%;
}

.kml-oferta-projektowanie-row > * {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .kml-oferta-catalog .kml-oferta-catalog__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }

  .kml-oferta-catalog .kml-oferta-col-span-1 { grid-column: span 1; }
  .kml-oferta-catalog .kml-oferta-col-span-2 { grid-column: span 2; }
  .kml-oferta-catalog .kml-oferta-col-span-3 { grid-column: span 3; }
  .kml-oferta-catalog .kml-oferta-col-span-4 { grid-column: span 4; }
  .kml-oferta-catalog .kml-oferta-col-span-5 { grid-column: span 5; }
  .kml-oferta-catalog .kml-oferta-col-span-6 { grid-column: span 6; }
  .kml-oferta-catalog .kml-oferta-col-span-7 { grid-column: span 7; }
  .kml-oferta-catalog .kml-oferta-col-span-8 { grid-column: span 8; }
  .kml-oferta-catalog .kml-oferta-col-span-9 { grid-column: span 9; }
  .kml-oferta-catalog .kml-oferta-col-span-10 { grid-column: span 10; }
  .kml-oferta-catalog .kml-oferta-col-span-11 { grid-column: span 11; }
  .kml-oferta-catalog .kml-oferta-col-span-12 { grid-column: span 12; }

  .kml-oferta-obrobka-band__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
    min-height: 20rem;
  }

  .kml-oferta-obrobka-band__tile--main {
    grid-column: span 4;
  }

  .kml-oferta-obrobka-band__tile:not(.kml-oferta-obrobka-band__tile--main) {
    grid-column: span 2;
  }

  .kml-oferta-obrobka-band__tile > * {
    min-height: 20rem;
  }

  .kml-oferta-obrobka-band__tile--main .kml-oferta-card--feature h3 {
    font-size: 1rem !important;
    line-height: 1.3 !important;
  }

  .kml-oferta-obrobka-band__tile:not(.kml-oferta-obrobka-band__tile--main) h4,
  .kml-oferta-obrobka-band__tile:not(.kml-oferta-obrobka-band__tile--main) .kml-hub-tile-title {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    word-break: break-word;
    hyphens: auto;
  }

  .kml-oferta-projektowanie-row {
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .kml-oferta-catalog .kml-oferta-catalog__grid > [class*='kml-oferta-col-span']:not(.kml-oferta-obrobka-band):not(.kml-oferta-projektowanie-row) {
    grid-column: 1 / -1;
  }
}

/* ======================================================================
   Light sticky header + Spanflug-style mega menu
   ====================================================================== */

/* —— Light header shell —— */
.kml-header {
  background: #ffffff;
  border-bottom: 1px solid #e6ebf2;
  box-shadow: 0 2px 12px rgba(0, 22, 45, 0.06);
  transition: box-shadow 0.25s ease;
  height: 5rem; /* keep mega-menu top:5rem flush even without Tailwind h-20 */
}

.kml-header > .flex {
  height: 5rem;
}

/* White shell stays; shadow deepens on scroll */
.kml-header.is-sticky {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 22, 45, 0.12);
}

/* Logo on white header — subtle panel, +15% size vs previous h-10 / md:h-11 */
.kml-header .kml-site-logo {
  background: transparent;
  padding: 0.25rem 0;
  border-radius: 0;
  box-shadow: none;
}

.kml-header .kml-site-logo img {
  filter: none;
  height: 2.875rem !important; /* 2.5rem * 1.15 */
  width: auto !important;
  max-width: 14.375rem !important; /* 200px * 1.15 */
}

@media (min-width: 768px) {
  .kml-header .kml-site-logo img {
    height: 3.1625rem !important; /* 2.75rem * 1.15 */
  }
}

.kml-header .kml-site-logo span {
  color: #002651 !important;
}

/* Navy hamburger bars */
.kml-header #hamburger span {
  background: #002651;
}

/* Top-level menu links — navy on white */
.kml-header .kml-nav > li > a {
  color: #002651;
}

.kml-header .kml-nav > li > a:hover,
.kml-header .kml-nav-item.has-dropdown:hover > a,
.kml-header .kml-nav-item.has-dropdown.is-dropdown-open > a,
.kml-header .kml-nav-item.is-active > a {
  color: #001a38;
}

.kml-header .kml-nav-chevron {
  color: inherit;
}

/* Header CTA — navy button, white label */
.kml-header-cta {
  background: #002651;
  color: #ffffff;
  border: 1px solid #002651;
}

.kml-header-cta:hover {
  background: #001a38;
  border-color: #001a38;
  color: #ffffff;
}

/* Header responsive behaviour enforced here so it never depends on the compiled
   Tailwind build (lg: utilities can be missing from tailwind.css on live, which
   makes the hamburger show and hides the "Zapytanie" button on desktop). */
@media (max-width: 1023.98px) {
  .kml-header .kml-nav { display: none !important; }
  .kml-header .kml-header-cta { display: none !important; }
  .kml-header #hamburger { display: flex !important; }
}

@media (min-width: 1024px) {
  .kml-header .kml-nav { display: flex !important; }
  .kml-header .kml-header-cta { display: inline-flex !important; }
  .kml-header #hamburger { display: none !important; }
  #mobile-nav,
  #mobile-nav.is-open { display: none !important; }
}

/* —— Mega-menu panel refinements —— */
.kml-nav-dropdown-inner {
  gap: 1.5rem 2.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 0.875rem;
  border-color: #e6ebf2;
  box-shadow: 0 24px 50px rgba(0, 22, 45, 0.18);
}

/* Tworzywa: 3 equal columns + Oferta-style vertical rules (must win over .kml-nav-dropdown-inner) */
.kml-nav-dropdown-inner--materialy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 1rem;
  min-height: 0;
  border-radius: 0.875rem;
}

.kml-nav-materialy-col {
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  border-right: 1px solid #eef1f6;
  min-width: 0;
}

.kml-nav-materialy-col:first-child {
  padding-left: 0.25rem;
}

.kml-nav-materialy-col:last-child {
  border-right: 0;
  padding-right: 0.25rem;
}

.kml-nav-materialy-col a {
  display: block;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.1rem;
  border-radius: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: #002651;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease;
}

.kml-nav-materialy-col a:hover {
  background: #f1f5fb;
  color: #001a38;
}

.kml-nav-dropdown-col {
  min-width: 13rem;
}

/* Heading becomes a two-line block: bold label + muted subtitle */
.kml-nav-dropdown-heading {
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  margin-bottom: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #eef1f6;
}

.kml-nav-dropdown-heading-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #002651;
  line-height: 1.25;
  transition: color 0.15s ease;
}

.kml-nav-dropdown-heading:hover .kml-nav-dropdown-heading-label {
  color: #193c6c;
}

.kml-nav-dropdown-desc {
  display: block;
  margin-top: 0.15rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  color: #64748b;
}

/* Leaf sections (no child list) read as a clickable card */
.kml-nav-dropdown-col--leaf .kml-nav-dropdown-heading {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.kml-nav-dropdown-list a {
  border-radius: 0.375rem;
  padding: 0.3rem 0.5rem;
  margin-left: -0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.kml-nav-dropdown-list a:hover {
  background: #f1f5fb;
  color: #002651;
}

.dark .kml-nav-dropdown-inner {
  border-color: #334155;
}

.dark .kml-nav-dropdown-heading-label {
  color: #e2e8f0;
}

.dark .kml-nav-dropdown-heading {
  border-bottom-color: #1f2b3d;
}

.dark .kml-nav-dropdown-list a:hover {
  background: #1e293b;
  color: #fff;
}

/* —— Oferta: master list + side detail panel (Spanflug flyout) —— */
.kml-nav-dropdown-inner--oferta {
  display: flex;
  align-items: stretch;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 15rem;
  padding: 1rem;
  box-sizing: border-box;
}

.kml-nav-master {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0 0;
  flex: 0 0 21rem;
  width: 21rem;
  border-right: 1px solid #eef1f6;
}

@media (min-width: 1024px) {
  .kml-nav-dropdown-inner--oferta .kml-nav-master {
    flex: 0 0 24rem;
    width: 24rem;
  }

  .kml-nav-dropdown-inner--oferta .kml-nav-master-desc {
    white-space: nowrap;
  }
}

/* Shared right-hand pane — fits to the active section, never scrolls */
.kml-nav-detail-pane {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 1.25rem;
}

.kml-nav-master-item {
  margin: 0;
}

.kml-nav-master-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease;
}

.kml-nav-master-item:hover > .kml-nav-master-link,
.kml-nav-master-item:focus-within > .kml-nav-master-link {
  background: #f1f5fb;
}

.kml-nav-master-text {
  display: block;
  min-width: 0;
}

.kml-nav-master-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #002651;
  line-height: 1.25;
}

.kml-nav-master-desc {
  display: block;
  margin-top: 0.1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}

.kml-nav-master-arrow {
  margin-left: auto;
  font-size: 1.1rem !important;
  color: #94a3b8;
  transition: transform 0.15s ease, color 0.15s ease;
}

.kml-nav-master-item:hover > .kml-nav-master-link .kml-nav-master-arrow {
  color: #002651;
  transform: translateX(2px);
}

/* Only the active panel (or the default copy) is shown; height adapts to it */
.kml-nav-detail,
.kml-nav-detail-default {
  display: none;
}

.kml-nav-detail.is-active,
.kml-nav-detail-default.is-active {
  display: block;
  animation: kmlNavFade 0.16s ease;
}

@keyframes kmlNavFade {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Default prompt shown before any section is hovered — centred in the pane */
.kml-nav-detail-default.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 12rem;
}

.kml-nav-detail-default .kml-nav-detail-lead {
  max-width: 22rem;
}

/* Leaf sections (filler copy) — centred just like the default prompt */
.kml-nav-detail--copy.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 12rem;
}

.kml-nav-detail--copy .kml-nav-detail-lead {
  max-width: 24rem;
}

.kml-nav-detail-title {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #002651;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.kml-nav-detail-lead {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #94a3b8;
  max-width: 24rem;
}

.kml-nav-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4989e9;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.kml-nav-detail-cta:hover {
  color: #002651;
  gap: 0.55rem;
}

.kml-nav-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kml-nav-detail-list--cols {
  column-count: 2;
  column-gap: 1.5rem;
}

.kml-nav-detail-list li {
  break-inside: avoid;
}

.kml-nav-detail-list a {
  display: block;
  padding: 0.32rem 0.5rem;
  margin-bottom: 0.1rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #475569;
  transition: background 0.15s ease, color 0.15s ease;
}

.kml-nav-detail-list a:hover {
  background: #f1f5fb;
  color: #002651;
}

.dark .kml-nav-master {
  border-right-color: #1f2b3d;
}

.dark .kml-nav-master-label {
  color: #e2e8f0;
}

.dark .kml-nav-detail-list a {
  color: #cbd5e1;
}

.dark .kml-nav-detail-list a:hover {
  background: #1e293b;
  color: #fff;
}

.dark .kml-nav-detail-title {
  color: #e2e8f0;
}

.dark .kml-nav-detail-lead {
  color: #94a3b8;
}

.dark .kml-nav-detail-cta {
  color: #60a5fa;
}

.dark .kml-nav-detail-cta:hover {
  color: #93c5fd;
}

/* —— Blog listing & single post —— */
.kml-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .kml-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .kml-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kml-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  border: 1px solid rgba(116, 119, 128, 0.25);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.kml-blog-pagination .page-numbers:hover,
.kml-blog-pagination .page-numbers:focus-visible {
  color: #193c6c;
  border-color: rgba(25, 60, 108, 0.35);
  background: rgba(214, 227, 255, 0.45);
}

.kml-blog-pagination .page-numbers.current {
  color: #fff;
  background: #193c6c;
  border-color: #193c6c;
}

.kml-blog-single__layout--with-toc {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .kml-blog-single__layout--with-toc {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .kml-blog-single__content {
    flex: 1 1 0;
    min-width: 0;
  }

  .kml-blog-toc {
    flex: 0 0 18rem;
    width: 18rem;
  }
}

.kml-blog-toc {
  position: sticky;
  top: calc(5rem + 20px);
  align-self: flex-start;
  z-index: 10;
  max-height: calc(100vh - 5rem - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.admin-bar .kml-blog-toc {
  top: calc(32px + 5rem + 20px);
  max-height: calc(100vh - 32px - 5rem - 20px);
}

@media (max-width: 1023px) {
  .kml-blog-toc {
    position: static;
    max-height: none;
    overflow: visible;
    order: -1;
  }
}

@media (max-width: 782px) {
  body.admin-bar .kml-blog-toc {
    top: calc(46px + 5rem + 20px);
    max-height: calc(100vh - 46px - 5rem - 20px);
  }
}

.kml-blog-toc__inner {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 1px solid rgba(116, 119, 128, 0.2);
}

.kml-blog-toc__heading {
  margin: 0 0 0.75rem;
  padding: 0 1rem;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  color: #193c6c;
}

.dark .kml-blog-toc__heading {
  color: #93c5fd;
}

.kml-blog-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.kml-blog-toc__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #64748b;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.kml-blog-toc__link:hover,
.kml-blog-toc__link:focus-visible {
  color: #193c6c;
}

.kml-blog-toc__link.active {
  color: #193c6c;
  border-left-color: #193c6c;
  font-weight: 600;
}

.kml-blog-toc__link--h3 {
  padding-left: 1.75rem;
  font-size: 0.8125rem;
}

.dark .kml-blog-toc__link {
  color: #94a3b8;
}

.dark .kml-blog-toc__link:hover,
.dark .kml-blog-toc__link:focus-visible,
.dark .kml-blog-toc__link.active {
  color: #93c5fd;
}

.dark .kml-blog-toc__link.active {
  border-left-color: #60a5fa;
}

.kml-blog-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #43474f;
}

.dark .kml-blog-content {
  color: #cbd5e1;
}

.kml-blog-content > *:first-child {
  margin-top: 0;
}

.kml-blog-content > *:last-child {
  margin-bottom: 0;
}

.kml-blog-content h2,
.kml-blog-content h3,
.kml-blog-content h4 {
  scroll-margin-top: calc(5rem + 20px);
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  color: #002651;
  letter-spacing: -0.01em;
}

body.admin-bar .kml-blog-content h2,
body.admin-bar .kml-blog-content h3,
body.admin-bar .kml-blog-content h4 {
  scroll-margin-top: calc(32px + 5rem + 20px);
}

.kml-blog-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.kml-blog-content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.kml-blog-content p {
  margin: 0 0 1.25rem;
}

.kml-blog-content ul,
.kml-blog-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.kml-blog-content li {
  margin-bottom: 0.5rem;
}

.kml-blog-content a {
  color: #193c6c;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kml-blog-content a:hover {
  color: #002651;
}

.kml-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.kml-blog-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #193c6c;
  background: rgba(214, 227, 255, 0.35);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* CTA bar — explicit layout/colors (Tailwind fallback on live) */
.kml-cta-bar {
  text-align: center;
  padding: 3.5rem 1.5rem;
  min-height: 12rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .kml-cta-bar {
    padding: 4rem 3rem;
  }
}

.kml-cta-bar__inner {
  position: relative;
  z-index: 10;
  width: 100%;
}

.kml-cta-bar__heading {
  display: block;
  margin: 0 0 1rem;
  color: #ffffff;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.kml-cta-bar__text {
  display: block;
  margin: 0 auto 2rem;
  max-width: 42rem;
  color: #a9c7ff;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 300;
}

.kml-cta-bar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.kml-cta-bar__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* —— Firma timeline (explicit CSS — not Tailwind-dependent) —— */
.kml-firma-timeline__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

.kml-firma-timeline__card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.kml-firma-timeline__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.kml-firma-timeline__year {
  display: block;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #002651;
}

.kml-firma-timeline__text {
  margin: 0;
  width: 100%;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.kml-firma-timeline__card--featured {
  min-height: 16rem;
  background: #e8eef5;
}

.kml-firma-timeline__card--featured .kml-firma-timeline__body {
  justify-content: flex-end;
  min-height: 16rem;
  background: linear-gradient(to top, rgba(0, 38, 81, 0.85), transparent 65%);
}

.kml-firma-timeline__card--featured .kml-firma-timeline__year,
.kml-firma-timeline__card--featured .kml-firma-timeline__text {
  color: #fff;
}

.kml-firma-timeline__card--featured .kml-firma-timeline__text {
  color: rgba(255, 255, 255, 0.9);
}

.kml-firma-timeline__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.kml-firma-timeline__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.kml-firma-timeline__card--gray {
  background: #eef2f6;
}

.kml-firma-timeline__card--navy {
  background: #002651;
}

.kml-firma-timeline__card--navy .kml-firma-timeline__year,
.kml-firma-timeline__card--navy .kml-firma-timeline__text {
  color: #fff;
}

.kml-firma-timeline__card--navy .kml-firma-timeline__text {
  color: rgba(255, 255, 255, 0.85);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
}

.kml-firma-timeline__card--small {
  background: #e2e8f0;
}

@media (min-width: 768px) {
  .kml-firma-timeline__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kml-firma-timeline__card--featured {
    grid-column: 1 / -1;
  }
}

