/* ID / EN title switch (header and mobile drawer), like a two-way pill. */
.sh-tl-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25);
}
.sh-tl-switch button {
    position: relative;
    z-index: 1;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 24px;
    cursor: pointer;
    transition: color .15s ease;
}
.sh-tl-switch button:hover { color: #fff; }
.sh-tl-switch button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.sh-tl-switch .sh-tl-thumb {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    transition: transform .2s cubic-bezier(.16, 1, .3, 1);
}
/* Indonesian is the first button: the thumb sits left for ID, right for EN. */
html:not([data-tl="id"]) .sh-tl-switch .sh-tl-thumb { transform: translateX(100%); }
html[data-tl="id"] .sh-tl-switch [data-lang-set="id"],
html:not([data-tl="id"]) .sh-tl-switch [data-lang-set="en"] { color: #0d7fa6; }

/* In the light mobile drawer the pill sits on a light background. */
.sh-tl-switch.is-drawer { background: #e5e7eb; border-color: #d1d5db; }
.sh-tl-switch.is-drawer button { color: #6b7280; }
html.dark .sh-tl-switch.is-drawer,
html.darkmode .sh-tl-switch.is-drawer { background: #333; border-color: rgba(255, 255, 255, .12); }
html.dark .sh-tl-switch.is-drawer button,
html.darkmode .sh-tl-switch.is-drawer button { color: #9ca3af; }
