/* London / Londra header dropdown. Loaded after site CSS. Does not change existing hashed sheets. */

.nav-london{
  display:inline-flex;
  align-items:stretch;
  position:relative;
  flex:none;
  background:var(--red);
  border-radius:999px;
  color:#fff;
  max-width:100%;
}
.nav-london > .nav-live{
  background:transparent;
  border-radius:999px 0 0 999px;
  box-shadow:none;
}
.nav-london > .nav-live:hover,
.nav-london > .nav-live:focus-visible{
  background:rgba(0,0,0,.12);
  color:#fff;
}
.nav-london > .nav-live[aria-current]{
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.9);
}
.nav-london-caret{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  padding:0 .6rem;
  min-width:2.5rem;
  min-height:44px;
  border:0;
  border-left:1px solid rgba(255,255,255,.35);
  border-radius:0 999px 999px 0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  flex:none;
  font:inherit;
  line-height:0;
}
.nav-london-caret:hover,
.nav-london-caret:focus-visible{
  background:rgba(0,0,0,.12);
}
.nav-london-caret:focus-visible{
  outline:3px solid #8DB4FF;
  outline-offset:2px;
}
.nav-london-caret svg{
  width:12px;
  height:8px;
  max-width:none;
  display:block;
  fill:currentColor;
  flex:none;
}
.nav-london-caret[aria-expanded="true"] svg{
  transform:rotate(180deg);
}

.nav-london-sub,
nav.main .nav-london-sub{
  display:flex;
  flex-direction:column;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:0;
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  z-index:40;
  margin:0;
  padding:.35rem 0;
  list-style:none;
  min-width:max(100%,16rem);
  width:auto;
  max-width:min(20rem, calc(100vw - 1.5rem));
  background:var(--card);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  white-space:nowrap;
}
.nav-london-sub li{margin:0;padding:0;display:block}
.nav-london-sub a,
nav.main .nav-london-sub a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:.35rem 1rem;
  color:var(--ink);
  text-decoration:none;
  font:600 .95rem/1.2 var(--sans);
  letter-spacing:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  white-space:nowrap;
}
.nav-london-sub a:hover,
.nav-london-sub a:focus-visible,
nav.main .nav-london-sub a:hover,
nav.main .nav-london-sub a:focus-visible{
  background:var(--soft);
  color:var(--ink);
}
.nav-london-sub a[aria-current],
nav.main .nav-london-sub a[aria-current]{
  background:var(--red);
  color:#fff;
  box-shadow:none;
}
.nav-london-sub a[aria-current]:hover,
nav.main .nav-london-sub a[aria-current]:hover{
  background:var(--red-bright,#A50D26);
  color:#fff;
}

/* Bar copy: only 641–999, same rule as .nav-live-bar. Wrapper holds the dropdown. */
.nav-london-bar{display:none;position:relative;flex:none;align-items:center}
@media (min-width:641px) and (max-width:999px){
  header.site .nav-london-bar{display:inline-flex!important}
  header.site .nav-london-bar .nav-london-sub{
    left:auto;
    right:0;
  }
  /* Mid-width hamburger must not also list London (no duplicates). */
  nav.main.is-open .nav-live-li,
  nav.main.is-open .nav-london-li{display:none!important}
}
@media (max-width:640px){
  header.site .nav-london-bar{display:none!important}
}
@media (min-width:1000px){
  .nav-london-bar{display:none!important}
}

/* Phone hamburger only: compact pill + caret, then a dark-panel list like the other items. */
@media (max-width:640px){
  nav.main.is-open .nav-london-li{
    display:flex!important;
    flex-direction:column;
    align-items:flex-start;
    width:100%;
  }
  nav.main.is-open .nav-london{
    display:inline-flex!important;
    width:max-content!important;
    max-width:100%;
    overflow:hidden;
  }
  nav.main.is-open .nav-london > .nav-live{
    flex:none!important;
    width:auto!important;
    justify-content:center;
  }
  nav.main.is-open .nav-london-sub{
    position:static;
    left:auto;
    right:auto;
    top:auto;
    min-width:0;
    width:100%;
    margin:.15rem 0 .2rem;
    padding:.1rem 0;
    box-shadow:none;
    border:0;
    border-radius:0;
    background:transparent;
    white-space:normal;
  }
  nav.main.is-open .nav-london-sub a,
  nav.main.is-open .nav-london-sub a:hover,
  nav.main.is-open .nav-london-sub a:focus-visible{
    color:var(--header-fg,#FAF7F2);
    background:transparent;
    white-space:normal;
    font-weight:600;
    padding:.35rem .85rem;
  }
  nav.main.is-open .nav-london-sub a:hover,
  nav.main.is-open .nav-london-sub a:focus-visible{
    background:rgba(250,247,242,.1);
  }
  nav.main.is-open .nav-london-sub a[aria-current],
  nav.main.is-open .nav-london-sub a[aria-current]:hover{
    background:var(--red);
    color:#fff;
  }
}

/* Desktop row: London group is the first item; dropdown opens below, left-aligned. */
@media (min-width:1000px){
  nav.main .nav-london-li{
    display:flex;
    align-items:center;
    position:relative;
    flex:none;
  }
  nav.main .nav-london-sub{
    left:0;
    right:auto;
  }
}

@media (min-width:1600px){
  header.site .nav-london-bar,
  nav.main .nav-london-li{
    flex:none;
    position:relative;
  }
}

/* Tight mid/phone typography already shrinks .nav-live-bar; keep the caret compact. */
@media (max-width:480px){
  .nav-london-caret{min-width:2.25rem;padding:0 .45rem}
}
