@font-face {
  font-family: 'Futura Lt BT';
  src: url('/fonts/futura-lt-w01-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

.listen-mode-banner {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 25px 28px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 91, 23, .42);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 91, 23, .13), rgba(255, 91, 23, .025) 58%), #0b0b0b;
}

.listen-mode-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: #ff5b17;
}

.listen-mode-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #080808;
}

.listen-mode-copy .eyebrow { color: #ff5b17; }
.listen-mode-copy h2 { margin: 5px 0 7px; color: #f5f5f3; font-size: 22px; font-weight: 450; }
.listen-mode-copy p { margin: 0 0 7px; color: #aaa6a3; font-size: 14px; line-height: 1.55; }
.listen-mode-copy small { color: #6f6c6a; font-size: 12px; }

.listen-mode-button {
  white-space: nowrap;
  border-radius: 999px;
  padding: 12px 20px;
  background: #ff5b17;
  color: #080808;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 760px) {
  .listen-mode-banner { grid-template-columns: auto 1fr; padding: 21px; }
  .listen-mode-button { grid-column: 1 / -1; text-align: center; }
}

:root {
  --ink: #13241e;
  --muted: #6f7c77;
  --cream: #f4f0e7;
  --paper: #fffdf8;
  --lime: #d7ef74;
  --green: #245b47;
  --line: #dcded5;
  --coral: #e88d72;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 72px;
  padding: 0 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #10211b;
  color: white;
}

.brand, .learner { display: flex; align-items: center; gap: 12px; }
.portal-nav { display: flex; align-items: center; gap: 24px; }
.portal-nav-links { display: flex; align-items: center; gap: 24px; }
.nav-toggle-btn { display: none; background: none; border: 0; color: inherit; font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.portal-nav > a, .portal-nav-links > a { color: #c5d0ca; text-decoration: none; font-size: 12px; font-weight: 600; }
.portal-nav > a:hover, .portal-nav-links > a:hover { color: var(--lime); }
.brand { color: white; text-decoration: none; font-weight: 700; letter-spacing: -.02em; }
.brand-mark, .avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}
.brand-mark { width: 34px; height: 34px; color: var(--ink); background: var(--lime); font-family: "Newsreader", serif; font-size: 21px; }
.avatar { width: 34px; height: 34px; background: #315247; font-size: 11px; }
.learner { color: #d7dfda; font-size: 13px; }

main { min-height: calc(100vh - 72px); }
.hero {
  min-height: 330px;
  padding: 62px 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  color: white;
  background: #17372c;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border: 1px solid rgba(215,239,116,.18);
  border-radius: 50%;
  right: 24%; top: -260px;
  box-shadow: 0 0 0 70px rgba(215,239,116,.025), 0 0 0 140px rgba(215,239,116,.025);
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 11px; font-weight: 700; color: #8fa197; }
.hero .eyebrow { color: var(--lime); }
h1, h2 { font-family: "Newsreader", Georgia, serif; letter-spacing: -.035em; margin: 8px 0 0; }
h1 { font-size: clamp(48px, 6vw, 76px); line-height: .93; font-weight: 600; }
.hero p { color: #b9c8c1; margin: 22px 0 0; max-width: 430px; line-height: 1.6; }

.upload-button {
  position: relative;
  z-index: 1;
  min-width: 250px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 0;
  border-radius: 2px;
  color: var(--ink);
  background: var(--lime);
  text-align: left;
  cursor: pointer;
  box-shadow: 8px 8px 0 rgba(0,0,0,.18);
  transition: transform .2s, box-shadow .2s;
}
.upload-button:hover { transform: translate(-2px,-2px); box-shadow: 11px 11px 0 rgba(0,0,0,.18); }
.upload-button .plus { font-size: 34px; line-height: 1; font-weight: 300; }
.upload-button b, .upload-button small { display: block; }
.upload-button small { margin-top: 3px; color: #526057; font-size: 11px; }

.update-banner { background: linear-gradient(135deg, #1a1500 0%, #2a2000 100%); border-top: 1px solid #4a3a00; border-bottom: 1px solid #4a3a00; }
.update-banner h3 { font-size: 22px; font-weight: 400; margin: 6px 0 6px; color: #f5f5f3; }
.update-banner p { color: #9e9a98; font-size: 14px; }
.admin-status.needs-update { background: #422d0010; color: #d97706; }
.renewal-banner { background: linear-gradient(135deg, #1a0000 0%, #2a0a00 100%); border-top: 1px solid #5a1a00; border-bottom: 1px solid #5a1a00; }
.renewal-banner h3 { font-size: 22px; font-weight: 400; margin: 6px 0 6px; color: #f5f5f3; }
.renewal-banner p { color: #9e9a98; font-size: 14px; }
.certificate-banner { background: linear-gradient(135deg, #1a0f00 0%, #2a1500 100%); border-top: 1px solid #3a2000; border-bottom: 1px solid #3a2000; }
.certificate-banner-inner { max-width: 1500px; margin: auto; padding: 36px 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.certificate-banner h3 { font-size: 22px; font-weight: 400; margin: 6px 0 6px; color: #f5f5f3; }
.certificate-banner p { color: #9e9a98; font-size: 14px; }
.cert-download-btn { flex-shrink: 0; display: inline-block; background: #ff5b17; color: #fff; text-decoration: none; padding: 14px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cert-download-btn:hover { background: #e04d10; }
.library { padding: 58px 104px 90px; max-width: 1500px; margin: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
h2 { font-size: 38px; }
.course-count { color: var(--muted); font-size: 13px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 24px; align-items: stretch; }
.course-card { background: var(--paper); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(16,33,27,.08); }
.cover { height: 160px; padding: 18px; position: relative; overflow: hidden; background: #cfdfd6; }
.course-card:nth-child(3n+2) .cover { background: #e8c9bc; }
.course-card:nth-child(3n+3) .cover { background: #dfe4a9; }
.cover-art { position: absolute; inset: 0; transform: rotate(-8deg) scale(1.1); }
.cover-art i { position: absolute; display: block; border-radius: 50%; border: 16px solid rgba(255,255,255,.42); }
.cover-art i:nth-child(1) { width: 150px; height: 150px; right: -25px; bottom: -65px; }
.cover-art i:nth-child(2) { width: 80px; height: 80px; left: 70px; top: 32px; border-width: 10px; }
.cover-art i:nth-child(3) { width: 36px; height: 36px; left: 25px; bottom: -8px; border-width: 7px; }
.card-body { padding: 22px; display: flex; flex: 1; flex-direction: column; }
.status-row { min-height: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #a7afa9; }
.status.complete::before, .status.passed::before { background: #4c9975; }
.status.incomplete::before, .status.browsed::before { background: #e4a444; }
.title { min-height: 92px; margin: 10px 0 18px; font-size: 18px; line-height: 1.45; letter-spacing: -.015em; overflow: hidden; }
.title span { display: block !important; width: fit-content; margin: 12px 0 0 !important; }
.progress-track { height: 3px; background: #e4e5df; margin-top: auto; margin-bottom: 20px; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--green); }
.card-actions { display: flex; gap: 8px; align-items: center; }
.launch-button { flex: 1; display: flex; justify-content: space-between; padding: 12px 14px; color: white; background: var(--green); text-decoration: none; font-size: 12px; font-weight: 600; }
.delete-button { width: 42px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.delete-button:hover { color: #a14330; border-color: #d8aaa0; }

.empty-state { padding: 70px 20px; border: 1px dashed #c5c9c0; text-align: center; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: auto; border-radius: 50%; background: #e3e8d0; font-size: 24px; }
.empty-state h3 { margin: 18px 0 7px; font-family: "Newsreader", serif; font-size: 27px; }
.empty-state p { color: var(--muted); font-size: 13px; }
.text-button { border: 0; border-bottom: 1px solid var(--green); color: var(--green); background: transparent; padding: 5px 0; cursor: pointer; font-weight: 600; }
.notice { padding: 14px 18px; margin-bottom: 22px; border-left: 3px solid var(--coral); background: #f8e4dc; font-size: 13px; }
.upload-overlay { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; background: rgba(16,33,27,.93); color: white; }
.upload-overlay[hidden] { display: none; }
.upload-overlay span { color: #afc0b8; font-size: 13px; }
.spinner { width: 42px; height: 42px; margin-bottom: 10px; border: 3px solid #476257; border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-body { height: 100vh; overflow: hidden; background: #0c1713; }
.player-shell { height: 100%; display: grid; grid-template-rows: 62px 1fr; }
.player-bar { display: flex; align-items: center; gap: 18px; padding: 0 22px; color: white; background: #10211b; }
.back-link { color: #d9e4de; text-decoration: none; font-size: 13px; }
.player-divider { width: 1px; height: 24px; background: #395046; }
.player-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.save-state { display: flex; align-items: center; gap: 8px; color: #aebdb6; font-size: 11px; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: #718078; }
.save-state.saved .save-dot { background: var(--lime); }
.course-frame { width: 100%; height: 100%; border: 0; background: white; }

.admin-main { min-height: calc(100vh - 72px); padding: 58px 104px 90px; max-width: 1500px; margin: auto; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 38px; }
.admin-heading h1 { color: var(--ink); font-size: clamp(42px, 5vw, 62px); line-height: 1; }
.admin-heading p { color: var(--muted); margin: 12px 0 0; }
.admin-primary { border: 0; padding: 14px 19px; color: white; background: var(--green); cursor: pointer; font-weight: 600; font-size: 12px; }
.admin-export { padding: 14px 19px; color: #9e9a98; border: 1px solid #2a2a2a; background: transparent; font-weight: 600; font-size: 12px; text-decoration: none; border-radius: 4px; }
.admin-export:hover { color: #f5f5f3; border-color: #444; }
.admin-primary:disabled { cursor: not-allowed; opacity: .45; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 50px; }
.metric-card { min-height: 145px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--paper); }
.metric-card > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.metric-card strong { margin-top: auto; font-family: "Newsreader", serif; font-size: 28px; }
.metric-card small { color: var(--muted); margin-top: 5px; }
.metric-card.accent { border-color: var(--green); color: white; background: var(--green); }
.metric-card.accent > span, .metric-card.accent small { color: #c5d8cf; }
.admin-panel { padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.admin-panel h2 { font-size: 32px; }
.learner-table { width: 100%; border-collapse: collapse; }
.learner-table th { padding: 13px 12px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; }
.learner-table td { padding: 17px 12px; border-bottom: 1px solid #e8e8e2; font-size: 12px; }
.learner-table td:first-child strong, .learner-table td:first-child small { display: block; }
.learner-table td:first-child small { margin-top: 3px; color: var(--muted); }
.admin-status { display: inline-block; padding: 5px 8px; border-radius: 20px; color: #6c735f; background: #eef0e4; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.admin-status.in-progress { color: #8a5d13; background: #f8ecd4; }
.admin-status.completed { color: #246345; background: #def0e6; }
.table-progress { min-width: 180px; white-space: nowrap; vertical-align: middle; }
.table-progress > div { display: inline-block; width: 110px; height: 4px; margin-right: 10px; vertical-align: middle; background: #e1e4dd; }
.table-progress > div span { display: block; height: 100%; background: var(--green); }
.table-progress small { display: inline-block; vertical-align: middle; color: var(--muted); }
.row-action { border: 0; color: #9a4f3f; background: transparent; cursor: pointer; font-size: 11px; }
.invite-dialog { width: min(470px, calc(100vw - 32px)); padding: 0; border: 0; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.invite-dialog::backdrop { background: rgba(16,33,27,.78); }
.invite-dialog form { padding: 36px; position: relative; }
.invite-dialog h2 { margin-bottom: 8px; }
.invite-dialog p { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.invite-dialog label { display: block; margin: 16px 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.invite-dialog input { width: 100%; margin-top: 7px; padding: 13px; border: 1px solid var(--line); background: #faf9f4; color: var(--ink); }
.invite-dialog .admin-primary { width: 100%; margin-top: 10px; }
.dialog-close { position: absolute; right: 20px; top: 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; }

@media (max-width: 700px) {
  .learner span:last-child { display: none; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .hero { align-items: flex-start; flex-direction: column; padding-top: 46px; padding-left: 24px; padding-right: 24px; }
  .upload-button { width: 100%; }
  .library { padding-top: 40px; padding-left: 24px; padding-right: 24px; }
  .certificate-banner-inner { padding-left: 24px; padding-right: 24px; }
  .admin-main { padding-left: 24px; padding-right: 24px; }
  .admin-heading { align-items: stretch; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 20px 12px; }
  .learner-table-wrap { overflow-x: auto; }
}

/* PUBLIC WEBSITE FOOTER
   Scoped to this component so public footer changes cannot affect application UI. */
.rf-public-site-footer {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  border-top: 1px solid #1f1f1f;
  background: #050505;
  color: #8d8986;
  font-size: inherit;
}

.rf-public-site-footer *,
.rf-public-site-footer *::before,
.rf-public-site-footer *::after {
  box-sizing: border-box;
}

.rf-public-site-footer__inner {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 28px clamp(24px, 5vw, 108px) 24px;
}

.rf-public-site-footer__main,
.rf-public-site-footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.rf-public-site-footer__nav,
.rf-public-site-footer__policies {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.rf-public-site-footer a {
  color: #aaa6a3;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .16s ease;
}

.rf-public-site-footer a:hover,
.rf-public-site-footer a:focus-visible {
  color: #ff5b17;
  outline: none;
}

.rf-public-site-footer__legal {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #1f1f1f;
}

.rf-public-site-footer__legal p {
  margin: 0;
  color: #777370;
  font-size: 12px;
  line-height: 1.5;
}

.rf-public-site-footer__policies a {
  color: #ff6a2b;
}

@media (max-width: 820px) {
  .rf-public-site-footer__main,
  .rf-public-site-footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }

  .rf-public-site-footer__nav,
  .rf-public-site-footer__policies {
    gap: 12px 20px;
  }
}

@media print {
  .rf-public-site-footer {
    display: none !important;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .topbar, .hero, .library, .admin-main, .certificate-banner-inner, .auth-shell, .auth-header {
    padding-left: 48px;
    padding-right: 48px;
  }
}

/* Risk Facilitator brand skin */
:root {
  --ink: #f5f5f3;
  --muted: #aaa7a6;
  --cream: #050505;
  --paper: #0c0c0c;
  --lime: #ff5b17;
  --green: #ff5b17;
  --line: #2a2929;
  --coral: #ff5b17;
}

body {
  color: var(--ink);
  background: #050505;
  font-family: "Helvetica Neue", "DM Sans", Arial, sans-serif;
  font-weight: 300;
}

.topbar {
  height: 92px;
  padding: 0 108px;
  background: #050505;
  border-bottom: 1px solid #1b1b1b;
}

.brand { gap: 10px; font-size: 21px; font-weight: 300; letter-spacing: -.05em; }
.brand-logo { display: block; width: auto; height: 34px; object-fit: contain; }
.portal-nav > a, .portal-nav-links > a {
  color: #bcb9b8;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease;
}
.portal-nav > a:hover,
.portal-nav-links > a:hover,
.portal-nav > a:focus-visible,
.portal-nav-links > a:focus-visible,
.portal-nav > a[aria-current="page"],
.portal-nav-links > a[aria-current="page"],
.portal-nav-links > a.current { color: #ff5b17; }
.portal-nav > a:focus-visible,
.portal-nav-links > a:focus-visible { outline: 1px solid #ff5b17; outline-offset: 5px; }
.avatar { background: #262525; color: #ff6a28; }
.learner { color: #a6a3a2; font-weight: 300; }
.logout-button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #555;
  color: #aaa7a6;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 300;
}
.logout-button:hover { color: #ff6a28; border-color: #ff6a28; }

.hero {
  min-height: 430px;
  padding: 72px 108px;
  color: #f5f5f3;
  background: #050505;
  border-bottom: 1px solid #202020;
}
.hero::after {
  width: 520px;
  height: 520px;
  right: 12%;
  top: -270px;
  border-color: rgba(255,91,23,.32);
  box-shadow: 0 0 0 80px rgba(255,91,23,.025), 0 0 0 160px rgba(255,91,23,.02);
}
.eyebrow, .hero .eyebrow { color: #ff5b17; }
h1, h2 { font-family: "Helvetica Neue", "DM Sans", Arial, sans-serif; font-weight: 200; letter-spacing: -.045em; }
h1 { font-size: clamp(51px, 6.5vw, 88px); line-height: .96; }
.hero h1 { max-width: 700px; font-size: clamp(42px, 4.2vw, 64px); line-height: 1.04; }
.hero p { color: #9e9a98; max-width: 550px; font-size: 17px; font-weight: 300; }

.upload-button, .admin-primary {
  color: #080808;
  background: #ff5b17;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 400;
}
.upload-button { padding: 18px 28px; }
.upload-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,91,23,.16); }
.upload-button small { color: #5e230b; }

.library { max-width: 1500px; }
.course-card { background: #0b0b0b; border-color: #2a2929; }
.course-card:hover { border-color: #514f4e; box-shadow: 0 16px 45px rgba(0,0,0,.5); }
.cover, .course-card:nth-child(3n+2) .cover, .course-card:nth-child(3n+3) .cover { background: #171717; }
.cover-art i { border-color: rgba(255,91,23,.5); }
.status-row, .course-count { color: #8f8c8a; }
.title { font-weight: 300; }
.progress-track { background: #292929; }
.progress-fill { background: #ff5b17; }
.launch-button { color: #050505; background: #ff5b17; border-radius: 999px; padding-left: 18px; }
.delete-button { border-color: #333; color: #8f8c8a; border-radius: 50%; }
.empty-state { border-color: #363434; }
.empty-icon { color: #ff5b17; background: #1d1613; }
.text-button { color: #ff6a28; border-color: #ff6a28; }
.notice { color: #f0c7b4; background: #25130c; border-color: #ff5b17; }

.admin-main { background: #050505; }
.admin-heading h1 { color: #f5f5f3; }
.admin-heading p { color: #9e9a98; font-size: 16px; }
.metric-card { border-color: #292929; background: #0c0c0c; }
.metric-card strong { font-family: "Helvetica Neue", sans-serif; font-weight: 200; }
.metric-card.accent { border-color: #ff5b17; color: #050505; background: #ff5b17; }
.metric-card.accent > span, .metric-card.accent small { color: #5c2109; }
.admin-panel { border-color: #292929; background: #0c0c0c; }
.learner-table th, .learner-table td { border-color: #292929; }
.learner-table td:first-child small { color: #8f8c8a; }
.admin-status { color: #aaa; background: #202020; }
.admin-status.in-progress { color: #ff9c6e; background: #2c160d; }
.admin-status.completed { color: #ffc1a4; background: #3a1b0f; }
.table-progress > div { background: #292929; }
.table-progress > div span { background: #ff5b17; }
.row-action { color: #ff7c43; }
.invite-dialog { color: #f5f5f3; background: #101010; }
.invite-dialog::backdrop { background: rgba(0,0,0,.84); }
.invite-dialog input { border-color: #353535; color: #f5f5f3; background: #171717; }
.dialog-close { color: #999; }

.player-bar { background: #050505; border-bottom: 1px solid #282828; }
.back-link { color: #ff6a28; }
.player-divider { background: #383838; }
.save-state.saved .save-dot { background: #ff5b17; }

.auth-body { min-height: 100vh; background: #050505; }
.auth-header {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e1e1e;
  background: #050505;
  position: sticky;
  top: 0;
  z-index: 200;
}
.auth-logo { display: block; width: auto; height: 32px; }
.auth-nav, .standard-nav { display: flex; align-items: center; gap: 24px; }
.auth-nav a, .standard-nav a {
  color: #bcb9b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
  transition: color .18s ease;
}
.auth-nav a:hover,
.standard-nav a:hover,
.auth-nav a:focus-visible,
.standard-nav a:focus-visible,
.auth-nav a[aria-current="page"],
.standard-nav a[aria-current="page"] { color: #ff5b17; }
.auth-nav a:focus-visible,
.standard-nav a:focus-visible { outline: 1px solid #ff5b17; outline-offset: 5px; }
.topbar.public-topbar {
  height: 56px !important;
  padding: 0 20px !important;
  background: #050505;
}
.topbar.public-topbar .brand-logo {
  width: auto !important;
  height: 32px !important;
}
.topbar.public-topbar .portal-nav-links { gap: 24px !important; }
.topbar.public-topbar .portal-nav-links > a {
  padding: 0 !important;
  border-bottom: 0 !important;
  color: #bcb9b8;
  font-size: 14px !important;
  font-weight: 300;
}
.topbar.public-topbar .portal-nav-links > a:hover,
.topbar.public-topbar .portal-nav-links > a:focus-visible,
.topbar.public-topbar .portal-nav-links > a[aria-current="page"],
.topbar.public-topbar .portal-nav-links > a.current { color: #ff5b17; }
@media (min-width: 901px) {
  .topbar.public-topbar.rf-public-header,
  .auth-header.rf-public-header {
    padding-left: max(20px, calc((100vw - 1220px) / 2)) !important;
    padding-right: max(20px, calc((100vw - 1220px) / 2)) !important;
  }
  .rf-public-header {
    display: grid !important;
    grid-template-columns: minmax(180px, 1fr) max-content minmax(180px, 1fr);
    align-items: center;
    column-gap: 24px;
  }
  .rf-public-header > a:first-child { grid-column: 1; justify-self: start; }
  .rf-public-header > .learn-header-actions { display: contents !important; }
  .rf-public-header > nav:not(.portal-nav),
  .rf-public-header .standard-nav { grid-column: 2; justify-self: center; }
  .rf-public-header > .portal-nav { display: contents !important; }
  .rf-public-header .portal-nav-links { grid-column: 2; justify-self: center; }
  .rf-public-header .lp-header-actions,
  .rf-public-header .dd-theme-toggle { grid-column: 3; justify-self: end; }
}
.auth-shell {
  min-height: calc(100vh - 56px);
  padding: 90px 108px;
  display: grid;
  grid-template-columns: minmax(280px, 560px) minmax(360px, 480px);
  justify-content: center;
  align-items: center;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: "";
  width: 500px;
  height: 500px;
  position: absolute;
  left: 10%;
  top: -330px;
  border: 1px solid rgba(255,91,23,.55);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,91,23,.1) 0%, rgba(255,91,23,.03) 55%, transparent 75%);
  box-shadow: 0 0 0 75px rgba(255,91,23,.04), 0 0 0 150px rgba(255,91,23,.025);
  pointer-events: none;
}
.auth-intro, .auth-card { position: relative; z-index: 1; }
.auth-intro h1 { margin-top: 18px; font-size: clamp(36px, 4.5vw, 62px); font-family: 'Futura Lt BT', 'Century Gothic', sans-serif; font-weight: 300; }
.auth-card h2 { margin: 10px 0 30px; font-size: 42px; font-family: 'Futura Lt BT', 'Century Gothic', sans-serif; font-weight: 300; }
.auth-intro p { max-width: 480px; margin-top: 26px; color: #9e9a98; font-size: 17px; line-height: 1.6; }
.auth-card { padding: 48px; border: 1px solid #2a2929; background: #0c0c0c; }
.auth-form label { display: block; margin: 17px 0; color: #aaa7a6; font-size: 11px; font-weight: 500; letter-spacing: .04em; }
.auth-form input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #3a3939;
  border-radius: 0;
  outline: 0;
  color: #f5f5f3;
  background: transparent;
  font-size: 16px;
  font-weight: 300;
}
.auth-form input:focus { border-color: #ff5b17; }
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 0;
  top: 8px;
  width: 44px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #8f8c8a;
  background: transparent;
  cursor: pointer;
}
.password-toggle:hover { color: #f5f5f3; }
.password-toggle:focus-visible {
  border-radius: 5px;
  outline: 1px solid #ff5b17;
  outline-offset: -4px;
}
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.auth-submit {
  width: 100%;
  margin-top: 24px;
  padding: 15px 21px;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-radius: 999px;
  color: #050505;
  background: #ff5b17;
  cursor: pointer;
  font-weight: 500;
}
.auth-submit:disabled { cursor: wait; opacity: .55; }
.auth-switch, .staging-note { color: #8f8c8a; font-size: 12px; text-align: center; }
.auth-switch { margin: 24px 0 0; }
.auth-switch a { color: #ff6a28; }
.mfa-panel h3 {
  margin: 10px 0 12px;
  color: #f5f5f3;
  font-family: 'Futura Lt BT', 'Century Gothic', sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.15;
}
.mfa-panel > p { margin: 0 0 20px; color: #9e9a98; font-size: 13px; line-height: 1.55; }
.auth-form .mfa-remember-device {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c2bfbd;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0;
}
.auth-form .mfa-remember-device input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #ff5b17;
}
.mfa-help-link {
  margin: -8px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ff6a28;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mfa-help-link:hover { color: #ff8a57; }
.mfa-qr-wrap {
  width: min(230px, 100%);
  margin: 0 auto 18px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}
.mfa-qr { display: block; width: 100%; height: auto; }
.mfa-panel .mfa-manual-label { margin-bottom: 7px; color: #8f8c8a; font-size: 11px; }
.mfa-manual-key {
  display: block;
  padding: 11px;
  border: 1px solid #343333;
  color: #f5f5f3;
  background: #151515;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}
.mfa-backup-access {
  margin: 18px 0 0;
  border-top: 1px solid #343333;
  border-bottom: 1px solid #343333;
}
.mfa-backup-access summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  color: #c2bfbd;
  cursor: pointer;
  font-size: 13px;
  list-style: none;
}
.mfa-backup-access summary::-webkit-details-marker { display: none; }
.mfa-backup-access summary::after {
  content: "+";
  color: #777371;
  font-size: 18px;
  line-height: 1;
}
.mfa-backup-access[open] summary::after { content: "−"; }
.mfa-backup-access summary span {
  margin-left: auto;
  color: #777371;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.mfa-backup-content { padding: 0 0 17px; }
.mfa-backup-content > p {
  margin: 0;
  color: #817e7c;
  font-size: 11px;
  line-height: 1.5;
}
.mfa-recovery-codes {
  margin: 14px 0 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  border: 1px solid #343333;
  list-style: none;
  background: #151515;
}
.mfa-recovery-codes li {
  color: #c9c6c4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: .04em;
}

.mfa-help-body { min-height: 100vh; }
.mfa-help-shell {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
}
.mfa-help-intro {
  max-width: 680px;
  margin-bottom: 34px;
}
.mfa-help-intro h1 {
  margin: 16px 0 18px;
  color: #f5f5f3;
  font-family: 'Futura Lt BT', 'Century Gothic', sans-serif;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.mfa-help-intro > p {
  max-width: 610px;
  margin: 0;
  color: #9e9a98;
  font-size: 15px;
  line-height: 1.6;
}
.mfa-help-card {
  margin-top: 14px;
  padding: 25px 28px;
  border: 1px solid #2a2929;
  border-radius: 0;
  background: #0c0c0c;
}
.mfa-help-number {
  color: #ff5b17;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mfa-help-card h2 {
  margin: 8px 0 12px;
  color: #f5f5f3;
  font-family: 'Futura Lt BT', 'Century Gothic', sans-serif;
  font-size: 22px;
  font-weight: 300;
}
.mfa-help-card > p,
.mfa-help-list {
  margin: 0;
  color: #9e9a98;
  font-size: 13px;
  line-height: 1.6;
}
.mfa-help-steps {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  list-style: none;
  counter-reset: mfa-help-step;
}
.mfa-help-steps li {
  padding: 18px 0 18px 48px;
  position: relative;
  border-top: 1px solid #302f2e;
  counter-increment: mfa-help-step;
}
.mfa-help-steps li::before {
  content: counter(mfa-help-step);
  width: 28px;
  height: 28px;
  position: absolute;
  top: 17px;
  left: 0;
  display: grid;
  place-items: center;
  border: 1px solid #ff5b17;
  border-radius: 50%;
  color: #ff6a28;
  font-size: 11px;
}
.mfa-help-steps strong,
.mfa-help-steps span { display: block; }
.mfa-help-steps strong { margin-bottom: 4px; color: #f5f5f3; font-size: 14px; }
.mfa-help-steps span { color: #9e9a98; font-size: 13px; line-height: 1.55; }
.mfa-help-steps b { color: #d8d4d1; font-weight: 500; }
.mfa-help-list { padding-left: 20px; }
.mfa-help-list li + li { margin-top: 8px; }
.mfa-security-note {
  margin: 14px 0 24px;
  padding: 18px 22px;
  border-left: 3px solid #ff5b17;
  background: #1a1512;
}
.mfa-security-note strong { color: #f5f5f3; font-size: 13px; }
.mfa-security-note p {
  margin: 6px 0 0;
  color: #aaa6a3;
  font-size: 12px;
  line-height: 1.55;
}
.mfa-help-return {
  min-width: 240px;
  padding: 15px 21px;
  display: inline-flex;
  justify-content: space-between;
  gap: 35px;
  border-radius: 999px;
  color: #050505;
  background: #ff5b17;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 600px) {
  .mfa-help-shell {
    width: min(100% - 36px, 900px);
    padding: 42px 0 60px;
  }
  .mfa-help-intro h1 { font-size: 40px; }
  .mfa-help-intro > p { font-size: 14px; }
  .mfa-help-card { padding: 22px 18px; }
  .mfa-help-steps li { padding-left: 42px; }
  .mfa-help-return { width: 100%; }
}
.mfa-copy-button,
.mfa-text-button {
  border: 0;
  padding: 0;
  color: #ff6a28;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mfa-text-button { display: block; margin: 22px auto 0; }
.mfa-email-actions { margin-top: 20px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; }
.mfa-email-actions .mfa-text-button { margin: 0; }
.mfa-confirm {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #aaa7a6;
  font-size: 12px;
  line-height: 1.4;
}
.mfa-confirm input { width: auto; margin: 2px 0 0; accent-color: #ff5b17; }
.staging-note { margin: 12px 0 0; }
.password-help { display: block; margin-top: -9px; color: #777; font-size: 10px; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 24px; border: 1px solid #343333; }
.account-tab { padding: 12px; border: 0; color: #aaa; background: transparent; cursor: pointer; }
.account-tab.active { color: #050505; background: #ff5b17; }
.business-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }

@media (max-width: 700px) {
  .auth-header.rf-public-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    position: sticky;
  }
  .auth-header.rf-public-header > .nav-toggle-btn {
    grid-column: 1;
    justify-self: start;
    margin: 0;
  }
  .auth-header.rf-public-header > a:first-of-type {
    grid-column: 2;
    justify-self: center;
    min-width: 0;
  }
  .auth-header.rf-public-header > .learn-header-actions {
    display: contents !important;
  }
  .auth-header.rf-public-header .lp-header-actions {
    display: none !important;
  }
  .auth-header.rf-public-header .standard-nav,
  .auth-header.rf-public-header .auth-nav {
    display: none !important;
  }
  .auth-header.rf-public-header .standard-nav.nav-open,
  .auth-header.rf-public-header .auth-nav.nav-open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    background: #0c0c0c;
    z-index: 250;
  }
  .auth-header.rf-public-header .standard-nav.nav-open a,
  .auth-header.rf-public-header .auth-nav.nav-open a {
    display: block !important;
    padding: 12px 0;
    border-bottom: 1px solid #1e1e1e;
    color: #bcb9b8;
    font-size: 14px;
  }
  .auth-header.rf-public-header .standard-nav.nav-open a:last-child,
  .auth-header.rf-public-header .auth-nav.nav-open a:last-child {
    border-bottom: 0;
  }
  .topbar { height: 76px; padding-left: 24px; padding-right: 24px; position: relative; }
  .brand { font-size: 18px; }
  .brand-logo { width: auto; height: 28px; }
  .hero { min-height: 520px; padding-left: 24px; padding-right: 24px; }
  .portal-nav { gap: 14px; }
  .logout-button { font-size: 11px; }
  .nav-toggle-btn { display: block; order: -1; margin-right: 4px; }
  .portal-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0c0c0c;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    padding: 8px 24px 16px;
    z-index: 250;
  }
  .portal-nav-links.nav-open { display: flex; }
  .portal-nav-links > a { padding: 12px 0; border-bottom: 1px solid #1e1e1e; color: #bcb9b8; text-decoration: none; font-size: 14px; }
  .portal-nav-links > a:last-child { border-bottom: 0; }
  .auth-header { height: 56px; padding-left: 24px; padding-right: 24px; }
  .auth-logo { height: 32px; }
  .auth-nav { gap: 12px; }
  .auth-nav a { display: none; }
  .auth-shell { min-height: calc(100vh - 56px); grid-template-columns: 1fr; gap: 38px; padding-left: 24px; padding-right: 24px; }
  .auth-intro h1 { font-size: 54px; }
  .auth-card { padding: 26px 22px; }
  .mfa-recovery-codes { grid-template-columns: 1fr; }
  .business-fields { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 430px) {
  .topbar {
    height: 64px;
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }
  .topbar .brand-logo {
    height: 26px;
    max-width: 128px;
  }
  .topbar .nav-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }
  .topbar .portal-nav {
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
  }
  .topbar .portal-nav > .learner {
    display: none;
  }
  .topbar .logout-button {
    min-width: 54px;
    min-height: 44px;
    padding: 0 4px;
    white-space: nowrap;
  }
  .topbar .dd-theme-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }
  .topbar .dd-theme-toggle::before {
    content: "◐";
    color: #d9d9d7;
    font-size: 20px;
  }
}

@media (max-width: 700px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body,
  main,
  section,
  header,
  footer,
  .topbar,
  .auth-header,
  .hero,
  .library,
  .admin-main,
  .admin-panel,
  .certificate-banner-inner,
  .auth-shell,
  .auth-card,
  .auth-intro,
  .course-grid,
  .course-card,
  .card-body,
  .section-heading,
  .metric-grid,
  .metric-card {
    max-width: 100%;
    min-width: 0;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button,
  label,
  input,
  textarea,
  select,
  .title,
  .course-count,
  .learner,
  .portal-nav,
  .portal-nav-links {
    overflow-wrap: anywhere;
  }

  img,
  svg,
  canvas,
  video {
    max-width: 100%;
    height: auto;
  }

  .topbar {
    gap: 12px;
  }

  .portal-nav {
    min-width: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero::after {
    width: 300px;
    height: 300px;
    right: -140px;
    top: -170px;
    box-shadow: 0 0 0 48px rgba(255,91,23,.025), 0 0 0 96px rgba(255,91,23,.02);
  }

  h1,
  .hero h1,
  .auth-intro h1 {
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1.04;
  }

  h2,
  .admin-panel h2,
  .auth-card h2 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.08;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .title {
    min-height: 0;
    overflow: visible;
  }

  .card-actions {
    flex-wrap: wrap;
  }

  .launch-button {
    min-width: 0;
  }

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

  .auth-shell {
    padding-top: 48px;
    padding-bottom: 64px;
    overflow-x: hidden;
  }

  .auth-shell::before {
    width: 320px;
    height: 320px;
    left: auto;
    right: -140px;
    top: -190px;
  }

  .auth-card {
    width: 100%;
  }

  .auth-nav {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .topbar,
  .hero,
  .library,
  .admin-main,
  .certificate-banner-inner,
  .auth-shell,
  .auth-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-logo {
    max-width: 190px;
    object-fit: contain;
  }

  .admin-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 700px) {
  .lp-sections,
  .lp-section,
  .lp-trust,
  .lp-cta,
  .lp-footer,
  .lp-full,
  .lp-cards,
  .lp-module-grid,
  .lp-pricing-grid,
  .lp-module,
  .lp-price-card,
  .lp-card,
  .lp-who-item,
  .lp-author,
  .pk-shell,
  .pk-grid,
  .pk-card,
  .tool-hero,
  .features-grid,
  .feature-card,
  .preview-section,
  .preview-wrap,
  .preview-tiles,
  .preview-tile,
  .cc-tiles,
  .cc-tile,
  .how-section,
  .buy-section,
  .buy-card {
    max-width: 100%;
    min-width: 0;
  }

  .lp-section,
  .lp-trust,
  .lp-cta,
  .lp-footer {
    overflow-x: hidden;
  }

  .lp-cards,
  .lp-module-grid,
  .lp-pricing-grid,
  .pk-grid,
  .features-grid,
  .preview-tiles,
  .cc-tiles {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .lp-section h2,
  .lp-cta h2,
  .tool-hero h1,
  .pk-intro h1 {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .lp-module {
    flex-direction: column;
  }

  .tool-hero br,
  .tool-subtitle br {
    display: none;
  }
}
/* Shared public-product hero typography. Due Diligence Check is the reference. */
.rf-product-hero-kicker {
  color: #ff5b17;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rf-product-hero-title {
  color: #f5f5f3;
  font-family: "Futura Lt BT", "Helvetica Neue", sans-serif;
  font-size: clamp(43px, 4.25vw, 62px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.rf-product-hero-title em {
  color: #ff5b17;
  font-style: normal;
}
@media (max-width: 600px) {
  .rf-product-hero-title { font-size: 42px; }
}
