/* Default academy theme. Layout and media rendering remain in site.css. */
:root {
  color-scheme: dark;
  --canvas: #08131f;
  --surface: #101f30;
  --raised: #172b3e;
  --accent-surface: #12383f;
  --white: #fefefe;
  --teal: #11b9ba;
  --navy: #e8f2fc;
  --ink: #dde8f1;
  --muted: #aabdcf;
  --line: #355066;
  --pale: #132638;
  --green: #63d9d5;
}
body, .dashboard, .login-page { background: var(--canvas); }
* { scrollbar-color: #11b9ba var(--canvas); }
::-webkit-scrollbar { background-color: var(--canvas); }
::-webkit-scrollbar-track { background-color: var(--canvas); }
::-webkit-scrollbar-thumb { background-color: #11b9ba; }
::-webkit-scrollbar-corner { background-color: var(--canvas); }
::selection { background: #11b9ba; color: #08131f; }
.top-strip, footer { background-color: #08121d; }
.header { background: rgba(11,26,41,.96); border-color: var(--line); }
.nav, .dashboard-sidebar, .dashboard-top { background: #0b1a29; }
.header.is-scrolled .header-inner,
.header.is-scrolled .nav,
.header.is-scrolled .nav a,
.header.is-scrolled .header-actions,
.header.is-scrolled .language-switch,
.header.is-scrolled .menu-button { background: transparent; }
@media (max-width: 800px) {
  /* Keep the header blur on a sibling layer so it cannot trap the menu's backdrop. */
  .header.is-scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .header.is-scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(11,26,41,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .header.is-scrolled .nav.open {
    background: rgba(11,26,41,.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 101;
  }
}
.logo img {
  background: transparent;
  border: 0;
  border-radius: 0;
  /* Preserve the white artwork's proportions and transparent background. */
  object-fit: contain;
}
.language-switch, .language-divider, .hero-note, .small-meta,
.placeholder-label, .footer-bottom, .approach-grid small,
.course-card-dates dt, .course-card-modules small { color: var(--muted); }
.nav a:hover, .nav .mobile-register { color: var(--green); }
.footer-main > div:not(:first-child) > a { color: var(--ink); }
.footer-main a:hover { color: var(--green); }
.button, .button.teal, .filter.active, .skip-link {
  background: var(--teal); color: #061e2a;
}
.button:hover, .button.teal:hover { background: #64dbd6; color: #061e2a; }
.outline-button { background: transparent; border-color: #648297; color: var(--ink); }
.outline-button:hover, .filter:hover, .icon-button:hover { background: var(--raised); color: var(--white); }
button:disabled, input:disabled, select:disabled, textarea:disabled {
  opacity: 1; color: #9bb0c1; background: #263747; cursor: not-allowed;
}
input:not([type=checkbox]):not([type=radio]), select, textarea {
  background: #0b1927; border-color: #648297; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: #9db2c5; opacity: 1; }
input[type=checkbox], input[type=radio] { accent-color: var(--teal); }
input::file-selector-button { background: var(--raised); color: var(--ink); border: 1px solid #648297; border-radius: 3px; padding: 7px 12px; margin-right: 12px; }
input:autofill { box-shadow: 0 0 0 1000px #12383f inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
.discipline-band, .learning-section { background: #0d1c2a; border-color: var(--line); }
.discipline-band .container { color: var(--ink); }
.discipline-band i, .note-line { background: var(--line); }
.line-icon, .art-corner, .badge, .doctor-specialties li,
.course-card-count.badge { background: var(--accent-surface); color: #8ce5df; border-color: #326068; }
.hero-art { background: linear-gradient(130deg,#173d48,#0e2a3b 60%,#16464b); }
.art-label, .art-caption { color: #def6f3; }
.hero-art:has(.hero-custom-image) .art-caption,
.hero-art:has(.hero-custom-image) .art-label { background: #081b2be8; }
.media-placeholder { background: linear-gradient(135deg,#173747,#123139); color: #87d4cc; }
.media-placeholder:before, .media-placeholder:after { border-color: #487176; }
.placeholder-cross { border-color: #70a5a1; opacity: 1; }
.play-circle { background: #102b3e; color: #fefefe; }
.media-tag { background: #081b2be8; color: #a1eee3; }
.module-card, .gallery-item, .library-card, .public-course-card,
.login-card, .table-wrap, .editor-panel, .upload-form,
.media-library-card, .admin-record, .resource-editor, .campaign-preview,
.campaign-module-option, .subscriber-options, .library-items article {
  background: var(--surface); border-color: var(--line);
}
.public-course-card, .login-card { box-shadow: 0 12px 32px #00000026; }
.library-circle { border-color: var(--line); }
.doctor-photo { background: var(--pale); }
.doctor-photo svg { fill: #355568; stroke: #668c98; }
.doctor-photo .coat { stroke: #a1bec6; }
.doctor-photo > span:not(.doctor-number) { background: #0b1a29e8; color: #c3d8dc; }
.doctor-number { color: #b6d8d2; }
.cta-section { background: linear-gradient(110deg,#023061,#103845); }
.notice, .empty-state, .drop-zone, .pdf-preview, .gallery-document,
.visual-gallery figure, .visual-gallery button, th { background: var(--pale); border-color: var(--line); }
.drop-zone.dragging, .upload-zone.dragging { background: var(--accent-surface); border-color: var(--teal); }
.saved-preview img, .saved-preview video, .module-cover,
.media-library-card > img, .media-library-card > video,
.selected-media img, .selected-media video, .resource-item > img,
.resource-item > video, .campaign-preview > iframe { background: #0b1927; }
.dashboard-sidebar nav button { color: var(--muted); }
.dashboard-sidebar nav button:hover { background: var(--raised); color: var(--white); }
.dashboard-sidebar nav button.selected { background: var(--accent-surface); color: #8ce5df; }
.editor-actions { background: #101f30f5; }
.danger, .login-card [role=alert] { color: #ffaaa5; }
.status-message { background: #123931; border-color: #397c65; color: #c2f1da; }
.gallery-document, .public-course-card h2, .course-card-dates dd,
.course-card-modules { color: var(--navy); }
.course-card-description { color: var(--ink); }
.course-card-modules { border-color: var(--line); }
.course-card-modules li::marker { color: var(--green); }
dialog, .registration-dialog, .gallery-lightbox, .pdf-native-preview {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 24px 80px #00000080;
}
dialog::backdrop, .registration-dialog::backdrop, .gallery-lightbox::backdrop { background: #020a14d9; }
.pdf-native-preview { border-radius: 12px; max-width: calc(100vw - 24px); }
.pdf-native-preview p { margin-block: 12px; }
/* Document pages, photos and videos retain their original colors. */
.course-preview-image { position: relative; }
.course-price-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  padding: 8px 12px;
  border: 1px solid rgba(170, 211, 225, .35);
  border-radius: 9px;
  background: rgba(8, 19, 31, .88);
  color: #fefefe;
  text-align: right;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.course-price-badge .course-card-pricing { color: inherit; line-height: 1.3; }
.course-price-badge .course-price { font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.course-price-badge .course-advance { font-size: 12px; color: #e0ecf4; }
.course-price-badge .course-card-pricing + .course-card-pricing { margin-top: 3px; }
@media (max-width: 600px) {
  .course-price-badge { top: 7px; right: 7px; padding: 6px 9px; max-width: calc(100% - 14px); }
  .course-price-badge .course-price { font-size: 20px; }
  .course-price-badge .course-advance { font-size: 11px; }
}
