/* Shared language controls: one physical stylesheet for normal and standalone pages. */
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid var(--line-strong, #59635f);
  border-radius: 4px;
  background: var(--surface-1, #141b18);
  color: var(--text-soft, #e7ece9);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
}
.language-switch:hover {
  color: var(--text, #fff);
  border-color: var(--text-soft, #e7ece9);
  background: var(--surface-2, #202a25);
}
.language-switch:focus-visible, .language-nav-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.language-switch:active { transform: translateY(1px); }
.page-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  z-index: 8;
}
.page-actions .bookmark-button { position: static; }
.main-shell { --page-actions-space: 60px; }
.main-shell.has-bookmark-action { --page-actions-space: 112px; }
.main-shell .page-head,
.main-shell:is(.is-home, .is-about, .is-resources, .is-interactives, .is-topic, .is-contents, .is-learning) .page-head {
  padding-right: var(--page-actions-space);
}
.main-shell .language-switch { min-width: 46px; min-height: 46px; }
.language-nav { margin-top: 12px; }
.language-nav-link { min-height: 44px; }
/* Standalone shells share the control, not a second copy of the simulator. */
.track-intro > .language-switch { float: right; margin: 0 0 12px 16px; }
.exercise-header > .language-switch { grid-area: auto; justify-self: end; }
@media (max-width: 700px) {
  .main-shell { --page-actions-space: 56px; }
  .main-shell.has-bookmark-action { --page-actions-space: 108px; }
  .main-shell .language-switch { min-width: 44px; min-height: 44px; }
}
