/* GeoSite-Test v153: unified header grid, independent of fixed pixel offsets. */
.site-search{display:flex;align-items:center;justify-content:center;gap:0;min-width:0;width:100%;padding:0;margin:0;border:0}
.site-search label{display:block;flex:0 0 70px;width:70px;text-align:center;color:var(--blue2);font:400 20px Georgia,"Times New Roman",serif;margin:0;white-space:nowrap}
.site-search-row{display:flex;align-items:center;gap:12px;flex-wrap:nowrap}
.site-search input{display:block;min-width:0;width:clamp(130px,14vw,190px);padding:7px 9px;border:1px solid #8199bb;border-radius:5px;background:rgba(255,255,255,.9);color:var(--blue2);font:400 20px Georgia,"Times New Roman",serif}
.site-search button{border:0;border-radius:0;padding:8px 2px;background:transparent;color:var(--blue2);font:400 20px Georgia,"Times New Roman",serif;white-space:nowrap;cursor:pointer}
.site-search button:hover{text-decoration:underline;text-underline-offset:5px}
.search-pagination button{border:1px solid #7c96b9;border-radius:5px;padding:7px 13px;background:rgba(255,255,255,.82);color:var(--blue2);font:16px/1.2 Georgia,"Times New Roman",serif;cursor:pointer}
.search-pagination button:not(:disabled):hover{background:#e8effa}
.site-search input:focus-visible,.site-search button:focus-visible,.search-result-title:focus-visible,.search-return button:focus-visible,.search-pagination button:focus-visible{outline:3px solid #b06d15;outline-offset:3px}
.site-search-results{max-width:1050px;padding:6px 10px}
.site-search-results h1{font-size:36px;font-weight:normal;color:var(--blue);margin:0 0 12px}
.search-query{font-size:22px;overflow-wrap:anywhere;margin:0 0 10px}
.search-status{font-size:18px;margin:0 0 10px}
.search-scope,.search-help{font-size:14px;line-height:1.4;color:#465365;margin:0 0 6px}
.search-result-list{list-style:none;padding:0;margin:20px 0}
.search-result{border-top:1px solid rgba(44,83,139,.25);padding:13px 0 15px}
.search-result-meta{font:13px/1.4 Arial,sans-serif;color:#465365;margin:0 0 5px}
.search-result-title{border:0;padding:0;background:transparent;text-align:left;color:var(--blue2);text-decoration:underline;font:20px/1.3 Georgia,"Times New Roman",serif;cursor:pointer;overflow-wrap:anywhere}
.search-snippet{font-size:16.5px;line-height:1.45;margin:6px 0;overflow-wrap:anywhere}
.search-material{font-size:15px}
mark{background:#ffeb9d;color:#20242c;border-radius:2px;padding:0 .04em}
.search-pagination{display:flex;align-items:center;justify-content:flex-start;gap:14px;flex-wrap:wrap;padding:10px 0 18px}
.search-pagination button:disabled{opacity:.45;cursor:default}
.search-return{margin:0 0 12px}
.search-return button{border:0;padding:3px 0;background:transparent;text-align:left;color:var(--blue2);text-decoration:underline;cursor:pointer;font:16px/1.3 Georgia,"Times New Roman",serif}
.pdf-viewer-header .search-return{flex-basis:100%;margin:0}
/* Accessible label is visually hidden but remains available to assistive technology. */
.topbar .site-search label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;padding:0;margin:-1px;flex:0 0 auto}
.pdf-viewer-header .search-return{grid-column:1/-1}
.pdf-highlight-status{grid-column:1/-1;flex-basis:100%;font:14px/1.3 Georgia,"Times New Roman",serif;color:var(--blue2);margin:2px 0 4px}
.site-search-row{min-width:0;max-width:100%}
.site-search input{flex:0 1 auto}
.site-search button{flex:0 0 auto}

/* Desktop: the heading, search and language switch are anchored to the same
   right-hand working column as the page content. 1fr/auto/1fr keeps search
   exactly at the centre of that column; other items never overlap it. */
@media screen and (min-width:1200px){
  .shell{grid-template-rows:minmax(var(--top),auto) minmax(0,1fr)}
  .topbar{
    display:grid;
    grid-template-columns:var(--left) minmax(0,1fr);
    column-gap:18px;
    align-items:center;
    justify-content:stretch;
    padding:4px 0 0;
  }
  .topbar-offset{grid-column:1;grid-row:1}
  .topbar-main{
    grid-column:2;grid-row:1;min-width:0;
    display:grid;
    grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr);
    align-items:center;
    column-gap:14px;
  }
  .topbar-main .site-brand{
    grid-column:1;grid-row:1;position:static;left:auto;transform:none;
    justify-self:start;min-width:0;max-width:100%;gap:9px;
  }
  .topbar-main .site-emblem{height:clamp(78px,7.2vw,108px)}
  .topbar-main .person-name-link{margin-left:0!important;min-width:0!important;max-width:100%;}
  .topbar-main .site-search{
    grid-column:2;grid-row:1;position:static;left:auto;transform:none;
    justify-self:center;min-width:0;max-width:100%;
  }
  .topbar-main .language-wrap{grid-column:3;grid-row:1;margin:0;justify-self:end;min-width:0;}
  .topbar-main .language-button{padding:8px 3px;white-space:nowrap}
}
/* Medium-width desktop and browser zoom: a second header row is used instead
   of squeezing controls together. The content/sidebar grid remains identical. */
@media screen and (min-width:981px) and (max-width:1199px){
  .shell{grid-template-rows:minmax(var(--top),auto) minmax(0,1fr)}
  .topbar{
    display:grid;grid-template-columns:var(--left) minmax(0,1fr);
    column-gap:18px;align-items:center;padding:3px 0 3px;
  }
  .topbar-offset{grid-column:1;grid-row:1}
  .topbar-main{
    grid-column:2;grid-row:1;min-width:0;
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;align-items:center;
    column-gap:12px;row-gap:1px;
  }
  .topbar-main .site-brand{
    grid-column:1;grid-row:1;position:static;left:auto;transform:none;
    justify-self:start;min-width:0;max-width:100%;gap:8px;
  }
  .topbar-main .site-emblem{height:57px;max-width:70px}
  .topbar-main .person-name-link{margin-left:0!important;min-width:0!important;max-width:100%}
  .topbar-main .site-search{
    grid-column:1/-1;grid-row:2;position:static;left:auto;transform:none;
    justify-self:center;max-width:min(100%,370px)
  }
  .topbar-main .language-wrap{grid-column:2;grid-row:1;margin:0;justify-self:end;align-self:center}
  .topbar-main .language-button{padding:4px 3px;font-size:clamp(16px,1.6vw,20px)}
}
/* Mobile/tablet: first row = heading + language, second row = search.
   Existing responsive sidebar/content behavior remains unchanged. */
@media screen and (max-width:980px){
  .topbar{display:block;padding:0 0 8px}
  .topbar-offset{display:none}
  .topbar-main{
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    gap:7px 8px;align-items:center;min-width:0;
  }
  .topbar-main .site-brand{
    grid-column:1;grid-row:1;position:static;left:auto;transform:none;
    justify-self:start;min-width:0;max-width:100%;gap:8px;
  }
  .topbar-main .person-name-link{margin-left:0!important;min-width:0!important;max-width:100%}
  .topbar-main .site-search{
    grid-column:1/-1;grid-row:2;position:static;left:auto;transform:none;
    justify-self:center;width:min(100%,500px);max-width:100%;
  }
  .topbar-main .language-wrap{grid-column:2;grid-row:1;margin:0;justify-self:end;align-self:center}
  .site-search input{width:clamp(100px,36vw,300px)}
  .site-search label,.site-search input,.site-search button{font-size:clamp(16px,3.3vw,20px)}
  .site-search-results{padding:3px 0}
  .site-search-results h1{font-size:28px}
  .search-result-title{font-size:18px}
  .search-query{font-size:20px}
}
/* Very narrow/zoomed browser: stack all three controls, never overlap. */
@media screen and (max-width:600px){
  .topbar-main{grid-template-columns:minmax(0,1fr);gap:6px;}
  .topbar-main .site-brand{grid-column:1;grid-row:1;justify-self:start}
  .topbar-main .language-wrap{grid-column:1;grid-row:2;justify-self:end}
  .topbar-main .site-search{grid-column:1;grid-row:3;justify-self:center}
  .topbar-main .site-emblem{height:55px}
  .topbar-main .language-button{max-width:100%;font-size:clamp(14px,3.5vw,18px)}
}

/* GeoSite-Test v154 — same warm seismic gray in the search input. */
.site-search input{background:var(--geosite-menu-gray,rgba(233,232,230,.96));border-color:var(--geosite-menu-edge,rgba(113,117,124,.40));box-shadow:0 2px 5px rgba(42,47,55,.08)}
.site-search input::placeholder{color:#5b6570;opacity:1}


/* GeoSite-Test v165: only the search field border remains against the page wallpaper. */
.site-search input, .site-search input:hover,
.site-search input:focus, .site-search input:focus-visible {
  background:transparent!important;
  background-image:none!important;
  border:1px solid var(--geosite-menu-edge,rgba(113,117,124,.55));
  box-shadow:none!important;
  backdrop-filter:none!important;
}


/* GeoSite-Test v172: prevent header controls from colliding when the
   viewport is ultrawide but the site column is only half the viewport. */
@media screen and (min-width:1800px) and (max-width:2300px) and (min-aspect-ratio:21/10) {
  .topbar-main {
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    align-items:center;
    column-gap:10px;
    row-gap:1px;
  }
  .topbar-main .site-brand {
    grid-column:1;
    grid-row:1;
    justify-self:start;
  }
  .topbar-main .site-emblem{height:60px;}
  .topbar-main .language-wrap {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    align-self:center;
  }
  .topbar-main .site-search {
    grid-column:1/-1;
    grid-row:2;
    justify-self:center;
    max-width:min(100%,360px);
  }
}

/* GeoSite2 announcement v220: align search horizontally with About GeoSite; news remains lower in header. */
.topbar .site-search {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  padding-bottom:0;
}
.topbar .site-search-row {position:relative;}
.topbar .site-news {
  position:absolute;
  left:0;
  top:calc(100% + 26px);
  width:max-content;
  max-width:min(600px,calc(100vw - 28px));
  margin:0;
  padding:0;
  color:var(--blue2);
  font:25px/1.1 Georgia,"Times New Roman",serif;
  text-align:left;
  white-space:normal;
}
@media screen and (max-width:980px){
  .topbar .site-search{padding-bottom:0;}
  .topbar .site-search-row{flex-wrap:wrap;width:min(100%,410px);max-width:100%;}
  .topbar .site-news{
    position:static;
    flex:0 0 100%;
    width:100%;
    max-width:100%;
    margin-top:15px;
    font-size:clamp(14px,3vw,18px);
  }
}

@media screen and (min-width:981px){
  .topbar{min-height:130px;}
}

/* GeoSite2 Special Courses: standard blue publication hyperlinks. */
#content a[href="#special-courses"],
#content a[href="#special-courses"]:link,
#content a[href="#special-courses"]:visited,
#content a[href="#special-courses"]:hover,
#content a[href="#special-courses"]:focus-visible,
.topbar .site-news a.site-news-link,
.topbar .site-news a.site-news-link:visited,
.topbar .site-news a.site-news-link:hover,
.topbar .site-news a.site-news-link:focus-visible {
  color:#2c65ae!important;text-decoration:underline!important;
}
.topbar .site-news a.site-news-link {font:inherit;cursor:pointer;}
@media screen and (min-width:981px){
  .topbar .site-news {font-size:clamp(15px,1.2vw,18px);line-height:1.18;max-width:min(690px,calc(100vw - 28px));}
}

/* GeoSite2 v222: original heading font, two smaller lines and viewport bounds. */
.topbar .site-news{display:flex;align-items:baseline;gap:10px;min-width:0;
  width:min(700px,calc(100vw - 38px));max-width:calc(100vw - 38px);
  font:25px/1.1 Georgia,"Times New Roman",serif;color:var(--blue2);
  white-space:normal;overflow-wrap:break-word;box-sizing:border-box;}
.topbar .site-news-label{flex:0 0 auto;font:inherit;white-space:nowrap;color:inherit;}
.topbar .site-news-items{display:block;flex:1 1 auto;min-width:0;max-width:100%;}
.topbar .site-news-item{display:block;font:400 17px/1.25 Georgia,"Times New Roman",serif;
  white-space:normal;overflow-wrap:anywhere;}
.topbar .site-news-item + .site-news-item{margin-top:4px;}
.topbar .site-news a.site-news-link{font:inherit;}
@media screen and (max-width:980px){
 .topbar .site-news{position:static;width:100%;max-width:100%;font-size:clamp(18px,4vw,25px);}
 .topbar .site-news-item{font-size:clamp(13px,3vw,16px);}
}

/* GeoSite2 v223: news raised by 26px, lines packed together. */
@media screen and (min-width:981px){
  .topbar .site-news { top:calc(100% + 0px); }
}
.topbar .site-news-item + .site-news-item { margin-top:0; }
.topbar .site-news-item { line-height:1.12; }

/* GeoSite2 v224: News is a separate grid row below header controls. */
.topbar-main .site-news{
  position:static!important;top:auto!important;right:auto!important;
  bottom:auto!important;left:auto!important;transform:none!important;
  margin:1px 0 2px!important;padding:0;display:flex;
  align-self:start;justify-self:start;align-items:baseline;gap:8px;
  width:100%!important;max-width:100%!important;min-width:0;
  box-sizing:border-box;overflow-wrap:anywhere;
}
.topbar-main .site-news .site-news-label{font:400 25px/1.1 Georgia,"Times New Roman",serif;}
.topbar-main .site-news .site-news-items{flex:1 1 auto;min-width:0;}
.topbar-main .site-news .site-news-item{font:400 17px/1.12 Georgia,"Times New Roman",serif;}
.topbar-main .site-news .site-news-item + .site-news-item{margin-top:0;}
@media screen and (min-width:1200px){
  .topbar-main{grid-template-rows:auto auto;row-gap:0;}
  .topbar-main .site-news{grid-column:2 / -1;grid-row:2;}
}
@media screen and (min-width:981px) and (max-width:1199px){
  .topbar-main{grid-template-rows:auto auto auto;}
  .topbar-main .site-news{grid-column:1 / -1;grid-row:3;}
}
@media screen and (max-width:980px){
  .topbar-main .site-news{grid-column:1 / -1;grid-row:3;width:100%!important;
    max-width:100%!important;margin-top:1px!important;}
  .topbar-main .site-news .site-news-label{font-size:clamp(18px,4vw,25px);}
  .topbar-main .site-news .site-news-item{font-size:clamp(13px,3vw,16px);}
}
@media screen and (max-width:600px){
  .topbar-main .site-news{grid-column:1;grid-row:4;}
}

/* GeoSite2 v225: retain only the PDF viewer's own page tools. */
.pdf-native-viewer .pdf-position-tools{display:none!important;}

/* Raise the independent News grid row slightly, without moving it across Search. */
@media screen and (min-width:981px){
  .topbar-main .site-news{transform:translateY(-7px)!important;}
}
@media screen and (max-width:980px){
  .topbar-main .site-news{transform:none!important;}
}

/* GeoSite2 v228: bullet list (no digits); continuation lines align with the text. */
.topbar-main .site-news .site-news-items{
  display:block;
  min-width:0;
  max-width:100%;
  padding:0;
  margin:0;
}
.topbar-main .site-news .site-news-item{
  display:list-item;
  list-style-type:disc;
  list-style-position:outside;
  margin-left:1.15em;
  padding-left:0;
  text-indent:0;
  overflow-wrap:anywhere;
}
.topbar-main .site-news .site-news-item + .site-news-item{margin-top:1px;}

/* GeoSite2 v234: preserve Production header geometry and all news links. */
@media screen and (min-width:981px){
 .topbar-main .site-news .site-news-item:nth-child(2){
  white-space:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  max-width:100%;
  scrollbar-width:thin;
  overscroll-behavior-x:contain;
 }
}
#content .pub-monographs-dark .pub-category-entries a,
#content .pub-monographs-dark .pub-category-entries a:link,
#content .pub-monographs-dark .pub-category-entries a:visited,
#content .pub-monographs-dark .pub-category-entries a:hover,
#content .pub-monographs-dark .pub-category-entries a:focus-visible{
 color:#2c65ae!important;text-decoration:underline;
}
/* GeoSite2 v235: compact fixed left menu, original portrait kept unchanged. */
@media screen and (min-width:981px){
  .sidebar{overflow-y:hidden!important;overflow-x:hidden!important;overscroll-behavior-y:none;}
  .sidebar .main-menu{flex:0 0 auto;justify-content:flex-start;margin:6px 0 0;gap:3px;}
  .sidebar .main-menu button{flex:0 0 auto;font-size:clamp(21px,1.45vw,24px);line-height:1.07;padding:2px 10px;}
  .topbar-main .site-news{width:100%!important;max-width:100%!important;justify-self:stretch;}
  .topbar-main .site-news .site-news-item{font-size:16px;line-height:1.1;}
  .topbar-main .site-news .site-news-item:nth-child(2){
     white-space:normal!important;overflow-x:visible!important;overflow-y:visible!important;
     overflow-wrap:break-word;word-break:normal;max-width:100%;
  }
}
@media screen and (min-width:1200px){
  .topbar-main .site-news{grid-column:1 / -1;grid-row:2;}
}


/* GeoSite2 v238: Previous / match count / Next centered in the search-return row. */
.pdf-viewer-header .search-return{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:6px 14px;
  width:100%;
}
.pdf-viewer-header .search-return > [data-search-back]{
  grid-column:1;
  justify-self:start;
}
.pdf-search-occurrence-nav{
  grid-column:2;
  justify-self:center;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  min-width:0;
  white-space:nowrap;
}
.pdf-search-occurrence-nav button{
  border:0;
  background:transparent;
  padding:3px 2px;
  color:var(--blue2);
  text-decoration:underline;
  font:16px/1.3 Georgia,"Times New Roman",serif;
  cursor:pointer;
}
.pdf-search-occurrence-nav button:disabled{
  cursor:default;
  opacity:.35;
  text-decoration:none;
}
.pdf-search-match-position{
  font:14px/1.3 Georgia,"Times New Roman",serif;
  color:var(--blue2);
  white-space:nowrap;
}
@media screen and (max-width:700px){
  .pdf-viewer-header .search-return{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
  }
  .pdf-search-occurrence-nav{margin-inline:auto;gap:8px;}
  .pdf-search-occurrence-nav button{font-size:14px;}
}

/* GeoSite2 v242: blue links only in News and Monographs. */
/* No geometry or typography changes. All publication hyperlinks are blue. */
.topbar .site-news a.site-news-link,
.topbar .site-news a.site-news-link:link,
.topbar .site-news a.site-news-link:visited,
.topbar .site-news a.site-news-link:hover,
.topbar .site-news a.site-news-link:focus-visible {
  color:var(--blue2)!important;
}
#content .pub-monographs-dark .pub-category-entries a,
#content .pub-monographs-dark .pub-category-entries a:link,
#content .pub-monographs-dark .pub-category-entries a:visited,
#content .pub-monographs-dark .pub-category-entries a:hover,
#content .pub-monographs-dark .pub-category-entries a:focus-visible {
  color:var(--blue2)!important;
}

/* GeoSite2 v243: distinct blue hyperlinks and About GeoSite label. */
/* Change ONLY color and underline, not layout, font, spacing or behavior. */
.topbar .site-news a.site-news-link,
.topbar .site-news a.site-news-link:link,
.topbar .site-news a.site-news-link:visited,
.topbar .site-news a.site-news-link:hover,
.topbar .site-news a.site-news-link:focus-visible,
#content .pub-monographs-dark .pub-category-entries a,
#content .pub-monographs-dark .pub-category-entries a:link,
#content .pub-monographs-dark .pub-category-entries a:visited,
#content .pub-monographs-dark .pub-category-entries a:hover,
#content .pub-monographs-dark .pub-category-entries a:focus-visible {
  color:#075BD0!important;
  text-decoration:underline!important;
}
/* The visible RU/EN/ZH label is generated by button::before. */
.topbar .site-brand .person-name-link::before {
  color:#075BD0!important;
  text-decoration:underline!important;
  text-decoration-color:#075BD0!important;
  text-underline-offset:4px;
  text-decoration-thickness:1px;
}

/* GeoSite2 v244: blue links inside the AI preprints catalog only. */
/* Use a unique existing document-link marker; all RU/EN/ZH AI catalog pages. */
#content .pub-category-page:has(.pub-category-entries a[data-view="ai-preprint-principles"]) .pub-category-entries a,
#content .pub-category-page:has(.pub-category-entries a[data-view="ai-preprint-principles"]) .pub-category-entries a:link,
#content .pub-category-page:has(.pub-category-entries a[data-view="ai-preprint-principles"]) .pub-category-entries a:visited,
#content .pub-category-page:has(.pub-category-entries a[data-view="ai-preprint-principles"]) .pub-category-entries a:hover,
#content .pub-category-page:has(.pub-category-entries a[data-view="ai-preprint-principles"]) .pub-category-entries a:focus-visible {
  color:#075BD0!important;
  text-decoration:underline!important;
}


/* GeoSite2 v253: keep all desktop menu items visible even when News grows.
   The old v235 overflow:hidden clipped Contacts after News gained a longer
   first item. Reuse the empty left portion of the header, retain portrait size,
   and distribute all six labels over the remaining available vertical space.
   For extreme viewport height allow accessible scrolling, hiding its bar. */
@media screen and (min-width:981px) {
  .shell > .workspace > .sidebar {
    position:relative;
    top:-64px;
    height:calc(100% + 64px);
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain;
    scrollbar-width:none!important;
    -ms-overflow-style:none;
  }
  .shell > .workspace > .sidebar::-webkit-scrollbar {
    width:0;
    height:0;
    display:none;
  }
  .shell > .workspace > .sidebar > .main-menu {
    display:flex;
    flex:1 1 auto;
    min-height:max-content;
    margin:6px 0 8px;
    gap:0;
    justify-content:space-between;
  }
}
@media screen and (min-width:981px) and (max-height:760px) {
  .shell > .workspace > .sidebar {
    top:-82px;
    height:calc(100% + 82px);
  }
}
@media screen and (min-width:981px) and (max-height:640px) {
  .shell > .workspace > .sidebar {
    top:-98px;
    height:calc(100% + 98px);
  }
}

/* GeoSite2 v256: publication announcement is larger; biography announcement is smaller. */
.topbar-main .site-news .site-news-item:first-child {font-size:18px!important;line-height:1.12!important;}
.topbar-main .site-news .site-news-item:nth-child(2) {font-size:15px!important;line-height:1.12!important;}
@media screen and (max-width:980px) {
 .topbar-main .site-news .site-news-item:first-child {font-size:clamp(14px,3.2vw,18px)!important;}
 .topbar-main .site-news .site-news-item:nth-child(2) {font-size:clamp(12px,2.6vw,14px)!important;}
}

/* GeoSite2 v257: blue color for exactly the new article and Special Courses in Articles. */
#content .pub-category-page .pub-category-entries a[data-view="color-seismic-images"],
#content .pub-category-page .pub-category-entries a[data-view="color-seismic-images"]:visited,
#content .pub-category-page .pub-category-entries a[href="#special-courses"],
#content .pub-category-page .pub-category-entries a[href="#special-courses"]:visited {
  color:#075BD0!important;
  text-decoration:underline!important;
}



/* GeoSite2 TEST: mobile globe and languages share About GeoSite row. */
/* On narrow phones the former three-control, four-row header placed the
   languages on a separate row. Reuse the standard two-column first row.
   With that extra row gone, Search, News and the workspace rise naturally. */
@media screen and (max-width:600px){
  .topbar{
    padding-bottom:3px;
  }
  .topbar .topbar-main{
    display:grid;
    grid-template-columns:minmax(0,1fr) max-content;
    grid-template-rows:auto auto auto;
    column-gap:4px;
    row-gap:3px;
    align-items:center;
    min-width:0;
  }
  .topbar .topbar-main .site-brand{
    grid-column:1;
    grid-row:1;
    justify-self:start;
    min-width:0;
    max-width:100%;
    gap:3px;
  }
  .topbar .topbar-main .site-emblem{
    height:clamp(31px,10vw,40px);
    width:auto;
    max-width:38px;
    flex:0 0 auto;
  }
  .topbar .topbar-main .person-name-link::before{
    font-size:clamp(13px,3.55vw,16px);
    line-height:1.1;
    white-space:nowrap;
  }
  .topbar .topbar-main .language-wrap{
    grid-column:2;
    grid-row:1;
    justify-self:end;
    align-self:center;
    margin:0!important;
    max-width:100%;
  }
  .topbar .topbar-main .site-search{
    grid-column:1 / -1;
    grid-row:2;
    justify-self:center;
    margin:0;
  }
  .topbar .topbar-main .site-news{
    grid-column:1 / -1;
    grid-row:3;
    justify-self:start;
    margin-top:0!important;
  }
}
