/* Logo sizing (moved from site.js) */
.header .logo img{width:150px!important;height:auto!important;aspect-ratio:1148/236;object-fit:contain}
.footer .logo img{width:150px!important;height:auto!important;aspect-ratio:1000/184;object-fit:contain;filter:none!important;opacity:1!important}
.footer .logo{background:transparent!important;padding:0!important;width:max-content}

/* Tablet: show the burger menu instead of hiding navigation */
@media(max-width:1050px){
  .header{position:relative}
  .header .menu{display:block;cursor:pointer}
  .header .nav>a:not(.btn),.header .nav .lang-switch{display:none}
  .header.open .nav{display:flex;position:absolute;left:-15px;right:-15px;top:100%;z-index:60;background:#fff;padding:22px;gap:14px;box-shadow:0 18px 35px rgba(0,0,0,.15);flex-direction:column;align-items:stretch}
  .header.open .nav>a,.header.open .nav .lang-switch{display:block}
  .header.open .nav .lang-switch a{display:inline}
}

/* Phone: keep long words in the hero heading inside the screen */
@media(max-width:680px){
  .institution-link span{opacity:1!important;transform:none!important}
  .hero-copy h1,.page-hero h1,.page-hero-new h1{font-size:clamp(32px,10vw,44px)!important;overflow-wrap:break-word;hyphens:auto}
}

/* Lead form status message */
.form-status{margin:4px 0 0;font-size:14px;line-height:1.5;color:inherit}
.form-status a{color:inherit;font-weight:700;text-decoration:underline}

/* Phone: no horizontal page scroll */
.section-head>*,.group-head>*{min-width:0;overflow-wrap:break-word}
.group-head{box-sizing:border-box;max-width:100%}
@media(max-width:680px){
  .anchor-row .wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .anchor-row .wrap::-webkit-scrollbar{display:none}
  .group-head{padding:22px 18px}
  .section-head h2{overflow-wrap:break-word;hyphens:auto}
}

/* Very narrow phones (320px): keep the burger button on screen */
@media(max-width:360px){
  .header .logo img{width:116px!important}
}

/* Narrow desktop: language switcher stays on one line */
@media(min-width:1051px){
  .nav .lang-switch{white-space:nowrap}
}
