

/* ============================================================
   VARIABLES
   ============================================================ */

.oe-gci-root{
  --gci-navy:#003466;
  --gci-navy-dark:#091939;
  --gci-sky:#008AC8;
  --gci-sky-light:#66BDE0;
  --gci-ink:#455055;
  --gci-grey:#7C8891;
  --gci-hairline:rgba(124,136,145,.28);
  --gci-ease:cubic-bezier(.4,0,.2,1);
  --gci-maxw:1270px;
}


/* ============================================================
   HEADER
   ============================================================ */

/*
 * Mobile/tablet starts RELATIVE so the header remains in the
 * normal document flow and cannot overlap the hero on page load.
 *
 * It switches to fixed only once .is-condensed is added.
 *
 * Desktop switches to sticky in the ≥992px media query.
 */
.oe-gci-header{
  position:relative;
  z-index:1000;
  background:#fff;
  font-family:'Poppins','Helvetica Neue',Arial,sans-serif;
  border-bottom:1px solid var(--gci-hairline);
  transition:box-shadow .25s var(--gci-ease);
}

.oe-gci-header *{
  box-sizing:border-box;
}

.oe-gci-header.is-condensed{
  box-shadow:0 6px 20px rgba(9,25,57,.09);
}


/*
 * Spacer is zero-height normally.
 *
 * JavaScript gives it the expanded header height ONLY while the
 * mobile/tablet header is fixed. This prevents the content below
 * from jumping when the header leaves normal document flow.
 */
.oe-gci-spacer{
  height:0;
}


/* Mobile/tablet fixed state */
@media (max-width:991.98px){

  .oe-gci-header.is-condensed{
    position:fixed;
    top:0;
    left:0;
    right:0;
  }

}


.oe-gci-inner{
  max-width:var(--gci-maxw);
  width:90%;
  margin:0 auto;
}


/* ============================================================
   TOP BAR
   ============================================================ */

.oe-gci-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:15px 0;
  transition:padding .25s var(--gci-ease);
}

.oe-gci-header.is-condensed .oe-gci-bar{
  padding:9px 0;
}


.oe-gci-brand{
  display:flex;
  align-items:center;
  gap:16px;
  text-decoration:none;
  min-width:0;
}


.oe-gci-logo{
  height:38px;
  width:auto;
  display:block;
  flex:none;
  transition:height .25s var(--gci-ease);
}

.oe-gci-header.is-condensed .oe-gci-logo{
  height:32px;
}


.oe-gci-divider{
  display:block;
  width:1px;
  height:30px;
  background:var(--gci-hairline);
  flex:none;
}


/* Global Cities Index lockup
 * Scales proportionally to match the Oxford Economics logo height.
 * Standard: 34px · Condensed: 32px. Text is deliberately scaled up
 * relative to the chart for better visual balance.
 */
.oe-gci-lockup{
  --oe-gci-lockup-height:34px;
  display:inline-flex;
  align-items:center;
  gap:calc(var(--oe-gci-lockup-height) * 0.32);
  color:#003466;
}

.oe-gci-lockup__chart{
  display:block;
  width:auto;
  height:var(--oe-gci-lockup-height);
  flex:0 0 auto;
  transition:height .25s var(--gci-ease);
}

.oe-gci-lockup__text{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  height:var(--oe-gci-lockup-height);
  font-family:'Poppins',sans-serif;
  font-weight:700;
  white-space:nowrap;
  transition:height .25s var(--gci-ease);
}

.oe-gci-lockup__brand,
.oe-gci-lockup__title,
.oe-gci-lockup__year{
  display:block;
  margin:0;
  padding:0;
  line-height:1;
  transition:font-size .25s var(--gci-ease);
}

.oe-gci-lockup__brand{
  font-size:calc(var(--oe-gci-lockup-height) * 0.234);
}

.oe-gci-lockup__title{
  font-size:calc(var(--oe-gci-lockup-height) * 0.263232);
}

.oe-gci-lockup__year{
  font-size:calc(var(--oe-gci-lockup-height) * 0.409476);
}

.oe-gci-header.is-condensed .oe-gci-lockup{
  --oe-gci-lockup-height:32px;
}


/* Phones: free up header space.
 * - Hide the main Oxford Economics logo and its divider.
 * - Once the header condenses and the Download button appears,
 *   hide the Global Cities text and keep only the bar-chart SVG.
 */
@media (max-width:599.98px){

  .oe-gci-logo,
  .oe-gci-divider{
    display:none;
  }

  .oe-gci-header.is-condensed .oe-gci-lockup__text{
    display:none;
  }

}


.oe-gci-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:none;
}


/* ============================================================
   DOWNLOAD BUTTON
   ============================================================ */

.oe-gci-btn--bar{
  display:none;
  white-space:nowrap;
}

.oe-gci-header.is-condensed .oe-gci-btn--bar{
  display:inline-block;
}


.oe-gci-dl-short{
  display:none;
}


@media (max-width:599.98px){

  .oe-gci-dl-long{
    display:none;
  }

  .oe-gci-dl-short{
    display:inline;
  }

}


/* ============================================================
   HAMBURGER
   ============================================================ */

.oe-gci-burger{
  width:44px;
  height:44px;
  flex:none;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border-radius:8px;
  -webkit-tap-highlight-color:transparent;
}


.oe-gci-burger:hover,
.oe-gci-burger:focus,
.oe-gci-burger:focus-visible,
.oe-gci-burger:active{
  background:transparent;
}


.oe-gci-burger:focus-visible{
  outline:3px solid var(--gci-sky-light);
  outline-offset:2px;
}


.oe-gci-burger span{
  width:24px;
  height:2.5px;
  background:var(--gci-navy);
  border-radius:2px;
  transition:none;
}


/* ============================================================
   DESKTOP NAVIGATION
   ============================================================ */

.oe-gci-nav{
  display:none;
  border-top:1px solid var(--gci-hairline);
}


.oe-gci-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:30px;
  flex-wrap:wrap;
}


.oe-gci-nav a{
  display:inline-block;
  padding:14px 0;
  font-size:15px;
  font-weight:500;
  color:var(--gci-ink);
  text-decoration:none;
  border-bottom:3px solid transparent;
  transition:color .2s,border-color .2s;
}


.oe-gci-nav a:hover{
  color:var(--gci-sky);
}


.oe-gci-nav a.is-current{
  color:var(--gci-navy);
  font-weight:600;
  border-bottom-color:var(--gci-sky);
}


.oe-gci-nav a:focus-visible{
  outline:3px solid var(--gci-sky-light);
  outline-offset:3px;
}


/* ============================================================
   NEW MENU PILL
   ============================================================ */

.oe-gci-nav a.oe-gci-link-with-pill,
.oe-gci-panel nav a.oe-gci-link-with-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
}


.oe-gci-new-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  padding:4px 7px;
  border-radius:999px;
  background:var(--oe-color-primary);
  color:#fff;
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.04em;
}


/* ============================================================
   BOTTOM STICKY CTA — PHONES
   ============================================================ */

.oe-gci-cta-bottom{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1001;
  padding:11px 16px calc(11px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(6px);
  border-top:1px solid var(--gci-hairline);
  transition:transform .3s var(--gci-ease),opacity .3s var(--gci-ease);
}


.oe-gci-cta-bottom .oe-button{
  display:block;
  width:100%;
  text-align:center;
}


/* Once scrolled, bottom CTA retracts and header CTA takes over */
.oe-gci-header.is-condensed ~ .oe-gci-cta-bottom{
  transform:translateY(130%);
  opacity:0;
  pointer-events:none;
}


/* ============================================================
   MOBILE / TABLET DRAWER
   ============================================================ */

.oe-gci-drawer{
  position:fixed;
  inset:0;
  z-index:1100;
  visibility:hidden;
  pointer-events:none;
}


.oe-gci-drawer.is-open{
  visibility:visible;
  pointer-events:auto;
}


.oe-gci-scrim{
  position:absolute;
  inset:0;
  background:rgba(9,25,57,.55);
  opacity:0;
  transition:opacity .3s var(--gci-ease);
}


.oe-gci-drawer.is-open .oe-gci-scrim{
  opacity:1;
}


.oe-gci-panel{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  width:82%;
  max-width:340px;
  background:var(--gci-navy);
  padding:18px 24px calc(24px + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column;
  transform:translateX(100%);
  transition:transform .32s var(--gci-ease);
  overflow-y:auto;
  font-family:'Poppins','Helvetica Neue',Arial,sans-serif;
}


.oe-gci-drawer.is-open .oe-gci-panel{
  transform:translateX(0);
}


.oe-gci-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}


.oe-gci-panel-head img{
  height:28px;
  width:auto;
  filter:brightness(0) invert(1);
}


.oe-gci-close{
  width:40px;
  height:40px;
  flex:none;
  border:none;
  background:rgba(255,255,255,.1);
  border-radius:8px;
  color:#fff;
  font-size:24px;
  line-height:1;
  padding:0;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  display:flex;
  align-items:center;
  justify-content:center;
}


.oe-gci-close:hover,
.oe-gci-close:focus,
.oe-gci-close:active{
  background:rgba(255,255,255,.18);
}


.oe-gci-close:focus-visible{
  outline:3px solid var(--gci-sky-light);
  outline-offset:2px;
}


.oe-gci-panel-title{
  color:rgba(255,255,255,.6);
  font-size:12px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin:16px 0 4px;
}


.oe-gci-panel nav{
  display:flex;
  flex-direction:column;
}


.oe-gci-panel nav a{
  color:#fff;
  text-decoration:none;
  font-size:17px;
  font-weight:500;
  padding:15px 0;
  border-bottom:1px solid rgba(255,255,255,.13);
}


.oe-gci-panel nav a.is-current{
  color:var(--gci-sky-light);
}


.oe-gci-panel nav a:focus-visible{
  outline:3px solid var(--gci-sky-light);
  outline-offset:2px;
}


.oe-gci-drawer-cta{
  margin-top:auto;
  padding-top:24px;
}


.oe-gci-drawer-cta .oe-button{
  display:block;
  width:100%;
  text-align:center;
}


/* ============================================================
   TABLET ≥600px
   ============================================================ */

@media (min-width:600px){

  .oe-gci-btn--bar{
    display:inline-block;
  }

  .oe-gci-cta-bottom{
    display:none;
  }

}


/* ============================================================
   DESKTOP ≥992px
   ============================================================ */

@media (min-width:992px){

  /*
   * Desktop remains sticky and therefore stays in document flow.
   * No spacer is required.
   */
  .oe-gci-header,
  .oe-gci-header.is-condensed{
    position:sticky;
    top:0;
    left:auto;
    right:auto;
  }


  /* Desktop Oxford Economics logo + Global Cities Index lockup */
  .oe-gci-logo,
  .oe-gci-header.is-condensed .oe-gci-logo{
    height:60px;
  }

  .oe-gci-lockup{
    --oe-gci-lockup-height:34px;
  }

  .oe-gci-header.is-condensed .oe-gci-lockup{
    --oe-gci-lockup-height:32px;
  }


  .oe-gci-divider{
    height:40px;
  }


  .oe-gci-burger{
    display:none;
  }


  .oe-gci-nav{
    display:block;
  }


  .oe-gci-bar{
    padding:18px 0;
  }


  .oe-gci-header.is-condensed .oe-gci-bar{
    padding:12px 0;
  }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion:reduce){

  .oe-gci-header *,
  .oe-gci-panel,
  .oe-gci-scrim{
    transition:none!important;
  }

}

