:root {
  --soft-ink: #263a40;
}

.hero {
  color: #102126;
}

.hero-image {
  filter: saturate(.94) contrast(1.02) brightness(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(245 240 229 / 98%) 0%, rgb(245 240 229 / 91%) 35%, rgb(245 240 229 / 57%) 54%, rgb(245 240 229 / 8%) 78%),
    linear-gradient(0deg, rgb(232 224 207 / 66%) 0%, transparent 48%);
}

.nav-shell {
  color: #102126;
  border-bottom-color: rgb(16 33 38 / 18%);
}

.nav-cta {
  border-color: rgb(16 33 38 / 45%);
}

.hero .eyebrow {
  color: #087e9c;
}

.hero-lead {
  color: rgb(16 33 38 / 72%);
}

.hero .button-ghost {
  color: #102126;
  border-color: rgb(16 33 38 / 42%);
}

.hero .button-ghost:hover {
  border-color: #102126;
  background: rgb(16 33 38 / 7%);
}

.hero-index {
  color: rgb(16 33 38 / 50%);
}

.themes {
  background: #263a40;
}

.membership {
  background: #1b343b;
}

.member-card {
  background: #294249;
}

.course-card {
  background: #243b42;
}

footer {
  background: #1a2c31;
}

.portal-page {
  background: #1b343b;
}

.section-label b,
.rite-list b {
  font: inherit;
  font-weight: 400;
}

.button span[data-i18n] {
  margin-left: 0;
}

.theme-card a span[data-i18n] {
  color: inherit;
  font-size: inherit;
}

.language-switcher {
  position: relative;
}

.language-trigger {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: .35rem .55rem;
  color: #102126;
  border: 1px solid rgb(16 33 38 / 28%);
  background: rgb(245 240 229 / 78%);
  cursor: pointer;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: #087e9c;
}

.language-flag,
.language-menu button > img {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border: 1px solid rgb(16 33 38 / 15%);
  box-shadow: 0 1px 4px rgb(0 0 0 / 15%);
}

.language-code {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.language-chevron {
  color: #087e9c;
  font-size: .72rem;
}

.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .75rem);
  z-index: 30;
  width: 240px;
  padding: .4rem;
  background: #f5f0e5;
  border: 1px solid rgb(16 33 38 / 20%);
  box-shadow: 0 18px 50px rgb(0 0 0 / 18%);
}

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

.language-menu button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: .55rem;
  align-items: center;
  padding: .8rem;
  color: #34484d;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
  color: #102126;
  background: rgb(8 126 156 / 10%);
}

.language-menu button > span {
  font-size: .72rem;
}

.language-menu small {
  color: #087e9c;
  font-size: .52rem;
  letter-spacing: .08em;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-actions > a {
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.portal-nav .language-trigger {
  color: #f2eee3;
  border-color: rgb(255 255 255 / 25%);
  background: rgb(255 255 255 / 8%);
}

@media (max-width: 760px) {
  .hero-shade {
    background: linear-gradient(0deg, rgb(245 240 229 / 98%) 0%, rgb(245 240 229 / 80%) 58%, rgb(245 240 229 / 40%));
  }

  .language-code {
    display: none;
  }

  .language-trigger {
    padding-inline: .48rem;
  }

  .language-menu {
    right: 0;
    width: min(240px, calc(100vw - 2rem));
  }

  .portal-actions {
    gap: .55rem;
  }

  .nav-links {
    gap: .5rem;
  }

  .nav-shell .wordmark,
  .portal-nav .wordmark {
    gap: 8px;
    font-size: 9px;
  }

  .nav-shell .wordmark img,
  .portal-nav .wordmark img {
    width: 38px;
    height: 38px;
  }

  .nav-cta {
    padding: 10px 8px;
    font-size: 9px;
  }

  .portal-actions > a {
    font-size: 9px;
    letter-spacing: .08em;
  }
}
