﻿:root {
  --navy: #073a70;
  --navy-dark: #04305d;
  --teal: #029b9f;
  --teal-dark: #007d82;
  --text: #0a315f;
  --muted: #5c7191;
  --line: #cbd7e5;
  --soft-line: #e4edf4;
  --pale-blue: #eef8fb;
  --pale-teal: #e6f8f7;
  --white: #ffffff;
  --green: #4fbf55;
  --shadow: 0 10px 30px rgba(10, 49, 95, 0.08);
  --display: "Inter", "Noto Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --sans: "Inter", "Noto Sans", "Segoe UI", system-ui, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #f6f9fc;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-shell {
  max-width: 1840px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(8, 49, 93, 0.08), 0 12px 40px rgba(20, 46, 76, 0.08);
}

.site-announcement {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 56px;
  color: var(--white);
  background: linear-gradient(90deg, #041e3a 0%, #073a70 40%, #027a7e 100%);
  font-size: 13px;
  border-bottom: 1px solid rgba(0,155,159,0.3);
}

.site-announcement div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-announcement strong {
  flex: 0 0 auto;
  font-weight: 900;
}

.site-announcement span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-announcement button {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 54px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--soft-line);
  box-shadow: 0 4px 24px rgba(7, 58, 112, 0.07), 0 1px 0 rgba(0,155,159,0.08);
  backdrop-filter: blur(14px);
}

.brand {
  width: 178px;
  height: 50px;
  display: flex;
  align-items: center;
  flex: 0 0 178px;
}

.brand img {
  width: 100%;
  max-height: 48px;
  height: auto;
  display: block;
  object-fit: contain;
}

.main-nav {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #082f5d;
  font-size: 13px;
  font-weight: 700;
}

.main-nav,
.tabs,
.toolbar,
.curriculum-card {
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
.toolbar::-webkit-scrollbar,
.curriculum-card::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  white-space: nowrap;
}

.main-nav a.is-active {
  color: var(--teal-dark);
  border-color: #9dd8db;
  background: linear-gradient(135deg, #eafbfb, #f3fefe);
  box-shadow: 0 2px 8px rgba(0, 155, 159, 0.12);
}

.main-nav a:hover:not(.is-active) {
  color: var(--navy);
  background: #f0f8fb;
  border-color: #ddeef5;
}

/* Login link styled as a button pill */
#loginNavLink {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
  background: transparent !important;
  font-weight: 800 !important;
  padding: 0 16px !important;
}

#loginNavLink:hover {
  background: var(--navy) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(7, 58, 112, 0.2) !important;
}

.chevron,
.caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.caret {
  width: 9px;
  height: 9px;
}

.caret.small {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
}

.caret.right {
  transform: rotate(-45deg);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--navy);
  border-radius: 5px;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--teal-dark);
  background: #f3fbfc;
}

.icon-button svg {
  width: 23px;
  height: 23px;
}

.mega-menu {
  position: absolute;
  top: calc(100% - 1px);
  right: 48px;
  left: 48px;
  z-index: 60;
  display: none;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 10px 10px;
  background: var(--white);
  box-shadow: 0 28px 60px rgba(10, 49, 95, 0.18), 0 8px 20px rgba(10,49,95,0.08);
  overflow: hidden;
}

.mega-menu.is-open {
  display: block;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 280px;
  gap: 0;
}

/* Section columns */
.mega-menu section {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--soft-line);
  background: #fafcfe;
}

.mega-menu h2 {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Menu item buttons */
.mega-menu button {
  position: relative;
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 4px;
  padding: 9px 12px 9px 22px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 130ms ease, color 130ms ease;
}

/* Teal dot bullet */
.mega-menu button::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b0d8dc;
  transition: background 130ms ease, transform 130ms ease;
}

.mega-menu button:hover {
  background: #edf8f9;
  color: var(--navy);
}

.mega-menu button:hover::before {
  background: var(--teal);
  transform: translateY(-50%) scale(1.3);
}

.mega-menu button:first-of-type {
  margin-top: 2px;
}

.mega-menu button .mm-text {
  min-width: 0;
  flex: 1;
}

.mega-menu button strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.mega-menu button span {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

/* Dark aside panel */
.mega-menu aside {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: linear-gradient(160deg, #04305d 0%, #073a70 55%, #016c70 100%);
  color: var(--white);
}

.mega-menu aside strong {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.mega-menu aside p {
  margin: 10px 0 20px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  line-height: 1.65;
  flex: 1;
}

/* CTA button inside dark aside - white outlined */
.mega-menu aside .primary-button {
  align-self: flex-start;
  min-height: 38px;
  padding: 0 18px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255,255,255,0.12);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.mega-menu aside .primary-button:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
}

.global-search {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.global-search.is-open {
  display: block;
}

.global-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 29, 56, 0.42);
}

.global-search-box {
  position: relative;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 70px);
  margin: 34px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(4, 32, 62, 0.25);
}

.global-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--soft-line);
}

.global-search-head h2 {
  margin: 0;
  font-size: 28px;
}

.global-search-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.global-search-field {
  margin: 18px 24px 0;
}

.global-search-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 24px;
  overflow-x: auto;
}

.global-search-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.global-search-tabs button.is-active {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.global-search-results {
  max-height: min(560px, calc(100vh - 280px));
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 0 24px 24px;
}

.global-result {
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fbfdff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.global-result:hover {
  border-color: var(--teal);
  background: #eefafb;
}

.global-result img,
.global-result > span {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.global-result img {
  object-fit: cover;
}

.global-result > span {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

.global-result strong,
.global-result small {
  display: block;
}

.global-result strong {
  color: var(--navy);
  font-size: 14px;
}

.global-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.global-result em {
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-search {
  margin: 10px 0 0;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: #fbfdff;
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.blue-bar {
  height: 35px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, var(--navy-dark), #064b88);
  color: var(--white);
}

.crumbs {
  width: 100%;
  max-width: 1780px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 48px;
  margin: 0 auto;
  font-size: 12px;
}

.crumbs span {
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
}

.content {
  padding: 27px 48px 22px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) 1fr;
  align-items: center;
  gap: 36px;
  padding: 58px 58px 40px;
  background: #f8fbfd;
  border-bottom: 1px solid var(--line);
}

.home-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 32%, rgba(255, 255, 255, 0.66) 50%, rgba(255, 255, 255, 0.08) 78%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.24));
  pointer-events: none;
}

.home-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.015);
  transition: opacity 900ms ease, transform 6800ms ease;
}

.home-hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.home-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.home-copy h1 {
  font-size: clamp(42px, 3.3vw, 58px);
  line-height: 1.04;
}

.home-copy p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #294f74;
  font-size: 18px;
  line-height: 1.55;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.home-actions .primary-button,
.home-actions .ghost-button {
  min-width: 220px;
  min-height: 50px;
  padding: 0 26px;
  font-size: 13px;
}

.home-actions .ghost-button {
  border-color: #9eb8cc;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  font-weight: 800;
}

.home-actions .ghost-button:hover {
  border-color: var(--teal);
  background: #eefcfc;
  color: var(--teal-dark);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 1fr));
  gap: 24px;
  max-width: 650px;
  margin-top: 46px;
}

.home-feature-grid button {
  display: grid;
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-feature-grid button:hover {
  border-color: #b8e8ea;
  background: rgba(255, 255, 255, 0.82);
}

.home-feature-grid .feat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #e6f7f8, #d0eef0);
  color: var(--teal-dark);
}

.home-feature-grid .feat-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-feature-grid strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
}

.home-feature-grid small {
  color: #43617f;
  font-size: 12px;
  line-height: 1.45;
}

.hero-slide-dots {
  display: flex;
  gap: 9px;
  margin-top: 28px;
}

.hero-slide-dots button {
  width: 36px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #c7d6e5;
  cursor: pointer;
}

.hero-slide-dots button.is-active {
  background: var(--teal);
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.home-stats span {
  color: #45627f;
  font-size: 13px;
  line-height: 1.4;
}

.home-stats strong {
  display: block;
  color: var(--navy);
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.study-board {
  display: none;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #b8d4df;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(7, 58, 112, 0.16);
}

.board-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: linear-gradient(90deg, var(--navy-dark), #07518f);
}

.board-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

.board-content {
  padding: 28px;
}

.board-content h2 {
  font-size: 28px;
}

.board-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.board-rows {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.board-rows button {
  min-height: 52px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 82px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  color: #2f5578;
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
}

.board-rows button:hover {
  border-color: #9bd6d8;
  background: #eefafb;
}

.board-rows strong {
  color: var(--navy);
  font-size: 13px;
}

.board-rows span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.board-rows em {
  color: var(--teal-dark);
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.instrument-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  border-top: 1px solid var(--soft-line);
  background: var(--soft-line);
}

.instrument-strip img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  display: block;
  object-fit: cover;
  background: #f4f8fb;
}

.home-section {
  max-width: 1780px;
  margin: 0 auto;
  padding: 32px 58px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.notes-copy h2 {
  font-size: 34px;
  line-height: 1.08;
  position: relative;
  padding-bottom: 14px;
}

.section-heading h2::after,
.notes-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 4px;
  border-radius: 99px;
  background: var(--teal);
}

.section-heading p,
.notes-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.home-card {
  min-height: 148px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 18px;
  align-items: center;
  text-align: left;
}

.home-card .program-icon {
  grid-row: 1 / 4;
  align-self: start;
  margin-bottom: 0;
}

.home-card h3 {
  min-height: auto;
  font-size: 19px;
}

.home-card p {
  margin: 5px 0 0;
}

.home-card button {
  width: min(210px, 100%);
  margin-top: 12px;
}

.notes-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.35fr) minmax(300px, 0.88fr);
  gap: 20px;
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
  background: #fbfdff;
}

.notes-copy {
  align-self: center;
}

.notes-copy .outline-accent {
  min-height: 42px;
  margin-top: 24px;
  padding: 0 22px;
}

.home-lesson-list {
  display: grid;
  gap: 8px;
}

.home-lesson-list button {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 56px;
  padding: 9px 54px 9px 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.home-lesson-list button::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 22px;
  height: 28px;
  border: 1px solid #8da4ba;
  border-radius: 3px;
  background: linear-gradient(#fff, #f4f8fb);
}

.home-lesson-list button::after {
  content: "New";
  position: absolute;
  right: 12px;
  top: 15px;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
  background: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.home-lesson-list button:hover {
  border-color: var(--teal);
}

.home-lesson-list span {
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.home-lesson-list small {
  color: #4d6986;
  font-size: 10px;
  line-height: 1.55;
}

.home-outline-table,
.latest-lessons {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.outline-table-head,
.latest-lessons > div:first-child {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px;
  color: var(--white);
  background: linear-gradient(90deg, var(--navy-dark), #07518f);
}

.outline-table-head strong {
  font-size: 13px;
}

.outline-table-head button,
.latest-lessons > div:first-child button {
  border: 0;
  color: var(--white);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.outline-table-body {
  display: grid;
}

.outline-table-body button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 88px 96px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  color: #335878;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.outline-table-body button:hover {
  background: #eefafb;
}

.outline-table-body span {
  color: var(--teal-dark);
  font-weight: 800;
}

.outline-table-body strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outline-table-body em {
  color: #294f74;
  font-size: 12px;
  font-style: normal;
  text-align: right;
}

.latest-lessons > div:first-child h3 {
  color: var(--white);
  font-size: 15px;
}

.latest-lessons .home-lesson-list {
  padding: 9px;
}

.instrument-preview-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.instrument-preview-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.instrument-preview-grid article:hover {
  border-color: #9dd5d8;
  box-shadow: 0 8px 20px rgba(0, 155, 159, 0.1);
  transform: translateY(-2px);
}

.instrument-preview-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #f4f8fb;
}

.instrument-preview-grid h3 {
  padding: 10px 12px 12px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.resource-links-home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 20px;
  padding-bottom: 34px;
}

.resource-links-home button {
  min-height: 68px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px dashed #8ea2b7;
  color: #38465a;
  background: transparent;
  font-size: 20px;
  text-align: left;
  cursor: pointer;
}

.resource-links-home button:hover {
  color: var(--teal-dark);
  background: #f7fbfd;
}

.resource-content {
  max-width: 1780px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 320px;
  gap: 24px;
  margin: 0 auto;
}

.resource-menu,
.resource-link-panel,
.resource-article {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.resource-menu {
  position: sticky;
  top: 98px;
  align-self: start;
  overflow: hidden;
}

.resource-menu button {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px dashed #aebdcc;
  color: #34465c;
  background: var(--white);
  font-size: 18px;
  text-align: left;
  cursor: pointer;
}

.resource-menu button.is-active,
.resource-menu button:hover {
  color: var(--navy);
  background: #eefafb;
}

.resource-article {
  padding: 28px 34px;
}

.resource-blocks {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: #294f74;
  font-size: 15px;
  line-height: 1.75;
}

.resource-blocks h2 {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
  font-size: 25px;
}

.resource-blocks p,
.resource-blocks ul {
  margin: 0;
}

.resource-blocks ul {
  padding-left: 20px;
}

.resource-link-panel {
  align-self: start;
  padding: 18px;
}

.resource-link-panel h2 {
  font-size: 20px;
}

#resourceLinks {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

#resourceLinks button {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  color: var(--navy);
  background: #fbfdff;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

#resourceLinks button:hover {
  border-color: var(--teal);
  background: #eefafb;
}

.topic-content,
.login-content {
  max-width: 1780px;
  margin: 0 auto;
}

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

.topic-lesson-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.05);
}

.topic-lesson-card.is-covered {
  border-color: #a7dfe1;
}

.topic-card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #f4f8fb;
  border-bottom: 1px solid var(--soft-line);
}

.topic-card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.topic-lesson-card:hover .topic-card-media img {
  transform: scale(1.04);
}

.topic-card-media figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(0deg, rgba(4, 28, 56, 0.72) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
}

.topic-card-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #eef8f9, #ddf0f2);
  border-bottom: 1px solid var(--soft-line);
}

.topic-card-placeholder.is-missing {
  background: linear-gradient(135deg, #f4f6f8, #ebeef2);
}

.topic-card-placeholder svg {
  width: 28px;
  height: 28px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.topic-card-placeholder.is-missing svg {
  stroke: #8da4ba;
}

.topic-card-placeholder span {
  max-width: 180px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.topic-card-placeholder.is-missing span {
  color: #8da4ba;
}

.topic-lesson-card > div {
  padding: 18px;
}

.topic-lesson-card span,
.revision-source-note {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: #e6f8f7;
  font-size: 11px;
  font-weight: 800;
}

.topic-lesson-card.is-missing span {
  color: #6d7890;
  background: #eef2f6;
}

.topic-lesson-card h2 {
  margin-top: 12px;
  font-size: 21px;
  line-height: 1.18;
}

.topic-lesson-card p {
  margin: 10px 0 16px;
  color: #43617f;
  font-size: 13px;
  line-height: 1.55;
}

.topic-lesson-card button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.topic-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-card-actions .quiz-outline-button,
.subtopic-quiz-link {
  color: var(--navy);
  border-color: #b7c8da;
  background: #f8fbff;
}

.subtopic-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
}

.subtopic-actions > button:first-child {
  min-width: 0;
  text-align: left;
}

.subtopic-quiz-link {
  min-height: 31px;
  padding: 0 8px;
  border: 1px solid #b7c8da;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.revision-source-note {
  margin: 0 0 16px;
}

.topic-card .has-notes::after,
.topic-card .missing-notes::after {
  margin-left: 7px;
  font-size: 10px;
  font-weight: 800;
}

.topic-card .has-notes::after {
  content: "Notes";
  color: var(--teal-dark);
}

.topic-card .missing-notes::after {
  content: "Blank";
  color: #7d8795;
}

.login-content {
  min-height: 620px;
  display: grid;
  place-items: center;
}

.dashboard-content {
  max-width: 1420px;
  margin: 0 auto;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 24px;
}

.dashboard-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(10, 49, 95, 0.06);
}

.dashboard-card > span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-card h2 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.12;
}

.dashboard-card p {
  max-width: 560px;
  color: var(--muted);
}

.continue-card {
  background:
    linear-gradient(135deg, rgba(238, 250, 251, 0.95), rgba(255, 255, 255, 0.98)),
    var(--white);
}

.dashboard-stat-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fbfdff;
}

.dashboard-stat-row strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.dashboard-stat-row small {
  color: var(--muted);
  font-weight: 700;
}

#dashboardScores button,
#dashboardRecommended button {
  width: 100%;
  display: block;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  color: var(--text);
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
}

#dashboardScores button:hover,
#dashboardRecommended button:hover {
  border-color: var(--teal);
  background: #eefafb;
}

#dashboardScores strong,
#dashboardScores small,
#dashboardRecommended strong,
#dashboardRecommended small {
  display: block;
}

#dashboardScores small,
#dashboardRecommended small {
  margin-top: 4px;
  color: var(--muted);
}

.login-panel {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-panel h1 {
  font-size: 36px;
}

.login-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-premium-shell {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(360px, 0.65fr);
  gap: 0;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(7, 58, 112, 0.14);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(10, 49, 95, 0.14), 0 8px 24px rgba(10,49,95,0.07);
}

/* Dark navy left panel */
.auth-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 640px;
  padding: 36px 38px 40px;
  background: linear-gradient(160deg, #04305d 0%, #073a70 55%, #016c70 100%);
  color: var(--white);
  overflow: hidden;
}

/* Subtle decorative circle in bg */
.auth-copy::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(0, 155, 159, 0.1);
  pointer-events: none;
}

.auth-copy::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.auth-copy > img {
  position: relative;
  z-index: 1;
  width: 170px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

.auth-media {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 220px;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(0,50,100,0.3);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
}

.auth-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.auth-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(4, 28, 56, 0.8), transparent);
  pointer-events: none;
}

.auth-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 22px;
  color: var(--white);
  font-family: var(--display);
  font-size: 36px;
  line-height: 1.08;
}

.auth-copy p {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 12px;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.65;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
}

.auth-benefits span::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

/* Right panel — form card */
.auth-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 38px 36px;
  border-left: 1px solid var(--soft-line);
  background: #ffffff;
  border-top: 4px solid var(--teal);
}

.admin-auth-shell .auth-card {
  border-top-color: var(--navy);
}

/* Tab switcher */
.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fa;
}

.auth-tabs-two {
  grid-template-columns: repeat(2, 1fr);
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: #4a6680;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.auth-tabs button:hover:not(.is-active) {
  color: var(--navy);
  background: rgba(255,255,255,0.7);
}

.auth-tabs button.is-active {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 2px 8px rgba(0,155,159,0.25);
}

.admin-auth-shell .auth-tabs button.is-active {
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(7,58,112,0.25);
}

.auth-form {
  display: none !important;
}

.auth-form.is-active {
  display: grid !important;
}

.auth-message {
  min-height: 42px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cce6ef;
  border-radius: 6px;
  color: #335a7a;
  background: #f3fbfd;
  font-size: 13px;
  line-height: 1.45;
}

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

.dashboard-actions,
.lesson-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.admin-module-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.05);
}

.admin-module-card[data-admin-panel] {
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-module-card[data-admin-panel]:hover,
.admin-module-card[data-admin-panel].is-active {
  border-color: rgba(0, 155, 159, 0.38);
  box-shadow: 0 16px 34px rgba(10, 49, 95, 0.1);
  transform: translateY(-2px);
}

.admin-module-card span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-module-card strong {
  display: block;
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.05;
}

.admin-module-card p {
  margin-top: 12px;
  color: #385a78;
  font-size: 14px;
  line-height: 1.65;
}

.admin-workbench {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(10, 49, 95, 0.05);
}

.admin-workbench-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.admin-workbench-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
}

.admin-workbench-head p {
  max-width: 680px;
  margin-top: 8px;
  color: #375b7a;
  line-height: 1.55;
}

.admin-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-panel-tabs button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.admin-panel-tabs button.is-active {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: #eefcfc;
}

.admin-panel-body {
  margin-top: 18px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: var(--navy);
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f2f9fb;
  color: #254967;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-empty-state {
  padding: 28px;
  border: 1px dashed #bfd9e5;
  border-radius: 8px;
  background: #f8fcfd;
  color: #375b7a;
  line-height: 1.55;
}

.admin-editor {
  display: grid;
  gap: 18px;
}

.admin-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.admin-editor-toolbar label,
.admin-editor-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.admin-editor-toolbar select,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-form textarea {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fbfdff;
  font: inherit;
}

.admin-editor-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.admin-editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-editor-form label:has(textarea),
.admin-editor-form .auth-message,
.admin-editor-form button {
  grid-column: 1 / -1;
}

.admin-editor-rows {
  display: grid;
  gap: 10px;
}

.maintenance-card strong {
  color: var(--teal-dark);
}

.maintenance-panel {
  display: grid;
  gap: 18px;
}

.maintenance-status {
  padding: 20px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f8fcfd;
}

.maintenance-status.is-on {
  border-color: rgba(181, 88, 0, 0.28);
  background: #fff8ef;
}

.maintenance-status.is-off {
  border-color: rgba(0, 155, 159, 0.26);
  background: #f2fbfb;
}

.maintenance-status span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-status.is-on span {
  color: #a14f00;
}

.maintenance-status strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
}

.maintenance-status p {
  margin-top: 8px;
  color: #3a5f7b;
  line-height: 1.55;
}

.maintenance-panel label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.maintenance-panel textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fbfdff;
  font: inherit;
  line-height: 1.5;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  padding: 13px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfdff;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.maintenance-lock {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 251, 0.94)),
    url("assets/home/nurses-online-discussion-hero-slide-practical-skills.png") center / cover;
}

.maintenance-lock.is-visible {
  display: grid;
}

.maintenance-lock-card {
  width: min(620px, 100%);
  padding: 38px;
  border: 1px solid rgba(0, 155, 159, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 80px rgba(10, 49, 95, 0.16);
}

.maintenance-lock-card img {
  width: 188px;
  max-width: 70%;
  height: auto;
}

.maintenance-lock-card span {
  display: block;
  margin-top: 30px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.maintenance-lock-card h2 {
  max-width: 520px;
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.05;
}

.maintenance-lock-card p {
  margin-top: 14px;
  color: #335b7b;
  font-size: 16px;
  line-height: 1.65;
}

.maintenance-lock-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ad-slot {
  margin: 22px 0;
  border-radius: 8px;
  overflow: hidden;
}

/* Collapse when no ad is injected */
.ad-slot:empty {
  display: none;
  margin: 0;
}

.certificate-content {
  max-width: 1480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin: 0 auto;
}

.certificate-sheet {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfc;
  box-shadow: 0 18px 42px rgba(10, 49, 95, 0.08);
}

.certificate-border {
  min-height: 660px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 54px;
  border: 8px double rgba(0, 60, 115, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,250,251,0.92)),
    url("assets/home/nurses-online-discussion-hero-slide-digital-curriculum.png") center / cover;
  text-align: center;
}

.certificate-border img {
  width: 210px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.certificate-border span {
  margin-top: 34px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-border h1 {
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 58px;
  line-height: 1;
}

.certificate-border p {
  max-width: 720px;
  margin-top: 16px;
  color: #315a7c;
  font-size: 18px;
  line-height: 1.65;
}

.certificate-border h2 {
  margin-top: 18px;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 30px;
}

.certificate-border dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 28px;
}

.certificate-border dl div {
  padding: 14px;
  border: 1px solid rgba(0, 155, 159, 0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.82);
}

.certificate-border dt {
  color: #54718b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.certificate-border dd {
  margin-top: 6px;
  color: var(--navy);
  font-weight: 900;
}

.certificate-signatures {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  margin-top: 42px;
}

.certificate-signatures div {
  padding-top: 14px;
  border-top: 1px solid var(--navy);
}

.certificate-signatures strong,
.certificate-signatures small {
  display: block;
}

.certificate-signatures small {
  margin-top: 6px;
  color: #52708b;
}

.certificate-sheet.is-locked {
  filter: grayscale(0.55);
  opacity: 0.72;
}

.certificate-actions {
  position: sticky;
  top: 110px;
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(10, 49, 95, 0.06);
}

.certificate-actions h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: 28px;
}

.certificate-actions p {
  margin: 10px 0 18px;
  color: #365d7c;
  line-height: 1.6;
}

.certificate-actions button {
  width: 100%;
  margin-top: 10px;
}

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

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-form input,
.login-form select {
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1.5px solid #cdd8e5;
  border-radius: 7px;
  color: var(--text);
  background: #f8fafc;
  font-size: 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form select {
  padding-left: 14px;
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 155, 159, 0.14);
}

/* Input icons via background-image */
.login-form input[type="email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238da4ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px;
}

.login-form input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238da4ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px;
}

.login-form input[type="text"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238da4ba' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px;
}

/* Submit button full-width */
.login-form .primary-button {
  width: 100%;
  min-height: 50px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(0,155,159,0.28);
  transition: box-shadow 160ms ease, transform 120ms ease;
}

.login-form .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,155,159,0.34);
}

.admin-auth-shell .login-form .primary-button {
  background: linear-gradient(180deg, #0a4a8c, var(--navy-dark));
  border-color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(7,58,112,0.3);
}

.admin-auth-shell .login-form .primary-button:hover {
  box-shadow: 0 10px 24px rgba(7,58,112,0.38);
}

/* Auth message box */
.auth-message {
  min-height: 42px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #c5dae7;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  color: #2a4e6c;
  background: #f0f8fc;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(560px, calc(100vw - 32px));
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(0, 155, 159, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 60px rgba(10, 49, 95, 0.18);
}

.cookie-notice.is-visible {
  display: grid;
}

.cookie-notice strong {
  color: var(--navy);
  font-family: var(--display);
  font-size: 18px;
}

.cookie-notice p {
  margin-top: 5px;
  color: #365a7b;
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.library-content {
  max-width: 1780px;
  margin: 0 auto;
}

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

.library-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.library-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.library-chip:hover {
  border-color: var(--teal);
  background: #eefbfb;
  color: var(--teal-dark);
}

.library-chip.is-active {
  border-color: var(--teal);
  color: var(--white);
  background: var(--teal);
}

.library-chip.is-active:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.library-chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.28);
}

.library-card {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 0.58fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.045);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.library-card:hover {
  border-color: #9dd5d8;
  box-shadow: 0 14px 34px rgba(0, 155, 159, 0.12);
  transform: translateY(-2px);
}

.library-card > figure {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #eff7f9;
}

.library-card > figure img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #f4f8fb;
  transition: transform 0.35s ease;
}

.library-card:hover > figure img {
  transform: scale(1.05);
}

.library-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.library-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.library-course-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--navy);
  background: #e8f0f8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.library-source-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: #e0f6f6;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.library-source-badge.is-revision {
  color: #7a4500;
  background: #fff0db;
}

.library-card h2 {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.library-card p {
  margin: 12px 0 14px;
  color: #43617f;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.library-card button {
  min-height: 38px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, color 0.15s ease;
}

.library-card button svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.library-card button:hover {
  background: var(--teal);
  color: var(--white);
}

.library-card:hover button svg {
  transform: translateX(3px);
}

.library-card[data-source="revision"] button {
  border-color: #c87e00;
  color: #7a4500;
}

.library-card[data-source="revision"] button:hover {
  background: #c87e00;
  color: var(--white);
}

.library-card[data-source="revision"] {
  border-left: 3px solid #f0a030;
}

.program-content {
  max-width: 1780px;
  margin: 0 auto;
}

.program-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--display);
  letter-spacing: 0;
}

.program-heading h1 {
  font-size: 34px;
  line-height: 1.08;
}

.program-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.ghost-button,
.primary-button,
.outline-accent,
.wide-back,
.program-card button,
.side-card button,
.open-course {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid #b8c8da;
  color: var(--navy);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button svg {
  width: 15px;
  height: 15px;
}

.primary-button,
.open-course,
.program-card button.primary {
  border-color: var(--teal);
  color: var(--white);
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  box-shadow: 0 5px 12px rgba(0, 155, 159, 0.18);
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  height: 43px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #314a6d;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tabs button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
}

.tabs button.is-active svg {
  opacity: 1;
  color: var(--teal);
}

.tabs button.is-active {
  color: var(--teal);
  border-color: var(--teal);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 112px 178px 178px;
  gap: 18px;
  margin-top: 18px;
}

.search-field {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.search-field svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 13px;
}

select {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #314a6d;
  background: var(--white);
  font-size: 12px;
}

.curriculum-card {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid #b6d0de;
  border-radius: 7px;
  background: var(--white);
}

.year-row,
.semester-row {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
}

.year-row {
  height: 50px;
  padding: 0 22px;
  background: linear-gradient(180deg, var(--teal), #058b91);
  color: var(--white);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
}

.year-row span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.year-row svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke-width: 0;
}

.year-row.pale {
  color: var(--navy);
  background: #eef8fc;
  border-top: 1px solid #d5e6ef;
}

.year-row.pale svg {
  color: var(--navy);
}

.semester-row {
  height: 38px;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 28px;
  background: #e9f6f7;
  border-bottom: 1px solid #c9e1e8;
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 700;
}

.semester-row .caret:last-child {
  margin-left: auto;
  color: var(--navy);
}

.course-list {
  background: var(--white);
}

.course-row {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px 98px minmax(240px, 1fr) 90px 100px 82px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--soft-line);
  color: #526984;
  font-size: 12px;
  transition: background 0.12s ease;
  cursor: pointer;
}

.course-row:not(.current):hover {
  background: #f0f9fa;
}

.empty-row {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--soft-line);
}

.course-row strong,
.course-row b {
  color: var(--navy);
  font-weight: 700;
}

.course-row em {
  color: var(--text);
  font-style: normal;
}

.course-row.current {
  background: #e8f8f9;
  color: var(--navy);
  font-weight: 700;
}

.status-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #a9bfd5;
  border-radius: 50%;
}

.status-dot.checked {
  display: grid;
  place-items: center;
  border-color: var(--green);
  background: var(--green);
}

.status-dot.checked::after {
  width: 6px;
  height: 3px;
  content: "";
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.status-dot.current-ring {
  border-color: var(--teal);
  background: var(--white);
}

.open-course {
  min-height: 31px;
  padding: 0 22px;
}

.programs-section {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.course-outline {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.outline-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.outline-heading h2 {
  font-size: 24px;
}

.outline-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.outline-code {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 99px;
  color: var(--white);
  background: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.course-outline > h3 {
  margin-bottom: 16px;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
}

.module-outline-list {
  display: grid;
  gap: 18px;
}

.module-outline-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
}

.module-outline-card.is-selected {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(0, 155, 159, 0.08);
}

.module-outline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--soft-line);
  background: #f8fcfd;
}

.module-outline-head span {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.module-outline-head h3 {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.18;
}

.module-outline-head button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid #b8d6de;
  border-radius: 4px;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.module-outline-head button:hover {
  border-color: var(--teal);
  background: #eefbfb;
}

.module-topic-grid {
  padding: 16px;
}

.topic-number {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.topic-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topic-card:hover {
  border-color: #9dd5d8;
  box-shadow: 0 4px 14px rgba(0, 155, 159, 0.08);
}

.topic-card h4 {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.35;
}

.topic-card ul {
  margin: 0;
  padding-left: 18px;
  color: #294f74;
  font-size: 12px;
  line-height: 1.55;
}

.topic-card li + li {
  margin-top: 5px;
}

.topic-card button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  line-height: inherit;
  cursor: pointer;
}

.topic-card button:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.blank-note {
  min-height: 24px;
  color: var(--muted);
  font-size: 13px;
}

.module-coverage {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.module-coverage > span {
  color: var(--muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.coverage-bar {
  height: 5px;
  border-radius: 99px;
  background: #d9edf2;
  overflow: hidden;
}

.coverage-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width 0.4s ease;
  min-width: 3px;
}

.mod-has-notes {
  display: inline-block;
  width: fit-content;
  justify-self: start;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 99px;
  color: var(--teal-dark);
  background: #e0f6f6;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.instruments-content {
  max-width: 1780px;
  margin: 0 auto;
}

.instrument-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) minmax(160px, 220px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.instrument-toolbar select {
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.instrument-card {
  min-height: 315px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.05);
}

.instrument-media {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f4f8fb;
  border-bottom: 1px solid var(--soft-line);
}

.instrument-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instrument-body {
  padding: 16px 16px 18px;
}

.instrument-body h2 {
  color: var(--navy);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.15;
}

.instrument-body p {
  margin: 10px 0 0;
  color: #385a78;
  font-size: 13px;
  line-height: 1.55;
}

.programs-section h2 {
  font-size: 24px;
}

.programs-section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--teal);
}

.courses-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--soft-line);
}

.course-selector {
  margin-top: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--soft-line);
}

.course-selector .program-grid {
  margin-top: 18px;
}

.selected-program-heading {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 4px solid var(--teal);
}

.course-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  margin-top: 22px;
}

.course-feature-grid {
  display: grid;
  gap: 18px;
}

.course-feature-hero {
  position: relative;
  min-height: 206px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #e9f4f7;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(10, 49, 95, 0.08);
}

.course-feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.60) 52%, rgba(255, 255, 255, 0.06));
}

.course-feature-hero.is-primary {
  min-height: 430px;
}

.course-feature-hero > div {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 30px;
}

.course-feature-hero span,
.course-tab-intro span,
.course-info-grid span,
.course-exam-panel span,
.course-overview-main span {
  display: inline-flex;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.course-feature-hero h2 {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 42px;
  line-height: 1.05;
}

.course-feature-hero h3 {
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.12;
}

.course-feature-hero p {
  max-width: 560px;
  margin-top: 12px;
  color: #28476c;
  font-size: 15px;
  line-height: 1.65;
}

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

.course-hero-actions button {
  min-width: 160px;
}

.course-tab-panel {
  margin-top: 22px;
}

.course-tab-intro,
.course-exam-panel,
.course-overview-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.05);
}

.course-tab-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
}

.course-tab-intro h2,
.course-info-grid h2,
.course-exam-panel h2,
.course-overview-main h2 {
  margin-top: 8px;
  color: var(--navy);
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.18;
}

.course-tab-intro p,
.course-info-grid p,
.course-exam-panel p,
.course-overview-main p {
  margin-top: 8px;
  color: #385a78;
  font-size: 14px;
  line-height: 1.65;
}

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

.course-info-grid article,
.course-resource-grid button,
.course-overview-modules,
.course-overview-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.05);
}

.course-info-grid article {
  min-height: 205px;
  padding: 22px;
}

.course-exam-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 24px;
}

.course-exam-steps {
  display: grid;
  gap: 12px;
}

.course-exam-steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #f8fcfd;
}

.course-exam-steps b {
  width: 42px;
  height: 42px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--teal);
}

.course-exam-steps strong,
.course-resource-grid strong,
.course-overview-modules strong {
  color: var(--navy);
  font-size: 15px;
}

.course-exam-steps span,
.course-resource-grid span,
.course-overview-modules small {
  color: #45617e;
  font-size: 13px;
  line-height: 1.45;
}

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

.course-resource-grid button {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.course-resource-grid button:hover,
.course-overview-modules button:hover {
  border-color: var(--teal);
  background: #f1fbfc;
}

.course-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  overflow: hidden;
}

.course-overview-main {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 26px;
}

.course-overview-main dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.course-overview-main dl div {
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #f8fcfd;
}

.course-overview-main dt {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-overview-main dd {
  margin-top: 5px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.course-overview-modules {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px;
}

.course-overview-modules > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.course-overview-modules h3 {
  color: var(--navy);
  font-size: 17px;
}

.course-overview-modules > div button,
.course-overview-modules > button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.course-overview-modules > div button {
  min-height: 32px;
  padding: 0 12px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.course-overview-modules > button {
  width: 100%;
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding: 12px;
  text-align: left;
}

.course-overview-modules span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.program-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.program-card:hover {
  border-color: #9dd5d8;
  box-shadow: 0 12px 30px rgba(0, 155, 159, 0.12);
  transform: translateY(-3px);
}

.program-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
}

.program-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 6px 6px 0 0;
}

.card-active-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 99px;
  color: var(--white);
  background: var(--teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.program-card-cover {
  width: calc(100% + 40px);
  margin: -18px -20px 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  flex-shrink: 0;
}

.program-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.program-card:hover .program-card-cover img {
  transform: scale(1.04);
}

.program-card-stats {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px 8px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #f4f8fc;
}

.program-card-stats span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.program-card-stats b {
  display: block;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.program-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--teal);
  background: #d8f5ed;
}

.program-icon.blue {
  color: var(--navy);
  background: #d9ebff;
}

.program-icon.green {
  color: var(--teal);
  background: #dff5e9;
}

.program-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke-width: 0;
}

.program-card h3 {
  min-height: 48px;
  font-size: 17px;
  line-height: 1.18;
}

.program-card p {
  margin: 8px 0 0;
  color: #435e7e;
  font-size: 12px;
}

.program-card button {
  width: 170px;
  margin-top: auto;
}

.site-footer {
  display: flex;
  flex-direction: column;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 47, 90, 0.98), rgba(7, 81, 143, 0.98)),
    linear-gradient(90deg, var(--navy-dark), #07518f);
}

.mega-footer {
  border-top: 5px solid var(--teal);
}

/* ── CTA strip ── */
.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 58px;
  background: rgba(0, 155, 159, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-cta strong {
  display: block;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
}

.footer-cta span {
  display: block;
  margin-top: 4px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.footer-cta-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-cta-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.65);
}

/* ── Main grid ── */
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(150px, 1fr));
  gap: 52px;
  padding: 44px 58px 38px;
}

.footer-brand img {
  width: 210px;
  max-width: 100%;
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  background: var(--white);
}

.footer-brand p {
  max-width: 360px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-stats span {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-col h3,
.site-footer h3 {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.site-footer a {
  width: fit-content;
  display: block;
  margin: 9px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.12s ease;
}

.footer-col a:hover,
.site-footer a:hover {
  color: var(--white);
  text-decoration: none;
}

/* ── Bottom bar ── */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.footer-bottom nav {
  display: flex;
  gap: 24px;
}

.footer-bottom nav a {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom nav a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lesson-layout.is-visible {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr) 215px;
  grid-template-rows: 38px auto;
  min-height: calc(100vh - 76px);
}

.lesson-layout .blue-bar {
  grid-column: 1 / -1;
}

.lesson-layout .crumbs {
  padding: 0 48px;
}

.lesson-sidebar {
  padding: 24px 20px 30px;
  border-right: 1px solid var(--soft-line);
  background: var(--white);
}

.mini-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.mini-card {
  padding: 16px;
}

.mini-card strong,
.side-card h3 {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.mini-card span,
.side-card span,
.side-card p {
  display: block;
  margin-top: 8px;
  color: #4e6683;
  font-size: 12px;
}

.progress {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 9px;
  background: #d9e1ea;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.lesson-sidebar h2 {
  margin: 22px 0 18px;
  font-size: 17px;
  line-height: 1.22;
}

.lesson-nav {
  display: grid;
  gap: 0;
}

.lesson-nav h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 0 10px;
  border-top: 1px solid var(--soft-line);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
}

.lesson-nav h3::before {
  width: 8px;
  height: 16px;
  margin-right: 8px;
  content: "";
  background: var(--teal);
}

.lesson-nav h3 {
  justify-content: flex-start;
}

.lesson-nav h3 span {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 1px solid var(--navy);
  border-left: 1px solid var(--navy);
  transform: rotate(45deg);
}

.lesson-nav a {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 26px;
  border-radius: 6px;
  color: #43617f;
  font-size: 12px;
}

.lesson-nav a::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  content: "";
  border: 1px solid #9eb6cc;
  border-radius: 50%;
  background: var(--white);
}

.lesson-nav a.done::before {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--teal);
}

.lesson-nav a.current {
  color: var(--teal-dark);
  background: #e6f7f8;
  font-weight: 700;
}

.lesson-nav a.current::before {
  border-color: var(--teal);
  background: var(--teal);
}

.wide-back {
  width: 100%;
  margin-top: 28px;
}

.wide-back::before {
  content: "←";
  font-size: 15px;
}

.lesson-article {
  padding: 34px 58px 48px;
  background:
    linear-gradient(180deg, rgba(238, 248, 251, 0.72), rgba(255, 255, 255, 0) 260px),
    var(--white);
}

.lesson-top,
.lesson-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 14px;
  border-radius: 99px;
  color: var(--white);
  background: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.small-button {
  min-height: 34px;
  padding: 0 18px;
}

.lesson-article h1 {
  margin-top: 33px;
  font-size: 34px;
  line-height: 1.12;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: #526984;
  font-size: 12px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.meta-row svg {
  width: 17px;
  height: 17px;
  color: var(--navy);
}

.lesson-article section {
  margin-top: 34px;
}

.lesson-article h2 {
  color: var(--teal);
  font-size: 22px;
  line-height: 1.2;
}

.lesson-article p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #24496f;
  font-size: 15px;
  line-height: 1.72;
}

.lesson-source-content {
  max-width: 900px;
}

.lesson-key-list li {
  padding-left: 4px;
}

.lesson-key-list li::marker {
  color: var(--teal);
  font-size: 18px;
}

.lesson-hero-image {
  position: relative;
  max-width: 860px;
  margin: 26px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef6f8;
  box-shadow: 0 20px 48px rgba(10, 49, 95, 0.13);
}

.lesson-hero-image img {
  width: 100%;
  max-height: 400px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.lesson-hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px 20px 14px;
  background: linear-gradient(0deg, rgba(5, 32, 62, 0.72) 0%, transparent 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
}

.lesson-hero-image figcaption::before {
  content: "📷 ";
  font-style: normal;
  opacity: 0.7;
}

.lesson-overview-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid #b8dfe6;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 248, 251, 0.95), rgba(255, 255, 255, 0.99)),
    var(--white);
  box-shadow: 0 14px 34px rgba(10, 49, 95, 0.07);
  margin-bottom: 6px;
}

.lesson-overview-panel span,
.lesson-section-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-overview-panel h2 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 24px;
}

.lesson-overview-panel p {
  margin-top: 8px;
  color: #385a78;
  line-height: 1.55;
}

.lesson-overview-panel dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.lesson-overview-panel dl div {
  padding: 10px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--white);
}

.lesson-overview-panel dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-overview-panel dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-weight: 800;
}

.lesson-outcomes,
.lesson-note-section {
  max-width: 900px;
  padding: 24px 28px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(10, 49, 95, 0.045);
}

.lesson-outcomes {
  border-left: 5px solid var(--navy);
}

.lesson-outcomes h2,
.lesson-note-section h2 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.28;
}

.lesson-outcomes ul,
.lesson-key-list {
  margin: 14px 0 0;
  padding-left: 19px;
  color: #24496f;
  font-size: 15px;
  line-height: 1.78;
}

.lesson-outcomes li + li,
.lesson-key-list li + li {
  margin-top: 9px;
}

.lesson-note-section {
  border-left: 4px solid var(--teal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lesson-note-section:hover {
  border-left-color: var(--teal-dark);
  box-shadow: 0 12px 32px rgba(10, 49, 95, 0.08);
}

.lesson-note-section:nth-child(even) {
  border-left-color: var(--navy);
  background: linear-gradient(135deg, #fafcff, var(--white));
}

.lesson-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-section-badge {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.lesson-note-section:nth-child(even) .lesson-section-badge {
  background: var(--navy);
}

.lesson-section-kicker {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lesson-note-section:nth-child(even) .lesson-section-kicker {
  color: var(--navy);
}

.lesson-note-section p {
  max-width: 760px;
  margin: 14px 0 0;
  color: #1e3f62;
  font-size: 15px;
  line-height: 1.8;
}

.lesson-note-section p:first-of-type {
  margin-top: 14px;
}

.lesson-note-section + .lesson-note-section {
  margin-top: 20px;
}

.lesson-source-content section {
  margin-top: 24px;
}

.lesson-source-content .plain-list {
  margin-top: 10px;
}

.blank-lesson {
  min-height: 220px;
}

.lesson-study-actions {
  max-width: 860px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid #b9dce7;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbfb, #ffffff);
  box-shadow: 0 12px 30px rgba(10, 49, 95, 0.07);
}

.lesson-study-actions span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lesson-study-actions h2 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: 22px;
}

.lesson-study-actions p {
  max-width: 620px;
  margin-top: 8px;
  line-height: 1.6;
}

.lesson-premium-nav {
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lesson-premium-nav button {
  min-height: 88px;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  padding: 15px 18px;
  text-align: left;
}

.lesson-premium-nav small {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.74;
}

.lesson-premium-nav span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.quiz-content {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 34px;
}

.quiz-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border: 1px solid #b8dfe6;
  border-top: 5px solid var(--teal);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(228, 247, 250, 0.98), rgba(255, 255, 255, 0.99)),
    var(--white);
  box-shadow: 0 14px 40px rgba(10, 49, 95, 0.08);
}

.quiz-hero h1 {
  margin: 14px 0 0;
  font-size: 36px;
  line-height: 1.06;
}

.quiz-hero p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #375a7b;
  font-size: 15px;
  line-height: 1.6;
}

.quiz-objectives {
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--soft-line);
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: #f8fafc;
}

.quiz-objectives h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 20px;
}

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

.quiz-objective {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid #d8e8f2;
  border-radius: 7px;
  background: var(--white);
  color: #1e3f62;
  font-size: 14px;
  line-height: 1.55;
}

.quiz-objective svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-question-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.quiz-question-card {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(10, 49, 95, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quiz-question-card:has(button.is-selected) {
  border-left-color: var(--navy);
  box-shadow: 0 14px 34px rgba(10, 49, 95, 0.1);
}

.quiz-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quiz-q-num {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-q-badge {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 30px;
}

.quiz-question-card:has(button.is-selected) .quiz-q-badge {
  background: var(--navy);
}

.quiz-q-num > span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.quiz-q-of {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.quiz-course-tag {
  padding: 4px 10px;
  border-radius: 99px;
  background: #eef6fb;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-question-card h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.38;
}

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

.quiz-question-card button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #c9d8e6;
  border-radius: 8px;
  color: #1e3f62;
  background: #fbfdff;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, transform 0.12s ease;
}

.quiz-question-card button:hover:not(:disabled) {
  border-color: var(--teal);
  background: #edfbfb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 155, 159, 0.12);
}

.quiz-question-card button b {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #ddeaf6;
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 32px;
  transition: background 0.14s ease, color 0.14s ease;
}

.quiz-question-card button span {
  line-height: 1.5;
  font-weight: 600;
}

.quiz-question-card button.is-selected {
  border-color: var(--navy);
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  box-shadow: 0 0 0 2px rgba(7, 58, 112, 0.18);
  transform: none;
}

.quiz-question-card button.is-selected b {
  color: var(--white);
  background: var(--navy);
}

.quiz-question-card button.is-correct {
  border-color: #6ecaaa;
  background: linear-gradient(135deg, #e8faf3, #f4fdf8);
  color: #086648;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(14, 141, 109, 0.15);
}

.quiz-question-card button.is-correct b {
  color: var(--white);
  background: #0e8d6d;
}

.quiz-question-card button.is-wrong {
  border-color: #e8a0a0;
  background: linear-gradient(135deg, #fff0f0, #fff8f8);
  color: #8b1a1a;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(197, 64, 64, 0.12);
}

.quiz-question-card button.is-wrong b {
  color: var(--white);
  background: #c54040;
}

.quiz-review {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #f8fbff;
}

.quiz-review.is-correct {
  border-color: #7ecfb3;
  border-left: 4px solid #0e8d6d;
  background: linear-gradient(135deg, #edfaf4, #f8fdfb);
}

.quiz-review.is-wrong {
  border-color: #e8a8a8;
  border-left: 4px solid #c54040;
  background: linear-gradient(135deg, #fff2f2, #fffafa);
}

.quiz-review-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.quiz-review-head svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: #0e8d6d;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-review.is-wrong .quiz-review-head svg {
  stroke: #c54040;
}

.quiz-review strong {
  color: var(--navy);
  font-size: 13px;
}

.quiz-review strong span {
  color: var(--teal-dark);
}

.quiz-review p {
  margin: 0;
  color: #2c4f6e;
  font-size: 13px;
  line-height: 1.65;
}

.quiz-controls {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -16px 36px rgba(10, 49, 95, 0.1);
  backdrop-filter: blur(12px);
}

.quiz-score {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 200px;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

.quiz-progress-text {
  display: block;
}

.quiz-progress-bar {
  height: 5px;
  border-radius: 99px;
  background: #d8e6f0;
  overflow: hidden;
}

.quiz-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 0.3s ease;
}

.quiz-score-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 900;
}

.quiz-score-result strong {
  font-size: 18px;
}

.quiz-score-result em {
  font-style: normal;
  font-size: 14px;
  opacity: 0.9;
}

.quiz-score-excellent {
  background: linear-gradient(135deg, #d4f5e9, #e8fdf5);
  color: #0a6e50;
  border: 1px solid #6ecaaa;
}

.quiz-score-good {
  background: linear-gradient(135deg, #deeeff, #eef6ff);
  color: #1a4d84;
  border: 1px solid #8ab8e8;
}

.quiz-score-retry {
  background: linear-gradient(135deg, #fff0e8, #fff8f4);
  color: #8b3a10;
  border: 1px solid #e8a070;
}

.quiz-score-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 2px;
}

.quiz-controls > div:last-child {
  display: flex;
  gap: 10px;
}

.callout {
  max-width: 720px;
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding: 26px 28px;
  border-radius: 7px;
}

.callout > span {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
}

.callout svg {
  width: 34px;
  height: 34px;
}

.callout h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 800;
}

.callout.key {
  border: 1px solid #a8dfb0;
  background: #f2fff3;
}

.callout.key > span {
  background: var(--teal);
}

.callout.remember {
  align-items: center;
  border: 1px solid #bcd5eb;
  background: #f6fbff;
}

.callout.remember > span {
  background: var(--navy);
}

.callout ul,
.plain-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #24496f;
  font-size: 13px;
  line-height: 1.75;
}

.callout p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
}

.plain-list {
  max-width: 620px;
  margin-top: 14px;
}

.lesson-bottom {
  max-width: 720px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.lesson-bottom .primary-button {
  margin-right: auto;
}

.outline-accent {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.lesson-tools {
  padding: 136px 14px 30px;
  border-left: 1px solid var(--soft-line);
  background: var(--white);
}

.side-card {
  margin-bottom: 22px;
  padding: 18px 16px;
}

.side-card a {
  display: block;
  margin: 0 -16px;
  padding: 10px 16px;
  color: #385a78;
  font-size: 12px;
}

.side-card a.active {
  border-left: 3px solid var(--teal);
  color: var(--teal-dark);
  background: #e8f7f7;
  font-weight: 700;
}

.side-card button {
  width: 100%;
  justify-content: flex-start;
  margin-top: 8px;
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 0;
  color: #315a7e;
  background: transparent;
  font-size: 11px;
}

.help-card button {
  justify-content: center;
  margin-top: 16px;
  border: 1px solid #b8c8da;
  border-radius: 4px;
  padding: 0 18px;
}

@media (max-width: 1120px) {
  .site-announcement {
    padding: 8px 20px;
  }

  .top-header {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 20px 0;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .mega-menu {
    right: 20px;
    left: 20px;
  }

  .mega-menu-grid,
  .dashboard-grid,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .main-nav a {
    height: 52px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .content,
  .crumbs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .study-board {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 38px 24px 44px;
  }

  .home-hero::after {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.92) 56%, rgba(255, 255, 255, 0.46) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.35));
  }

  .home-section {
    padding: 38px 24px;
  }

  .notes-panel {
    grid-template-columns: 1fr;
  }

  .instrument-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-content {
    grid-template-columns: 1fr;
  }

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

  .resource-menu {
    position: static;
  }

  .resource-menu,
  .resource-links-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .toolbar {
    grid-template-columns: 1fr 110px;
  }

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

  .course-hero-panel,
  .course-overview-grid,
  .course-exam-panel {
    grid-template-columns: 1fr;
  }

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

  .course-overview-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .lesson-layout.is-visible {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .lesson-tools {
    display: none;
  }

  .lesson-article {
    padding: 30px;
  }

  .lesson-overview-panel {
    grid-template-columns: 1fr;
  }

  .auth-premium-shell {
    grid-template-columns: 1fr;
  }

  .auth-copy {
    min-height: auto;
  }

  .auth-media {
    min-height: 280px;
  }

  .auth-media img {
    min-height: 280px;
  }

  .auth-card {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 34px 40px 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-cta {
    padding: 20px 40px;
  }

  .footer-bottom {
    padding: 14px 40px;
  }
}

@media (max-width: 760px) {
  .site-announcement {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-announcement div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .site-announcement span {
    white-space: normal;
  }

  .brand {
    width: 154px;
    height: 46px;
    flex-basis: 154px;
  }

  .program-heading,
  .lesson-top,
  .lesson-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .program-heading h1,
  .lesson-article h1 {
    font-size: 32px;
  }

  .tabs,
  .toolbar {
    overflow-x: auto;
  }

  .toolbar {
    display: flex;
  }

  .search-field {
    min-width: 240px;
  }

  .toolbar select {
    min-width: 150px;
  }

  .course-row {
    grid-template-columns: 20px 72px minmax(170px, 1fr) 58px 70px 70px;
    min-width: 720px;
  }

  .curriculum-card {
    overflow-x: auto;
  }

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

  .course-feature-hero.is-primary {
    min-height: 360px;
  }

  .course-feature-hero > div,
  .course-overview-main,
  .course-overview-modules,
  .course-exam-panel {
    padding: 20px;
  }

  .course-feature-hero h2 {
    font-size: 31px;
  }

  .course-feature-hero h3,
  .course-tab-intro h2,
  .course-info-grid h2,
  .course-exam-panel h2,
  .course-overview-main h2 {
    font-size: 23px;
  }

  .course-info-grid,
  .course-resource-grid,
  .course-overview-main dl {
    grid-template-columns: 1fr;
  }

  .course-tab-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-stats,
  .home-feature-grid,
  .instrument-preview-grid,
  .resource-links-home,
  .topic-lesson-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .login-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .auth-copy,
  .auth-card {
    padding: 24px;
  }

  .auth-media {
    min-height: 210px;
    margin-top: 18px;
  }

  .auth-media img {
    min-height: 210px;
  }

  .auth-copy h1 {
    font-size: 34px;
  }

  .auth-tabs {
    grid-template-columns: 1fr;
  }

  .global-search-box {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
  }

  .global-search-head,
  .quiz-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-workbench-head,
  .dashboard-actions,
  .lesson-action-buttons {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .admin-panel-tabs {
    justify-content: flex-start;
  }

  .certificate-content {
    grid-template-columns: 1fr;
  }

  .certificate-actions {
    position: static;
  }

  .admin-panel-tabs button,
  .dashboard-actions button,
  .lesson-action-buttons button,
  .admin-editor-toolbar button {
    width: 100%;
  }

  .admin-editor-form,
  .certificate-border dl,
  .certificate-signatures {
    grid-template-columns: 1fr;
  }

  .cookie-notice {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
  }

  .cookie-notice > div:last-child {
    justify-content: flex-start;
  }

  .maintenance-lock {
    padding: 16px;
  }

  .maintenance-lock-card {
    padding: 24px;
  }

  .maintenance-lock-card h2 {
    font-size: 32px;
  }

  .maintenance-actions,
  .maintenance-lock-card > div {
    flex-direction: column;
  }

  .maintenance-actions button,
  .maintenance-lock-card button {
    width: 100%;
  }

  .global-result {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .global-result em {
    grid-column: 2;
  }

  .mega-menu {
    position: fixed;
    top: 126px;
    right: 10px;
    left: 10px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    border-radius: 8px;
    border-top: 3px solid var(--teal);
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
  }

  .mega-menu aside {
    border-radius: 0 0 8px 8px;
  }

  .dashboard-card {
    min-height: auto;
    padding: 20px;
  }

  .quiz-controls {
    position: static;
  }

  .quiz-controls > div:last-child,
  .quiz-controls button {
    width: 100%;
  }

  .home-hero {
    min-height: auto;
  }

  .home-copy h1 {
    font-size: 38px;
  }

  .home-actions .primary-button,
  .home-actions .ghost-button {
    width: 100%;
  }

  .home-card {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .outline-table-body button {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 10px 14px;
  }

  .outline-table-body em {
    display: none;
  }

  .study-board {
    min-width: 0;
  }

  .board-content {
    padding: 20px;
  }

  .board-rows button {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .board-rows em {
    display: none;
  }

  .instrument-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .instrument-strip img:nth-child(n + 4) {
    display: none;
  }

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

  .library-card > figure img {
    aspect-ratio: 16 / 9;
    min-height: 0;
    height: auto;
  }

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

  .module-outline-head {
    flex-direction: column;
  }

  .module-outline-head button {
    width: 100%;
  }

  .instrument-toolbar {
    grid-template-columns: 1fr;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px 22px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 24px;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .lesson-layout.is-visible {
    display: block;
  }

  .lesson-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .lesson-article {
    padding: 28px 20px;
  }

  .meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .callout {
    flex-direction: column;
    padding: 22px;
  }

  .lesson-study-actions,
  .lesson-premium-nav,
  .lesson-overview-panel,
  .quiz-hero,
  .quiz-option-grid,
  #quizObjectives {
    grid-template-columns: 1fr;
  }

  .lesson-study-actions,
  .quiz-hero {
    padding: 22px;
  }

  .quiz-hero {
    flex-direction: column;
  }

  .quiz-hero h1 {
    font-size: 30px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #certificateSheet,
  #certificateSheet * {
    visibility: visible;
  }

  #certificateSheet {
    position: fixed;
    inset: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .certificate-border {
    min-height: 100vh;
    border-radius: 0;
  }
}

/* ═══════════════════════════════════════════════
   CANVAS AUTH — Full-screen login pages
   (Student login & admin redirect)
═══════════════════════════════════════════════ */

/* When a canvas view is active, shell hides header/footer */
.site-shell.canvas-mode .top-header,
.site-shell.canvas-mode .site-announcement,
.site-shell.canvas-mode .site-footer {
  display: none !important;
}
.site-shell.canvas-mode {
  height: 100vh;
  overflow: hidden;
}
.site-shell.canvas-mode #appRoot {
  height: 100vh;
  overflow: hidden;
}

/* The canvas section fills viewport */
.view-canvas {
  display: none;
  position: fixed !important;
  inset: 0;
  z-index: 9999;
  background: #fff;
}
.view-canvas.is-visible {
  display: flex !important;
}

/* Two-column layout */
.canvas-auth {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ── Left: Image ── */
.canvas-auth-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.canvas-auth-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.canvas-auth-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 28, 52, 0.78) 0%,
    rgba(14, 116, 144, 0.55) 60%,
    rgba(8, 28, 52, 0.48) 100%
  );
}
.canvas-auth-image-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
}
.canvas-auth-image-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}
.canvas-auth-image-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 28px;
}
.canvas-auth-features { display: flex; flex-direction: column; gap: 10px; }
.canvas-auth-feature { display: flex; align-items: center; gap: 10px; }
.canvas-auth-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #0891b2);
  flex-shrink: 0;
}
.canvas-auth-feature span { font-size: 13px; color: rgba(255,255,255,.82); font-weight: 500; }

/* ── Right: Form panel ── */
.canvas-auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 48px 40px;
  overflow-y: auto;
}
.canvas-auth-inner {
  width: 100%;
  max-width: 380px;
  animation: authFadeUp 0.38s ease both;
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.canvas-auth-logo { margin-bottom: 36px; }
.canvas-auth-logo img { height: 36px; object-fit: contain; display: block; }

/* Accent line */
.canvas-auth-accent {
  width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, #0891b2, #2dd4bf);
  margin-bottom: 28px;
}

/* Heading */
.canvas-auth-heading {
  font-size: 26px; font-weight: 800; color: #0d2137;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.canvas-auth-subheading {
  font-size: 14px; color: #64748b; margin-bottom: 28px; line-height: 1.6;
}

/* Tabs */
.canvas-auth-tabs {
  display: flex; gap: 3px; background: #f1f5f9;
  border-radius: 10px; padding: 4px; margin-bottom: 22px;
}
.canvas-auth-tabs button {
  flex: 1; padding: 9px 8px; border: none; background: transparent;
  border-radius: 7px; font-size: 12.5px; font-weight: 600;
  color: #94a3b8; cursor: pointer; transition: 0.16s;
  white-space: nowrap; font-family: inherit;
}
.canvas-auth-tabs button.is-active {
  background: #fff; color: #0d2137;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Message */
.canvas-auth-message {
  font-size: 13px; color: #64748b; margin-bottom: 18px;
  line-height: 1.5; min-height: 18px;
}
.canvas-auth-message.is-error {
  color: #9f1239; background: #fff1f2;
  border-left: 3px solid #f43f5e;
  border-radius: 0 7px 7px 0; padding: 10px 13px;
}

/* Forms */
.canvas-auth-form { display: none; flex-direction: column; }
.canvas-auth-form.is-active { display: flex; }

/* Fields */
.canvas-field { margin-bottom: 15px; }
.canvas-field label {
  display: block; font-size: 11px; font-weight: 700;
  color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 7px;
}
.canvas-field input,
.canvas-field select {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: #0f172a;
  background: #f8fafc; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  font-family: inherit;
}
.canvas-field input::placeholder { color: #cbd5e1; font-weight: 400; }
.canvas-field input:focus,
.canvas-field select:focus {
  border-color: #0891b2; background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.10);
}

/* Button */
.canvas-btn {
  width: 100%; padding: 14px; margin-top: 8px;
  background: linear-gradient(135deg, #0d2137 0%, #0e7490 100%);
  color: #fff; font-size: 15px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
  transition: opacity 0.18s, transform 0.15s, box-shadow 0.18s;
  letter-spacing: 0.01em; text-align: center; display: block;
  box-shadow: 0 4px 14px rgba(14, 116, 144, 0.28);
  font-family: inherit;
}
.canvas-btn:hover {
  opacity: 0.94; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.38);
}
.canvas-btn:active { transform: translateY(0); box-shadow: none; }
.canvas-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

/* Back link */
.canvas-back-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 22px; background: none; border: none;
  color: #94a3b8; font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0; transition: color 0.15s;
  text-decoration: none; font-family: inherit;
}
.canvas-back-btn:hover { color: #0891b2; }

/* Mobile */
@media (max-width: 760px) {
  .canvas-auth-image { display: none; }
  .canvas-auth-panel { padding: 36px 24px; background: #f8fafc; }
}