:root {
  --ink: #e9fbff;
  --paper-ink: #17211f;
  --muted: #91a8b3;
  --line: rgba(118, 239, 255, 0.18);
  --panel: rgba(8, 22, 35, 0.78);
  --soft: rgba(15, 118, 110, 0.14);
  --accent: #36e4d6;
  --accent-dark: #0fa69c;
  --gold: #ffd166;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 228, 214, 0.2), transparent 34%),
    radial-gradient(circle at 82% 4%, rgba(255, 209, 102, 0.12), transparent 28%),
    linear-gradient(135deg, #06111f 0%, #0a1a2d 45%, #08131d 100%);
  background-attachment: fixed;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: rgba(2, 10, 20, 0.9);
  color: white;
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
}

.brand,
.brand-lockup {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand {
  margin-bottom: 32px;
}

.brand small,
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--gold);
  color: #09121e;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  font-weight: 800;
  box-shadow: 0 0 24px rgba(54, 228, 214, 0.35);
  overflow: hidden;
}

.image-mark {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.6);
}

.image-mark img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 6px;
  padding: 12px 14px;
  color: #dce5e1;
  background: transparent;
}

.nav-button.active,
.nav-button:hover {
  background: linear-gradient(90deg, rgba(54, 228, 214, 0.18), rgba(255, 209, 102, 0.08));
  color: white;
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-session {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sidebar-session small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.sidebar-session strong {
  margin-bottom: 4px;
  font-size: 14px;
}

.main {
  padding: 32px;
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.page-header h1,
.public-shell h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.hero-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(54, 228, 214, 0.12), rgba(255, 209, 102, 0.06)),
    rgba(8, 22, 35, 0.76);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.page-header p {
  max-width: 720px;
  color: var(--muted);
}

.compact h1 {
  font-size: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.primary,
.ghost,
.icon {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #7df9ff);
  color: #06111f;
  box-shadow: 0 10px 26px rgba(54, 228, 214, 0.2);
}

.primary:hover {
  background: linear-gradient(135deg, #7df9ff, var(--accent));
}

.primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ghost,
.icon {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--ink);
}

.small {
  padding: 7px 10px;
  font-size: 13px;
}

.danger {
  color: var(--danger);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metrics div,
.panel,
.verify-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.metrics div {
  padding: 20px;
}

.metrics span {
  display: block;
  font-size: 32px;
  font-weight: 800;
}

.metrics small,
.timeline span {
  color: var(--muted);
}

.panel {
  padding: 22px;
  margin-bottom: 24px;
}

.panel h2,
.section-title h3 {
  margin: 0 0 16px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

th {
  text-align: left;
  color: #a6f7ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td small {
  max-width: 760px;
}

.actions {
  white-space: nowrap;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

select option {
  color: #06111f;
}

textarea {
  resize: vertical;
}

.section-title,
.inline-form {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
}

.inline-form label {
  flex: 1;
}

.module-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 90px 120px 90px auto;
  gap: 8px;
  margin-bottom: 8px;
}

.student-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.student-result-row {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) 140px 140px;
  align-items: end;
}

.student-result-row > label {
  padding: 0;
  border: 0;
}

.student-result-row input[type="number"] {
  min-width: 0;
}

.certificate-results-editor {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.certificate-result-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 160px;
  gap: 14px;
  align-items: end;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.certificate-result-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.registry-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 20px;
}

.registry-toolbar strong {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: nowrap;
}

.batch-student-search {
  display: block;
  max-width: 440px;
  margin-top: 16px;
}

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

.user-management-grid .panel {
  min-width: 0;
  overflow-x: auto;
}

.account-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.auth-secondary-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 64, 67, 0.16);
}

.auth-back-button {
  width: 100%;
  margin-top: 10px;
}

.batch-student-entry {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.check-row {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.compact-check {
  display: flex;
  align-items: center;
  margin-top: 28px;
}

.compact-check input {
  width: 18px;
  height: 18px;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.public-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: start center;
  padding-top: 32px;
}

.verify-card {
  width: min(760px, 100%);
  padding: 28px;
}

.verify-card.wide {
  width: min(1120px, 100%);
}

.verify-card form {
  grid-template-columns: 1fr auto;
  margin: 20px 0;
}

.verified,
.alert {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.alert.error {
  border-color: #f2b8b5;
  color: var(--danger);
  background: #fff4f3;
}

.status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(54, 228, 214, 0.16);
  color: #9efff7;
  font-weight: 800;
  margin-bottom: 12px;
}

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

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.certificate-pages {
  display: grid;
  gap: 18px;
}

.certificate-page {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  max-width: 820px;
  margin: 0 auto;
}

.cert-border {
  position: relative;
  min-height: 1120px;
  aspect-ratio: 0.707 / 1;
  color: var(--paper-ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.14), transparent 30%),
    #fbfdfc;
  border: 2px solid #20352f;
  outline: 1px solid var(--gold);
  outline-offset: -14px;
  padding: 44px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.certificate-background {
  background: #fffdf2;
  border: 0;
  outline: 0;
  padding: 64px 64px 54px 96px;
  overflow: hidden;
}

.certificate-paper-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.certificate-background > :not(.certificate-paper-image) {
  position: relative;
  z-index: 1;
}

.cert-head,
.transcript-head,
.final-summary,
.signatures {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.certificate-logo {
  gap: 18px;
}

.certificate-logo img {
  width: 172px;
  height: 78px;
  object-fit: contain;
}

.certificate-background .certificate-logo img {
  width: 210px;
  height: 92px;
}

.certificate-stamp {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0.94;
}

.certificate-security-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 34px;
  padding: 0 18px 22px 0;
}

.security-mark {
  display: grid;
  grid-template-rows: 96px 14px;
  justify-items: center;
  align-items: center;
  gap: 6px;
  width: 118px;
}

.security-mark span {
  color: #667b80;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 14px;
  white-space: nowrap;
}

.security-mark .qr {
  box-sizing: border-box;
  width: 96px;
  height: 96px;
  align-self: center;
}

.partner-mark img {
  box-sizing: border-box;
  width: 104px;
  height: 76px;
  object-fit: contain;
  align-self: center;
}

.transcript-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.transcript-title img {
  width: 132px;
  height: 58px;
  object-fit: contain;
}

.qr {
  width: 82px;
  height: 82px;
  object-fit: contain;
  padding: 4px;
  background: white;
  border: 1px solid rgba(23, 33, 31, 0.25);
}

.cert-body {
  text-align: center;
  align-self: center;
  padding: 0 18px;
}

.certificate-background .cert-body {
  transform: translateY(66px);
}

.cert-body h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 3px 0 8px;
  color: #050505;
}

.credential-kicker {
  margin: 0;
  color: #9d7217;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 250px;
  margin: 0 auto 14px;
}

.certificate-rule::before,
.certificate-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c79b35;
}

.certificate-rule span {
  width: 7px;
  height: 7px;
  border: 1px solid #c79b35;
  transform: rotate(45deg);
}

.cert-body h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
  font-style: italic;
  margin: 24px 0 19px;
  color: #112420;
}

.cert-body h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 16px auto;
  max-width: 660px;
  color: #050505;
}

.presented-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.completion-line {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 18px;
  margin: 0;
}

.cert-description {
  max-width: 680px;
  margin: 18px auto 0;
  color: #050505;
  font-size: 13px;
  line-height: 1.35;
}

.duration-line,
.location-line {
  max-width: 680px;
  margin: 18px auto 0;
  color: #050505;
  font-size: 14px;
  line-height: 1.35;
}

.location-line {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.cert-meta {
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 650px;
  border-top: 1px solid rgba(25, 54, 57, 0.35);
  border-bottom: 1px solid rgba(25, 54, 57, 0.35);
}

.cert-meta span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-right: 1px solid rgba(25, 54, 57, 0.22);
}

.cert-meta span:last-child {
  border-right: 0;
}

.cert-meta small {
  color: #65777a;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.cert-meta strong {
  color: #132725;
  font-size: 12px;
}

.review-text {
  color: #b76e00;
}

.pass-text {
  color: #0b5d43;
}

.signatures div {
  flex: 1;
  text-align: center;
  border-top: 1px solid rgba(23, 33, 31, 0.28);
  padding-top: 9px;
  min-width: 0;
}

.signature-image {
  width: 124px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin: -56px auto 8px;
  mix-blend-mode: multiply;
}

.signature-instructor {
  width: 132px;
  height: 46px;
  margin-top: -60px;
  filter: contrast(1.08) saturate(1.08);
  mix-blend-mode: multiply;
}

.certificate-background .signatures {
  padding-right: 0;
}

.certificate-footer-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 34px;
  padding: 40px 58px 0 18px;
}

.signatures span {
  display: block;
  color: #6f8b93;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.25;
}

.signatures strong {
  display: block;
  color: #17211f;
  font-size: 15px;
  line-height: 1.25;
}

.transcript {
  min-height: 1120px;
  grid-template-rows: auto auto auto auto auto auto;
  align-content: start;
  gap: 12px;
}

body:not(.print-export) .transcript-page .transcript {
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
}

.transcript p {
  color: #42524f;
  line-height: 1.6;
  margin: 0;
}

.transcript table {
  margin-top: 8px;
}

.transcript-head {
  padding-bottom: 18px;
  border-bottom: 2px solid #173f46;
}

.transcript-reference {
  display: grid;
  gap: 5px;
  text-align: right;
}

.transcript-reference small,
.transcript-identity small {
  color: #6d7d7b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.transcript-reference strong {
  color: #173f46;
  font-size: 13px;
}

.transcript-identity {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border: 1px solid rgba(23, 63, 70, 0.2);
  border-left: 4px solid #c79b35;
}

.transcript-identity div {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-right: 1px solid rgba(23, 63, 70, 0.15);
  border-bottom: 1px solid rgba(23, 63, 70, 0.15);
}

.transcript-identity div:nth-child(2n) {
  border-right: 0;
}

.transcript-identity div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.transcript-identity strong {
  color: #162725;
  font-size: 13px;
}

.transcript-description {
  display: grid;
  gap: 3px;
  font-size: 12px;
}

.transcript-description > strong {
  color: #173f46;
  font-size: 10px;
  text-transform: uppercase;
}

.transcript thead {
  background: #edf4f2;
}

.transcript tbody tr:nth-child(even) {
  background: rgba(237, 244, 242, 0.38);
}

.cert-border th {
  color: #0f5f68;
}

.cert-border td {
  color: var(--paper-ink);
}

.cert-border td small {
  color: #5a6a67;
}

.final-summary {
  margin-top: 24px;
  padding: 16px;
  background: var(--soft);
  border: 1px solid rgba(15, 118, 110, 0.18);
}

.transcript-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #61716f;
  font-size: 10px;
}

.print-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

body.print-export {
  width: 210mm;
  margin: 0;
  padding: 0;
  color: var(--paper-ink);
  background: white;
}

body.print-export #app,
body.print-export .certificate-pages {
  display: block;
  min-height: 0;
}

body.print-export .certificate-pages {
  gap: 0;
}

body.print-export .certificate-page {
  width: 210mm;
  height: 297mm;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: white;
  overflow: hidden;
}

body.print-export .cert-border {
  width: 210mm;
  height: 297mm;
  min-height: 0;
  max-height: 297mm;
  aspect-ratio: auto;
  overflow: hidden;
}

body.print-export .transcript {
  padding: 30px 38px;
  grid-template-rows: auto auto auto auto auto auto;
  gap: 8px;
}

body.print-export .transcript-head {
  gap: 14px;
}

body.print-export .transcript-title img {
  width: 108px;
  height: 48px;
}

body.print-export .transcript h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

body.print-export .transcript > p {
  font-size: 12px;
  line-height: 1.4;
}

body.print-export .transcript table {
  table-layout: fixed;
  height: 585px;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.2;
}

body.print-export .transcript th,
body.print-export .transcript td {
  padding: 7px 6px;
}

body.print-export .transcript th {
  font-size: 10px;
}

body.print-export .transcript th:nth-child(1) { width: 35%; }
body.print-export .transcript th:nth-child(2) { width: 8%; }
body.print-export .transcript th:nth-child(3) { width: 14%; }
body.print-export .transcript th:nth-child(4) { width: 10%; }
body.print-export .transcript th:nth-child(5) { width: 9%; }
body.print-export .transcript th:nth-child(6) { width: 14%; }
body.print-export .transcript th:nth-child(7) { width: 10%; }

body.print-export .transcript td small {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.18;
}

body.print-export .transcript .final-summary {
  margin-top: 5px;
  padding: 10px 12px;
  font-size: 12px;
}

body.print-export .transcript-identity div {
  padding: 7px 10px;
}

body.print-export .transcript-footer {
  margin-top: 2px;
}

body.print-export.print-certificate .certificate-page:nth-of-type(2),
body.print-export.print-transcript .certificate-page:nth-of-type(1) {
  display: none;
}

.print-error {
  padding: 24px;
  color: #17211f;
}

body.website-mode {
  color: #172526;
  background: #f4f7f6;
}

body.website-mode #app {
  display: block;
  min-height: 100vh;
}

.public-website-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #f4f7f6;
}

.site-hero {
  position: relative;
  min-height: min(780px, 88vh);
  display: grid;
  grid-template-rows: auto 1fr;
  color: white;
  background-image:
    linear-gradient(90deg, rgba(8, 29, 32, 0.96) 0%, rgba(8, 29, 32, 0.9) 31%, rgba(8, 29, 32, 0.36) 58%, rgba(8, 29, 32, 0.05) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.site-header {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 64px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.site-header button {
  border: 0;
  color: inherit;
  background: transparent;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  text-align: left;
}

.site-brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #d5ad4d;
  color: #f1cb6c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.site-brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav button,
.site-link-button {
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav button:hover,
.site-link-button:hover,
.site-footer button:hover {
  color: #e1bd62;
}

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

.site-admin-button {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.site-hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 64px));
  margin: auto;
  padding: 72px 0 86px;
}

.site-kicker {
  margin: 0 0 14px;
  color: #c99c37;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-hero .site-kicker {
  color: #f1cb6c;
}

.site-hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  font-weight: 500;
  line-height: 0.98;
}

.site-hero-lead {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.5;
}

.site-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.site-primary-action,
.site-secondary-action,
.site-light-action {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 800;
}

.site-primary-action {
  border: 1px solid #e2bb5d;
  color: #172526;
  background: #e2bb5d;
}

.site-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.58);
  color: white;
  background: rgba(4, 20, 24, 0.24);
}

.hero-verification {
  width: min(570px, 100%);
  margin-top: 36px;
  gap: 8px;
}

.hero-verification label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-verification > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 5px;
  background: rgba(255, 255, 255, 0.96);
}

.hero-verification input {
  min-width: 0;
  border: 0;
  color: #172526;
  background: transparent;
}

.hero-verification button,
.catalogue-search button {
  border: 0;
  padding: 0 18px;
  color: white;
  background: #123f45;
  font-weight: 800;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100% - 1280px) / 2));
  bottom: 34px;
  display: grid;
  padding-left: 16px;
  border-left: 2px solid #e2bb5d;
  text-align: right;
}

.hero-caption span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.site-proof {
  width: min(1280px, calc(100% - 64px));
  margin: -1px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-bottom: 1px solid #d9e0de;
}

.site-proof div {
  padding: 29px 28px;
  border-right: 1px solid #d9e0de;
}

.site-proof div:last-child {
  border-right: 0;
}

.site-proof strong,
.site-proof span {
  display: block;
}

.site-proof strong {
  color: #123f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.site-proof span {
  margin-top: 4px;
  color: #657273;
  font-size: 12px;
}

.site-intro,
.programs-section,
.catalogue-section,
.site-contact-band {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 96px 0;
}

.site-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
}

.site-section-heading h2,
.catalogue-header h2,
.credential-band h2,
.site-contact-band h2 {
  margin: 0;
  color: #132b2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  font-weight: 500;
  line-height: 1.12;
}

.site-intro-copy > p,
.split-heading > p,
.site-contact-band p {
  margin: 0;
  color: #586869;
  font-size: 17px;
  line-height: 1.7;
}

.site-principles {
  margin-top: 36px;
  border-top: 1px solid #ccd6d3;
}

.site-principles div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid #ccd6d3;
}

.site-principles span {
  color: #667475;
  line-height: 1.55;
}

.programs-section {
  width: 100%;
  padding-right: max(32px, calc((100% - 1280px) / 2));
  padding-left: max(32px, calc((100% - 1280px) / 2));
  color: white;
  background: #123f45;
}

.programs-section .site-kicker {
  color: #e2bb5d;
}

.programs-section .site-section-heading h2 {
  color: white;
}

.split-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
}

.split-heading > p {
  color: rgba(255, 255, 255, 0.7);
}

.program-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.program-card {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.program-number {
  color: #e2bb5d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.program-card h3 {
  margin: 32px 0 12px;
  color: white;
  font-size: 19px;
  line-height: 1.25;
}

.program-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.program-card small {
  display: block;
  margin-top: 22px;
  color: #e2bb5d;
  font-weight: 800;
}

.catalogue-header {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.8fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 2px solid #173f45;
}

.catalogue-search {
  grid-template-columns: 1fr auto;
  gap: 0;
}

.catalogue-search input {
  border-color: #bcc9c6;
  border-radius: 4px 0 0 4px;
  color: #172526;
  background: white;
}

.catalogue-search button {
  min-width: 94px;
  border-radius: 0 4px 4px 0;
}

.public-course-list {
  border-bottom: 1px solid #ccd6d3;
}

.public-course-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 110px 110px 110px;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  padding: 16px 0;
  border-bottom: 1px solid #d6dfdd;
}

.public-course-row:last-child {
  border-bottom: 0;
}

.public-course-row small {
  color: #8a6b25;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.public-course-row h3 {
  margin: 4px 0 0;
  color: #173234;
  font-size: 16px;
}

.public-course-row > span {
  color: #687677;
  font-size: 12px;
}

.public-course-row button {
  border: 1px solid #9aaba8;
  border-radius: 4px;
  padding: 9px 10px;
  color: #173f45;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.public-empty-state {
  padding: 38px 0;
  color: #687677;
}

.lms-band {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
  padding: 42px 46px;
  color: white;
  background: #8f2228;
  border-left: 6px solid #e2bb5d;
}

.lms-band h2 {
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.lms-band p:last-child {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

.lms-band .site-kicker {
  color: #f1cb6c;
}

.coming-soon-label {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.credential-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 90px;
  align-items: center;
  padding: 88px max(32px, calc((100% - 1280px) / 2));
  color: white;
  background: #172526;
}

.credential-band h2 {
  max-width: 700px;
  color: white;
}

.credential-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.65;
}

.site-light-action {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: white;
  background: transparent;
}

.credential-partners {
  display: grid;
  grid-template-columns: 130px 1px 210px;
  gap: 30px;
  align-items: center;
  justify-content: end;
}

.credential-partners img:first-child {
  width: 126px;
  height: 126px;
  object-fit: contain;
}

.credential-partners img:nth-of-type(2) {
  width: 210px;
  height: 96px;
  padding: 12px;
  object-fit: contain;
  background: white;
}

.credential-partners > span {
  width: 1px;
  height: 90px;
  background: rgba(255, 255, 255, 0.25);
}

.credential-partners small {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.site-contact-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
  align-items: center;
}

.site-contact-band .site-primary-action {
  margin-top: 20px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.8fr 1fr;
  gap: 36px;
  padding: 50px max(32px, calc((100% - 1280px) / 2));
  color: white;
  background: #0b1d20;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer strong,
.site-footer span,
.site-footer small {
  display: block;
}

.site-footer small {
  margin-bottom: 8px;
  color: #d4ae55;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.site-footer-brand span {
  max-width: 360px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer-links {
  display: grid;
  gap: 6px;
}

.site-footer button {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.portal-shell .site-header {
  width: 100%;
  padding: 0 max(32px, calc((100% - 1280px) / 2));
  color: white;
  background: #123f45;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.site-portal-main {
  min-height: calc(100vh - 300px);
  padding: 42px 32px 72px;
}

.website-mode .public-shell {
  min-height: auto;
  padding-top: 0;
}

.website-mode .verify-card {
  color: #172526;
  background: white;
  border-color: #d1dcda;
  box-shadow: 0 16px 48px rgba(17, 47, 50, 0.1);
}

.website-mode .verify-card h1 {
  color: #173f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.website-mode .verify-card input {
  color: #172526;
  background: #f6f8f7;
  border-color: #c5d0ce;
}

.website-mode .verify-card .ghost {
  color: #173f45;
  background: white;
  border-color: #9fb0ad;
}

.website-mode .verified {
  color: #172526;
  background: #eef6f3;
  border-color: #c4dbd3;
}

.website-mode .status-badge {
  color: #0e654d;
  background: #dff2e9;
}

/* Portal authentication and learner credential wallet */
.auth-layout {
  width: min(1120px, 100%);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 80px;
}

.auth-intro h1,
.learner-dashboard-header h1 {
  margin: 8px 0 18px;
  color: #153f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  line-height: 1.04;
}

.auth-intro > p:not(.site-kicker),
.learner-dashboard-header p {
  max-width: 620px;
  color: #61716f;
  font-size: 17px;
  line-height: 1.7;
}

.auth-security-note {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid #d8e1df;
  border-bottom: 1px solid #d8e1df;
  color: #657471;
  line-height: 1.5;
}

.auth-security-note strong {
  color: #173f45;
}

.auth-benefits {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  color: #385653;
  font-weight: 700;
}

.auth-benefits span::before {
  content: "✓";
  margin-right: 10px;
  color: #b48624;
}

.auth-card {
  padding: 36px;
  color: #172526;
  background: white;
  border: 1px solid #d4dddb;
  border-top: 4px solid #bd8d2e;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(17, 47, 50, 0.12);
}

.auth-card h2 {
  margin: 4px 0 26px;
  color: #173f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.auth-card form {
  display: grid;
  gap: 18px;
}

.auth-card label {
  display: grid;
  gap: 7px;
  color: #314b48;
  font-size: 13px;
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: #172526;
  background: #f7f9f8;
  border: 1px solid #c7d2d0;
  border-radius: 4px;
}

.auth-card .site-primary-action {
  min-height: 48px;
  margin-top: 4px;
}

.local-demo-credentials {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e0e6e4;
}

.local-demo-credentials small {
  grid-column: 1 / -1;
  color: #7a8986;
}

.local-demo-credentials strong,
.local-demo-credentials code {
  color: #173f45;
  font-size: 12px;
}

.local-demo-credentials code {
  padding: 2px 5px;
  background: #edf3f1;
}

.auth-help,
.auth-error {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.auth-error {
  padding: 11px 13px;
  color: #8b271d;
  background: #fff0ee;
  border-left: 3px solid #b42318;
}

.learner-dashboard {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.learner-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 24px 0 32px;
}

.learner-dashboard-header h1 {
  margin-bottom: 10px;
  font-size: 44px;
}

.learner-signout {
  margin-top: 12px;
  padding: 10px 15px;
  color: #173f45;
  background: white;
  border: 1px solid #9fb0ad;
  border-radius: 4px;
  font-weight: 800;
}

.learner-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
  color: white;
  background: #163f45;
  border-top: 4px solid #bd8d2e;
}

.learner-summary div {
  display: grid;
  gap: 4px;
  padding: 22px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.learner-summary div:last-child {
  border-right: 0;
}

.learner-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
}

.learner-summary span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-transform: uppercase;
}

.learner-records {
  display: grid;
  gap: 22px;
}

.learner-record {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  color: #172526;
  background: white;
  border: 1px solid #d4dddb;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(17, 47, 50, 0.08);
  overflow: hidden;
}

.learner-record-badge {
  display: grid;
  place-items: center;
  padding: 30px 24px;
  background: #f1f5f3;
  border-right: 1px solid #dbe3e1;
}

.digital-badge {
  width: 200px;
  min-height: 0;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: white;
  border: 1px solid #c8d3d0;
  border-bottom: 4px solid #bd8d2e;
}

.digital-badge .digital-badge-art {
  width: calc(100% + 28px);
  height: auto;
  margin: 0 -14px 9px;
  object-fit: contain;
}

.digital-badge small {
  margin-top: 9px;
  color: #9a7427;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.digital-badge strong {
  margin-top: 6px;
  color: #173f45;
  font-size: 13px;
  line-height: 1.35;
}

.digital-badge span {
  margin-top: auto;
  color: #74817f;
  font-size: 8px;
}

.learner-record-content {
  min-width: 0;
  padding: 28px 30px;
}

.learner-record-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  gap: 24px;
}

.learner-record-heading h2 {
  margin: 7px 0 8px;
  color: #173f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.learner-record-heading p {
  max-width: 760px;
  margin: 0;
  color: #647370;
  font-size: 13px;
  line-height: 1.55;
}

.completion-status {
  color: #17634f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.learner-score {
  color: #173f45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  text-align: right;
}

.learner-score small {
  display: block;
  color: #82908d;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  text-transform: uppercase;
}

.learner-course-meta {
  display: grid;
  grid-template-columns: 1.3fr 0.5fr 0.7fr 1.2fr;
  gap: 16px;
  margin: 24px 0 18px;
  padding: 15px 0;
  border-top: 1px solid #dde4e2;
  border-bottom: 1px solid #dde4e2;
}

.learner-course-meta div {
  min-width: 0;
}

.learner-course-meta dt {
  color: #879390;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.learner-course-meta dd {
  margin: 4px 0 0;
  color: #274744;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.learner-modules {
  color: #35524f;
  font-size: 12px;
}

.learner-modules summary {
  cursor: pointer;
  font-weight: 800;
}

.learner-modules ul {
  margin: 12px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #e2e8e6;
}

.learner-modules li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #e2e8e6;
}

.learner-actions,
.badge-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.learner-actions {
  margin-top: 20px;
}

.learner-actions button,
.badge-share-row a,
.badge-share-row button {
  min-height: 38px;
  padding: 9px 12px;
  color: #244744;
  background: white;
  border: 1px solid #aebdba;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.learner-actions .learner-primary {
  color: white;
  background: #173f45;
  border-color: #173f45;
}

.badge-share-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8e6;
}

.badge-share-row > span {
  margin-right: 4px;
  color: #7a8885;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge-share-row small {
  flex-basis: 100%;
  color: #82908d;
  font-size: 10px;
}

.linkedin-profile-help {
  flex-basis: 100%;
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid #e0e5e3;
}

.linkedin-profile-help summary {
  width: max-content;
  cursor: pointer;
  color: #173f45;
  font-size: 11px;
  font-weight: 900;
}

.linkedin-profile-help > div {
  margin-top: 12px;
  padding: 14px 16px;
  background: #f4f6f5;
  border-left: 4px solid #d22635;
}

.linkedin-profile-help p {
  margin: 0 0 12px;
  color: #647370;
  font-size: 11px;
}

.linkedin-profile-help dl {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.linkedin-profile-help dl div {
  min-width: 0;
}

.linkedin-profile-help dt {
  color: #879390;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.linkedin-profile-help dd {
  margin: 3px 0 0;
  color: #274744;
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.linkedin-profile-help button,
.linkedin-profile-help a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 6px 0 0;
  padding: 8px 10px;
  color: #244744;
  background: white;
  border: 1px solid #aebdba;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}

.learner-empty {
  padding: 50px;
  color: #314b48;
  text-align: center;
  background: white;
  border: 1px solid #d4dddb;
}

@media (max-width: 900px) {
  #app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-session {
    margin-top: 22px;
  }

  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .auth-intro h1 {
    font-size: 40px;
  }

  .auth-card {
    padding: 26px 22px;
  }

  .learner-dashboard-header {
    flex-direction: column;
  }

  .learner-dashboard-header h1 {
    font-size: 36px;
  }

  .learner-summary {
    grid-template-columns: 1fr;
  }

  .learner-summary div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .learner-record {
    grid-template-columns: 1fr;
  }

  .learner-record-badge {
    border-right: 0;
    border-bottom: 1px solid #dbe3e1;
  }

  .learner-record-heading,
  .learner-course-meta {
    grid-template-columns: 1fr 1fr;
  }

  .learner-score {
    text-align: left;
  }

  nav,
  .metrics,
  .form-grid,
  dl {
    grid-template-columns: 1fr;
  }

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

  .student-picker {
    grid-template-columns: 1fr;
  }

  .student-result-row,
  .certificate-result-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .registry-toolbar,
  .user-management-grid {
    grid-template-columns: 1fr;
  }

  .student-result-row > input[type="checkbox"] {
    justify-self: start;
  }

  .page-header,
  .section-title,
  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-card form {
    grid-template-columns: 1fr;
  }

  .site-header {
    width: calc(100% - 32px);
    min-height: 74px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-nav,
  .site-link-button {
    display: none;
  }

  .site-brand-mark {
    width: 44px;
    height: 44px;
  }

  .site-admin-button {
    padding: 9px 10px;
    font-size: 11px;
  }

  .site-hero {
    min-height: 720px;
    background-position: 62% center;
  }

  .site-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(5, 25, 28, 0.28);
  }

  .site-hero-content {
    width: calc(100% - 32px);
    padding: 74px 0 94px;
  }

  .site-hero h1 {
    font-size: 52px;
  }

  .site-hero-lead {
    font-size: 17px;
  }

  .hero-caption {
    right: 16px;
    bottom: 20px;
  }

  .site-proof {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-proof div:nth-child(2) {
    border-right: 0;
  }

  .site-proof div:nth-child(-n + 2) {
    border-bottom: 1px solid #d9e0de;
  }

  .site-intro,
  .split-heading,
  .catalogue-header,
  .lms-band,
  .credential-band,
  .site-contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-intro,
  .programs-section,
  .catalogue-section,
  .site-contact-band {
    width: 100%;
    padding: 68px 20px;
  }

  .site-intro,
  .split-heading,
  .catalogue-header,
  .lms-band,
  .credential-band,
  .site-contact-band {
    gap: 34px;
  }

  .site-section-heading h2,
  .catalogue-header h2,
  .credential-band h2,
  .site-contact-band h2 {
    font-size: 34px;
  }

  .site-principles div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .program-card {
    min-height: 0;
  }

  .catalogue-search,
  .hero-verification > div {
    grid-template-columns: 1fr auto;
  }

  .public-course-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
  }

  .public-course-row > div {
    grid-column: 1 / -1;
  }

  .credential-band {
    padding: 68px 20px;
  }

  .lms-band {
    width: calc(100% - 40px);
    margin-bottom: 68px;
    padding: 32px 26px;
  }

  .lms-band h2 {
    font-size: 29px;
  }

  .coming-soon-label {
    justify-self: start;
  }

  .credential-partners {
    grid-template-columns: 100px 1px 170px;
    justify-content: start;
  }

  .credential-partners img:first-child {
    width: 96px;
    height: 96px;
  }

  .credential-partners img:nth-of-type(2) {
    width: 170px;
  }

  .credential-partners small {
    text-align: left;
  }

  .site-footer {
    padding: 46px 20px;
  }

  .portal-shell .site-header {
    width: 100%;
    padding: 0 16px;
  }

  .site-portal-main {
    padding: 26px 14px 56px;
  }
}

/* QHSE Academy public website redesign */
body.website-mode {
  color: #17212b;
  background: #f4f6f7;
}

body.website-mode #app {
  display: block;
}

.academy-site {
  --academy-navy: #292a2d;
  --academy-blue: #b51f2d;
  --academy-gold: #e3aa1a;
  --academy-red: #d22635;
  --academy-ink: #242529;
  --academy-muted: #626468;
  min-height: 100vh;
  color: var(--academy-ink);
  background: #fff;
}

.academy-site .site-header,
.portal-shell .site-header {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 88px;
  padding: 0 max(28px, calc((100% - 1360px) / 2));
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(450px, 1.4fr) minmax(220px, 0.7fr);
  align-items: center;
  gap: 22px;
  color: var(--academy-ink);
  background: rgba(255, 255, 255, 0.98);
  border-top: 5px solid var(--academy-red);
  border-bottom: 2px solid var(--academy-gold);
  box-shadow: 0 5px 22px rgba(20, 39, 58, 0.08);
}

.academy-site .site-brand,
.portal-shell .site-brand {
  min-width: 0;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--academy-navy);
  background: transparent;
  border: 0;
  text-align: left;
}

.site-brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: white;
  transform: scale(1.2);
}

.academy-site .site-brand strong,
.portal-shell .site-brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.05;
}

.academy-site .site-brand small,
.portal-shell .site-brand small {
  display: block;
  margin-top: 4px;
  color: var(--academy-red);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-site .site-nav,
.portal-shell .site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

.academy-site .site-nav button,
.portal-shell .site-nav button {
  position: relative;
  padding: 31px 0 27px;
  color: #334453;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
}

.academy-site .site-nav button::after,
.portal-shell .site-nav button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--academy-red, #d22635);
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.academy-site .site-nav button:hover::after,
.academy-site .site-nav button.active::after,
.portal-shell .site-nav button:hover::after {
  transform: scaleX(1);
}

.academy-site .site-access,
.portal-shell .site-access {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.academy-site .site-link-button,
.academy-site .site-admin-button,
.portal-shell .site-link-button,
.portal-shell .site-admin-button {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-site .site-link-button,
.portal-shell .site-link-button {
  display: inline-block;
  color: var(--academy-navy, #102f50);
  background: white;
  border: 1px solid #aeb9c2;
}

.academy-site .site-admin-button,
.portal-shell .site-admin-button {
  color: white;
  background: var(--academy-red, #d22635);
  border: 1px solid var(--academy-red, #d22635);
}

.academy-hero {
  position: relative;
  height: min(720px, calc(100vh - 52px));
  min-height: 630px;
  color: white;
  background-image: linear-gradient(90deg, rgba(29, 27, 28, 0.97) 0%, rgba(42, 35, 36, 0.88) 35%, rgba(127, 24, 35, 0.2) 67%, rgba(25, 24, 25, 0.04) 100%), var(--hero-image);
  background-position: center, center;
  background-size: cover;
  overflow: hidden;
}

.academy-hero::before,
.academy-hero::after {
  display: none;
}

.academy-hero .site-hero-content {
  position: relative;
  z-index: 2;
  width: min(1360px, calc(100% - 56px));
  height: calc(100% - 88px);
  margin: 0 auto;
  padding: 88px 0 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.academy-site .site-kicker {
  margin: 0 0 15px;
  color: var(--academy-red);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-hero .site-kicker {
  color: #f0bf49;
}

.academy-hero h1 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 76px;
  line-height: 0.98;
}

.academy-hero .site-hero-lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.55;
}

.academy-hero .site-hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 34px;
}

.academy-site .site-primary-action,
.academy-site .site-secondary-action,
.academy-site .site-light-action {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-site .site-primary-action {
  color: white;
  background: var(--academy-red);
  border: 1px solid var(--academy-red);
}

.academy-site .site-secondary-action,
.academy-site .site-light-action {
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.academy-hero-detail {
  position: absolute;
  right: max(28px, calc((100% - 1360px) / 2));
  bottom: 28px;
  z-index: 3;
  padding-left: 16px;
  display: grid;
  gap: 3px;
  color: white;
  border-left: 4px solid var(--academy-red);
}

.academy-hero-detail span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.academy-proof {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 56px));
  margin: -22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  background: #292a2d;
  border-top: 5px solid var(--academy-red);
  box-shadow: 0 18px 48px rgba(34, 34, 36, 0.18);
}

.academy-proof div {
  padding: 22px 25px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.academy-proof div:nth-child(even) {
  border-top: 3px solid var(--academy-gold);
}

.academy-proof div:nth-child(odd) {
  border-top: 3px solid var(--academy-red);
}

.academy-proof div:last-child {
  border-right: 0;
}

.academy-proof strong,
.academy-proof span {
  display: block;
}

.academy-proof strong {
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.academy-proof span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.academy-intro,
.academy-site .programs-section,
.academy-site .catalogue-section,
.academy-site .site-contact-band,
.about-mission,
.academy-values,
.academy-partnership,
.industry-band,
.contact-layout {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
}

.academy-intro {
  padding: 105px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 100px;
  align-items: end;
}

.academy-site .site-section-heading h2,
.about-mission h2,
.academy-partnership h2,
.contact-context h2,
.contact-form h2 {
  margin: 0;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  line-height: 1.12;
}

.academy-intro-copy p,
.about-mission p,
.academy-partnership p,
.contact-context p {
  margin: 0;
  color: var(--academy-muted);
  line-height: 1.75;
}

.text-action {
  margin-top: 20px;
  padding: 8px 0;
  color: var(--academy-navy);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--academy-red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-programs {
  padding: 64px 0 0;
  color: var(--academy-ink);
  background: #fff;
  border-top: 5px solid var(--academy-red);
  border-bottom: 5px solid var(--academy-gold);
}

.academy-site .split-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 60px;
  align-items: start;
}

.academy-programs .split-heading {
  margin: 0 24px;
  padding-left: 22px;
  border-left: 4px solid var(--academy-red);
}

.academy-programs .site-section-heading h2 {
  max-width: 670px;
  color: var(--academy-ink);
  font-size: 40px;
}

.academy-programs .site-kicker {
  color: var(--academy-red);
}

.academy-site .split-heading > p {
  color: var(--academy-muted);
  line-height: 1.65;
}

.academy-site .program-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #dbe1e4;
  border-left: 1px solid #dbe1e4;
}

.academy-site .program-card {
  min-height: 218px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-right: 1px solid #dbe1e4;
  border-bottom: 1px solid #dbe1e4;
  border-radius: 0;
  box-shadow: none;
}

.academy-site .program-card:hover {
  background: #f5f7f8;
  transform: none;
}

.academy-site .program-number {
  color: var(--academy-red);
  font-size: 10px;
  font-weight: 900;
}

.academy-site .program-card h3 {
  margin: 20px 0 9px;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.academy-site .program-card p {
  margin: 0;
  color: var(--academy-muted);
  font-size: 12px;
  line-height: 1.55;
}

.academy-site .program-card small {
  margin-top: auto;
  padding-top: 18px;
  color: #8d6b18;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-site .catalogue-section {
  padding: 90px 0;
}

.academy-site .catalogue-header {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: end;
}

.academy-site .catalogue-header h2 {
  margin: 0;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 37px;
}

.academy-site .catalogue-search {
  display: grid;
  grid-template-columns: 1fr auto;
}

.academy-site .catalogue-search input,
.academy-site .catalogue-search button {
  min-height: 48px;
  border-radius: 0;
}

.academy-site .catalogue-search input {
  padding: 12px 15px;
  color: var(--academy-ink);
  background: #f5f7f8;
  border: 1px solid #bdc7ce;
}

.academy-site .catalogue-search button {
  padding: 0 20px;
  color: white;
  background: var(--academy-red);
  border: 1px solid var(--academy-red);
}

.academy-site .public-course-list {
  margin-top: 28px;
  border-top: 1px solid #dce2e5;
}

.academy-site .public-course-row {
  min-height: 74px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 105px 105px 115px;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #dce2e5;
}

.academy-site .public-course-row h3 {
  margin: 3px 0 0;
  color: var(--academy-navy);
  font-size: 15px;
}

.academy-site .public-course-row small,
.academy-site .public-course-row span {
  color: #71808b;
  font-size: 10px;
}

.academy-site .public-course-row button {
  min-height: 34px;
  color: var(--academy-navy);
  background: #fff;
  border: 1px solid #aeb9c2;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-lms {
  width: min(1180px, calc(100% - 56px));
  margin: 20px auto 90px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: white;
  background: #292a2d;
  border-left: 7px solid var(--academy-red);
  border-radius: 0;
}

.academy-lms h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.academy-lms p:not(.site-kicker) {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.7);
}

.academy-lms .coming-soon-label {
  padding: 9px 13px;
  color: #17212b;
  background: var(--academy-gold);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-credentials {
  padding: 80px max(28px, calc((100% - 1280px) / 2));
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 90px;
  align-items: center;
  color: white;
  background: linear-gradient(110deg, #242529 0%, #242529 68%, #891823 100%);
}

.academy-credentials .credential-partners {
  padding: 24px 26px 20px;
  grid-template-columns: minmax(145px, 1fr) 1px minmax(165px, 1fr);
  gap: 20px;
  align-items: center;
  color: #292a2d;
  background: #f7f7f7;
  border-top: 5px solid var(--academy-red);
}

.academy-credentials .credential-partners img:first-child {
  width: 148px;
  height: 148px;
  justify-self: center;
}

.academy-credentials .credential-partners .qsi-partner-logo {
  width: 88%;
  max-width: 190px;
  height: auto;
  max-height: 104px;
  padding: 0;
  justify-self: center;
  object-fit: contain;
  background: transparent;
}

.academy-credentials .credential-partners > span {
  height: 116px;
  background: #d4d5d7;
}

.academy-credentials .credential-partners small {
  margin-top: 2px;
  color: #626468;
  font-size: 10px;
  text-align: left;
}

.academy-credentials h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.academy-credentials p:not(.site-kicker) {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.academy-contact-cta {
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 90px;
  align-items: center;
}

.academy-contact-cta h2 {
  margin: 0;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.academy-contact-cta p:not(.site-kicker) {
  color: var(--academy-muted);
  line-height: 1.65;
}

.academy-contact-cta .site-primary-action {
  margin-top: 12px;
}

.academy-site .site-footer,
.portal-shell .site-footer {
  padding: 54px max(28px, calc((100% - 1360px) / 2));
  display: grid;
  grid-template-columns: 1.35fr 0.5fr 0.58fr 0.62fr 0.82fr;
  gap: 30px;
  color: white;
  background: #222326;
  border-top: 5px solid var(--academy-red, #d22635);
}

.academy-site .site-footer-brand,
.portal-shell .site-footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.academy-site .site-footer-brand img,
.portal-shell .site-footer-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: white;
}

.academy-site .site-footer-brand strong,
.portal-shell .site-footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.academy-site .site-footer-brand span,
.portal-shell .site-footer-brand span {
  max-width: 330px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.57);
  font-size: 11px;
  line-height: 1.5;
}

.academy-site .site-footer small,
.portal-shell .site-footer small {
  margin-bottom: 10px;
  color: #d8aa35;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-site .site-footer-links,
.portal-shell .site-footer-links,
.site-footer-meta {
  display: grid;
  align-content: start;
  gap: 8px;
}

.academy-site .site-footer button,
.portal-shell .site-footer button {
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 11px;
}

.site-footer-meta strong {
  margin: -4px 0 12px;
  font-size: 12px;
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  width: min(560px, calc(100% - 44px));
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  color: #18272e;
  background: white;
  border: 1px solid #cfd9dc;
  border-top: 4px solid var(--academy-red, #d22635);
  box-shadow: 0 18px 46px rgba(12, 25, 31, 0.18);
}

.cookie-banner p {
  margin: 5px 0 0;
  color: #52666f;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-banner > div:last-child {
  display: flex;
  gap: 8px;
}

.inner-site-page > .site-header {
  position: sticky;
  top: 0;
}

.inner-page-hero {
  min-height: 430px;
  padding: 90px max(28px, calc((100% - 1280px) / 2));
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 80px;
  align-items: center;
  color: white;
  background: linear-gradient(105deg, #292a2d 0%, #292a2d 72%, #9f1b28 100%);
  border-bottom: 6px solid var(--academy-gold);
}

.inner-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 65px;
  line-height: 1;
}

.inner-page-hero p:not(.site-kicker) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.65;
}

.inner-page-hero img {
  width: min(360px, 100%);
  justify-self: end;
  background: white;
}

.about-mission {
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 100px;
}

.about-mission > div:last-child {
  display: grid;
  gap: 20px;
}

.academy-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #dce2e5;
  border-left: 1px solid #dce2e5;
}

.academy-values article {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid #dce2e5;
  border-bottom: 1px solid #dce2e5;
}

.academy-values span {
  color: var(--academy-red);
  font-size: 10px;
  font-weight: 900;
}

.academy-values h3 {
  margin: 30px 0 10px;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.academy-values p {
  color: var(--academy-muted);
  font-size: 12px;
  line-height: 1.6;
}

.industry-band {
  padding: 88px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  border-bottom: 1px solid #dce2e5;
}

.industry-band h2 {
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.industry-band p {
  color: var(--academy-muted);
  font-size: 16px;
  line-height: 1.8;
}

.legal-page-hero {
  min-height: 330px;
  grid-template-columns: 1fr;
}

.legal-content,
.faq-list {
  width: min(900px, calc(100% - 56px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.legal-effective {
  padding-bottom: 20px;
  color: #7b8993;
  border-bottom: 1px solid #dce2e5;
  font-size: 12px;
}

.legal-content section {
  padding: 25px 0;
  border-bottom: 1px solid #dce2e5;
}

.legal-content h2 {
  margin: 0 0 10px;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.legal-content p,
.faq-list p {
  color: var(--academy-muted);
  line-height: 1.75;
}

.faq-list details {
  border-bottom: 1px solid #dce2e5;
}

.faq-list summary {
  padding: 22px 40px 22px 0;
  color: var(--academy-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  cursor: pointer;
}

.faq-list details p {
  max-width: 760px;
  margin: 0 0 24px;
}

.contact-context a {
  color: inherit;
}

.academy-partnership {
  padding: 110px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.1fr;
  gap: 100px;
  align-items: center;
}

.academy-partnership > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 22px;
}

.academy-partnership img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
}

.academy-partnership > div:first-child span {
  width: 1px;
  height: 110px;
  background: #d7dfe3;
}

.contact-page-hero {
  min-height: 350px;
  grid-template-columns: 1fr;
  background: linear-gradient(100deg, #8f1722 0%, #d22635 62%, #292a2d 100%);
}

.contact-layout {
  padding: 90px 0 110px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  align-items: start;
}

.contact-context {
  position: sticky;
  top: 125px;
}

.contact-context dl {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.contact-context dl div {
  padding: 15px 0;
  display: grid;
  grid-template-columns: 105px 1fr;
  border-bottom: 1px solid #dce2e5;
}

.contact-context dt {
  color: #7b8993;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-context dd {
  margin: 0;
  min-width: 0;
  color: var(--academy-navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 40px;
  background: #f4f6f7;
  border-top: 5px solid var(--academy-red);
}

.contact-form-heading {
  margin-bottom: 28px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
  color: #334453;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--academy-ink);
  background: white;
  border: 1px solid #b9c4cb;
  border-radius: 2px;
  text-transform: none;
}

.contact-form input,
.contact-form select {
  min-height: 46px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-launch-note {
  display: block;
  margin-top: 12px;
  color: #78868f;
  font-size: 10px;
}

.contact-success {
  margin-top: 20px;
  padding: 15px;
  display: grid;
  gap: 3px;
  color: #16533f;
  background: #e7f3ed;
  border-left: 4px solid #2b8063;
}

.contact-success span {
  font-size: 12px;
}

.portal-shell .site-header {
  position: sticky;
  top: 0;
}

@media (max-width: 1050px) {
  .academy-site .site-header,
  .portal-shell .site-header {
    grid-template-columns: 230px 1fr auto;
    gap: 14px;
  }

  .academy-site .site-nav,
  .portal-shell .site-nav {
    gap: 12px;
  }

  .academy-site .site-nav button,
  .portal-shell .site-nav button {
    font-size: 10px;
  }

  .academy-site .program-grid,
  .academy-values {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .academy-site .site-header,
  .portal-shell .site-header {
    min-height: 0;
    padding: 8px 14px 10px;
    grid-template-columns: 1fr auto;
  }

  .site-brand-logo {
    width: 52px;
    height: 52px;
  }

  .academy-site .site-brand strong,
  .portal-shell .site-brand strong {
    font-size: 17px;
  }

  .academy-site .site-nav,
  .portal-shell .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
  }

  .academy-site .site-nav button,
  .portal-shell .site-nav button {
    flex: 0 0 auto;
    padding: 8px 0 10px;
  }

  .academy-site .site-nav button::after,
  .portal-shell .site-nav button::after {
    bottom: 4px;
  }

  .academy-site .site-link-button,
  .portal-shell .site-link-button {
    display: inline-block;
    padding: 8px;
  }

  .academy-hero {
    height: 690px;
    min-height: 690px;
    background-image: linear-gradient(90deg, rgba(31, 29, 30, 0.94), rgba(111, 22, 31, 0.55)), var(--hero-image);
    background-position: center, 62% center;
  }

  .academy-hero .site-hero-content {
    width: calc(100% - 36px);
    height: calc(100% - 113px);
    padding: 70px 0 70px;
    justify-content: center;
  }

  .academy-hero h1 {
    font-size: 51px;
  }

  .academy-hero .site-hero-lead {
    font-size: 16px;
  }

  .academy-hero .site-hero-actions {
    flex-wrap: wrap;
  }

  .academy-hero-detail {
    right: 18px;
    bottom: 22px;
  }

  .academy-proof {
    width: calc(100% - 28px);
    grid-template-columns: 1fr 1fr;
  }

  .academy-proof div:nth-child(2) {
    border-right: 0;
  }

  .academy-proof div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .academy-intro,
  .academy-site .programs-section,
  .academy-site .catalogue-section,
  .academy-site .site-contact-band,
  .about-mission,
  .academy-values,
  .academy-partnership,
  .contact-layout,
  .industry-band {
    width: calc(100% - 36px);
  }

  .academy-intro,
  .academy-site .split-heading,
  .academy-site .catalogue-header,
  .academy-credentials,
  .academy-contact-cta,
  .about-mission,
  .academy-partnership,
  .contact-layout,
  .industry-band {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .academy-intro,
  .academy-site .programs-section,
  .academy-site .catalogue-section,
  .about-mission,
  .academy-partnership,
  .contact-layout {
    padding: 70px 0;
  }

  .academy-site .programs-section {
    padding: 52px 0 0;
  }

  .academy-programs .split-heading {
    margin: 0;
    padding-left: 16px;
  }

  .academy-programs .site-section-heading h2 {
    font-size: 32px;
  }

  .academy-site .site-section-heading h2,
  .about-mission h2,
  .academy-partnership h2,
  .contact-context h2,
  .contact-form h2,
  .academy-contact-cta h2 {
    font-size: 33px;
  }

  .academy-site .program-grid,
  .academy-values {
    grid-template-columns: 1fr;
  }

  .academy-site .public-course-row {
    grid-template-columns: 1fr 1fr;
  }

  .academy-site .public-course-row > div,
  .academy-site .public-course-row button {
    grid-column: 1 / -1;
  }

  .academy-lms {
    width: calc(100% - 36px);
    padding: 32px 25px;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .academy-credentials {
    padding: 65px 18px;
  }

  .academy-credentials .credential-partners {
    padding: 18px;
    grid-template-columns: minmax(110px, 1fr) 1px minmax(130px, 1fr);
    gap: 14px;
  }

  .academy-credentials .credential-partners img:first-child {
    width: 118px;
    height: 118px;
  }

  .academy-credentials .credential-partners .qsi-partner-logo {
    width: 94%;
    max-width: 150px;
  }

  .academy-site .site-footer,
  .portal-shell .site-footer {
    padding: 42px 18px;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .academy-site .site-footer-brand,
  .portal-shell .site-footer-brand {
    grid-column: 1 / -1;
  }

  .inner-page-hero {
    min-height: 400px;
    padding: 65px 18px;
    grid-template-columns: 1fr;
  }

  .inner-page-hero h1 {
    font-size: 47px;
  }

  .inner-page-hero img {
    display: none;
  }

  .contact-context {
    position: static;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .industry-band {
    padding: 65px 0;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .academy-site .site-access,
  .portal-shell .site-access {
    gap: 4px;
  }

  .academy-site .site-admin-button,
  .portal-shell .site-admin-button {
    padding: 8px;
  }

  .academy-hero h1 {
    font-size: 43px;
  }

  .academy-hero .site-primary-action,
  .academy-hero .site-secondary-action {
    width: 100%;
  }

  .academy-site .site-footer,
  .portal-shell .site-footer {
    grid-template-columns: 1fr;
  }

  .academy-site .site-footer-brand,
  .portal-shell .site-footer-brand {
    grid-column: auto;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    margin: 0;
    padding: 0;
    background: white;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.print-export .certificate-page {
    break-after: page;
    page-break-after: always;
  }

  body.print-export .certificate-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

}
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #2e706b;
  border-radius: 4px;
  color: #9ce5dc;
  background: #123934;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.pending {
  border-color: #b38a31;
  color: #ffe09a;
  background: #3d3219;
}

.status-pill.disabled {
  border-color: #7d4e54;
  color: #f3b7bd;
  background: #3c2328;
}
