/* Locale switcher + RTL support — shared by every page that carries the
   language switcher (all locale pages + all English pages).
   Tokens: uses the page's own vars with literal fallbacks, so this file works
   under home-*.CSS, blog-*.CSS, and site-head.css alike. Values are the
   ecosystem tokens (deep #163300, green #047857, ink #211d19, border
   #e3e6e0, wash #f4f6f2, paper #ffffff). No ad-hoc hex beyond those tokens.
   Design-ui rules applied: 44px minimum targets, logical properties so the
   switcher mirrors under dir=rtl, real inline-SVG globe icon (no emoji),
   focus-visible ring, reduced-motion safe (no animation here at all). */

/* Header row wraps instead of overflowing on narrow screens. The shared
   site-head.css already wraps; the home sheet does not — this covers it. */
.site-head-in{flex-wrap:wrap;row-gap:.55rem}

.locale-switch{position:relative;margin-inline-start:auto}
.locale-switch summary{
  display:flex;align-items:center;gap:.45rem;
  min-height:44px;padding:0 .8rem;
  border:1px solid var(--border,#e3e6e0);border-radius:8px;
  background:var(--paper,#ffffff);color:var(--ink,#211d19);
  font-weight:600;font-size:.95rem;line-height:1;
  cursor:pointer;list-style:none;user-select:none;
}
.locale-switch summary::-webkit-details-marker{display:none}
.locale-switch summary::marker{display:none}
.locale-switch summary:hover{border-color:var(--green,#047857)}
.locale-switch summary:focus-visible{outline:3px solid var(--green,#047857);outline-offset:2px}
.locale-switch summary svg{flex:none;color:var(--green,#047857)}
.locale-switch summary .locale-caret{color:var(--muted,#5c5a55);font-size:.7rem}
.locale-switch[open ] summary{border-color:var(--green,#047857)}

.locale-menu{
  position:absolute;top:calc(100% + .5rem);inset-inline-end:0;
  min-width:12rem;margin:0;padding:.3rem;list-style:none;z-index:30;
  background:var(--paper,#ffffff);
  border:1px solid var(--border,#e3e6e0);border-radius:12px;
  box-shadow:0 10px 34px rgb(22 51 0 / .12),0 2px 8px rgb(22 51 0 / .06);
}
.locale-menu a,.locale-menu span[aria-current="true"]{
  display:flex;align-items:center;gap:.6rem;
  min-height:44px;padding:.35rem .75rem;border-radius:8px;
  color:var(--ink,#211d19);text-decoration:none;font-weight:600;font-size:.95rem;
}
.locale-menu a:hover{background:var(--wash,#f4f6f2);color:var(--deep,#163300)}
.locale-menu a:focus-visible{outline:3px solid var(--green,#047857);outline-offset:2px}
.locale-menu span[aria-current="true"]{color:var(--green,#047857);font-weight:700}
.locale-menu .locale-check{margin-inline-start:auto;color:var(--green,#047857);font-weight:700}

/* RTL: flex and grid follow dir=rtl automatically, and text aligns to the
   inline start by default. These cover only the physical left/right rules
   the page stylesheets set, so they flip to the inline end under dir=rtl. */
[dir="rtl"] .hp-terms ol{margin-left:0;margin-right:20px}
[dir="rtl"] ul,[dir="rtl"] ol{padding-left:0;padding-right:1.4rem}
[dir="rtl"] th,[dir="rtl"] td,[dir="rtl"] table caption{text-align:right}
[dir="rtl"] .head-actions{margin-left:0;margin-right:auto}
[dir="rtl"] .step-glyph{margin-right:0;margin-left:.6rem}
[dir="rtl"] .locale-switch summary svg{transform:scaleX(1)}
