/* One fixed header across all templates. The reserved space never changes on scroll. */
:root {--asta-header-height:86px;--asta-header-compact-height:54px;--asta-adminbar-height:0px;}
html {scroll-padding-top:calc(var(--asta-header-compact-height) + var(--asta-adminbar-height) + 18px);}
body.asta-editorial {padding-top:var(--asta-header-height);}
html:has(#wpadminbar) {--asta-adminbar-height:32px;}
body.home.home-v3 .site-header,
body.asta-editorial .site-header,
body .site-header {
  position:fixed;
  inset:var(--asta-adminbar-height) 0 auto;
  width:100%;
  height:var(--asta-header-active-height,var(--asta-header-height));
  padding:0 3.4vw;
  z-index:1001;
  display:flex;
  align-items:center;
  box-sizing:border-box;
  transition:height .22s ease,background-color .25s ease,color .25s ease,box-shadow .22s ease;
}
body .site-header.is-scrolled {--asta-header-active-height:var(--asta-header-compact-height);box-shadow:0 1px 0 #18334822;}
body .site-header .header-inner {width:100%;}
body .site-header .brand {width:112px;flex-shrink:0;transition:width .22s ease;}
body .site-header .brand :is(img,svg) {display:block;width:100%;height:auto;max-height:54px;object-fit:contain;transition:max-height .22s ease;}
body .site-header.is-scrolled .brand {width:88px;}
body .site-header.is-scrolled .brand :is(img,svg) {max-height:34px;}
@media(max-width:960px) {
  :root {--asta-header-height:76px;--asta-header-compact-height:52px;}
  body.home.home-v3 .site-header,body.asta-editorial .site-header,body .site-header {padding:0 24px;}
  body .site-header .brand {width:95px;}
  body .site-header.is-scrolled .brand {width:78px;}
  body .site-header .primary-nav {top:100%;max-height:calc(100dvh - var(--asta-header-active-height,var(--asta-header-height)) - var(--asta-adminbar-height));}
  body .site-header .menu-toggle {min-height:44px;}
}
@media(max-width:782px) {html:has(#wpadminbar) {--asta-adminbar-height:46px;} body #wpadminbar {position:fixed;}}
@media(prefers-reduced-motion:reduce) {body .site-header,body .site-header .brand,body .site-header .brand :is(img,svg) {transition:none;}}

/* Keep the blue reading-progress line above the fixed header. */
body .scroll-progress {top:var(--asta-adminbar-height);z-index:1002;background:#00bee4;}
/* Social destinations follow the navigation colour in both header states. */
body .site-header .primary-nav {gap:24px;}
.header-social {display:flex;align-items:center;gap:5px;flex-shrink:0;}
.header-social a {display:grid;place-items:center;width:32px;height:36px;color:inherit;border-radius:4px;transition:opacity .15s;}
.header-social svg {display:block;width:19px;height:19px;}
.header-social a:hover {opacity:.7;}
.header-social a:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
@media(min-width:961px) and (max-width:1200px){body .site-header .header-inner{gap:20px;}body .site-header .primary-nav{gap:14px;}body .site-header .nav-links{gap:12px;font-size:12px;}.header-social{gap:1px;}.header-social a{width:28px;}}
@media(max-width:960px){.footer-social{flex-wrap:wrap;}}

body .site-header .header-inner {gap:12px;}
.header-search-toggle {
  display:grid;
  place-items:center;
  flex:0 0 44px;
  height:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:inherit;
  cursor:pointer;
}
body .site-header .header-search-toggle:is(:hover,:focus-visible) {
  outline:2px solid currentColor;
  outline-offset:-3px;
}
.site-search-form {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  width:min(100%,420px);
}
.site-search-form label {grid-column:1/-1;font-size:14px;font-weight:700;}
.site-search-form :is(input,button) {
  min-height:44px;
  padding:8px 12px;
  border:1px solid #183348;
  border-radius:4px;
  font:inherit;
}
.site-search-form input {min-width:0;background:#fff;color:#183348;}
.site-search-form button {background:#183348;color:#fff;cursor:pointer;}
.header-search-panel {
  inset:calc(var(--asta-adminbar-height) + var(--asta-header-active-height,var(--asta-header-height))) 0 auto;
  margin:0;
  width:100%;
  max-width:none;
  max-height:calc(100dvh - var(--asta-adminbar-height) - var(--asta-header-active-height,var(--asta-header-height)));
  overflow:auto;
  padding:8px clamp(16px,3.4vw,56px);
  border:0;
  border-bottom:1px solid #18334833;
  background:var(--cream);
  color:#183348;
  box-shadow:0 6px 16px #1833481f;
}
.header-search-form {
  grid-template-columns:minmax(0,1fr) auto 44px;
  align-items:center;
  width:min(100%,1600px);
  margin-inline:auto;
  gap:clamp(6px,1vw,16px);
}
.header-search-form input {
  width:100%;
  padding:8px 6px;
  border:0;
  border-bottom:1px solid #18334880;
  border-radius:0;
  background:transparent;
  font-size:16px;
}
.header-search-form input::placeholder {color:#183348;}
.header-search-form input:focus {
  outline:0;
  border-bottom-color:#183348;
  box-shadow:0 1px #183348;
}
.header-search-form button[type="submit"] {
  padding-inline:clamp(12px,1.5vw,22px);
  border-radius:24px;
  font-size:13px;
  font-weight:700;
}
.header-search-form button[type="submit"]:hover {background:#990210;}
.header-search-form .header-search-close {
  display:grid;
  place-items:center;
  justify-self:end;
  width:44px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:inherit;
}
.header-search-close:hover {background:#18334812;}
.search .editorial-card h2 {font:500 clamp(20px,1.7vw,25px)/1.35 var(--body);margin-bottom:12px;overflow-wrap:anywhere;}
.search .editorial-card h2 a:hover {color:#990210;text-decoration:underline;}
@media(max-width:960px) {
  body .site-header .menu-toggle {margin-left:auto;}
}

.header-language { position: relative; flex-shrink: 0; }
.header-language summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 52px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.header-language summary::-webkit-details-marker { display: none; }
.header-language summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.header-language[open] summary::before { transform: translateY(2px) rotate(225deg); }
.header-current-flag { display: none; width: 24px; height: auto; }
.header-language:not(:has(.gt-current-lang:is([data-gt-lang="es"], [data-gt-lang="en"]))) [data-language="pt"],
.header-language:has(.gt-current-lang[data-gt-lang="es"]) [data-language="es"],
.header-language:has(.gt-current-lang[data-gt-lang="en"]) [data-language="en"] { display: block; }
.header-language-options {
  position: absolute;
  z-index: 25;
  top: 100%;
  right: 0;
  padding: 4px;
  border-radius: 6px;
  background: #f1e0c6;
  color: #183348;
  box-shadow: 0 6px 20px #0003;
}
.header-language .gtranslate_wrapper { display: flex; align-items: center; }
.header-language .glink {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
}
.header-language .glink img { display: block; width: 23px; height: auto; }
.header-language .glink.gt-current-lang { background: #18334818; }
.header-language :is(summary, .glink):focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media (max-width: 960px) {
  .header-language-options { top: auto; bottom: calc(100% + 4px); }
}

.header-utilities {
  display: flex;
  align-items: center;
  gap: 14px;
}
.submenu-toggle { display: none; }

@media (max-width: 960px) {
  body .site-header .primary-nav {
    box-sizing: border-box;
    height: calc(100dvh - var(--asta-header-active-height, var(--asta-header-height)) - var(--asta-adminbar-height));
    justify-content: safe center;
    align-items: center;
    gap: clamp(16px, 5dvh, 40px);
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    border: 0;
    overscroll-behavior: contain;
  }
  html:has(.primary-nav.is-open) { overflow: hidden; }
  body .site-header .nav-links {
    width: min(100%, 360px);
    gap: 0;
    flex-shrink: 0;
    text-align: center;
  }
  body .site-header .nav-links a {
    min-height: 44px;
    justify-content: center;
    padding-block: 6px;
    border: 0;
    font-size: clamp(17px, 4.2vw, 22px);
    line-height: 1.25;
  }
  body .site-header .nav-links a::after { display: none; }

  .primary-nav .nav-links > li:has(> .submenu-toggle) {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .primary-nav .nav-links > li:has(> .submenu-toggle) > a { grid-column: 2; }
  .primary-nav .nav-links .sub-menu {
    grid-column: 1 / -1;
    padding: 0 0 8px;
  }
  .primary-nav .nav-links .sub-menu a {
    font-size: 15px;
    white-space: normal;
  }
  .primary-nav .nav-links .submenu-toggle[aria-expanded="false"] + .sub-menu { display: none; }
  .submenu-toggle {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
  }
  .submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .submenu-toggle[aria-expanded="true"]::before {
    transform: translateY(2px) rotate(225deg);
  }
  .submenu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
  .header-utilities {
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    gap: 6px 16px;
  }
  .menu-toggle[aria-expanded="true"] .menu-icon {
    position: relative;
    height: 18px;
    border: 0;
    transform: none;
  }
  .menu-toggle[aria-expanded="true"] .menu-icon::before,
  .menu-toggle[aria-expanded="true"] .menu-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline: 2px;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  .header-social { gap: 0; }
  .header-social a { width: 44px; height: 44px; }
  body:has(.primary-nav.is-open) #blip-chat-open-iframe { visibility: hidden; }
}
