.l-header {
  border-top: 5px solid var(--teal);
  border-bottom: 1px solid #dfdfd6;
  background: #fbfaf6;
  position: relative;
  z-index: 5;
}
.l-headerInner {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 68px;
}
.l-brand {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: -1px;
}
.l-headerInner .l-brand {
  font-size: 24px;
}
.l-brandLeaf {
  font-size: 28px;
  margin-left: 5px;
  color: #9ba884;
}
.l-desktopNav {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-left: auto;
  height: 68px;
}
.l-desktopNav a {
  font-size: 13px;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.l-desktopNav a.l-active:after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
}
.l-headerInner > .button {
  font-size: 14px;
  padding: 10px 18px;
  flex-shrink: 0;
}
.l-preferences {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.l-preferences > div:first-child {
  width: 196px;
}
.l-language {
  position: relative;
  width: 110px;
  flex-shrink: 0;
  border: 1px solid #9ab4a9;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal);
}
.l-language:hover {
  border-color: var(--teal);
}
.l-language > svg {
  position: absolute;
  left: 10px;
  top: 15px;
  pointer-events: none;
}
.l-language label {
  position: absolute;
  top: 5px;
  left: 36px;
  font-size: 10px;
  line-height: 1.3;
  pointer-events: none;
}
.l-language select {
  width: 100%;
  min-height: 48px;
  padding: 17px 5px 3px 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--teal);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.l-reviewBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  border-top: 1px solid #e9e8df;
}
.l-memberLinks { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-left: auto; font-size: 12px; }
.l-memberLinks a, .l-memberLinks button { min-height: 44px; display: inline-flex; align-items: center; }
.l-memberLinks button { color: var(--teal); background: transparent; border: 0; padding: 0 4px; font-size: 12px; }
@media (max-width:767px) { .l-reviewBar { flex-wrap: wrap; gap: 2px 12px; } .l-memberLinks { width: 100%; justify-content: space-between; order: 2; } }
.l-demoLabel {
  font-size: 10px;
  color: var(--muted);
}
.l-editorLink {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 11px;
  margin-left: auto;
  min-height: 30px;
}
.l-menuButton {
  display: none;
}
.l-footer {
  background: var(--teal);
  color: #e9f0e9;
  padding: 40px 0 32px;
  margin-top: 24px;
}
.l-footerInner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.l-footer .l-brand {
  color: #fffdf8;
}
.l-footer p {
  font-size: 13px;
  margin: 12px 0 0;
  opacity: 0.92;
}
.l-footer a {
  color: #fffdf8;
}
.l-footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}
.l-footerLinks a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.l-footerInner > div:last-child {
  text-align: right;
}
.l-mobileNav {
  display: flex;
  flex-direction: column;
}
.l-mobileNav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  text-decoration: none;
  padding: 12px;
  border-radius: 6px;
}
.l-mobileNav .l-active {
  background: var(--soft);
  color: var(--teal-dark);
  font-weight: 600;
  box-shadow: inset 3px 0 var(--gold);
}
dialog.l-mobileMenu {
  width: min(380px, 100% - 24px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: 0;
  overscroll-behavior: contain;
}
.l-menuPreferences {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.l-menuPreferences label {
  margin-top: 8px;
  font-size: 14px;
}
.l-menuAccount {
  display: grid;
  gap: 4px;
  margin-top: 20px;
}
.l-menuAccount a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.l-menuDemo {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 8px;
}
.l-mobileDemo {
  display: none;
}
.l-phonePreferences { display: none; }
@media (max-width: 1100px) {
  .l-desktopNav {
    gap: 14px;
  }
  .l-headerInner {
    gap: 16px;
  }
  .l-brand {
    font-size: 25px;
  }
  .l-desktopNav a {
    font-size: 13px;
  }
}
@media (max-width: 1199px) {
  .l-desktopNav {
    display: none;
  }
  .l-headerInner {
    min-height: 72px;
  }
  .l-preferences {
    display: none;
  }
  .l-menuButton {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--teal);
    width: 44px;
    height: 44px;
  }
  .l-headerInner > .button {
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .l-header {
    border-top-width: 3px;
    position: relative;
  }
  .l-headerInner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    min-height: 61px;
    padding-block: 6px;
  }
  .l-brand,
  .l-headerInner .l-brand {
    font-size: 23px;
  }
  .l-brandLeaf {
    display: none;
  }
  .l-mobileDemo {
    display: none;
    margin-left: 8px;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--soft);
    font: 500 10px var(--sans);
    letter-spacing: 0;
    vertical-align: middle;
  }
  .l-headerInner > :nth-last-child(2) {
    grid-column: 2;
    grid-row: 1;
    padding: 9px 14px;
    font-size: 14px;
  }
  .l-preferences {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 10px;
    margin: 0;
  }
  .l-menuButton {
    grid-column: 3;
    grid-row: 1;
  }
  .l-preferences > div:first-child {
    flex: 1;
    width: auto;
  }
  .l-preferences > div:nth-child(2) {
    margin-left: 0;
  }
  .l-demoLabel {
    padding: 0;
    border: 0;
    font-size: 10px;
    margin-top: 2px;
  }
  .l-editorLink {
    font-size: 11px;
    gap: 4px;
    min-height: 44px;
  }
  .l-editorLink svg:last-child {
    display: none;
  }
  .l-reviewBar {
    display: flex;
    min-height: 30px;
  }
  .l-reviewBar .l-memberLinks, .l-menuPreferences, .l-legacyBookmark {
    display: none;
  }
  .l-phonePreferences {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
    padding-top: 18px;
    font-size: 13px;
  }
  .l-phonePreferences > span { color: var(--muted); }
  .l-phonePreferences > a { margin-top: 12px; }
  .l-languageSegments { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .l-languageSegments button { flex: 1; min-height: 44px; border: 0; background: var(--surface); color: var(--teal); }
  .l-languageSegments button + button { border-left: 1px solid var(--line); }
  .l-languageSegments button[aria-pressed="true"] { background: var(--soft); font-weight: 600; }
  .l-mobileNav .l-active { box-shadow: inset 3px 0 var(--teal); }
  dialog.l-mobileMenu::backdrop { background: #173f4373; }
  .l-headerInner .l-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .l-phonePreferences > div > button > svg:last-child { transform: rotate(-90deg); }
  .l-menuDemo {
    margin-top: 18px;
  }
  .l-footer {
    padding: 36px 0;
  }
  .l-footerInner {
    display: block;
  }
  .l-footerInner > div:last-child {
    text-align: left;
    margin-top: 32px;
  }
  .l-footer .l-brand {
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .l-footerLinks {
    flex-wrap: wrap;
    gap: 16px;
  }
  .l-footer p {
    font-size: 13px;
  }
}
