.i18n-switch { position: relative; margin-left: .5rem; font-size: .875rem; }
.i18n-switch summary { cursor: pointer; color: #f8f9fa; border: 1px solid #f8f9fa; border-radius: .2rem; padding: .25rem .5rem; list-style: none; }
.i18n-switch summary::-webkit-details-marker { display: none; }
.i18n-switch summary:focus-visible { outline: 3px solid #80bdff; outline-offset: 3px; }
.i18n-menu { position: absolute; right: 0; top: calc(100% + .3rem); min-width: 13rem; max-width: calc(100vw - 2rem); background: #fff; color: #212529; border: 1px solid #a7adb4; border-radius: .3rem; padding: .25rem; box-shadow: 0 .25rem .75rem rgba(0,0,0,.2); z-index: 1100; }
.i18n-menu a, .i18n-menu span { display: block; padding: .45rem .65rem; }
.i18n-menu a { color: #174f8a; }
.i18n-menu [aria-disabled="true"] { color: #606871; }
[data-theme="dark"] .i18n-menu { background: #20262d; color: #f1f3f5; }
[data-theme="dark"] .i18n-menu a { color: #aad5ff; }
[data-theme="dark"] .i18n-menu [aria-disabled="true"] { color: #c1c6cc; }
.i18n-fallback { font-size: .875rem; opacity: .85; }
.i18n-note { border-left: .2rem solid currentColor; padding-left: .8rem; }


/* Language flags replace the navbar dropdown; no duplicate controls on the homepage. */
.language-flags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.language-flag-link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 36px; padding: .25rem .45rem; border: 1px solid var(--border-color, #adb5bd);
  border-radius: .2rem; font-size: .8rem; line-height: 1.25; text-decoration: none; }
.language-flag-link img { display: block; flex: 0 0 auto; border: 1px solid rgba(128,128,128,.45); object-fit: cover; }
.language-flag-link[aria-current="page"] { box-shadow: 0 0 0 1px currentColor; }
.language-flag-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.language-flags-compact { flex-wrap: nowrap; }
.language-flags-compact .language-flag-link { min-width: 40px; }
.footer-update { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.footer-update > i { white-space: nowrap; }
.profile-language-control .language-flags { justify-content: center; }
.profile-language-control { text-align: center; }
.blog-post-body { overflow-wrap: anywhere; }
.comment-panel { overflow-wrap: anywhere; }
.comment-panel #isso-thread { color: inherit; }
[data-theme="dark"] #isso-thread .isso-postbox > .form-wrapper > .textarea,
[data-theme="dark"] #isso-thread .isso-postbox input,
[data-theme="dark"] #isso-thread .isso-postbox textarea { color: #e7e9ec; background: #212529; }
@media (pointer: coarse) { .language-flag-link { min-height: 40px; } }

/* Keep long German labels, existing publication tags and raw/display math inside
   their current cards at narrow widths; no content, colors or typography change. */
.publication-bottom-row { flex-wrap: wrap; }
.publication-keywords { max-width: 100%; min-width: 0; flex-shrink: 1; }
.notes-page { overflow-wrap: anywhere; }
.note-body .math.display { display: block; max-width: 100%; overflow-x: auto; }
