/* Courses dropdown (header). Three quiet columns inside the header's glass panel: the fields (left),
   the chosen field's courses as an index that fades in as you scroll (middle), and the three flagship
   bootcamps (right).
   Ultra-minimal type: Geist, 11-15px, light weights, dim until hovered. */

/* The glass itself is in lunartech-header-hero.css, shared by every menu. These two only close faster. */
.lt-import :is(#lt-courses-menu, #lt-certifications-menu) .lt-dropdown-glass { opacity: 0; transition: opacity 0.35s ease-in; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-100 .lt-dropdown-glass { opacity: 1; transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu) .lt-dropdown-container { opacity: 1; transition: none; }

.lt-import .lt-dropdown-container.lt-cm { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr) 21rem; gap: 0; padding: 0; height: min(35rem, calc(100vh - 8.5rem)); font-family: 'Geist', sans-serif; }
.lt-cm ul { margin: 0; padding: 0; list-style: none; }

/* Fields */
.lt-cm-side { display: flex; flex-direction: column; min-height: 0; padding: 2.25rem 1.5rem 2rem 2.25rem; border-right: 1px solid rgba(255, 255, 255, 0.07); }
.lt-cm-eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: #8a8a8a; }
.lt-cm .lt-cm-cats { position: relative; display: flex; flex-direction: column; gap: 1px; flex: 0 1 auto; min-height: 0; width: calc(100% + 10px); margin: 1.25rem 0 0 -10px; overflow-y: auto; scrollbar-width: none; }
.lt-cm-ink { position: absolute; top: 0; left: 0; right: 0; height: 0; border-radius: 8px; background-color: rgba(255, 255, 255, 0.06); pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), height 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
/* .lt-cm prefix: the imported header styles set `.lt-import button { font: inherit; color: inherit }` */
.lt-cm .lt-cm-cat { all: unset; position: relative; box-sizing: border-box; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  font-family: 'Geist', sans-serif; font-size: 13px; font-weight: 300; line-height: 1.35; color: #8f8f8f; transition: color 0.3s; }
.lt-cm .lt-cm-cat:hover { color: #dcdcdc; }
.lt-cm .lt-cm-cat[aria-selected="true"] { color: #fff; }
.lt-cm .lt-cm-cat:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.3); outline-offset: -1px; }
.lt-cm .lt-cm-cat-count { font-size: 11px; color: #5a5a5a; transition: color 0.3s; }
.lt-cm .lt-cm-cat[data-cat="viral"] { margin-bottom: 10px; }   /* New releases and the ranking sit apart from the fields */
#lt-certifications-menu .lt-cm-cats:not(.is-grid) .lt-cm-cat[data-cat="new"] { margin-bottom: 10px; }   /* and in the Certifications menu's Roles view, apart from the roles */
.lt-cm .lt-cm-cat[aria-selected="true"] .lt-cm-cat-count { color: #9a9a9a; }
.lt-cm .lt-cm-all { flex: none; margin-top: auto; padding-top: 1.5rem; font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: #9a9a9a; text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.lt-cm .lt-cm-all:hover { color: #fff; }

/* Courses */
.lt-cm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lt-cm-head { padding: 2.25rem 2.25rem 1.25rem; }
.lt-cm-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: #8a8a8a; }
/* "View all 18 courses →": the chosen field's own page */
.lt-cm .lt-cm-count { display: inline-flex; align-items: baseline; gap: 8px; color: #8a8a8a; text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.lt-cm .lt-cm-count:hover { color: #fff; }
.lt-cm .lt-cm-count span { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.lt-cm .lt-cm-count:hover span { transform: translateX(3px); }
.lt-cm .lt-cm-desc { margin: 12px 0 0; max-width: 36rem; font-size: 13px; font-weight: 300; line-height: 1.6; color: #7a7a7a; }
.lt-cm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 2.25rem 2.5rem;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 48px), transparent 100%); }
.lt-cm .lt-cm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.25rem; }
.lt-cm-row { border-bottom: 1px solid rgba(255, 255, 255, 0.06); opacity: 0; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms); }
.lt-cm-row.is-in { opacity: 1; }
.lt-cm .lt-cm-link { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0 12px; text-decoration: none; outline: none; }
/* a hairline draws itself under the course you're on */
.lt-cm .lt-cm-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background-color: rgba(255, 255, 255, 0.32); transform: scaleX(0); transform-origin: left center; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.lt-cm .lt-cm-link.is-current::after, .lt-cm .lt-cm-link:focus-visible::after { transform: scaleX(1); }
.lt-cm-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lt-cm-title, .lt-cm-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color 0.3s; }
.lt-cm-title { font-size: 13px; font-weight: 400; line-height: 1.4; color: #c2c2c2; }
.lt-cm-sub { font-size: 12px; font-weight: 300; line-height: 1.45; color: #5c5c5c; }
.lt-cm-hours { flex: none; font-size: 11px; font-weight: 300; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #5c5c5c; transition: color 0.3s; }
/* Most viral: one column, ranked 01-10 */
.lt-cm .lt-cm-list.is-ranked { grid-template-columns: minmax(0, 1fr); }
.lt-cm-list.is-ranked .lt-cm-text { flex: 1; }
.lt-cm-rank { flex: none; width: 2.5em; font-size: 11px; font-weight: 300; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: #5c5c5c; transition: color 0.3s; }
.lt-cm-link:hover .lt-cm-rank, .lt-cm-link.is-current .lt-cm-rank { color: #fff; }
.lt-cm-link:hover .lt-cm-title, .lt-cm-link.is-current .lt-cm-title, .lt-cm-link:focus-visible .lt-cm-title { color: #fff; }
.lt-cm-link:hover .lt-cm-sub, .lt-cm-link.is-current .lt-cm-sub, .lt-cm-link:hover .lt-cm-hours, .lt-cm-link.is-current .lt-cm-hours { color: #8f8f8f; }

/* Right column: the three flagship bootcamps, each a cover, title, secondary title and hours, with
   "View all bootcamps" at the foot, level with "View all courses" on the left */
.lt-cm-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 2.25rem 2rem 2rem; border-left: 1px solid rgba(255, 255, 255, 0.07); }
.lt-cm-feat { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.lt-cm-feat-eyebrow { font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: #8a8a8a; }
.lt-cm .lt-cm-feat-list { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; margin: 1.25rem 0 0; padding: 0 0 1.5rem; list-style: none; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(180deg, #000 calc(100% - 40px), transparent 100%); }
.lt-cm .lt-cm-feat-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.lt-cm .lt-cm-feat-list li:last-child { border-bottom: 0; }
.lt-cm .lt-cm-feat-link { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; text-decoration: none; outline: none; }
.lt-cm-feat-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background-color: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.lt-cm-feat-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s; }
.lt-cm-feat-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lt-cm-feat-title { font-size: 13px; font-weight: 400; line-height: 1.35; color: #c2c2c2; transition: color 0.3s; }
.lt-cm-feat-sub { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11.5px; font-weight: 300; line-height: 1.45; color: #5c5c5c; transition: color 0.3s; }
.lt-cm-feat-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 2px; font-size: 10.5px; font-weight: 300; letter-spacing: 0.04em; line-height: 1.4; color: #4a4a4a; transition: color 0.3s; }
.lt-cm .lt-cm-feat-all { flex: none; margin-top: auto; padding-top: 1.5rem; font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: #9a9a9a; text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.lt-cm .lt-cm-feat-all:hover { color: #fff; }
.lt-cm-feat-link:hover .lt-cm-feat-title, .lt-cm-feat-link:focus-visible .lt-cm-feat-title { color: #fff; }
.lt-cm-feat-link:hover .lt-cm-feat-sub, .lt-cm-feat-link:focus-visible .lt-cm-feat-sub { color: #8f8f8f; }
.lt-cm-feat-link:hover .lt-cm-feat-meta, .lt-cm-feat-link:focus-visible .lt-cm-feat-meta { color: #6f6f6f; }
.lt-cm-feat-link:hover .lt-cm-feat-thumb img, .lt-cm-feat-link:focus-visible .lt-cm-feat-thumb img { opacity: 1; }

/* "New releases" made the Courses list 15 rows, 22px too tall at 1673 x 940, which hid "Creators" with no scrollbar to show it. A pixel off each row's padding makes room everywhere above the short-window rule below */
@media (min-height: 761px) {
  #lt-courses-menu .lt-cm .lt-cm-cat { padding-top: 4px; padding-bottom: 4px; }
}
@media (min-height: 761px) and (max-width: 1280px) {
  #lt-courses-menu .lt-cm .lt-cm-cat { padding-top: 3px; padding-bottom: 3px; } /* "Natural Language Processing" takes two lines this narrow */
}

/* Short windows (e.g. a 1366 x 768 laptop) give the panel less height: tighter fields so all 15 still show */
@media (max-height: 760px) {
  .lt-cm .lt-cm-cat { padding-top: 3px; padding-bottom: 3px; }
  .lt-cm .lt-cm-feat-link { padding: 10px 0; }
}
/* Very short windows: the list has no scrollbar, so a row that doesn't fit would simply be missing */
@media (max-height: 660px) {
  .lt-cm .lt-cm-cat { padding-top: 1px; padding-bottom: 1px; line-height: 1.25; }
}

/* Opening: the glass fades in as the panel slides down (the header's own motion), the three columns
   follow a beat later, and the first courses come in one after another (opacity only).
   Closing is quicker and all at once. */
.lt-cm-side, .lt-cm-head, .lt-cm-right { transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-0 .lt-cm-side, .lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-0 .lt-cm-head, .lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-0 .lt-cm-right { opacity: 0; transform: translateY(6px); transition-duration: 0.2s; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-100 .lt-cm-side { transition-delay: 0.05s; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-100 .lt-cm-head { transition-delay: 0.1s; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-100 .lt-cm-right { transition-delay: 0.16s; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-0 .lt-cm-row.is-in { opacity: 0; transition: opacity 0.2s ease-in; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-100 .lt-cm-row.is-in { opacity: 1; transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0ms) + 0.12s); }

/* Drawn once at 1% opacity, after the intro, so the GPU has set up the blurs before the first real
   opening (see the script) */
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).lt-cm-warm { visibility: visible; transition: none; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).lt-cm-warm .lt-dropdown-glass { opacity: 0.01; transition: none; }
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).lt-cm-warm .lt-cm-side, .lt-import :is(#lt-courses-menu, #lt-certifications-menu).lt-cm-warm .lt-cm-head, .lt-import :is(#lt-courses-menu, #lt-certifications-menu).lt-cm-warm .lt-cm-right,
.lt-import :is(#lt-courses-menu, #lt-certifications-menu).lt-cm-warm .lt-cm-row.is-in { opacity: 1; transform: none; transition: none; }

@media (max-width: 1279px) {
  .lt-import .lt-dropdown-container.lt-cm { grid-template-columns: 14rem minmax(0, 1fr) 18rem; }
  .lt-cm .lt-cm-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .lt-cm-row, .lt-import :is(#lt-courses-menu, #lt-certifications-menu).opacity-100 .lt-cm-row.is-in { opacity: 1; transition: none; }
  .lt-cm-ink { transition: none; }
}

/* ───────────── Certifications dropdown ─────────────
   The same panel and the same row styles as Courses (the rules above are shared through :is()). What differs: Providers or
   Roles at the head of the left column, the providers in two columns so none hides below a scroll, and each heavyweight's
   thumbnail where a bootcamp has its picture. Silver is the only accent. */
.lt-import .lt-dropdown-container.lt-cm.lt-cx { grid-template-columns: 21rem minmax(0, 1fr) 19.5rem; }
.lt-cx-lens { display: flex; gap: 20px; }
.lt-cm .lt-cx-lens-btn { all: unset; cursor: pointer; font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: #5a5a5a; transition: color 0.3s; }
.lt-cm .lt-cx-lens-btn:hover { color: #c2c2c2; }
.lt-cm .lt-cx-lens-btn[aria-pressed="true"] { color: #dcdcdc; }
.lt-cm .lt-cx-lens-btn:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.3); outline-offset: 3px; }
.lt-cm .lt-cm-cats.is-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 2px; align-content: start; }
.lt-cm .lt-cm-cats.is-grid .lt-cm-cat[data-cat="new"], .lt-cm .lt-cm-cats.is-grid .lt-cm-cat[data-cat="all"] { grid-column: 1 / -1; }
.lt-cm .lt-cm-cats.is-grid .lt-cm-cat[data-cat="all"] { margin-bottom: 10px; }   /* the two views sit apart from the providers */
.lt-cm .lt-cm-ink { z-index: 0; transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), height 0.55s cubic-bezier(0.16, 1, 0.3, 1), width 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.lt-cm .lt-cm-cats.is-grid .lt-cm-cat { gap: 6px; }
.lt-cm .lt-cm-cats.is-grid .lt-cm-cat-name { white-space: nowrap; }
.lt-cx-end { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.lt-cx-flag { font-size: 9.5px; font-weight: 400; letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; color: #c6cad2; }
.lt-cx-flag[data-s="retiring"] { color: #6a6a6a; }
.lt-cm-link .lt-cm-title { white-space: nowrap; }
/* A course has one name, so it wraps at narrow widths rather than being cut, and so does the line under it. */
.lt-cm:not(.lt-cx) .lt-cm-link .lt-cm-title, .lt-cm:not(.lt-cx) .lt-cm-link .lt-cm-sub { overflow: visible; white-space: normal; }
@media (max-width: 1279px) {
  .lt-import .lt-dropdown-container.lt-cm.lt-cx { grid-template-columns: 19rem minmax(0, 1fr) 17rem; }
}
