/* Allow longer admin labels to wrap without colliding with adjacent controls. */
body header:has(.admin-shortcut) {height:auto;min-height:54px;flex-wrap:wrap;}
body .socialicon:has(.admin-shortcut) {box-sizing:border-box;flex-wrap:wrap;max-width:calc(100% - 24px);gap:6px;}
body .socialicon .admin-shortcut {box-sizing:border-box;flex:0 1 auto;min-width:0;width:auto;height:auto;min-height:44px;padding:8px 10px;}
body .socialicon .admin-shortcut__label {display:block;white-space:normal;line-height:1.35;overflow-wrap:anywhere;}
.site-footer.site-footer--simple {display:flex;justify-content:center;padding:24px 16px;margin-top:32px;text-align:center;}
@media (min-width:801px) and (max-width:1280px) {
  body .navbar {box-sizing:border-box;width:96%;padding:12px 18px;flex-wrap:wrap;gap:14px;}
  body .main-menu {flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:100%;}
}
@media (max-width:620px) {
  body .socialicon:has(.admin-shortcut) {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;margin:0;}
  body .socialicon .admin-shortcut {justify-content:flex-start;font-size:12px;}
  body .socialicon .admin-shortcut__label {font-size:12px;}
}
body .socialicon .admin-shortcut--schools .admin-shortcut__icon {color:#15803d;background:#ecfdf3;}
@media(min-width:901px) {
  body .navbar {display:flex;flex-wrap:wrap;box-sizing:border-box;gap:12px;}
  body .main-menu {position:static;display:flex;flex:1 1 640px;flex-wrap:wrap;min-width:0;max-width:100%;height:auto;gap:8px;justify-content:flex-end;}
  body .main-menu .lang-switch {position:static;inset:auto;transform:none;flex:0 0 auto;display:flex;flex-wrap:wrap;gap:6px;margin:0;}
  body .main-menu .menu-item {flex:0 0 auto;position:relative;}
  body .main-menu #last_button {position:static;white-space:nowrap;transform:none;margin:0;}
}
.school-location {padding:18px;background:#fff;border-radius:16px;}
.school-location img {width:100%;max-height:340px;object-fit:cover;border-radius:12px;}
.school-location p {white-space:pre-line;overflow-wrap:anywhere;}
.school-map-link {display:inline-flex;padding:12px 16px;background:#15803d;color:#fff;border-radius:10px;}

body .socialicon.admin-wide {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:100%;margin:0;gap:6px;}
body .socialicon.admin-wide .admin-shortcut {justify-content:center;}
@media(max-width:620px){body .socialicon.admin-wide .admin-shortcut{flex-direction:column;padding:6px 3px;gap:5px;}body .socialicon.admin-wide .admin-shortcut__label{text-align:center;font-size:10px;line-height:1.3;}}
body .socialicon.admin-wide {align-items:stretch;}

/* Keep Mongolian shortcut labels whole instead of stranding their final letter. */
body .socialicon.admin-wide .admin-shortcut__label {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
@media (max-width:620px) {
    body .socialicon.admin-wide .admin-shortcut__label {
        font-size: clamp(8px, 2.25vw, 10px);
        font-weight: 600;
        line-height: 1.35;
    }
}
