:root {
  --lp-header-h: 66px;
  --lp-header-offset: 84px;
  --lp-primary: #30398D;
  --lp-navy: #1f2b66;
  --lp-mid: #1a52a8;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--lp-header-offset);
  background: linear-gradient(180deg, #f4f5fb 0%, #eef1fa 60%, #e8ecf7 100%);
}

main#main-content {
  flex: 1 0 auto;
  width: 100%;
}

body > footer {
  margin-top: auto;
  flex-shrink: 0;
}

.lp-skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.lp-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 1rem;
  background: #1f2b66;
  color: #fff;
  border-radius: 10px;
  z-index: 300;
  outline: 3px solid #fff;
  box-shadow: 0 10px 30px rgba(31, 43, 102, 0.35);
}

.lp-header-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: #1f2b66;
  box-shadow: 0 2px 12px rgba(18, 26, 80, 0.45);
  overflow: hidden;
}

.lp-header-shell::before {
  content: none;
}

.lp-header-shell .container {
  max-width: 1280px;
  position: relative;
  z-index: 1;
}

.lp-global-shell {
  width: 100%;
  display: flex;
  align-items: center;
  height: var(--lp-header-h);
  gap: 0;
}

.lp-global-shell .lp-header-bar {
  flex-shrink: 0;
}

.lp-header-bar {
  display: flex;
  align-items: center;
  padding: 0 1.2rem 0 0;
}

.lp-header-bar .logo {
  height: 56px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.lp-global-menu {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0 0 0 1rem;
  gap: 0.3rem;
  margin: 0;
  box-shadow: none;
  width: auto;
}

.lp-global-menu__links {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lp-global-menu__parent {
  margin-left: auto;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-global-menu__auth {
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-global-menu__context {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-left: 0.65rem;
  margin-left: 0.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-global-menu__context-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 260px;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
}

.lp-global-menu__context-pill i {
  font-size: 0.72rem;
  opacity: 0.88;
}

.lp-global-menu__context-pill.is-year {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.lp-global-menu__context-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-global-menu__context-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}

.lp-global-menu__context-clear:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.lp-global-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem 0.78rem;
  border-radius: 7px;
  font-weight: 500;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  border: none;
  transition: background 0.14s, color 0.14s;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.lp-global-menu__link i {
  font-size: 0.8rem;
  opacity: 0.9;
}

.lp-global-menu__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.lp-global-menu__link:hover i {
  opacity: 1;
}

.lp-global-menu__link.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.55);
}

.lp-global-menu__link.is-active i {
  opacity: 1;
}

.lp-global-menu__link.is-parent {
  color: rgba(255, 255, 255, 0.62);
}

.lp-global-menu__link.is-parent:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.lp-global-menu__auth .lp-global-menu__link {
  color: rgba(255, 255, 255, 0.6);
}

.lp-global-menu__auth .lp-global-menu__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.lp-context-return {
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: -0.35rem 0 0.8rem;
}

.lp-context-return__link {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 100%;
  padding: 0.36rem 0.7rem;
  border: 1px solid rgba(48, 57, 141, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--lp-primary);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(31, 43, 102, 0.07);
  transition: background 0.14s, border-color 0.14s, box-shadow 0.14s, color 0.14s;
}

.lp-context-return__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-context-return__link:hover {
  border-color: rgba(48, 57, 141, 0.34);
  background: #fff;
  color: var(--lp-navy);
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(31, 43, 102, 0.11);
}

.lp-context-return__link:focus-visible {
  outline: 3px solid rgba(48, 57, 141, 0.22);
  outline-offset: 2px;
}

.flash-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.lp-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border-radius: 10px;
  padding: 0.85rem 1rem 0.85rem 0.95rem;
  border: 1px solid transparent;
  font-weight: 500;
}

.lp-alert.alert-danger {
  background: #ffe9e7;
  border-color: rgba(180, 35, 24, 0.14);
  color: #8a1c1c;
}

.lp-alert.alert-success {
  background: #edf9f0;
  border-color: rgba(32, 114, 69, 0.14);
  color: #146c43;
}

.lp-alert.alert-warning {
  background: #fff4e5;
  border-color: rgba(154, 91, 0, 0.14);
  color: #9a6a16;
}

.lp-alert.alert-info {
  background: #eef5ff;
  border-color: rgba(48, 57, 141, 0.14);
  color: #20448c;
}

.lp-alert-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  margin-top: 0.1rem;
}

.lp-alert .close {
  color: inherit;
  opacity: 0.65;
  align-self: center;
  margin-left: auto;
}

.lp-alert .close:hover {
  opacity: 1;
}

.lp-alert-content {
  flex: 1;
  line-height: 1.45;
}

.lp-footer {
  background: var(--lp-navy, #1f2b66);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  margin-top: auto;
}

@media (max-width: 1200px) {
  :root {
    --lp-header-h: 62px;
    --lp-header-offset: 78px;
  }

  .lp-header-shell .container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .lp-header-bar {
    padding: 0 0.85rem 0 0;
  }

  .lp-header-bar .logo {
    height: 50px;
  }

  .lp-global-menu {
    padding-left: 0.7rem;
    gap: 0.18rem;
  }

  .lp-global-menu__links {
    gap: 0.18rem;
  }

  .lp-global-menu__link {
    padding: 0.28rem 0.58rem;
    font-size: 0.78rem;
  }

  .lp-global-menu__link i {
    font-size: 0.74rem;
  }

  .lp-global-menu__parent,
  .lp-global-menu__auth,
  .lp-global-menu__context {
    padding-left: 0.48rem;
  }

  .lp-global-menu__context {
    gap: 0.25rem;
  }

  .lp-global-menu__context-pill {
    max-width: 180px;
    padding: 0.22rem 0.48rem;
    font-size: 0.69rem;
  }

  .lp-global-menu__context-clear {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 992px) {
  :root {
    --lp-header-offset: 0px;
    --lp-header-h: auto;
  }

  body {
    padding-top: 0 !important;
  }

  .lp-header-shell {
    position: static !important;
    overflow: visible;
  }

  .lp-global-shell {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding-bottom: 0.4rem;
  }

  .lp-header-bar {
    justify-content: center;
    padding: 0.5rem 0 0.3rem;
  }

  .lp-header-bar .logo {
    height: 46px;
  }

  .lp-global-menu {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding: 0.42rem 0 0;
    gap: 0.3rem;
    flex-wrap: wrap;
  }

  .lp-global-menu__links {
    order: 1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.22rem;
  }

  .lp-global-menu__parent,
  .lp-global-menu__context,
  .lp-global-menu__auth {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .lp-global-menu__context {
    order: 2;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .lp-global-menu__parent {
    order: 3;
  }

  .lp-global-menu__auth {
    order: 4;
    margin-left: auto;
  }

  .lp-global-menu__context-pill {
    max-width: min(100%, 420px);
  }

  .lp-global-menu__link {
    justify-content: center;
    padding: 0.36rem 0.6rem;
  }
}

@media (max-width: 768px) {
  .lp-global-shell {
    padding-bottom: 0.3rem;
  }

  .lp-header-bar {
    padding: 0.45rem 0 0.25rem;
  }

  .lp-global-menu {
    padding: 0.35rem 0 0;
    gap: 0.24rem;
  }

  .lp-global-menu__links {
    justify-content: flex-start;
  }

  .lp-global-menu__context {
    justify-content: flex-start;
  }

  .lp-global-menu__parent,
  .lp-global-menu__auth {
    width: auto;
  }

  .lp-global-menu__auth {
    margin-left: 0;
  }

  .lp-global-menu__context-pill {
    max-width: 100%;
  }

  .lp-global-menu__link {
    justify-content: center;
    padding: 0.36rem 0.58rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 576px) {
  .lp-header-bar .logo {
    height: 42px;
  }

  .lp-global-menu__links,
  .lp-global-menu__context {
    width: 100%;
  }

  .lp-global-menu__link {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
  }

  .lp-global-menu__context-pill {
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }

  .lp-global-menu__auth .lp-global-menu__link,
  .lp-global-menu__parent .lp-global-menu__link {
    min-width: auto;
  }

  .lp-context-return {
    margin-top: -0.2rem;
  }

  .lp-context-return__link {
    max-width: 100%;
    padding: 0.42rem 0.72rem;
  }
}
