:root {
  --paper: #ffffff;
  --soft: #f5f7fa;
  --mist: #e8eef5;
  --ink: #102235;
  --muted: #607083;
  --line: #d7e1ec;
  --navy: #09233e;
  --navy-soft: #12385e;
  --blue: #4b83bd;
  --blue-soft: #dce8f5;
  --wine: #8e1c36;
  --gold: #c79b45;
  --gold-soft: #f2eadb;
  --shadow: 0 18px 45px rgba(9, 35, 62, 0.12);
  --shadow-strong: 0 28px 80px rgba(9, 35, 62, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 12px max(20px, calc((100% - 1180px) / 2));
  background: rgba(9, 35, 62, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 162px;
  max-width: 100%;
  height: auto;
}

.main-nav,
.view-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-docs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.tab-button,
.category-button,
.doc-link {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.nav-link {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--navy);
  background: var(--paper);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-admin {
  color: var(--paper);
  border: 1px solid rgba(199, 155, 69, 0.7);
}

.nav-anchor {
  display: inline-flex;
}

.intro-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
  align-items: center;
  width: 100%;
  min-height: 520px;
  margin: 0;
  padding: 110px max(24px, calc((100% - 1120px) / 2)) 92px;
  color: var(--paper);
  background-image: url("assets/vision-header.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.intro-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(9, 35, 62, 0.58);
}

.intro-band::after {
  position: absolute;
  right: max(24px, calc((100% - 1120px) / 2));
  bottom: 38px;
  width: min(360px, 34vw);
  height: 2px;
  content: "";
  background: var(--gold);
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.footer-label {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 4rem;
  line-height: 0.96;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
}

h3 {
  margin: 0;
  font-size: 1.15rem;
}

.lead {
  margin: 18px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.hero-action:hover {
  transform: translateY(-1px);
}

.hero-action-primary {
  color: var(--navy);
  background: var(--paper);
}

.hero-action-secondary {
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.56);
}

.quick-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1120px, calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
}

.quick-item {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 20px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(215, 225, 236, 0.9);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.quick-item:hover {
  border-top-color: var(--blue);
  transform: translateY(-2px);
}

.quick-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-item strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.quick-item span:last-child {
  color: var(--muted);
}

.library-toolbar {
  position: sticky;
  top: 69px;
  z-index: 12;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(9, 35, 62, 0.07);
}

.toolbar-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 12px;
}

.tab-button,
.category-button {
  padding: 10px 16px;
  color: var(--ink);
  background: #f9fbfd;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.tab-button:hover,
.tab-button.is-active,
.category-button:hover,
.category-button.is-active {
  color: var(--paper);
  background: var(--navy);
  border-color: var(--navy);
}

.tab-button:hover,
.category-button:hover {
  transform: translateY(-1px);
}

.search-box {
  display: grid;
  gap: 6px;
  width: min(380px, 100%);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(75, 131, 189, 0.16);
}

.category-strip {
  display: flex;
  gap: 8px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 18px;
  overflow-x: auto;
}

.category-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.active-heading {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 18px;
  scroll-margin-top: 112px;
}

.active-heading h2 {
  color: var(--navy);
}

.active-heading p:last-child {
  margin: 10px 0 0;
  max-width: 720px;
  color: var(--muted);
}

.operation-section {
  width: min(1120px, calc(100% - 40px));
  margin: 24px auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operation-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.operation-top p {
  margin: 8px 0 0;
  color: var(--muted);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.series-block {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(9, 35, 62, 0.09);
}

.series-block h3 {
  margin-bottom: 14px;
}

.facts-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
}

.facts-list dt {
  color: var(--muted);
  font-weight: 800;
}

.facts-list dd {
  margin: 0;
}

.document-library {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 70px;
}

.section-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-head h3 {
  color: var(--navy);
  font-size: 1.3rem;
}

.section-count {
  padding: 6px 10px;
  color: var(--navy);
  background: var(--gold-soft);
  border-radius: 8px;
  font-weight: 800;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.document-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(9, 35, 62, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.document-row:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.pdf-badge {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--paper);
  background: var(--navy);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.document-name {
  display: block;
  font-weight: 800;
  line-height: 1.25;
}

.document-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.doc-link {
  padding: 9px 12px;
  color: var(--navy);
  background: var(--gold-soft);
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.empty-state {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 30px;
  padding: 42px max(20px, calc((100% - 1120px) / 2));
  color: var(--paper);
  background: var(--navy);
  border-top: 4px solid var(--gold);
}

.site-footer a {
  color: var(--paper);
  font-weight: 800;
}

.site-footer p {
  margin: 0 0 8px;
}

@media (max-width: 900px) {
  .site-header,
  .intro-band,
  .toolbar-inner,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: start;
    padding: 14px 20px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
  }

  .nav-docs {
    flex: 0 0 auto;
  }

  .library-toolbar {
    position: static;
  }

  .intro-band {
    gap: 24px;
    padding-top: 56px;
    min-height: auto;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .quick-band,
  .series-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }

  .quick-band {
    margin-top: -22px;
  }

  .toolbar-inner {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 150px;
  }

  .main-nav,
  .view-tabs {
    flex-wrap: wrap;
  }

  .intro-band,
  .quick-band,
  .toolbar-inner,
  .category-strip,
  .active-heading,
  .operation-section,
  .document-library {
    width: min(100% - 28px, 1120px);
  }

  .operation-top,
  .section-head {
    display: grid;
  }

  .facts-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .document-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .doc-link {
    grid-column: 1 / -1;
    text-align: center;
  }
}
