/*
 * Lekcija 3.0 · GLOBAL COMPONENTS
 * F01-F03 · Header + desktop/mobile navigation.
 */

.lk3-site-header {
  position: relative;
  z-index: 100;
  height: var(--lk3-header-height);
  background: var(--lk3-header-ink);
  color: var(--lk3-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--lk3-font);
}

.lk3-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.lk3-brand {
  width: 180px;
  min-width: 0;
  flex: 0 0 180px;
  display: inline-flex;
  align-items: center;
  color: var(--lk3-white);
  text-decoration: none;
}

.lk3-brand-image {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
}

.lk3-brand-wordmark {
  display: inline-block;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.lk3-brand-dot {
  color: var(--lk3-red);
}

.lk3-primary-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  margin-left: 18px;
}

.lk3-header-actions {
  margin-left: auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.lk3-header-mobile-controls {
  display: none;
  align-items: center;
  margin-left: auto;
}

/* F02 REV 1 · WordPress-managed Desktop Navigation */

.lk3-primary-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-primary-nav-list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-primary-nav-list > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 253, 248, 0.76);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.lk3-primary-nav-list > li > a:hover,
.lk3-primary-nav-list > .current-menu-item > a,
.lk3-primary-nav-list > .current-menu-parent > a,
.lk3-primary-nav-list > .current-menu-ancestor > a {
  color: var(--lk3-white);
}

.lk3-primary-nav-list > li > a:focus-visible {
  color: var(--lk3-white);
  outline: 2px solid var(--lk3-lime);
  outline-offset: 5px;
  border-radius: 2px;
}

.lk3-primary-nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--lk3-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.lk3-primary-nav-list > li > a:hover::after,
.lk3-primary-nav-list > .current-menu-item > a::after,
.lk3-primary-nav-list > .current-menu-parent > a::after,
.lk3-primary-nav-list > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

/* F03 · Mobile Navigation */

.lk3-mobile-menu-toggle,
.lk3-mobile-menu-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lk3-white);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.lk3-mobile-menu-toggle:hover,
.lk3-mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lk3-mobile-menu-toggle:focus-visible,
.lk3-mobile-menu-close:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

.lk3-mobile-menu-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lk3-mobile-menu-icon > span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.lk3-mobile-drawer[hidden] {
  display: none;
}

.lk3-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr minmax(280px, min(88vw, 420px));
}

.lk3-mobile-drawer-backdrop {
  grid-column: 1 / -1;
  grid-row: 1;
  border: 0;
  padding: 0;
  background: rgba(13, 13, 12, 0.58);
  opacity: 0;
  transition: opacity 180ms ease;
  cursor: default;
}

.lk3-mobile-drawer-panel {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  height: 100dvh;
  overflow-y: auto;
  background: var(--lk3-surface);
  color: var(--lk3-ink);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.lk3-mobile-drawer.is-open .lk3-mobile-drawer-backdrop {
  opacity: 1;
}

.lk3-mobile-drawer.is-open .lk3-mobile-drawer-panel {
  transform: translateX(0);
}

.lk3-mobile-drawer-top {
  min-height: var(--lk3-header-height);
  padding: 0 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(21, 21, 21, 0.12);
}

.lk3-mobile-drawer-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lk3-mobile-menu-close {
  color: var(--lk3-ink);
  font-size: 29px;
  line-height: 1;
}

.lk3-mobile-nav {
  padding: 16px 24px 28px;
}

.lk3-mobile-nav-list,
.lk3-mobile-nav-list .sub-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-mobile-nav-list > li {
  border-bottom: 1px solid rgba(21, 21, 21, 0.10);
}

.lk3-mobile-nav-list a {
  color: var(--lk3-ink);
  text-decoration: none;
}

.lk3-mobile-nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.lk3-mobile-nav-list .sub-menu {
  padding: 0 0 14px 16px;
}

.lk3-mobile-nav-list .sub-menu a {
  display: block;
  padding: 8px 0;
  color: var(--lk3-muted);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.lk3-mobile-nav-list .current-menu-item > a,
.lk3-mobile-nav-list .current-menu-parent > a,
.lk3-mobile-nav-list .current-menu-ancestor > a {
  color: var(--lk3-red);
}

.lk3-mobile-nav-list a:focus-visible {
  outline: 2px solid var(--lk3-cobalt);
  outline-offset: 4px;
}

.lk3-mobile-drawer-actions {
  padding: 8px 24px 32px;
}

body.lk3-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .lk3-primary-nav {
    display: none;
  }

  .lk3-header-actions {
    display: none;
  }

  .lk3-header-mobile-controls {
    display: flex;
  }

  .lk3-header-inner {
    gap: 16px;
  }

  .lk3-brand {
    width: 164px;
    flex-basis: 164px;
  }
}

@media (max-width: 620px) {
  .lk3-mobile-drawer {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .lk3-mobile-drawer-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk3-primary-nav-list > li > a,
  .lk3-primary-nav-list > li > a::after,
  .lk3-mobile-drawer-backdrop,
  .lk3-mobile-drawer-panel {
    transition: none;
  }
}


/* F04 · Global Search Trigger + Dialog */

.lk3-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.lk3-search-trigger {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.lk3-search-trigger--icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--lk3-white);
}

.lk3-search-trigger--icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lk3-search-trigger--icon:focus-visible,
.lk3-search-trigger--mobile:focus-visible,
.lk3-search-close:focus-visible,
.lk3-search-submit:focus-visible,
.lk3-search-input:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

.lk3-search-trigger--mobile {
  width: 100%;
  min-height: 52px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--lk3-ink);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-align: left;
}

.lk3-search-icon {
  flex: 0 0 auto;
}

.lk3-search-dialog[hidden] {
  display: none;
}

.lk3-search-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: start;
}

.lk3-search-backdrop {
  grid-area: 1 / 1;
  width: 100%;
  height: 100dvh;
  padding: 0;
  border: 0;
  background: rgba(13, 13, 12, 0.68);
  opacity: 0;
  transition: opacity 180ms ease;
}

.lk3-search-panel {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  width: min(920px, calc(100% - 48px));
  margin: 88px auto 0;
  padding: 30px;
  background: var(--lk3-surface);
  color: var(--lk3-ink);
  border: 1px solid rgba(21, 21, 21, 0.12);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
  transform: translateY(-12px);
  opacity: 0;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.lk3-search-dialog.is-open .lk3-search-backdrop {
  opacity: 1;
}

.lk3-search-dialog.is-open .lk3-search-panel {
  transform: translateY(0);
  opacity: 1;
}

.lk3-search-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.lk3-search-kicker {
  margin-bottom: 8px;
  color: var(--lk3-muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lk3-search-title {
  margin: 0;
  max-width: 680px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.lk3-search-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lk3-ink);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.lk3-search-close:hover {
  background: rgba(21, 21, 21, 0.06);
}

.lk3-search-form {
  margin-top: 34px;
}

.lk3-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 7px 8px 7px 18px;
  border: 1px solid rgba(21, 21, 21, 0.26);
  background: #fff;
}

.lk3-search-field:focus-within {
  border-color: var(--lk3-cobalt);
  box-shadow: 0 0 0 1px var(--lk3-cobalt);
}

.lk3-search-field-icon {
  color: var(--lk3-muted);
}

.lk3-search-input {
  min-width: 0;
  width: 100%;
  padding: 8px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lk3-ink);
  font: inherit;
  font-size: 18px;
}

.lk3-search-input::placeholder {
  color: #8b867e;
}

.lk3-search-submit {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--lk3-ink);
  background: var(--lk3-ink);
  color: var(--lk3-white);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.lk3-search-submit:hover {
  background: #2a2a28;
}

.lk3-search-help {
  margin: 12px 0 0;
  color: var(--lk3-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.lk3-search-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .lk3-search-panel {
    width: calc(100% - 24px);
    margin-top: 58px;
    padding: 22px;
  }

  .lk3-search-field {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 14px;
  }

  .lk3-search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk3-search-backdrop,
  .lk3-search-panel {
    transition: none;
  }
}


/* F05 · Guest Header State */

.lk3-guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.lk3-guest-login,
.lk3-guest-register {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  white-space: nowrap;
}

.lk3-guest-login {
  padding: 0 8px;
  color: rgba(255, 253, 248, 0.82);
}

.lk3-guest-login:hover {
  color: var(--lk3-white);
}

.lk3-guest-register {
  padding: 0 15px;
  border: 1px solid var(--lk3-red);
  background: var(--lk3-red);
  color: #fff;
}

.lk3-guest-register:hover {
  filter: brightness(1.06);
}

.lk3-guest-login:focus-visible,
.lk3-guest-register:focus-visible,
.lk3-mobile-account-trigger:focus-visible,
.lk3-mobile-guest-login:focus-visible,
.lk3-mobile-guest-register:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

.lk3-mobile-account-trigger {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--lk3-white);
  text-decoration: none;
}

.lk3-mobile-account-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lk3-mobile-guest-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(21, 21, 21, 0.12);
}

.lk3-mobile-guest-login,
.lk3-mobile-guest-register {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
}

.lk3-mobile-guest-login {
  border: 1px solid rgba(21, 21, 21, 0.28);
  color: var(--lk3-ink);
  background: transparent;
}

.lk3-mobile-guest-register {
  border: 1px solid var(--lk3-red);
  background: var(--lk3-red);
  color: #fff;
}

/*
 * Approved compact mobile utility order:
 * Logo · Search · Login/Account · Menu.
 *
 * F14 may harmonize the precise breakpoint with the complete shell.
 */
@media (max-width: 1199px) {
  .lk3-header-mobile-controls {
    gap: 2px;
  }

  .lk3-header-mobile-controls .lk3-search-trigger--icon {
    display: inline-grid;
  }
}

@media (max-width: 620px) {
  .lk3-brand {
    width: 146px;
    flex-basis: 146px;
  }

  .lk3-header-mobile-controls {
    gap: 0;
  }
}


/* F06 · Authenticated FREE Header State */

.lk3-free-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
}

.lk3-free-my-lesson,
.lk3-free-upgrade {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  white-space: nowrap;
}

.lk3-free-my-lesson {
  padding: 0 8px;
  color: rgba(255, 253, 248, 0.84);
}

.lk3-free-my-lesson:hover {
  color: var(--lk3-white);
}

.lk3-free-upgrade {
  padding: 0 14px;
  border: 1px solid rgba(221, 244, 96, 0.62);
  background: transparent;
  color: var(--lk3-lime);
}

.lk3-free-upgrade:hover {
  border-color: var(--lk3-lime);
  background: rgba(221, 244, 96, 0.08);
}

.lk3-free-my-lesson:focus-visible,
.lk3-free-upgrade:focus-visible,
.lk3-mobile-free-my-lesson:focus-visible,
.lk3-mobile-free-upgrade:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}


.lk3-mobile-free-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(21, 21, 21, 0.12);
}

.lk3-mobile-free-my-lesson,
.lk3-mobile-free-upgrade {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
}

.lk3-mobile-free-my-lesson {
  border: 1px solid rgba(21, 21, 21, 0.28);
  color: var(--lk3-ink);
  background: transparent;
}

.lk3-mobile-free-upgrade {
  border: 1px solid var(--lk3-cobalt);
  background: var(--lk3-cobalt);
  color: #fff;
}


/* F07 · Authenticated PLUS Header State */

.lk3-plus-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
}

.lk3-plus-my-lesson {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  color: rgba(255, 253, 248, 0.86);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 750;
  white-space: nowrap;
}

.lk3-plus-my-lesson:hover {
  color: var(--lk3-white);
}

.lk3-plus-my-lesson:focus-visible,
.lk3-mobile-plus-my-lesson:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

.lk3-mobile-plus-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(21, 21, 21, 0.12);
}

.lk3-mobile-plus-my-lesson {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(21, 21, 21, 0.28);
  background: transparent;
  color: var(--lk3-ink);
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
}


/* F10 · Authenticated Account Avatar / Menu */

.lk3-account-trigger {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lk3-white);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.lk3-account-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lk3-account-trigger:focus-visible,
.lk3-account-menu-link:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

.lk3-account-avatar {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.08);
  color: var(--lk3-white);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
}

.lk3-account-menu[hidden] {
  display: none;
}

.lk3-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: max(
    var(--lk3-shell-gutter, 20px),
    calc((100vw - 1360px) / 2)
  );
  z-index: 1050;
  width: min(310px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.lk3-account-menu.is-open {
  opacity: 1;
  transform: translateY(0);
}

.lk3-account-menu-inner {
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.14);
  background: var(--lk3-surface);
  color: var(--lk3-ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.lk3-account-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(21, 21, 21, 0.10);
}

.lk3-account-avatar--large {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-color: rgba(21, 21, 21, 0.18);
  background: var(--lk3-ink);
  color: var(--lk3-white);
  font-size: 14px;
}

.lk3-account-name {
  min-width: 0;
  overflow: hidden;
  color: var(--lk3-ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lk3-account-menu-links {
  display: grid;
}

.lk3-account-menu-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: var(--lk3-ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 680;
}

.lk3-account-menu-link:hover {
  background: rgba(21, 21, 21, 0.05);
}

.lk3-account-menu-logout {
  color: #8e2727;
}

@media (min-width: 1200px) {
  .lk3-account-trigger--mobile {
    display: none;
  }
}

@media (max-width: 1199px) {
  .lk3-account-trigger--desktop {
    display: none;
  }

  .lk3-account-trigger--mobile {
    display: inline-grid;
  }

  .lk3-account-menu {
    position: fixed;
    top: calc(var(--lk3-header-height) + 8px);
    right: 16px;
  }
}

@media (max-width: 620px) {
  .lk3-account-menu {
    right: 12px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk3-account-menu {
    transition: none;
  }
}


/* F11 · Global Footer Production Shell */

.lk3-site-footer {
  position: relative;
  background: var(--lk3-header-ink);
  color: var(--lk3-white);
  font-family: var(--lk3-font);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.lk3-footer-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.15fr) minmax(0, 3fr);
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 68px;
}

.lk3-footer-brand-area {
  min-width: 0;
}

.lk3-footer-brand {
  display: inline-flex;
  width: min(190px, 100%);
  color: var(--lk3-white);
  text-decoration: none;
}

.lk3-footer-brand .lk3-brand-image {
  max-width: 190px;
}

.lk3-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.lk3-footer-column {
  min-width: 0;
}

.lk3-footer-column-title {
  margin: 0 0 18px;
  color: rgba(255, 253, 248, 0.48);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.lk3-footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-nav-list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-nav-list > li + li {
  margin-top: 11px;
}

.lk3-footer-nav-list a {
  display: inline-flex;
  color: rgba(255, 253, 248, 0.82);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 620;
}

.lk3-footer-nav-list a:hover,
.lk3-footer-nav-list .current-menu-item > a,
.lk3-footer-nav-list .current-menu-parent > a,
.lk3-footer-nav-list .current-menu-ancestor > a {
  color: var(--lk3-white);
}

.lk3-footer-nav-list a:focus-visible,
.lk3-footer-brand:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 4px;
}

.lk3-footer-bottom {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 253, 248, 0.48);
  font-size: 14px;
  line-height: 1.4;
}

.lk3-footer-legal-slot {
  justify-self: center;
  min-width: 0;
}

.lk3-footer-social-slot {
  justify-self: end;
  min-width: 0;
}

@media (max-width: 1199px) {
  .lk3-footer-main {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

@media (max-width: 959px) {
  .lk3-footer-main {
    padding-top: 54px;
    padding-bottom: 48px;
  }

  .lk3-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 26px;
  }

  .lk3-footer-bottom {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .lk3-footer-legal-slot,
  .lk3-footer-social-slot {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .lk3-footer-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* F12 · Footer Legal Navigation */

.lk3-footer-legal-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-legal-nav-list > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-legal-nav-list > li + li::before {
  content: "·";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(255, 253, 248, 0.24);
  pointer-events: none;
}

.lk3-footer-legal-nav-list a {
  color: rgba(255, 253, 248, 0.54);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.lk3-footer-legal-nav-list a:hover,
.lk3-footer-legal-nav-list .current-menu-item > a {
  color: var(--lk3-white);
}

.lk3-footer-legal-nav-list a:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

@media (max-width: 959px) {
  .lk3-footer-legal-nav-list {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .lk3-footer-legal-nav-list {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .lk3-footer-legal-nav-list > li + li::before {
    content: none;
  }
}


/* F13 · Footer Social Links */

.lk3-footer-social-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-social-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 999px;
  color: rgba(255, 253, 248, 0.70);
  text-decoration: none;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.lk3-footer-social-link:hover {
  border-color: rgba(255, 253, 248, 0.38);
  background: rgba(255, 253, 248, 0.06);
  color: var(--lk3-white);
  transform: translateY(-1px);
}

.lk3-footer-social-link:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

.lk3-footer-social-item.current-menu-item .lk3-footer-social-link {
  border-color: rgba(255, 253, 248, 0.38);
  color: var(--lk3-white);
}

@media (max-width: 959px) {
  .lk3-footer-social-list {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lk3-footer-social-link {
    transition: none;
  }

  .lk3-footer-social-link:hover {
    transform: none;
  }
}


/* F14 · Global Responsive Hardening */

/* Flex/grid children in the global shell must be allowed to shrink. */
.lk3-header-inner,
.lk3-header-actions,
.lk3-header-mobile-controls,
.lk3-footer-main,
.lk3-footer-columns,
.lk3-footer-bottom,
.lk3-footer-column,
.lk3-footer-legal-slot,
.lk3-footer-social-slot {
  min-width: 0;
}

/* Header/footer media and inline SVG must never force page overflow. */
.lk3-site-header img,
.lk3-site-header svg,
.lk3-site-footer img,
.lk3-site-footer svg {
  max-width: 100%;
}

/* Interactive global-shell controls preserve touch sizing on coarse pointers. */
@media (pointer: coarse) {
  .lk3-search-trigger,
  .lk3-mobile-menu-toggle,
  .lk3-mobile-drawer-close,
  .lk3-mobile-account-trigger,
  .lk3-account-trigger,
  .lk3-footer-social-link {
    min-width: var(--lk3-control-min);
    min-height: var(--lk3-control-min);
  }
}

/* Short landscape screens: drawer/dialog scrolls internally instead of
   relying on giant viewport-locked children. */
@media (max-height: 600px) and (orientation: landscape) {
  .lk3-mobile-drawer-panel,
  .lk3-search-dialog-panel {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
}


/* F15 · Keyboard Navigation / Accessibility Shell */

.lk3-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  max-width: calc(100vw - 16px);
  padding: 11px 14px;
  border: 2px solid var(--lk3-lime);
  background: var(--lk3-ink);
  color: var(--lk3-white);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform 120ms ease;
}

.lk3-skip-link:focus,
.lk3-skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

.lk3-site-header a:focus-visible,
.lk3-site-header button:focus-visible,
.lk3-site-header input:focus-visible,
.lk3-site-footer a:focus-visible,
.lk3-site-footer button:focus-visible,
.lk3-site-footer input:focus-visible,
.lk3-site-footer select:focus-visible {
  outline: 2px solid var(--lk3-lime);
  outline-offset: 3px;
}

#lk3-main-content:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .lk3-skip-link {
    transition: none;
  }
}


/* =========================================================
   GLOBAL SHELL PREVIEW REFINEMENT · v1
   Current-site brand/footer strengths × Lekcija 3.0 system
   ========================================================= */

/* Exact current-site logo asset controls. */
.lk3-site-header .lk3-brand {
  flex: 0 0 auto;
}

.lk3-site-header .lk3-brand-image {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 38px;
  object-fit: contain;
}

.lk3-footer-brand {
  width: auto;
  max-width: 190px;
}

.lk3-footer-brand .lk3-brand-image {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
}

/* Search: remove the highlighter-yellow input focus box.
   Focus stays clearly visible through one restrained field border. */
.lk3-search-input:focus,
.lk3-search-input:focus-visible {
  outline: none !important;
}

.lk3-search-field:focus-within {
  border-color: rgba(21, 21, 21, 0.82);
  box-shadow: 0 0 0 1px rgba(21, 21, 21, 0.82);
}

.lk3-search-submit:focus-visible,
.lk3-search-close:focus-visible {
  outline-color: var(--lk3-cobalt);
}

/* FREE upgrade CTA: Logo Red is the launch brand action color. */
.lk3-free-upgrade,
.lk3-mobile-free-upgrade {
  border-color: var(--lk3-red);
  background: var(--lk3-red);
  color: var(--lk3-white);
}

.lk3-free-upgrade:hover,
.lk3-mobile-free-upgrade:hover {
  border-color: var(--lk3-red);
  background: var(--lk3-red);
  color: var(--lk3-white);
  filter: brightness(0.94);
}

.lk3-free-upgrade:focus-visible,
.lk3-mobile-free-upgrade:focus-visible {
  outline: 2px solid var(--lk3-white);
  outline-offset: 3px;
}

/* Footer: 4 visual columns total = brand + three navigation groups. */
.lk3-site-footer {
  background: #090d11;
  color: var(--lk3-white);
}

.lk3-footer-main {
  grid-template-columns: minmax(250px, 1.08fr) minmax(0, 2.92fr);
  gap: 86px;
  padding-top: 66px;
  padding-bottom: 62px;
}

.lk3-footer-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px;
}

.lk3-footer-brand-area {
  align-self: start;
}

.lk3-footer-tagline {
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.lk3-footer-description {
  max-width: 290px;
  margin: 10px 0 0;
  color: rgba(255, 253, 248, 0.44);
  font-size: 16px;
  line-height: 1.55;
}

.lk3-footer-column-title {
  margin-bottom: 20px;
  color: var(--lk3-red);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.lk3-footer-nav-list {
  margin: 0;
  padding: 0;
}

.lk3-footer-nav-list + .lk3-footer-nav-list {
  margin-top: 12px;
}

.lk3-footer-nav-list > li + li {
  margin-top: 12px;
}

.lk3-footer-nav-list a,
.lk3-footer-legal-nav-list a {
  color: rgba(255, 253, 248, 0.82);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.lk3-footer-nav-list a:hover,
.lk3-footer-legal-nav-list a:hover,
.lk3-footer-nav-list .current-menu-item > a,
.lk3-footer-legal-nav-list .current-menu-item > a {
  color: var(--lk3-white);
}

.lk3-footer-social-slot {
  margin-top: 20px;
}

.lk3-footer-social-list {
  justify-content: flex-start;
  gap: 8px;
}

.lk3-footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border-color: rgba(255, 253, 248, 0.16);
  color: rgba(255, 253, 248, 0.66);
}

.lk3-footer-social-link:hover {
  border-color: rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.05);
}

/* Legal lives in the current-site-inspired "ОСТАНАТИ ЛИНКОВИ" column. */
.lk3-footer-legal-slot {
  margin-top: 12px;
}

.lk3-footer-legal-nav {
  display: block;
}

.lk3-footer-legal-nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  margin: 0;
  padding: 0;
}

.lk3-footer-legal-nav-list > li {
  margin: 0;
}

.lk3-footer-legal-nav-list > li + li {
  margin-top: 12px;
}

.lk3-footer-legal-nav-list > li + li::before {
  content: none;
}

.lk3-footer-bottom {
  min-height: 72px;
  grid-template-columns: 1fr auto;
  gap: 28px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 14px;
}

.lk3-footer-made-in {
  justify-self: end;
  color: rgba(255, 253, 248, 0.62);
}

@media (max-width: 1199px) {
  .lk3-footer-main {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
    gap: 50px;
  }

  .lk3-footer-columns {
    gap: 36px;
  }
}

@media (max-width: 959px) {
  .lk3-footer-main {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .lk3-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 34px;
  }

  .lk3-footer-column--other {
    grid-column: 1 / -1;
  }

  .lk3-footer-bottom {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 620px) {
  .lk3-footer-main {
    padding-top: 48px;
    padding-bottom: 44px;
  }

  .lk3-footer-columns {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .lk3-footer-column--other {
    grid-column: auto;
  }

  .lk3-footer-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .lk3-footer-made-in {
    justify-self: start;
  }
}


/* =========================================================
   GLOBAL SHELL REFINEMENT · v1.1
   Header typography readability pass
   ========================================================= */

/*
 * Desktop primary navigation:
 * - slightly larger optical size
 * - lighter weight
 * - higher contrast
 * The goal is the easy-reading feel of the current Lekcija header,
 * without making the new shell loud or bulky.
 */
@media (min-width: 1200px) {
  .lk3-primary-nav-list > li > a {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: rgba(255, 253, 248, 0.90);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .lk3-primary-nav-list {
    gap: 25px;
  }

  /* Authenticated desktop text actions should not look smaller/heavier
     than the primary navigation beside them. */
  .lk3-free-my-lesson,
  .lk3-free-upgrade,
  .lk3-plus-my-lesson {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 650;
    letter-spacing: -0.01em;
  }

  .lk3-free-my-lesson,
  .lk3-plus-my-lesson {
    color: rgba(255, 253, 248, 0.90);
  }

  /* Guest desktop text actions follow the same readability scale. */
  .lk3-guest-login,
  .lk3-guest-register {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 650;
  }
}

/* =========================================================
   LEKCIJA 3.0 · GLOBAL SHELL V2 FINAL CORRECTION
   Source: rendered QA + locked Footer/Header contracts.
   ========================================================= */

:root {
  --lk3-shell-v2-red: #EF2B2D;
  --lk3-shell-v2-cobalt: #315BFF;
  --lk3-shell-v2-footer: #070B0F;
}

/* ---------------------------------------------------------
   HEADER · exact official logo asset
   --------------------------------------------------------- */

.lk3-site-header .lk3-brand {
  display: block;
  flex: 0 0 auto;
  width: 150px;
  height: 40px;
  padding: 0;
  background:
    url("../images/lk3-official-logo-light.png")
    left center / contain no-repeat;
}

.lk3-site-header .lk3-brand > * {
  opacity: 0 !important;
  visibility: hidden !important;
}

@media (min-width: 1200px) {
  .lk3-primary-nav-list {
    gap: 25px;
  }

  .lk3-primary-nav-list > li > a {
    color: rgba(255, 253, 248, 0.92);
    font-size: 15px;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.012em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  .lk3-free-my-lesson,
  .lk3-plus-my-lesson,
  .lk3-free-upgrade,
  .lk3-guest-login,
  .lk3-guest-register {
    font-size: 14px;
    line-height: 1.1;
    font-weight: 650;
  }
}

/* FREE Upgrade = exact brand red. */
.lk3-free-upgrade,
.lk3-mobile-free-upgrade {
  border-color: var(--lk3-shell-v2-red) !important;
  background: var(--lk3-shell-v2-red) !important;
  color: #FFFDF8 !important;
}

.lk3-free-upgrade:hover,
.lk3-mobile-free-upgrade:hover {
  border-color: var(--lk3-shell-v2-red) !important;
  background: var(--lk3-shell-v2-red) !important;
  color: #FFFDF8 !important;
  filter: brightness(.94);
}

/* Search: remove yellow/Lime boxed focus.
   Canonical interaction/focus signal = Cobalt. */
.lk3-search-input:focus,
.lk3-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.lk3-search-field:focus-within {
  border-color: var(--lk3-shell-v2-cobalt) !important;
  box-shadow: 0 0 0 2px var(--lk3-shell-v2-cobalt) !important;
}

.lk3-search-submit:focus-visible,
.lk3-search-close:focus-visible {
  outline: 3px solid var(--lk3-shell-v2-cobalt) !important;
  outline-offset: 3px;
}

/* ---------------------------------------------------------
   FOOTER · brand + FOUR separate text columns
   --------------------------------------------------------- */

.lk3-site-footer--v2 {
  background: var(--lk3-shell-v2-footer);
  color: #FFFDF8;
}

.lk3-footer-v2-main {
  display: grid;
  grid-template-columns:
    minmax(250px, 1.28fr)
    repeat(4, minmax(125px, 1fr));
  gap: 54px;
  align-items: start;
  padding-top: 68px;
  padding-bottom: 58px;
}

.lk3-footer-v2-brand,
.lk3-footer-v2-column {
  min-width: 0;
}

.lk3-footer-v2-logo {
  display: block;
  width: 180px;
  max-width: 100%;
}

.lk3-footer-v2-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.lk3-footer-v2-tagline {
  margin: 19px 0 0;
  color: rgba(255, 253, 248, .82);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

.lk3-footer-v2-description {
  max-width: 300px;
  margin: 9px 0 0;
  color: rgba(255, 253, 248, .48);
  font-size: 16px;
  line-height: 1.55;
}

.lk3-footer-v2-social {
  margin-top: 20px;
}

.lk3-footer-v2-social .lk3-footer-social-list {
  display: flex;
  justify-content: flex-start !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.lk3-footer-v2-social .lk3-footer-social-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, .17);
  border-radius: 4px;
  color: rgba(255, 253, 248, .68);
}

.lk3-footer-v2-social .lk3-footer-social-link:hover {
  border-color: rgba(255, 253, 248, .38);
  background: rgba(255, 253, 248, .05);
  color: #FFFDF8;
}

.lk3-footer-v2-title {
  margin: 3px 0 21px;
  color: var(--lk3-shell-v2-red) !important;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.lk3-footer-v2-column .lk3-footer-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-v2-column .lk3-footer-nav-list > li {
  margin: 0;
  padding: 0;
}

.lk3-footer-v2-column .lk3-footer-nav-list > li + li {
  margin-top: 12px;
}

.lk3-footer-v2-column .lk3-footer-nav-list a {
  color: rgba(255, 253, 248, .80);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none;
}

.lk3-footer-v2-column .lk3-footer-nav-list a:hover,
.lk3-footer-v2-column .lk3-footer-nav-list .current-menu-item > a {
  color: #FFFDF8;
}

/* Bottom auxiliary/legal row. */
.lk3-footer-v2-bottom {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid rgba(255, 253, 248, .10);
  color: rgba(255, 253, 248, .65);
  font-size: 14px;
}

.lk3-footer-v2-legal {
  min-width: 0;
  justify-self: center;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list > li {
  margin: 0;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list > li + li::before {
  content: none !important;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list a {
  color: rgba(255, 253, 248, .58);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list a:hover {
  color: #FFFDF8;
}

.lk3-footer-v2-made {
  justify-self: end;
  white-space: nowrap;
  color: rgba(255, 253, 248, .62);
}

/* ---------------------------------------------------------
   RESPONSIVE
   Locked F14 behavior:
   wide -> brand row + 4 cols -> 2x2 -> single column
   --------------------------------------------------------- */

@media (max-width: 1199px) {
  .lk3-footer-v2-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 42px 34px;
  }

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

  .lk3-footer-v2-description {
    max-width: 440px;
  }
}

@media (max-width: 959px) {
  .lk3-footer-v2-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 34px;
    padding-top: 58px;
  }

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

  .lk3-footer-v2-bottom {
    grid-template-columns: 1fr auto;
    gap: 12px 28px;
    padding-block: 20px;
  }

  .lk3-footer-v2-legal {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
  }

  .lk3-footer-v2-copyright {
    grid-column: 1;
    grid-row: 2;
  }

  .lk3-footer-v2-made {
    grid-column: 2;
    grid-row: 2;
  }

  .lk3-footer-v2-legal .lk3-footer-legal-nav-list {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .lk3-site-header .lk3-brand {
    width: 138px;
    height: 38px;
  }

  .lk3-footer-v2-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 48px;
    padding-bottom: 44px;
  }

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

  .lk3-footer-v2-logo {
    width: 168px;
  }

  .lk3-footer-v2-title {
    margin-bottom: 17px;
  }

  .lk3-footer-v2-bottom {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 22px 26px;
  }

  .lk3-footer-v2-legal,
  .lk3-footer-v2-copyright,
  .lk3-footer-v2-made {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .lk3-footer-v2-legal .lk3-footer-legal-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
}


/* =========================================================
   LK3 SHELL V2.1 MICRO FIX
   1) footer legal inline
   2) social true left alignment
   3) upgrade/avatar desktop spacing
   ========================================================= */

/* Footer bottom legal links: one horizontal line on desktop/tablet. */
.lk3-footer-v2-legal {
  justify-self: center !important;
  width: auto !important;
  max-width: none !important;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav,
.lk3-footer-v2-legal .lk3-footer-legal-nav-list {
  width: auto !important;
  max-width: none !important;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 22px !important;
  white-space: nowrap !important;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list > li {
  display: inline-flex !important;
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.lk3-footer-v2-legal .lk3-footer-legal-nav-list > li + li::before {
  content: none !important;
}

/* Social icons: same left edge as logo/tagline. */
.lk3-footer-v2-brand .lk3-footer-social-slot,
.lk3-footer-v2-brand .lk3-footer-v2-social {
  display: block !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-self: start !important;
  align-self: start !important;
  text-align: left !important;
}

.lk3-footer-v2-brand .lk3-footer-social-nav {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: left !important;
}

.lk3-footer-v2-brand .lk3-footer-social-list {
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  padding: 0 !important;
  justify-content: flex-start !important;
  align-items: center !important;
}

/* Header: give account avatar breathing room after authenticated actions. */
@media (min-width: 1200px) {
  .lk3-account-trigger--desktop {
    margin-left: 14px !important;
  }
}

/* On smaller layouts keep legal links horizontal where they fit. */
@media (max-width: 959px) {
  .lk3-footer-v2-legal {
    justify-self: start !important;
  }

  .lk3-footer-v2-legal .lk3-footer-legal-nav-list {
    justify-content: flex-start !important;
  }
}

@media (max-width: 620px) {
  .lk3-footer-v2-legal .lk3-footer-legal-nav-list {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 18px !important;
    white-space: normal !important;
  }
}

/* QA14 · Subtle global Search interactions, shared on every page. */
.lk3-search-trigger--icon:hover {background:rgba(255,255,255,.08);box-shadow:none;}
.lk3-search-trigger--mobile:hover {background:rgba(21,21,21,.05);box-shadow:none;}
.lk3-search-field {transition:border-color .16s ease;}
.lk3-search-field:hover {border-color:rgba(21,21,21,.45);box-shadow:none;}
.lk3-search-field:focus-within {border-color:rgba(21,21,21,.72)!important;box-shadow:none!important;}
.lk3-search-submit {transition:background-color .16s ease;}
.lk3-search-submit:hover {background:#2a2a28;box-shadow:none;}
.lk3-search-submit:focus-visible,.lk3-search-close:focus-visible,
.lk3-search-trigger:focus-visible {outline:2px solid #777168!important;outline-offset:3px;}
@media(prefers-reduced-motion:reduce){.lk3-search-field,.lk3-search-submit{transition:none;}}

.lk3-logout-form{margin:0;display:inline-flex;}
button.lk3-account-menu-link{appearance:none;border:0;background:transparent;font:inherit;cursor:pointer;text-align:left;width:100%;min-height:44px;}

/* Guest Plus entry */
.lk3-guest-plus{display:inline-flex;align-items:center;min-height:38px;color:#fff;font-weight:750;font-size:14px;padding:8px 12px;border:1px solid #ffffff70;text-decoration:none}.lk3-guest-plus:hover{background:#282828;color:#fff;text-decoration:none}.lk3-guest-plus:focus-visible{outline:2px solid #fff;outline-offset:3px}
