:root {
  --kl-navy: #001736;
  --kl-blue: #002b5b;
  --kl-active: #115cb9;
  --kl-gold: #ffd700;
  --kl-surface: #f8f9fa;
  --kl-outline: #c4c6d0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
}

body.admin-bar .kl-site-header {
  top: 32px;
}

img {
  max-width: 100%;
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--kl-gold);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--kl-navy);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.kl-site-header {
  box-shadow: 0 2px 12px rgba(0, 23, 54, 0.04);
}

.kl-brand-logo {
  width: auto;
  max-width: 180px;
  max-height: 52px;
  object-fit: contain;
}

.kl-brand-mark {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: var(--kl-gold);
  background: var(--kl-navy);
}

.kl-brand-mark--footer {
  color: var(--kl-navy);
  background: var(--kl-gold);
}

.kl-nav-link {
  position: relative;
  white-space: nowrap;
}

.kl-nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--kl-active);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.kl-nav-link:hover::after,
.kl-nav-link.is-active::after {
  transform: scaleX(1);
}

.kl-mobile-menu {
  overflow: hidden;
  border-top: 1px solid #e1e3e4;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 23, 54, 0.08);
}

.kl-mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: 0.25rem;
  color: var(--kl-navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.kl-mobile-menu a:hover {
  background: #f3f4f5;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5rem;
  transition: color 160ms ease, opacity 160ms ease;
}

.footer-link:hover {
  color: var(--kl-gold);
}

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

.material-symbols-outlined.filled,
.icon-fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.bento-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 43, 91, 0.05);
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.bento-item-large {
  grid-column: span 2;
}

.hero-gradient {
  background: linear-gradient(135deg, #001736 0%, #002b5b 100%);
}

.kl-prototype-page input,
.kl-prototype-page select,
.kl-prototype-page textarea {
  border-color: #ced4da;
  border-radius: 0.25rem;
}

.kl-prototype-page input:focus,
.kl-prototype-page select:focus,
.kl-prototype-page textarea:focus {
  border-color: var(--kl-active);
  box-shadow: 0 0 0 1px var(--kl-active);
}

.kl-prototype-page button[data-kl-quote],
.kl-prototype-page [data-kl-quote] {
  cursor: pointer;
}

.kl-entry-content > * + * {
  margin-top: 1.35rem;
}

.kl-entry-content h2,
.kl-entry-content h3 {
  margin-top: 2.25rem;
  color: var(--kl-blue);
  font-weight: 700;
}

.kl-entry-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

.kl-entry-content h3 {
  font-size: 1.25rem;
}

.kl-entry-content p,
.kl-entry-content li {
  color: #43474f;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.kl-entry-content ul,
.kl-entry-content ol {
  padding-left: 1.5rem;
}

.kl-entry-content a {
  color: var(--kl-active);
  text-decoration: underline;
}

.kl-entry-content blockquote {
  padding: 1.5rem;
  border-left: 4px solid var(--kl-gold);
  color: var(--kl-navy);
  background: #f3f4f5;
}

.kl-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid var(--kl-outline);
  border-radius: 0.25rem;
  color: var(--kl-navy);
  background: #fff;
}

.kl-pagination .page-numbers.current,
.kl-pagination .page-numbers:hover {
  border-color: var(--kl-active);
  color: #fff;
  background: var(--kl-active);
}

@media (max-width: 782px) {
  body.admin-bar .kl-site-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  .z-pattern-row:nth-child(even) {
    flex-direction: column;
  }

  .bento-item-large {
    grid-column: span 1;
  }

  .kl-prototype-page .h-\[600px\] {
    height: auto;
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}



/* Official KL logo */
.kl-brand-logo--official {
  width: 68px;
  height: 44px;
  max-width: 68px;
  max-height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}

.kl-logo-footer-frame {
  display: inline-flex;
  width: 76px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 2px 4px;
  border-radius: 0.375rem;
  background: #ffffff;
  flex: 0 0 auto;
}

.kl-brand-logo--footer {
  width: 68px;
  height: 40px;
  max-width: 68px;
  max-height: 40px;
  object-fit: contain;
}

@media (max-width: 420px) {
  .kl-brand {
    gap: 0.5rem;
    font-size: 1.125rem;
  }

  .kl-brand-logo--official {
    width: 56px;
    height: 36px;
    max-width: 56px;
    max-height: 36px;
  }
}