/* Language switch for /nature/ pages — flat, two-value, zero radius. */
.langsw { position: absolute; top: 12px; right: 12px; z-index: 40; font: 600 .72rem/1 var(--sans, system-ui, sans-serif); letter-spacing: .12em; }
.langsw summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 12px; background: #fff; color: #000; border: 1px solid #000; box-shadow: 0 0 0 1px #fff; text-transform: uppercase; user-select: none; -webkit-user-select: none; }
.langsw summary::-webkit-details-marker { display: none; }
.langsw summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border: solid #000; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); }
.langsw[open] summary { background: #000; color: #fff; border-color: #fff; box-shadow: 0 0 0 1px #000; }
.langsw[open] summary::after { border-color: #fff; transform: rotate(-135deg) translateY(-2px); }
.langsw summary:focus-visible { outline: 2px solid #000; outline-offset: 3px; box-shadow: 0 0 0 4px #fff; }
.langsw__list { position: absolute; top: calc(100% + 6px); right: 0; margin: 0; padding: 4px 0; list-style: none; min-width: 148px; background: #000; border: 1px solid #fff; box-shadow: 0 0 0 1px #000; }
.langsw__list a { display: block; padding: 10px 16px; color: #fff; text-decoration: none; font: 500 .9rem/1.2 var(--sans, system-ui, sans-serif); letter-spacing: 0; }
.langsw__list a:hover, .langsw__list a:focus-visible { background: #fff; color: #000; outline: none; }
.langsw__list a[aria-current="true"] { font-weight: 700; }
.langsw__list a[aria-current="true"]::after { content: " ✓"; }
@media (max-width: 600px) { .langsw { top: 8px; right: 8px; } }
/* Never overlap the plate viewer (its guide, close button and arrows own the corners) */
body:has(.gal__modal:not([hidden])) .langsw { display: none; }
