body,
button,
input,
select,
textarea {
  font-family: "Montserrat", Arial, sans-serif !important;
}

body {
  width: 100%;
  max-width: none !important;
}

.call-btn,
.module-body a:not(.secondary),
.step-body a:not(.secondary),
.card a:not(.secondary),
.orientation-banner,
.handbook-link,
.module-code.gold,
.asset-button.primary {
  color: #ffffff !important;
}

.orientation-banner,
.handbook-link,
.coassemble-banner,
.call-btn,
.module-code.gold,
.asset-button.primary,
button {
  color: #ffffff !important;
}

header .brand-logo {
  display: block;
  width: min(100%, 540px);
  height: auto;
  margin: 0 auto 22px;
  padding: 4px;
  border-radius: 10px;
  background: white;
  object-fit: contain;
}

.home-page header .brand-logo {
  display: none;
}

header .eyebrow {
  font-size: 0.78rem !important;
  font-weight: 700;
}

.home-page header h1 {
  font-size: clamp(2rem, 5vw, 3.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em;
}

header p,
.hero p,
.welcome-block p {
  font-size: 1rem !important;
}

.nav-card p,
.doc-item .doc-text span,
.policy-body,
.card p,
.card ul,
.module-body p,
.module-body ul,
.step-body,
.location-cert-card p,
.account-list li {
  font-size: 0.92rem !important;
}

.nav-card strong,
.doc-item .doc-text strong,
.module-title,
.policy-title,
.step-header h3 {
  font-size: 1rem !important;
}

.orientation-banner,
.nav-grid,
.section-label,
.module-card,
.restricted-library-wrap,
.location-cert-card,
.step-card,
.complete-card,
.card,
.pay-phases,
.benefits-grid,
.ladder-card,
.handbook-link,
.policy-card,
.report-card,
.doc-group,
.note-card {
  width: min(calc(100% - 32px), 1040px);
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero,
.welcome-block {
  width: min(calc(100% - 32px), 1100px);
  margin: 28px auto 40px;
  padding: 0 !important;
  display: grid;
  grid-template-columns: minmax(250px, 34%) 1fr;
  overflow: hidden;
  border: 0 !important;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 14, 39, 0.14);
}

.hero-art {
  min-height: 240px;
  background: #000e27;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  align-self: center;
  padding: 44px 48px 44px 42px;
}

.section-label {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nav-grid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.module-card,
.step-card,
.policy-card,
.doc-group,
.card,
.restricted-library-wrap,
.location-cert-card {
  box-shadow: 0 3px 14px rgba(0, 14, 39, 0.055);
}

@media (min-width: 760px) {
  header {
    padding-left: max(32px, calc((100% - 1040px) / 2)) !important;
    padding-right: max(32px, calc((100% - 1040px) / 2)) !important;
  }

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

  .nav-card {
    min-height: 190px;
    padding: 25px 22px;
  }

  .module-header,
  .policy-header,
  .step-header {
    padding-left: 26px;
    padding-right: 26px;
  }

  .module-body,
  .policy-body,
  .step-body {
    padding-left: 26px;
    padding-right: 26px;
  }

  .restricted-library-wrap {
    padding: 26px;
  }
}

@media (max-width: 759px) {
  header .brand-logo {
    width: min(100%, 360px);
    margin-bottom: 18px;
  }

  .orientation-banner,
  .nav-grid,
  .section-label,
  .module-card,
  .restricted-library-wrap,
  .location-cert-card,
  .step-card,
  .complete-card,
  .card,
  .pay-phases,
  .benefits-grid,
  .ladder-card,
  .handbook-link,
  .policy-card,
  .report-card,
  .doc-group,
  .note-card {
    width: min(calc(100% - 24px), 1040px);
  }

  .hero,
  .welcome-block {
    width: min(calc(100% - 24px), 1040px);
    margin: 14px auto 28px;
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .hero-art {
    min-height: 118px;
    max-height: 118px;
  }

  .hero-art img {
    object-position: center 43%;
  }

  .hero-copy {
    padding: 24px 22px 28px;
  }
}

.private-doc-button {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.private-doc-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.private-asset-status {
  width: min(calc(100% - 32px), 1040px);
  margin: -22px auto 26px;
  color: #5d6674;
  font-size: 12px;
}

.sds-library-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #eef6f9;
  color: #334155;
  font-size: 13px;
}

.sds-library-status.error {
  background: #fff1f2;
  color: #9f1239;
}

.sds-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.sds-asset-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #269eca;
  border-radius: 10px;
  background: #269eca;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.sds-asset-button::before {
  content: "PDF";
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 5px;
  background: #f9a03f;
  color: #000e27;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.sds-asset-button:hover {
  border-color: #167da2;
  background: #167da2;
  color: #fff;
  transform: translateY(-1px);
}

.sds-asset-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

@media (max-width: 620px) {
  .sds-library-grid { grid-template-columns: 1fr; }
  .private-asset-status {
    width: min(calc(100% - 24px), 1040px);
    margin-top: -14px;
  }
}

.training-records-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
}

.training-records-status.error {
  background: rgba(255, 255, 255, 0.16);
}

.training-records-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.training-record-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #dce2e6;
  border-radius: 10px;
  background: #f7fafc;
}

.training-record-item h4 {
  margin: 0;
  color: #000e27;
  font-size: 15px;
  line-height: 1.35;
}

.training-record-meta {
  grid-column: 1 / -1;
  color: #5d6674;
  font-size: 13px;
  line-height: 1.5;
}

.training-status-chip {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f9a03f;
  color: #000e27;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.training-status-chip.certified,
.training-status-chip.completed {
  background: #fff;
  color: #075985;
}

.training-status-chip.expired {
  background: #fff1f2;
  color: #9f1239;
}

@media (max-width: 520px) {
  .training-record-item { grid-template-columns: 1fr; }
  .training-record-meta { grid-column: 1; }
  .training-status-chip { justify-self: start; }
}
