/* JA | EN language toggle (views/partials/locale-switch.ejs). Its own file
   because the login page doesn't load style.css. Made for dark backgrounds.
   The attribute selector adds specificity so page-level button rules
   (editor toolbar, login) don't override it. */
[data-locale-switch].locale-switch {
    display: inline-flex; flex-shrink: 0; gap: 2px;
    width: auto; margin: 0; padding: 2px;
    border: 1px solid #444; border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font: inherit; line-height: 1.4;
    cursor: pointer;
}
[data-locale-switch].locale-switch:hover { border-color: #777; }
[data-locale-switch].locale-switch:focus-visible { outline: 2px solid #ef233c; outline-offset: 2px; }
.locale-switch .locale-option {
    padding: 3px 9px; border-radius: 999px;
    color: #888; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
    transition: background 0.15s ease, color 0.15s ease;
}
.locale-switch:hover .locale-option:not(.is-active) { color: #fff; }
.locale-switch .locale-option.is-active { background: #fff; color: #1e1e24; }
