/* V132 — unified top header: compact logo + matching rounded-glass right controls. */

/* Keep the centre navigation mathematically centred by giving both sides equal flexible space. */
.header-grid{
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  column-gap:24px !important;
}

/* Top-left handwritten mark: roughly the same visual height as the navigation capsule. */
.brand{
  width:156px !important;
  height:46px !important;
  min-width:156px !important;
  justify-self:start !important;
  display:flex !important;
  align-items:center !important;
  overflow:visible !important;
}
.brand-window{
  width:156px !important;
  height:46px !important;
  display:block !important;
  overflow:visible !important;
}
.brand > img,
.brand-window > img,
.brand img{
  width:156px !important;
  height:46px !important;
  max-width:156px !important;
  object-fit:contain !important;
  object-position:left center !important;
  transform:none !important;
}

.header-actions{
  justify-self:end !important;
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

/* Same size and the same dark glass language as the centre navigation, but kept as rounded rectangles. */
.header-actions .language-button,
.header-actions .nav-download-button{
  box-sizing:border-box !important;
  width:124px !important;
  min-width:124px !important;
  height:44px !important;
  min-height:44px !important;
  padding:0 14px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  border-radius:14px !important;
  background:rgba(4,16,24,.16) !important;
  color:rgba(255,255,255,.90) !important;
  box-shadow:0 8px 30px rgba(0,0,0,.09),inset 0 1px 0 rgba(255,255,255,.045) !important;
  backdrop-filter:blur(14px) saturate(1.08) !important;
  -webkit-backdrop-filter:blur(14px) saturate(1.08) !important;
  font-size:14px !important;
  font-weight:650 !important;
  line-height:1 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  text-decoration:none !important;
}
.header-actions .language-button:hover,
.header-actions .nav-download-button:hover{
  background:rgba(255,255,255,.075) !important;
  border-color:rgba(255,255,255,.18) !important;
  color:#fff !important;
  box-shadow:0 12px 34px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.075) !important;
}

@media(max-width:800px){
  .header-grid{
    grid-template-columns:minmax(0,1fr) auto !important;
    column-gap:12px !important;
  }
  .brand,
  .brand-window{
    width:132px !important;
    min-width:132px !important;
    height:42px !important;
  }
  .brand > img,
  .brand-window > img,
  .brand img{
    width:132px !important;
    max-width:132px !important;
    height:42px !important;
  }
  .header-actions{gap:7px !important;}
  .header-actions .language-button,
  .header-actions .nav-download-button{
    width:106px !important;
    min-width:106px !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 9px !important;
    border-radius:12px !important;
    font-size:12px !important;
  }
}

@media(max-width:520px){
  .brand,
  .brand-window{
    width:112px !important;
    min-width:112px !important;
    height:38px !important;
  }
  .brand > img,
  .brand-window > img,
  .brand img{
    width:112px !important;
    max-width:112px !important;
    height:38px !important;
  }
  .header-actions{gap:5px !important;}
  .header-actions .language-button,
  .header-actions .nav-download-button{
    width:96px !important;
    min-width:96px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 7px !important;
    font-size:11.5px !important;
  }
}

/* V134 — Download CV must always remain on one line. */
.header-actions .nav-download-button{
  white-space:nowrap !important;
  flex-wrap:nowrap !important;
  overflow:visible !important;
}
.header-actions .nav-download-button > span,
.header-actions .nav-download-button > b{
  white-space:nowrap !important;
  flex:0 0 auto !important;
}
