.c-header { position: relative; top: 0; }

.c-mega--lessons .c-mega__inner {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: clamp(48px, 4vw, 64px);
}

.c-mega--lessons .c-mega__intro > p:not(.eyebrow) {
  max-width: none;
  white-space: nowrap;
}

.c-mega--lessons .c-mega__intro .c-lesson-menu-actions {
  margin-top: 18px;
}

.c-drawer__lessons .c-lesson-menu-actions {
  margin: 0 0 20px;
}

.c-lesson-menu-actions .btn.c-lesson-menu-action--online {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.c-lesson-menu-actions .c-lesson-menu-action--online > .c-button__label {
  min-width: 0;
  white-space: normal;
}

.c-lesson-menu-actions .btn.c-lesson-menu-action--online:is(:hover, :focus-visible) {
  background: var(--wine);
  border-color: var(--wine);
  transform: none;
}

.c-lesson-menu-action--online:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.c-lesson-menu-actions .c-lesson-menu-action--online:is(:hover, :focus-visible) > .c-button__chevron {
  transform: translateX(4px);
}

.c-lesson-menu-actions .c-lesson-menu-description {
  margin: 0;
  color: var(--muted);
  font: 400 13px/1.65 var(--sans);
}

@media (prefers-reduced-motion: no-preference) {
  .c-mega--lessons[aria-hidden="false"] .c-lesson-menu-action--online::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgb(255 248 227 / 16%) 50%, transparent 65%);
    animation: lesson-menu-light 4s ease-out 200ms infinite both;
  }

  @keyframes lesson-menu-light {
    from { transform: translateX(-75%); }
    17%, to { transform: translateX(75%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-lesson-menu-actions .c-lesson-menu-action--online:is(:hover, :focus-visible) > .c-button__chevron {
    transform: none;
  }
}

@media (max-width: 600px) {
  .c-header__inner {
    gap: 10px;
  }

  .c-header__right {
    flex: 1;
  }

  .c-header__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 1;
    gap: 10px;
  }

  .c-header__actions > .c-header__instagram {
    justify-self: center;
  }
}

.c-drawer.is-closing::backdrop {
  animation: drawer-backdrop-out 260ms ease-in both;
}

@keyframes drawer-backdrop-out {
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .c-drawer[open] { animation: none; }
}
.c-footer__brand img {
  width: 120px;
  height: 120px;
}

.c-header__profile {
  position: relative;
}

.c-header__nav > a,
.c-header__nav .c-header__lesson-toggle {
  font-weight: 500;
}

.c-header__nav > a:focus-visible::after,
.c-header__nav .c-header__lesson-toggle:focus-visible::after {
  transform: scaleX(1);
}

:is(.c-header__nav > a[aria-current="page"],
    .c-header__profile:has(.c-profile-dropdown a[aria-current="page"]) > .c-header__lesson-toggle) {
  isolation: isolate;
  color: var(--wine);
}

:is(.c-header__nav > a[aria-current="page"],
    .c-header__profile:has(.c-profile-dropdown a[aria-current="page"]) > .c-header__lesson-toggle)::after {
  inset: 5px -8px;
  z-index: -1;
  width: auto;
  height: auto;
  background: #f6eded;
  border-radius: 6px;
  transform: none;
  pointer-events: none;
}

.c-profile-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  width: 216px;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px #27212512;
}

.c-profile-dropdown a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  font: 500 15px/1.5 var(--serif);
}

.c-profile-dropdown a + a {
  border-top: 1px solid var(--line);
}

.c-profile-dropdown a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: var(--wine);
  background: var(--soft);
}

@media (max-width: 768px) {
  .c-footer__brand img {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1401px) {
  .c-header { --logo-overhang: 88px; }
  .c-header__inner { padding-inline-start: 0; }
  .c-header__brand { min-width: 180px; padding-left: 198px; }
  .c-header__brand img { width: 180px; height: 180px; }
  .c-header__nav { gap: clamp(22px, calc(4vw - 34px), 30px); }
  .c-header__nav > a, .c-header__lesson-toggle { font-size: 15px; }
}

@media (900px <= width <= 1400px) {
  .c-header { --header: 120px; --logo-overhang: 42px; }
  .c-header__inner { padding-inline: 0 24px; gap: 16px; }
  .c-header__brand { min-width: 156px; }
  .c-header__brand img { width: 156px; height: 156px; }
  .c-header__right {
    display: grid;
    flex: 1;
    grid-template-rows: auto auto;
    gap: 0;
  }
  .c-header__actions { grid-row: 1; justify-self: end; }
  .c-header__nav {
    display: flex;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
    gap: clamp(16px, 2.1vw, 28px);
  }
  .c-header__nav > a, .c-header__lesson-toggle { font-size: clamp(12px, 1.4vw, 15px); }
  .c-header__menu-button { display: none; }
  .c-header .c-mega:not([hidden]) { display: block !important; padding-top: calc(var(--logo-overhang) + 24px); }
}

.c-drawer__profile > summary { align-items: center; gap: 8px; }
.c-drawer__profile > summary small { order: 1; margin-inline-start: auto; }
.c-drawer__profile > summary::after { flex: none; line-height: 1; }
