/* RECAM footer language picker — shared across every locale and page type.
   Linked from all pages so the picker renders identically regardless of which
   primary stylesheet a given page loads (styles.css, feat/styles.css,
   assets/lte.css or a page-inline <style>). Self-contained: the var() fallbacks
   mean it does not depend on any page defining design tokens. */
.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 9px 0 10px;
  border-radius: 8px;
  color: var(--text-muted, var(--muted, #6e6e73));
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .24s cubic-bezier(.22, 1, .36, 1), background-color .24s cubic-bezier(.22, 1, .36, 1);
}
.lang-picker:hover {
  color: var(--text, #1d1d1f);
  background: rgba(0, 0, 0, 0.04);
}
.lang-picker:focus-within {
  color: var(--text, #1d1d1f);
}
.lang-picker.is-static { cursor: default; }
.lang-picker.is-static:hover { background: transparent; color: var(--text-muted, var(--muted, #6e6e73)); }
.lang-picker .lang-picker-globe {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
}
.lang-picker .lang-picker-label {
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lang-picker .lang-picker-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.55;
  transition: opacity .24s cubic-bezier(.22, 1, .36, 1);
}
.lang-picker:hover .lang-picker-chevron { opacity: 0.8; }
.lang-picker.is-static .lang-picker-chevron { display: none; }
/* Transparent native <select> fills the pill so the OS picker fires on tap */
.lang-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.lang-picker select:focus { outline: none; }
/* Kept as two separate rules so engines without :has() still apply the
   JS-driven .is-focused fallback. */
.lang-picker.is-focused {
  outline: 2px solid rgba(0, 113, 227, 0.45);
  outline-offset: 2px;
  color: var(--text, #1d1d1f);
}
.lang-picker:has(select:focus-visible) {
  outline: 2px solid rgba(0, 113, 227, 0.45);
  outline-offset: 2px;
  color: var(--text, #1d1d1f);
}
/* Minimal blog footer (footer.site): stack the picker under the copyright line */
footer.site .footer-copy { display: block; }
footer.site .lang-picker { margin-top: 1.1rem; }

/* ───────────────────────────────────────────────────────────────────────────
   Header language menu (.lang-menu)
   A crawlable native <details>/<summary> disclosure that replaces the bare
   FR/NL/DE code links in the header nav. Reads as the same design language as
   the footer .lang-picker ghost-pill (globe + autonym + chevron). Self-
   contained via var() fallbacks so it renders identically in both header
   stylesheets (styles.css rich header and feat/styles.css blog header).
   ─────────────────────────────────────────────────────────────────────────── */
.lang-menu {
  position: relative;
  display: inline-block;
}
/* Summary = the closed ghost-pill */
.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 9px 0 10px;
  border-radius: 8px;
  color: var(--text-muted, var(--muted, #6e6e73));
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
  transition: color .24s cubic-bezier(.22, 1, .36, 1), background-color .24s cubic-bezier(.22, 1, .36, 1);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary::marker { content: ""; }
.lang-menu > summary:hover {
  color: var(--text, #1d1d1f);
  background: rgba(0, 0, 0, 0.04);
}
.lang-menu > summary:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.45);
  outline-offset: 2px;
  color: var(--text, #1d1d1f);
}
.lang-menu .lang-menu-globe {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: block;
}
.lang-menu .lang-menu-current {
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lang-menu .lang-menu-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  opacity: 0.55;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .24s cubic-bezier(.22, 1, .36, 1);
}
.lang-menu > summary:hover .lang-menu-chevron { opacity: 0.8; }
.lang-menu[open] > summary .lang-menu-chevron { transform: rotate(180deg); }
/* Dropdown panel — right-aligned so it never overflows the viewport edge */
.lang-menu .lang-menu-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  min-width: 150px;
  padding: 6px;
  background: var(--bg, #fff);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.lang-menu .lang-menu-list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--text, #1d1d1f);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .18s cubic-bezier(.22, 1, .36, 1), color .18s cubic-bezier(.22, 1, .36, 1);
}
.lang-menu .lang-menu-list a:hover,
.lang-menu .lang-menu-list a:focus-visible {
  background: var(--bg-alt, #f5f5f7);
  color: var(--text, #1d1d1f);
  outline: none;
}
