/* Shared language control: public footer and authenticated header. */
.language-switch{position:relative;flex:none;font:13px/1.5 var(--font-text,'Helvetica Neue',Helvetica,system-ui,sans-serif);color:var(--ui-link,#213e72);z-index:55}
.language-switch>summary{list-style:none;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:8px;cursor:pointer;font:13px/1.5 var(--font-text,'Helvetica Neue',Helvetica,system-ui,sans-serif)}
.language-switch>summary::-webkit-details-marker{display:none}
.language-switch svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.language-switch .language-chevron{width:13px;height:13px}
.language-switch[open]>summary,.language-switch>summary:hover{background:var(--ui-surface-soft,#f1f3f5);border-color:var(--ui-border,#dce1e6)}
.language-switch>summary:focus-visible,.language-switch a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.language-switch nav{position:absolute;right:0;top:calc(100% + 6px);display:flex;flex-direction:column;min-width:170px;max-width:calc(100vw - 32px);padding:6px;border:1px solid var(--ui-border,#dce1e6);border-radius:10px;background:var(--ui-surface,#fff);box-shadow:0 12px 32px #213e7214}
.language-switch nav a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:40px;margin:0;padding:9px 12px;border:0;border-radius:6px;color:var(--ui-link,#213e72);font:13px/1.5 var(--font-text,'Helvetica Neue',Helvetica,system-ui,sans-serif);text-decoration:none;white-space:nowrap}
.language-switch nav a:hover,.language-switch nav a[aria-current=page]{background:var(--ui-surface-soft,#f1f3f5)}
.language-switch nav a>span:last-child{font-size:11px}
.site-footer .language-switch{margin-top:12px;display:inline-block}
.site-footer .language-switch nav{top:auto;bottom:calc(100% + 6px);left:0;right:auto}
@media(pointer:coarse){.language-switch>summary,.language-switch nav a{min-height:44px}}

/* Authenticated language choice lives beside the release in the sidebar. */
.sidebar .sidebar-release{display:flex;align-items:center;gap:8px;padding-inline:0;overflow:visible}
.sidebar-release>span{font:11px/1.5 var(--font-text,'Helvetica Neue',Helvetica,system-ui,sans-serif);min-width:0;overflow-wrap:anywhere}
.sidebar .language-switch{color:#d9e3f5}
.sidebar .language-switch>summary{font:400 11px/1.5 var(--font-text,'Helvetica Neue',Helvetica,system-ui,sans-serif);gap:5px;padding:6px;min-height:32px}
.sidebar .language-switch[open]>summary,.sidebar .language-switch>summary:hover{background:#ffffff14;border-color:#ffffff30}
.sidebar .language-switch nav{top:auto;bottom:calc(100% + 6px);left:0;right:auto}
.sidebar .language-switch nav a{color:var(--ui-link,#213e72);font:400 13px/1.5 var(--font-text,'Helvetica Neue',Helvetica,system-ui,sans-serif)}
@media(pointer:coarse){.sidebar .language-switch>summary{min-height:44px}}

/* Main sidebar destinations share the pill shape in every interaction state. */
.sidebar #workspace-navigation>a{border-radius:999px}
.sidebar #workspace-navigation>a:focus-visible{outline:2px solid #d9e3f5;outline-offset:2px}

/* Shared segmented tabs: one treatment for public pages, workspaces and dialogs. */
.section-tabs{display:flex;align-items:center;gap:4px;width:max-content;max-width:100%;padding:4px!important;border:0!important;border-radius:999px;background:var(--section-tabs-bg,#e9eaee);overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.section-tabs::-webkit-scrollbar{display:none}
.section-tabs>a,.workspace .section-tabs>a{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:40px;margin:0;padding:10px 18px!important;border:0!important;border-radius:999px;font:400 13px/1.4 var(--font-text,system-ui,sans-serif);color:var(--section-tabs-text,#343a43)!important;background:transparent;text-align:center;text-decoration:none;white-space:nowrap;transition:background-color .2s ease,color .2s ease}
.section-tabs>a:hover{background:var(--section-tabs-hover,#ffffff8c)}
.section-tabs>a:is([aria-current=page],[aria-selected=true]){background:#213e72!important;color:#fff!important;border:0!important}
.section-tabs>a:focus-visible{outline:2px solid var(--ui-link,#213e72);outline-offset:-2px;box-shadow:inset 0 0 0 4px var(--section-tabs-bg,#e9eaee)}
.section-tabs>a:is([aria-current=page],[aria-selected=true]) .section-tab-step{background:#ffffff26;border-color:#ffffff60;color:#fff}
html[data-color-scheme=dark] .section-tabs{--section-tabs-bg:#2b3442;--section-tabs-text:#d7deea;--section-tabs-hover:#ffffff12}
@media(pointer:coarse){.section-tabs>a,.workspace .section-tabs>a{min-height:44px}}
@media(prefers-reduced-motion:reduce){.section-tabs>a{transition:none}}
