:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #243e37;
  background: #f5f7f7;
  font-synthesis: none;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 4.3vw, 3.9rem);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-bottom: 25px;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.7;
  color: #6d7e78;
}
small {
  line-height: 1.5;
}
strong {
  font-weight: 600;
}
nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
nav a:hover,
nav a:focus {
  text-decoration: underline;
}
.academy-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 4%;
  background: white;
  border-bottom: 1px solid #e0e6e3;
}
.academy-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.15;
}
.academy-brand small {
  display: block;
  letter-spacing: 0.25em;
  font-size: 10px;
  margin-top: 6px;
}
.academy-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  border-radius: 13px;
  background: #163e35;
  color: #e1f4a9;
  font-size: 30px;
  font-family: Georgia, serif;
}
.account {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.academy-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 4% 80px;
  min-height: 80vh;
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 10%;
  padding: 35px 0 72px;
}
.eyebrow {
  display: block;
  color: #82917f;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p {
  max-width: 560px;
  font-size: 18px;
}
.hero-note {
  background: #e9edde;
  border-radius: 100px 100px 16px 16px;
  padding: 70px 40px 35px;
}
.hero-note span {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.hero-note h2 {
  font:
    32px / 1.3 Georgia,
    serif;
  margin-top: 35px;
}
.hero-note p {
  font-size: 15px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.section-heading span,
.muted {
  color: #7a8983;
  font-size: 13px;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #dde5e1;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px #143e3512;
}
.course-cover {
  background: #e8eddf;
  min-height: 195px;
  position: relative;
  padding: 24px;
  color: #617850;
}
.course-cover > span:first-child {
  font-size: 12px;
}
.course-cover .cover-art {
  font-size: 85px;
  display: block;
  text-align: center;
  line-height: 1;
}
.course-cover small {
  letter-spacing: 0.2em;
  font-size: 9px;
}
.course-copy {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-copy p {
  font-size: 14px;
}
.course-copy strong {
  padding-top: 22px;
  border-top: 1px solid #edf0ee;
  margin-top: 22px;
  font-size: 14px;
  color: #39604c;
}
.course-meta {
  font-size: 12px;
  color: #85938c;
  margin-top: auto;
}
.panel {
  background: white;
  border: 1px solid #dfe5e1;
  border-radius: 14px;
}
.padded {
  padding: 32px;
}
.empty {
  text-align: center;
  padding: 60px 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid #d7e1db;
  border-radius: 9px;
  background: white;
  color: #1a4036;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.primary {
  background: #153e35;
  color: white;
  border-color: #153e35;
}
.button:hover {
  box-shadow: 0 3px 12px #143e3515;
}
.text-button {
  background: none;
  border: 0;
  padding: 10px 0;
  color: #3b6452;
  font-weight: 600;
  font-size: 14px;
}
.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.page-heading {
  margin: 22px 0 45px;
}
.compact h1 {
  font-size: 36px;
}
.detail-hero {
  padding: 45px 0;
  max-width: 880px;
}
.detail-hero h1 {
  font-size: 48px;
}
.detail-hero form {
  max-width: 480px;
}
.detail-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}
.lesson-preview {
  padding-left: 25px;
}
.lesson-preview li {
  padding: 18px 10px;
  border-bottom: 1px solid #edf0ee;
}
.lesson-preview small {
  margin-left: 12px;
  color: #849288;
}
.notice {
  padding: 16px 20px;
  background: #f3f3e8;
  border-radius: 9px;
  color: #777743;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
}
.error {
  padding: 15px;
  background: #fff0ed;
  border-radius: 8px;
  color: #a0362b;
  margin-bottom: 20px;
  white-space: pre-wrap;
}
#message:not(:empty):not(.error) {
  padding: 15px;
  background: #e5f2e9;
  border-radius: 8px;
  margin-bottom: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0 0 20px;
  font-size: 14px;
  color: #506b60;
}
input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
  width: 100%;
  border: 1px solid #d8e1dc;
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  color: #243e37;
  min-width: 0;
}
textarea {
  resize: vertical;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: #285842;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.check {
  flex-direction: row;
  align-items: center;
  line-height: 1.5;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 10%;
  max-width: 1100px;
  margin: 40px auto;
  align-items: center;
}
.auth-layout h1 {
  font-size: 48px;
}
.auth-layout .button {
  width: 100%;
}
.divider {
  text-align: center;
  font-size: 13px;
  margin: 16px 0;
}
.narrow {
  max-width: 600px;
  margin: 30px auto;
}
.enrolled h2 {
  margin-top: 20px;
}
.enrolled progress {
  width: 100%;
  accent-color: #486c49;
  margin: 0 0 30px;
  height: 9px;
}
.player-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
}
.player-layout aside {
  align-self: start;
}
.lesson-nav {
  padding: 0;
  list-style: none;
}
.lesson-nav a {
  display: block;
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.lesson-nav .current {
  background: #eaf0e5;
  color: #35634a;
}
.video-frame {
  aspect-ratio: 16 / 9;
  background: #143c32;
  border-radius: 12px;
  overflow: hidden;
}
.video-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
}
.lesson-content,
.assessment-entry {
  margin-top: 24px;
}
.preserve {
  white-space: pre-wrap;
}
.assessment-form {
  max-width: 860px;
  margin: 0 auto;
}
.assessment-form fieldset {
  margin: 25px 0;
}
.assessment-form legend {
  padding: 8px;
  font-weight: 600;
  line-height: 1.6;
  max-width: 100%;
}
.answer-option {
  flex-direction: row;
  align-items: center;
  border: 1px solid #e0e7e2;
  border-radius: 9px;
  padding: 14px;
  margin: 12px 0;
  gap: 14px;
}
.answer-option:has(input:checked) {
  background: #edf4e6;
  border-color: #87a174;
}
.result {
  max-width: 760px;
  margin: 35px auto;
  text-align: center;
  padding: 55px;
}
.result-symbol {
  font-size: 70px;
  color: #7d9460;
}
.result .score {
  font-size: 50px;
  color: #24543f;
  margin: 20px;
}
.donation {
  border-top: 1px solid #e0e7e2;
  padding-top: 30px;
  margin-top: 35px;
}
.donation small {
  display: block;
  margin-top: 18px;
  color: #7d8a80;
}
.certificate-card {
  text-align: center;
}
.certificate-seal {
  font-size: 58px;
  color: #9b956d;
}
.certificate-card .eyebrow {
  font-size: 9px;
}
.certificate-card h2 {
  margin-top: 30px;
}
.certificate-card small {
  display: block;
}
.academy-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 4%;
  color: #88968c;
  font-size: 12px;
  border-top: 1px solid #e0e6e3;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
#editor-form > section {
  margin-bottom: 28px;
}
.editor-item {
  border: 1px solid #dfe5e1;
  border-radius: 10px;
  padding: 25px;
  margin: 30px 0;
}
.editor-item legend {
  padding: 10px;
  font-weight: 600;
}
.certificate-preview {
  text-align: center;
  background: #f7f7ef;
  border: 1px double #a8b493;
  padding: 35px;
  margin-bottom: 25px;
}
.certificate-preview > span {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.certificate-preview h2 {
  font:
    28px Georgia,
    serif;
  margin-top: 30px;
}
.badge {
  font-size: 12px;
  color: #5d7357;
  background: #edf2e7;
  border-radius: 20px;
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 20px;
}
.table-scroll {
  overflow: auto;
  background: white;
  border: 1px solid #e0e6e3;
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 20px;
  border-bottom: 1px solid #edf0ee;
}
td small {
  display: block;
  color: #88938c;
}
th {
  background: #edf1e8;
  color: #58704f;
}
td .text-button {
  margin-right: 12px;
}
@media (max-width: 1050px) {
  .academy-header {
    flex-wrap: wrap;
  }
  .academy-header nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    gap: 35px;
  }
  .player-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .academy-header {
    padding: 16px 20px;
    gap: 18px;
  }
  .academy-brand {
    font-size: 16px;
  }
  .academy-mark {
    width: 36px;
    height: 42px;
  }
  .account > span {
    display: none;
  }
  nav {
    gap: 18px;
    font-size: 13px;
  }
  .academy-main {
    padding: 30px 20px 50px;
  }
  .hero {
    display: block;
    padding: 20px 0 45px;
  }
  .hero-note {
    display: none;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 16px;
  }
  .course-grid,
  .detail-columns,
  .auth-layout,
  .player-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .course-copy,
  .padded {
    padding: 24px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .auth-layout {
    margin: 10px auto;
    gap: 25px;
  }
  .auth-layout h1 {
    font-size: 35px;
  }
  .detail-hero h1 {
    font-size: 36px;
  }
  .player-layout aside {
    max-height: 220px;
    overflow: auto;
  }
  .result {
    padding: 30px 20px;
  }
  .academy-footer {
    flex-direction: column;
    padding: 24px;
  }
  .detail-hero {
    padding: 28px 0;
  }
  .compact h1 {
    font-size: 30px;
  }
  .editor-item {
    padding: 15px;
  }
  .certificate-card .actions {
    justify-content: center;
  }
}

/* United Consciousness identity, within the academy's existing green palette. */
.academy-header {
  border-top: 3px solid #b5a16e;
}
.hero-note {
  position: relative;
  overflow: hidden;
  padding-top: 170px;
  background: #e9edde;
}
.hero-note .lotus-art {
  position: absolute;
  width: 220px;
  height: 165px;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
}
.hero-note h2 {
  margin-top: 22px;
}
.course-cover .lotus-cover {
  width: 130px;
  height: 98px;
  margin: 0 auto;
}
.academy-footer {
  background: #153e35;
  color: #e2e8de;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}
.uc-signature {
  display: flex;
  align-items: center;
  gap: 18px;
}
.uc-signature > span {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #d4dcbf;
}
.uc-signature img {
  width: 260px;
  height: auto;
  max-width: 100%;
}
@media (max-width: 700px) {
  .academy-footer {
    align-items: flex-start;
  }
  .uc-signature img {
    width: 230px;
  }
  .hero {
    background: none;
  }
  .hero .eyebrow {
    max-width: 220px;
  }
}

.video-frame {
  min-height: 200px;
}
.video-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 12px 16px;
  background: #edf1e8;
  border-radius: 0 0 10px 10px;
  font-size: 13px;
  color: #506b60;
}
.lesson-video-preview:not(:empty) {
  margin: 20px 0;
  max-width: 760px;
}

.video-frame {
  position: relative;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.video-frame.video-ready iframe {
  opacity: 1;
  pointer-events: auto;
}
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #fff;
}
.video-loading p {
  color: #d5e1d7;
  font-size: 14px;
  margin: 0;
  max-width: 420px;
}
.video-loading a {
  color: #e1f4a9;
  font-size: 14px;
}
.video-loading-symbol {
  color: #e1f4a9;
  font-size: 32px;
}
.video-ready .video-loading {
  display: none;
}
@media (max-width: 700px) {
  .lesson-video .video-frame {
    min-height: 300px;
  }
}

/* Prevent video aspect ratio/minimum height from widening narrow grid tracks. */
.player-layout > * {
  min-width: 0;
}
.lesson-video,
.video-frame {
  width: 100%;
  min-width: 0;
}
@media (max-width: 700px) {
  .player-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Learning catalogue and focused classroom. */
.catalogue-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 36px;
}
.catalogue-intro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
}
.catalogue-intro p {
  margin: 0;
}
.catalogue-intro .eyebrow {
  margin-bottom: 14px;
}
.catalogue-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 16px;
  align-items: end;
  background: #eaf0e8;
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 36px;
}
.catalogue-search label {
  margin: 0;
}
.course-cover {
  aspect-ratio: 16 / 9;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #e8eddf;
}
.course-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-photo[data-fallback] {
  object-fit: contain;
  padding: 24px;
}
.cover-language {
  position: absolute;
  bottom: 12px;
  left: 14px;
  padding: 5px 11px;
  color: #163e35;
  background: #fffffff0;
  border-radius: 30px;
  font-weight: 600;
}
.course-copy {
  padding: 22px;
}
.course-copy h2 {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 12px;
}
.course-copy p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-kicker {
  color: #70816f;
  font-size: 12px;
  margin-bottom: 10px;
}
.course-copy strong {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: 18px;
}
.enrolled {
  overflow: hidden;
}
.enrolled h2 {
  margin-top: 0;
}
.pagination {
  justify-content: center;
  margin-top: 36px;
}
.detail-cover {
  float: right;
  width: 42%;
  margin: 0 0 24px 32px;
  border-radius: 14px;
}
.detail-hero {
  max-width: none;
}
.detail-hero::after {
  content: "";
  display: block;
  clear: both;
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: #667c6c;
  font-size: 14px;
}
.study-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}
.study-heading h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0;
}
.study-heading .eyebrow {
  margin-bottom: 10px;
}
.study-progress {
  min-width: 180px;
  display: grid;
  gap: 10px;
  font-size: 13px;
}
.study-progress progress {
  width: 100%;
  height: 7px;
  accent-color: #466e52;
}
.study-progress small {
  color: #6d7e78;
}
.player-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.curriculum {
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.curriculum-heading {
  padding: 22px;
  border-bottom: 1px solid #dfe5e1;
}
.curriculum-heading h2 {
  margin-bottom: 8px;
  font-size: 17px;
}
.curriculum-heading > span {
  font-size: 13px;
  color: #6d7e78;
}
.lesson-nav {
  margin: 0;
  max-height: 65vh;
  overflow: auto;
  padding: 10px;
}
.lesson-nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 10px;
  border: 1px solid transparent;
}
.lesson-nav .current {
  background: #eaf1e6;
  border-color: #c7d8be;
}
.lesson-nav small {
  display: block;
  color: #77877b;
  font-size: 11px;
  margin-top: 5px;
}
.lesson-number {
  font-size: 12px;
  min-width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f3ef;
  color: #52704f;
}
.current .lesson-number {
  background: #285842;
  color: white;
}
.video-frame,
.lesson-video .video-frame {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #101e19;
}
.video-frame iframe {
  opacity: 1;
  pointer-events: auto;
  display: block;
}
.video-help {
  display: block;
  background: transparent;
  padding: 12px 2px;
  margin: 0;
  font-size: 12px;
}
.video-help summary {
  cursor: pointer;
  color: #6d7e78;
}
.video-help > div {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 0;
}
.lesson-content {
  margin-top: 12px;
}
.lesson-content h2 {
  font-size: 1.5rem;
}
.lesson-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lesson-controls .actions {
  margin: 0;
  gap: 10px;
}
.completion-mark {
  color: #336444;
  font-weight: 600;
}
.assessment-entry .eyebrow {
  margin-bottom: 12px;
}
@media (max-width: 1050px) {
  .player-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 700px) {
  .catalogue-intro,
  .study-heading {
    display: block;
  }
  .catalogue-intro .button {
    margin-top: 20px;
  }
  .catalogue-search {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
  }
  .catalogue-search label:first-child {
    grid-column: 1 / -1;
  }
  .course-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-cover {
    width: 100%;
    float: none;
    margin: 0 0 24px;
  }
  .player-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .player-layout .curriculum {
    position: static;
    max-height: none;
    overflow: hidden;
  }
  .lesson-nav {
    max-height: 360px;
  }
  .study-progress {
    margin-top: 22px;
  }
  .lesson-controls .actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  .course-card {
    transition: none;
  }
}
/* Source URLs and long course titles must not widen a phone viewport. */
.preserve,
.course-copy,
.lesson-nav a,
.detail-hero p {
  overflow-wrap: anywhere;
}
.admin-course[hidden] {
  display: none;
}
.admin-search {
  max-width: 600px;
  margin-bottom: 28px;
}
