:root {
  --ink: #111821;
  --muted: #5c6673;
  --line: #d9dee5;
  --paper: #f8f9fb;
  --white: #ffffff;
  --navy: #17263a;
  --green: #244d3c;
  --gold: #c59a4a;
  --red: #8f2f2d;
  --shadow: 0 18px 45px rgba(17, 24, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: var(--green);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

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

.brand-logo {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(360px, 48vw);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.site-nav button,
.notice-strip button,
.doc-card a,
.doc-card button,
.sop-row a,
.sop-row button,
.primary-action,
.secondary-action {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a {
  color: var(--white);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.discord-button,
.notice-strip button,
.doc-card button,
.sop-row button {
  color: var(--white);
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-entry {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 230px;
}

.profile-entry img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  object-fit: cover;
}

.profile-entry span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 33, 0.9), rgba(17, 24, 33, 0.48) 46%, rgba(17, 24, 33, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 33, 0.35), rgba(17, 24, 33, 0));
}

.hero-content {
  position: relative;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 96px);
  padding: 80px 0 120px;
  color: var(--white);
}

.kicker,
.section-heading p,
.command-band > div > p,
.modal-head p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.kicker) {
  max-width: 610px;
  margin: 22px 0 0;
  color: #e8edf3;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.primary-action {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 800;
}

.secondary-action {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.status-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--green);
}

.status-band a {
  min-height: 104px;
  padding: 22px clamp(18px, 4vw, 48px);
  color: var(--white);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.status-band strong {
  display: block;
  font-size: 2rem;
}

.status-band span {
  color: #dbe6df;
}

.home-catalog {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 80px;
}

.catalog-card {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(17, 24, 33, 0.12);
}

.catalog-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card strong {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.12;
}

.catalog-card p {
  margin: 0;
  color: var(--muted);
}

.notice-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 18px;
  background: #fff7e5;
  border-bottom: 1px solid #ecd7aa;
}

.notice-strip span {
  color: var(--muted);
}

.section-shell,
.command-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0 0;
}

.collection-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.collection-hero {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  padding: clamp(26px, 5vw, 46px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
}

.collection-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.collection-hero p:not(.kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.collection-toolbar {
  margin-bottom: 30px;
}

.category-list,
.category-section {
  display: grid;
  gap: 22px;
}

.category-section + .category-section {
  padding-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.command-band h2,
.modal-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.search-box input,
.select-box select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.doc-card,
.division-card,
.sop-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
}

.doc-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 22px;
}

.doc-card.is-locked,
.sop-row.is-locked {
  background: repeating-linear-gradient(135deg, #ffffff, #ffffff 12px, #f4f6f8 12px, #f4f6f8 24px);
}

.doc-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.doc-card h3,
.sop-row h3,
.division-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.2;
}

.doc-card p,
.sop-row p,
.division-card p {
  color: var(--muted);
}

.doc-meta {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.doc-meta small {
  color: var(--muted);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-tags span {
  padding: 4px 8px;
  color: var(--green);
  background: #e8f0ec;
  border: 1px solid #c8d9d0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.doc-card a,
.sop-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  font-weight: 800;
}

.sop-list {
  display: grid;
  gap: 12px;
}

.sop-row {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 22px;
  align-items: center;
  padding: 20px;
}

.sop-row span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.command-band {
  padding-bottom: 80px;
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.division-card {
  display: block;
  padding: 22px;
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  border-top: 4px solid var(--gold);
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.division-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(17, 24, 33, 0.14);
}

.division-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  object-fit: cover;
  border-radius: 4px;
}

.division-card h3 {
  color: var(--white);
  text-transform: uppercase;
}

.division-card strong {
  display: block;
  margin-top: 10px;
  color: var(--gold);
}

.division-card p {
  color: rgba(255, 255, 255, 0.92);
}

.division-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
}

.division-hero-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.division-hero-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.division-hero-card strong {
  display: block;
  margin-top: 14px;
  color: var(--green);
  font-size: 1rem;
}

.division-hero-card p:not(.kicker) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.division-documents {
  display: grid;
  gap: 18px;
}

.uniform-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.uniform-tile {
  display: grid;
  gap: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.uniform-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(17, 24, 33, 0.14);
}

.uniform-media img,
.uniform-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
}

.fleet-media img,
.fleet-media .uniform-placeholder {
  aspect-ratio: 16 / 10;
}

.uniform-media img {
  display: block;
  object-fit: cover;
}

.uniform-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eef2f6;
  border: 1px dashed var(--line);
  font-weight: 800;
}

.uniform-tile-body {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.uniform-tile-body small {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.uniform-tile-body strong {
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.15;
}

.uniform-tile-body span {
  color: var(--muted);
  font-size: 0.88rem;
}

.uniform-modal {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.uniform-modal::backdrop {
  background: rgba(17, 24, 33, 0.58);
}

.uniform-modal form {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.uniform-detail {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 22px;
}

.uniform-detail-media img,
.uniform-detail-media .uniform-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.fleet-detail-media img,
.fleet-detail-media .uniform-placeholder {
  aspect-ratio: 16 / 10;
}

.uniform-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.uniform-body h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.uniform-body p {
  margin: 0;
  color: var(--muted);
}

.uniform-part-section {
  display: grid;
  gap: 10px;
}

.uniform-part-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.uniform-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.uniform-table-head,
.uniform-table-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(2, minmax(92px, 0.65fr));
  min-width: 440px;
}

.uniform-table.has-meaning .uniform-table-head,
.uniform-table.has-meaning .uniform-table-row {
  grid-template-columns: minmax(130px, 0.9fr) minmax(220px, 1.4fr) repeat(2, minmax(82px, 0.6fr));
  min-width: 660px;
}

.fleet-table .uniform-table-head,
.fleet-table .uniform-table-row {
  grid-template-columns: minmax(88px, 0.55fr) minmax(190px, 1.45fr) minmax(100px, 0.75fr);
  min-width: 440px;
}

.uniform-table-head span,
.uniform-table-row span {
  padding: 9px 10px;
  border-right: 1px solid var(--line);
}

.uniform-table-head span:last-child,
.uniform-table-row span:last-child {
  border-right: 0;
}

.uniform-table-head {
  color: var(--white);
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.uniform-table-row {
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.uniform-table-row strong {
  display: block;
  color: var(--navy);
}

.uniform-table-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.vehicle-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.vehicle-facts span {
  display: grid;
  gap: 3px;
  padding: 12px;
  color: var(--muted);
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-facts strong {
  color: var(--navy);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.profile-page {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(24px, 5vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
}

.profile-hero img {
  width: 128px;
  height: 128px;
  border: 4px solid #e8f0ec;
  border-radius: 50%;
  object-fit: cover;
}

.profile-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.profile-hero strong {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-size: 1.08rem;
}

.profile-hero p:not(.kicker) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
}

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

.profile-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
}

.profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-list span,
.profile-list a {
  padding: 8px 10px;
  color: var(--green);
  background: #e8f0ec;
  border: 1px solid #c8d9d0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.profile-list p {
  margin: 0;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.empty-state p {
  margin: 0 0 14px;
}

.empty-state button {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  cursor: pointer;
}

.access-modal {
  width: min(620px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.access-modal::backdrop {
  background: rgba(17, 24, 33, 0.58);
}

.access-modal form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(36, 77, 60, 0.08), rgba(255, 255, 255, 0) 58%),
    var(--white);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
}

.modal-head button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 900;
}

.login-copy {
  max-width: 500px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.login-benefits {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f2f5f3;
  border: 1px solid #d8e2dc;
  border-radius: 8px;
}

.login-benefits span {
  position: relative;
  padding-left: 22px;
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 700;
}

.login-benefits span::before {
  content: "";
  position: absolute;
  top: 0.63em;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.discord-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  color: var(--white);
  background: #5865f2;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(88, 101, 242, 0.22);
}

.discord-login:hover {
  background: #4752c4;
}

.modal-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-page {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.doc-detail {
  display: grid;
  gap: 18px;
}

.doc-body-layout {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.doc-hero-card,
.doc-content,
.table-of-contents,
.locked-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(17, 24, 33, 0.05);
}

.doc-hero-card {
  padding: clamp(24px, 5vw, 46px);
  border-top: 5px solid var(--green);
}

.doc-hero-card.is-locked {
  border-top-color: var(--red);
}

.doc-hero-card h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.doc-hero-card p:not(.kicker) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.doc-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.doc-page-meta span {
  padding: 7px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.doc-content {
  padding: clamp(22px, 4vw, 38px);
}

.table-of-contents {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: clamp(20px, 3vw, 28px);
}

.table-of-contents h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.table-of-contents ol {
  margin: 0;
  padding-left: 22px;
}

.table-of-contents li {
  break-inside: avoid;
  margin: 0 0 8px;
  color: var(--muted);
}

.table-of-contents a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.doc-content section + section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc-content h2,
.locked-panel h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.45rem;
  letter-spacing: 0;
}

.doc-content p,
.locked-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.locked-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 34px);
}

.locked-panel button {
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav a {
    color: var(--navy);
  }

  .site-nav a:hover {
    background: #eef2f6;
  }

  .site-nav.is-open {
    display: flex;
  }

  .doc-grid,
  .division-grid,
  .home-catalog,
  .uniform-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .sop-row {
    grid-template-columns: 1fr;
  }

  .doc-body-layout {
    grid-template-columns: 1fr;
  }

  .division-hero-card {
    grid-template-columns: 1fr;
  }

  .uniform-detail {
    grid-template-columns: 1fr;
  }

  .vehicle-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uniform-media img,
  .uniform-placeholder {
    max-height: 420px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    height: 42px;
    max-width: 210px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    margin-left: 18px;
    padding-top: 72px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 33, 0.94), rgba(17, 24, 33, 0.4));
  }

  .notice-strip {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .toolbar,
  .doc-grid,
  .division-grid,
  .home-catalog,
  .uniform-list {
    grid-template-columns: 1fr;
  }

  .status-band {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .vehicle-facts {
    grid-template-columns: 1fr;
  }

}
