:root {
  --accent: #1a3d70;
  --accent-dark: #102f57;
  color-scheme: light;
}

html {
  overflow-x: clip;
  scrollbar-gutter: stable;
}

body {
  background-color: #f7f4ee;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: #1a3d70;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 1200;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: #1a3d70;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid #1a3d70;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.site-nav .nav-cta,
.report-shell-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav .nav-link {
  min-height: 38px;
}

.site-nav .nav-link[lang] {
  min-width: 38px;
  padding: 0 9px;
  border: 1px solid rgba(26, 61, 112, 0.18);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.site-nav .nav-cta,
.report-shell-home {
  font-weight: 700;
}

.kpi-card,
.kpi-sec,
.chart-card,
.chart-container,
.dim-card,
.use-card,
.status-note,
.table-wrap {
  border-radius: 8px;
}

.chart-row,
.chart-card,
.chart-canvas-wrapper {
  min-width: 0;
  max-width: 100%;
}

.chart-canvas-wrapper {
  overflow: hidden;
}

.section-subtitle {
  color: #626b7d;
}

.hero .hero-meta,
.hero .hero-note {
  color: #b8c1cf !important;
}

.hero .hero-title span {
  color: #80a9e2;
}

.badge-partial {
  color: #805700;
}

.badge-pending {
  color: #8a4c00;
}

#catalogSearch {
  min-height: 40px;
  border-radius: 6px !important;
}

#catalogFilters .catalog-filters button {
  min-height: 36px;
  padding-inline: 11px;
  border-radius: 6px;
}

.legacy-nav-toggle {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: none;
  border: 0;
  background: transparent;
}

.legacy-nav-toggle span,
.legacy-nav-toggle::before,
.legacy-nav-toggle::after {
  content: '';
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 2px;
  background: #171b28;
}

.legacy-nav-toggle.open span {
  display: none;
}

.legacy-nav-toggle.open::before {
  transform: translateY(3px) rotate(45deg);
}

.legacy-nav-toggle.open::after {
  transform: translateY(-3px) rotate(-45deg);
}

.report-shell-nav {
  background: rgba(251, 250, 247, 0.96);
  border-bottom-color: rgba(26, 61, 112, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.report-shell-links a,
.report-shell-brand,
.site-nav a {
  text-underline-offset: 3px;
}

.report-access-note {
  border-color: rgba(196, 154, 58, 0.35);
  background: #f8f2e4;
}

table {
  scrollbar-color: rgba(26, 61, 112, 0.28) transparent;
  scrollbar-width: thin;
}

@media (min-width: 769px) {
  .site-nav .nav-link {
    display: inline-flex;
    align-items: center;
  }
}

input::placeholder,
textarea::placeholder {
  color: #737b8a;
  opacity: 1;
}

@media (max-width: 768px) {
  .site-nav .nav-inner {
    gap: 10px;
  }

  .site-nav .nav-right {
    gap: 9px;
  }

  .site-nav .nav-link[lang] {
    display: inline-flex;
  }

  .site-nav .nav-cta {
    min-height: 40px;
    padding-inline: 14px;
  }

  body.legacy-nav-ready .site-nav .nav-right {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    padding: 20px 22px 26px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    z-index: 1001;
    background: #fbfaf7;
    border-bottom: 1px solid rgba(26, 61, 112, 0.14);
    box-shadow: 0 24px 54px rgba(15, 25, 35, 0.16);
  }

  body.legacy-nav-ready .site-nav .nav-right.open {
    display: flex;
  }

  body.legacy-nav-ready .site-nav .nav-right .nav-link,
  body.legacy-nav-ready .site-nav .nav-right .nav-cta {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: flex-start;
    font-size: 15px;
  }

  body.legacy-nav-ready .site-nav .nav-right .nav-link[lang] {
    width: auto;
    align-self: flex-start;
    justify-content: center;
  }

  body.legacy-nav-ready .legacy-nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  body.legacy-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 700px) {
  .report-shell-nav {
    min-height: 60px;
    padding-inline: 14px;
  }

  .report-shell-brand,
  .report-shell-home,
  .mobile-nav a {
    min-height: 40px;
  }

  .mobile-nav-toggle {
    width: 44px;
    height: 44px;
  }

  .report-access-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 6px;
  }
}

@media (max-width: 360px) {
  .site-nav .nav-logo {
    font-size: 12px;
    letter-spacing: 0.13em;
  }

  .site-nav .nav-cta {
    padding-inline: 11px;
    font-size: 11px;
  }
}
