/* =========================================================================
   Mind the Gulf — site navigation, magazine edition (2026-11-26).
   Matches css/magazine.css (navy #13283b, gold #f2b134, Inter). Scoped to .mtg-nav.
   Pixel units on purpose (the site's root font size is not 16px).
   ========================================================================= */

.mtg-nav {
  --nav-h: 64px;
  --navy: #13283b;
  --gold: #f2b134;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  background: rgba(19, 40, 59, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 500 15px/1.2 "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0; text-transform: none; text-align: left;
  transition: box-shadow .2s;
}
.mtg-nav.is-scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .22); }
.mtg-nav *, .mtg-nav *::before, .mtg-nav *::after { box-sizing: border-box; }
.mtg-nav ul { list-style: none; margin: 0; padding: 0; }
.mtg-nav a { text-decoration: none; }
.mtg-nav button { font-family: inherit; letter-spacing: inherit; line-height: 1.2; }

.mtg-nav__bar {
  max-width: 1440px; margin: 0 auto; padding: 0 16px; height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
}
@media (min-width: 768px) { .mtg-nav__bar { padding: 0 32px; } }
@media (min-width: 1200px) { .mtg-nav__bar { padding: 0 48px; } }
.mtg-nav__brand { flex: 0 0 auto; display: flex; align-items: center; }
.mtg-nav__brand img { height: 40px; width: auto; display: block; }

/* ---------- links ---------- */
.mtg-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  color: rgba(255, 255, 255, .86) !important; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s;
}
.mtg-nav__link:hover, .mtg-nav__link:focus-visible { color: #fff !important; background: rgba(255, 255, 255, .08); outline: none; }
.mtg-nav__link.is-on { color: #fff !important; }
.mtg-nav__link.is-on::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold);
}
.mtg-nav__pill { border: 1px solid rgba(255, 255, 255, .3); }
.mtg-nav__pill .mdi { font-size: 17px; color: var(--gold); }
.mtg-nav__pill .mdi::before { font-size: inherit; }
.mtg-nav__chev {
  width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s; opacity: .8;
}
.mtg-nav__drop[aria-expanded="true"] .mtg-nav__chev { transform: rotate(-135deg) translateY(-1px); }

/* ---------- dropdown panels (dark, drops flush from the bar) ---------- */
.mtg-nav__group { position: relative; }
.mtg-nav__sub a { display: flex; align-items: center; gap: 14px; color: #fff; }
.mtg-nav__ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: rgba(242, 177, 52, .12); color: var(--gold); font-size: 20px; line-height: 1; transition: background .15s;
}
.mtg-nav__ico::before { font-size: inherit; }
.mtg-nav__txt { flex: 1; min-width: 0; display: block; }
.mtg-nav__txt b { display: block; font: 600 16px/1.25 "Fraunces", Georgia, serif; letter-spacing: -.005em; color: #fff; transition: color .15s; }
.mtg-nav__txt small { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .6); }
.mtg-nav__arr { flex: 0 0 auto; font-size: 16px; color: var(--gold); opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; }
.mtg-nav__sub a:hover .mtg-nav__txt b, .mtg-nav__sub a:focus-visible .mtg-nav__txt b, .mtg-nav__sub a[aria-current] .mtg-nav__txt b { color: var(--gold); }
.mtg-nav__sub a:hover .mtg-nav__arr, .mtg-nav__sub a:focus-visible .mtg-nav__arr { opacity: 1; transform: none; }
.mtg-nav__sub a:hover .mtg-nav__ico, .mtg-nav__sub a:focus-visible .mtg-nav__ico { background: rgba(242, 177, 52, .22); }

/* ---------- desktop ---------- */
@media (min-width: 992px) {
  .mtg-nav__toggle { display: none; }
  .mtg-nav__menu { margin-left: auto; }
  .mtg-nav__list { display: flex; align-items: center; gap: 2px; }
  .mtg-nav__group--tools { margin-left: 10px; }
  /* links: gold underline on hover (same as the active marker), no grey pill */
  .mtg-nav__link:hover, .mtg-nav__link:focus-visible { background: transparent; }
  .mtg-nav__link:not(.mtg-nav__pill):hover::after, .mtg-nav__link:not(.mtg-nav__pill):focus-visible::after,
  .mtg-nav__drop[aria-expanded="true"]:not(.mtg-nav__pill)::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: rgba(242, 177, 52, .7);
  }
  .mtg-nav__pill:hover, .mtg-nav__drop.mtg-nav__pill[aria-expanded="true"] { border-color: var(--gold); background: rgba(242, 177, 52, .08); }

  .mtg-nav__sub {
    position: absolute; top: calc(100% + 12px); left: -8px; width: 372px; padding: 8px;
    background: #0f2131; border: 1px solid rgba(255, 255, 255, .08); border-top: 2px solid var(--gold);
    border-radius: 0 0 12px 12px; box-shadow: 0 22px 44px rgba(0, 0, 0, .35);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s;
  }
  .mtg-nav__sub--right { left: auto; right: 0; }
  .mtg-nav__drop[aria-expanded="true"] + .mtg-nav__sub,
  .mtg-nav__group:hover > .mtg-nav__sub,
  .mtg-nav__group:focus-within > .mtg-nav__sub { opacity: 1; visibility: visible; transform: none; }
  .mtg-nav__group::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* hover bridge */
  .mtg-nav__sub li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
  .mtg-nav__sub a { padding: 12px 10px; border-radius: 8px; }
  .mtg-nav__sub a:hover, .mtg-nav__sub a:focus-visible, .mtg-nav__sub a[aria-current] { background: rgba(255, 255, 255, .05); outline: none; }
}
@media (min-width: 992px) and (max-width: 1100px) {
  .mtg-nav__link { padding: 0 9px; font-size: 14px; }
}

/* ---------- phone + tablet ---------- */
@media (max-width: 991px) {
  .mtg-nav__toggle {
    margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: transparent; color: #fff; font-weight: 600; font-size: 14px; cursor: pointer;
  }
  .mtg-nav__burger, .mtg-nav__burger::before, .mtg-nav__burger::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background .2s;
  }
  .mtg-nav__burger { position: relative; }
  .mtg-nav__burger::before, .mtg-nav__burger::after { content: ""; position: absolute; left: 0; }
  .mtg-nav__burger::before { top: -6px; }
  .mtg-nav__burger::after { top: 6px; }
  .mtg-nav.is-open .mtg-nav__burger { background: transparent; }
  .mtg-nav.is-open .mtg-nav__burger::before { transform: translateY(6px) rotate(45deg); }
  .mtg-nav.is-open .mtg-nav__burger::after { transform: translateY(-6px) rotate(-45deg); }

  .mtg-nav__menu {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    background: var(--navy); padding: 8px 16px 32px; border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .mtg-nav.is-open .mtg-nav__menu { display: block; }
  .mtg-nav__list > li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .mtg-nav__link {
    width: 100%; justify-content: flex-start; min-height: 56px; padding: 0 6px; border-radius: 0; font-size: 18px; background: transparent !important;
  }
  .mtg-nav__link.is-on { color: var(--gold) !important; }
  .mtg-nav__link.is-on::after { display: none; }
  .mtg-nav__pill { border: 0; }
  .mtg-nav__chev { margin-left: auto; }
  .mtg-nav__sub { display: none; padding: 0 0 12px; }
  .mtg-nav__drop[aria-expanded="true"] + .mtg-nav__sub { display: block; }
  .mtg-nav__sub a { padding: 12px 14px; margin: 0 0 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: #fff; }
  .mtg-nav__sub .mtg-nav__arr { display: none; }
  html.mtg-nav-lock, html.mtg-nav-lock body { overflow: hidden; }
}
@media (max-width: 380px) { .mtg-nav__toggle-label { display: none; } }

@media print { .mtg-nav { display: none !important; } }
