@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap");
:root {
  --navy: #0a345b;
  --blue: #135498;
  --blue-dark: #082f5b;
  --sky: #e7f0f8;
  --gold: #eb9815;
  --gold-dark: #cf810f;
  --ink: #111;
  --muted: #666f78;
  --neutral: #929295;
  --line: #dde3e8;
  --paper: #f6f7f8;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(19, 84, 152, 0.13);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 99;
  padding: 10px 16px;
  background: #fff;
  color: var(--navy);
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  min-height: 96px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 max(30px, calc((100vw - 1280px) / 2));
  border-top: 7px solid var(--blue);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 330px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}
.portal-title {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  margin-right: auto;
  color: var(--blue);
}
.portal-title span {
  display: block;
  color: var(--neutral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.portal-title strong {
  display: block;
  color: var(--blue);
  font: 800 22px/1.2 "Manrope";
}
.header-actions {
  display: flex;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.text-button,
.help-link {
  border: 0;
  background: none;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}
.text-button:hover,
.help-link:hover {
  text-decoration: underline;
}
.library-bar {
  height: 43px;
  background: var(--navy);
  color: #cfe0e8;
  display: flex;
  align-items: center;
  padding: 0 max(30px, calc((100vw - 1280px) / 2));
  gap: 18px;
  font-size: 12px;
}
.library-bar a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.library-bar span {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding-left: 18px;
}
.welcome-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(440px, 0.85fr);
  background: var(--blue);
  position: relative;
  overflow: hidden;
}
.welcome-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(235, 152, 21, 0.18),
      transparent 32%
    ),
    linear-gradient(
      125deg,
      transparent 55%,
      rgba(255, 255, 255, 0.045) 55% 56%,
      transparent 56% 64%,
      rgba(255, 255, 255, 0.035) 64% 65%,
      transparent 65%
    );
  pointer-events: none;
}
.welcome-copy {
  color: #fff;
  padding: clamp(70px, 10vw, 150px) clamp(30px, 8vw, 130px);
  align-self: center;
  position: relative;
}
.kicker,
.mini-kicker {
  display: block;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.welcome-copy h1 {
  font: 600 clamp(46px, 5.5vw, 84px)/1.02 "Manrope";
  letter-spacing: -0.05em;
  margin: 0 0 28px;
}
.welcome-copy h1 em {
  font-style: normal;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}
.welcome-copy > p {
  color: #c8d7df;
  font-size: 18px;
  max-width: 650px;
}
.trust-row {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  color: #d8e6eb;
  font-size: 13px;
}
.trust-row span:before {
  content: "✓";
  color: var(--gold);
  margin-right: 8px;
  font-weight: 700;
}
.auth-card {
  background: #fff;
  margin: clamp(36px, 6vw, 80px) clamp(28px, 6vw, 90px) clamp(36px, 6vw, 80px) 0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  align-self: center;
  overflow: hidden;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  border: 0;
  background: #f1f5f6;
  color: var(--muted);
  padding: 19px;
  cursor: pointer;
  font-weight: 700;
}
.auth-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
  box-shadow: inset 0 -3px var(--gold);
}
.auth-form {
  padding: clamp(28px, 4vw, 50px);
}
.auth-form h2,
.dialog-head h2 {
  font: 700 30px/1.15 "Manrope";
  color: var(--navy);
  margin: 0 0 8px;
}
.auth-form > div > p {
  color: var(--muted);
  margin: 0 0 26px;
}
.mini-kicker {
  color: var(--blue);
  margin-bottom: 8px;
}
.auth-form label,
.support-form label {
  display: block;
  color: #344b5b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.auth-form input,
.support-form input,
.support-form select,
.support-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #cbd7dc;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  margin-top: 6px;
  outline: none;
}
.auth-form input:focus,
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 84, 152, 0.12);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 60px;
}
.password-wrap button {
  position: absolute;
  right: 7px;
  top: 7px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.primary-button,
.light-button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: var(--gold);
  color: #111;
  font-weight: 700;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: 0.2s;
}
.primary-button:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}
.help-link {
  display: block;
  margin: 16px auto 0;
  font-size: 13px;
}
.privacy-note {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}
.form-status {
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 0;
  color: #a53a27;
}
.form-status.success {
  color: var(--blue);
}
.form-status a {
  color: inherit;
}
.library {
  background: #fff;
}
.feature-banner {
  min-height: 460px;
  height: clamp(420px, 42vw, 560px);
  background-color: #0d477c;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 64px clamp(24px, 7vw, 110px);
  display: flex;
  align-items: center;
}
.feature-banner:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 29, 55, 0.62), rgba(4, 29, 55, 0.24) 23%, rgba(4, 29, 55, 0) 42%);
  pointer-events: none;
}
.feature-inner {
  width: min(720px, 92vw);
  max-width: 720px;
  position: relative;
  z-index: 1;
  background: rgba(0, 82, 145, 0.9);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 20px 60px rgba(0, 28, 52, 0.22);
}
.feature-banner .mini-kicker {
  color: var(--gold);
}
.feature-banner h1 {
  font: 600 clamp(30px, 4vw, 54px)/1.08 "Manrope";
  letter-spacing: 0;
  margin: 0 0 16px;
}
.event-details {
  display: grid;
  gap: 5px;
  color: #fff;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.28;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0, 28, 52, 0.2);
}
.event-details span:last-child {
  font-weight: 500;
}
.feature-banner a {
  display: inline-flex;
  margin-top: 22px;
  background: var(--gold);
  padding: 13px 22px;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  gap: 18px;
}
.library-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  max-width: 1460px;
  margin: auto;
  min-height: 800px;
}
.program-sidebar {
  padding: 54px 28px 80px;
  border-right: 1px solid var(--line);
}
.sidebar-heading {
  padding: 0 15px 18px;
}
.sidebar-heading h2 {
  font: 700 26px "Manrope";
  color: var(--navy);
  margin: 0;
}
.program-sidebar nav {
  display: grid;
  gap: 3px;
}
.program-sidebar button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 9px;
  color: #536572;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
}
.program-sidebar button span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #edf3f4;
  color: var(--blue);
  font-size: 10px;
}
.program-sidebar button:hover {
  background: #f3f7f7;
  color: var(--navy);
}
.program-sidebar button[aria-current="page"] {
  background: var(--navy);
  color: #fff;
}
.program-sidebar button[aria-current="page"] span {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
}
.program-main {
  padding: 60px clamp(30px, 6vw, 90px) 100px;
  min-width: 0;
}
.mobile-program-select {
  display: none;
}
.program-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.program-head h1 {
  font: 700 clamp(34px, 4vw, 50px)/1.1 "Manrope";
  letter-spacing: -0.035em;
  color: var(--navy);
  margin: 0 0 12px;
}
.program-head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.count-badge {
  align-self: flex-start;
  background: var(--sky);
  color: var(--blue);
  border-radius: 20px;
  padding: 7px 12px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.content-section {
  margin-top: 42px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title h2 {
  font: 700 22px "Manrope";
  color: var(--navy);
  margin: 0;
}
.section-title span {
  font-size: 12px;
  color: var(--muted);
}
.resource-list {
  display: grid;
  gap: 12px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  transition: 0.2s;
  background: #fff;
}
.resource-card:hover {
  border-color: rgba(19, 84, 152, 0.38);
  box-shadow: 0 10px 25px rgba(19, 84, 152, 0.09);
  transform: translateY(-1px);
}
.resource-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--sky);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.resource-copy strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}
.resource-copy small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.resource-group {
  display: inline-block;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.resource-arrow {
  color: var(--blue);
  font-size: 22px;
}
.empty-state {
  border: 1px dashed #b9c9cf;
  background: #f7f9f9;
  border-radius: 13px;
  padding: 24px;
  color: var(--muted);
}
.empty-state.compact {
  padding: 18px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.archive-grid .resource-card {
  grid-template-columns: 44px 1fr auto;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(8, 45, 73, 0.08);
}
.playlist-card {
  grid-column: 1 / -1;
}
.playlist-card .video-frame {
  aspect-ratio: 21 / 9;
}
.playlist-videos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}
.playlist-player {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(8, 45, 73, 0.08);
}
.playlist-main {
  min-width: 0;
  border-right: 1px solid var(--line);
}
.playlist-queue {
  max-height: 520px;
  overflow: auto;
  background: #f6f8fa;
}
.playlist-queue-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
}
.playlist-queue-head span {
  color: #d7e6ed;
  font-size: 12px;
}
.playlist-queue button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 13px 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.playlist-queue button:hover,
.playlist-queue button.active {
  background: #fff;
}
.playlist-queue button.active {
  box-shadow: inset 4px 0 var(--gold);
}
.playlist-queue button span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.playlist-queue button strong {
  font-size: 14px;
  line-height: 1.35;
  color: var(--navy);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(19, 84, 152, 0.9), rgba(8, 47, 91, 0.86)),
    var(--blue-dark);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-copy {
  padding: 18px 20px 20px;
}
.video-copy h3 {
  margin: 3px 0 8px;
  color: var(--navy);
  font: 700 18px/1.3 "Manrope";
}
.video-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.video-copy a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}
.video-copy a:hover {
  text-decoration: underline;
}
.support-strip {
  background: var(--navy);
  color: #fff;
  padding: 55px clamp(24px, 8vw, 130px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}
.support-strip h2 {
  font: 600 32px "Manrope";
  margin: 0;
}
.support-strip p {
  color: #cbdce3;
  margin: 8px 0 0;
}
.support-strip .mini-kicker {
  color: var(--gold);
}
.light-button {
  width: auto;
  background: #fff;
  color: var(--navy);
  gap: 28px;
  min-width: 220px;
}
.light-button:hover {
  background: #eaf3f4;
}
footer {
  background: #061e31;
  color: #aebfc8;
  padding: 34px clamp(24px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 13px;
}
.footer-brand {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
.footer-brand span {
  color: var(--gold);
  font-weight: 500;
  margin-left: 4px;
}
footer p {
  text-align: center;
}
footer > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
footer a,
footer button {
  color: #c9d8df;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
footer a:hover,
footer button:hover {
  color: #fff;
}
dialog {
  width: min(600px, calc(100% - 30px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 35px 90px rgba(3, 25, 40, 0.35);
}
dialog::backdrop {
  background: rgba(4, 27, 43, 0.72);
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  padding: 28px 34px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-head button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf2f3;
  color: var(--navy);
  font-size: 24px;
  cursor: pointer;
}
.support-form {
  padding: 26px 34px 34px;
}
.support-form textarea {
  resize: vertical;
}
@media (max-width: 980px) {
  .welcome-shell {
    grid-template-columns: 1fr;
  }
  .welcome-copy {
    padding: 70px 30px 40px;
  }
  .auth-card {
    margin: 0 24px 60px;
  }
  .library-layout {
    grid-template-columns: 1fr;
  }
  .program-sidebar {
    display: none;
  }
  .mobile-program-select {
    display: block;
    margin-bottom: 30px;
  }
  .mobile-program-select label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    display: block;
    margin-bottom: 6px;
  }
  .mobile-program-select select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
  }
  .program-main {
    padding-top: 40px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .playlist-player {
    grid-template-columns: 1fr;
  }
  .playlist-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .playlist-queue {
    max-height: 360px;
  }
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }
  footer p {
    margin: 0;
  }
  footer > div:last-child {
    justify-content: center;
  }
}
@media (max-width: 620px) {
  .site-header {
    min-height: 78px;
    padding: 0 18px;
  }
  .portal-title {
    display: none;
  }
  .header-actions {
    gap: 3px;
  }
  .header-actions button {
    font-size: 12px;
  }
  .welcome-shell {
    min-height: calc(100vh - 78px);
  }
  .welcome-copy {
    padding-top: 52px;
  }
  .welcome-copy h1 {
    font-size: 42px;
  }
  .trust-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
  }
  .auth-card {
    margin: 0 12px 40px;
  }
  .auth-form {
    padding: 27px 20px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .feature-banner {
    padding: 50px 24px;
    min-height: 390px;
    height: auto;
  }
  .program-main {
    padding: 36px 18px 70px;
  }
  .program-head {
    display: block;
  }
  .count-badge {
    display: inline-block;
    margin-top: 18px;
  }
  .resource-card {
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    padding: 17px 14px;
  }
  .resource-icon {
    width: 40px;
    height: 40px;
  }
  .support-strip {
    display: block;
    padding: 45px 24px;
  }
  .support-strip .light-button {
    margin-top: 24px;
    width: 100%;
  }
  footer > div:last-child {
    flex-wrap: wrap;
  }
  .dialog-head,
  .support-form {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.welcome-shell {
  min-height: calc(100vh - 139px);
}
.feature-banner {
  position: relative;
  overflow: hidden;
}
.feature-inner {
  animation: slideIn 0.38s ease;
}
.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 12px 0 6px;
  color: #d9e7f4;
  font-size: 13px;
  font-weight: 600;
}
.event-meta span:before {
  content: "•";
  color: var(--gold);
  margin-right: 8px;
}
.carousel-controls {
  position: absolute;
  right: clamp(24px, 7vw, 110px);
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(5, 36, 58, 0.55);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.carousel-controls button:hover {
  background: #fff;
  color: var(--navy);
}
.carousel-dots {
  display: flex;
  gap: 7px;
  margin: 0 6px;
}
.carousel-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}
.carousel-dots button.active {
  background: var(--gold);
  transform: scale(1.25);
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1180px) {
  .header-actions {
    border-left: 0;
    padding-left: 0;
  }
  .brand {
    flex-basis: 280px;
  }
}
@media (max-width: 620px) {
  .site-header {
    min-height: 78px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    flex-basis: 190px;
  }
  .brand img {
    max-height: 45px;
  }
  .library-bar {
    padding: 0 16px;
  }
  .library-bar span {
    display: none;
  }
  .welcome-shell {
    min-height: calc(100vh - 121px);
  }
  .carousel-controls {
    right: 20px;
    bottom: 20px;
  }
  .carousel-controls > button {
    display: none;
  }
}
