/* ============================================================
   ASHCROFT MEDIA GROUP — NEWSROOM MEGAMENU
   Shared header navigation for every page that uses the site header.
   Loaded after each page's inline styles so it can safely override the
   legacy `nav` rules.
   ============================================================ */

/* ---------- desktop bar ---------- */
.amg-nav {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #0B0F1A);
  position: static;
  margin: 0;
}

.amg-nav .amg-nav-item {
  position: static;
  display: flex;
  align-items: stretch;
}

/* neutralise legacy `nav a` styling */
.amg-nav a {
  border-bottom: 0;
  padding-bottom: 0;
  opacity: 1;
  text-decoration: none;
}

.amg-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: inherit;
  opacity: 0.74;
  white-space: nowrap;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.amg-nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 1px;
  height: 2px;
  background: var(--blue, #0037B2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.amg-nav-link:hover,
.amg-nav-link:focus-visible,
.amg-nav-item.is-open > .amg-nav-link,
.amg-nav-link[aria-current="page"] {
  opacity: 1;
  color: var(--blue, #0037B2);
  outline: none;
}

.amg-nav-link:hover::after,
.amg-nav-link:focus-visible::after,
.amg-nav-item.is-open > .amg-nav-link::after,
.amg-nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.amg-caret {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.18s ease;
  opacity: 0.7;
  flex: 0 0 auto;
}

.amg-nav-item.is-open .amg-caret {
  transform: rotate(-135deg) translate(-2px, -2px);
}

/* ---------- mega panel ---------- */
.amg-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 60;
  background: var(--white, #fff);
  border-top: 1px solid var(--line, rgba(11, 15, 26, 0.12));
  box-shadow: 0 30px 45px -32px rgba(11, 15, 26, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.amg-nav-item.is-open > .amg-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.amg-mega-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 0;
}

.amg-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 280px;
  gap: 0 34px;
  align-items: start;
}

.amg-mega-col {
  padding: 0 0 26px;
  min-width: 0;
}

.amg-mega-col:not(:last-of-type) {
  padding-right: 34px;
  border-right: 1px solid var(--line, rgba(11, 15, 26, 0.12));
}

.amg-mega-head {
  font-family: 'Anton', sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--blue, #0037B2);
  text-transform: uppercase;
  margin: 0 0 8px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--ink, #0B0F1A);
}

.amg-nav .amg-mega-link {
  display: block;
  padding: 8px 10px;
  margin: 0 -10px;
  transition: background 0.14s ease;
}

.amg-nav .amg-mega-link:hover,
.amg-nav .amg-mega-link:focus-visible {
  background: var(--tint, #F2F5FC);
  outline: none;
}

.amg-mega-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink, #0B0F1A);
  transition: color 0.14s ease;
}

.amg-mega-desc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--grey, #5B6472);
}

.amg-nav .amg-mega-link:hover .amg-mega-title,
.amg-nav .amg-mega-link:focus-visible .amg-mega-title {
  color: var(--blue, #0037B2);
}

.amg-nav .amg-mega-link[aria-current="page"] .amg-mega-title {
  color: var(--blue, #0037B2);
}

.amg-nav .amg-mega-link[aria-current="page"] {
  background: var(--tint, #F2F5FC);
  box-shadow: inset 2px 0 0 var(--blue, #0037B2);
}

/* ---------- feature rail ---------- */
.amg-mega-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 214px;
  margin-bottom: 26px;
  padding: 20px 20px 22px;
  background: var(--ink, #0B0F1A);
  color: #fff;
}

.amg-mega-kicker {
  display: inline-block;
  align-self: flex-start;
  background: var(--red, #D90000);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.amg-mega-feature h4 {
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 12px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amg-mega-feature p {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
  margin: 8px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amg-nav .amg-mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 2px solid var(--red, #D90000);
  padding-bottom: 3px;
  align-self: flex-start;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.amg-nav .amg-mega-cta:hover,
.amg-nav .amg-mega-cta:focus-visible {
  color: #9fb6ff;
  border-color: #9fb6ff;
  outline: none;
}

.amg-mega-cta span {
  transition: transform 0.14s ease;
}

.amg-nav .amg-mega-cta:hover span {
  transform: translateX(3px);
}

/* ---------- panel footer strip ---------- */
.amg-mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  border-top: 1px solid var(--line, rgba(11, 15, 26, 0.12));
  padding: 12px 0 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey, #5B6472);
}

.amg-mega-foot .amg-foot-label {
  color: var(--ink, #0B0F1A);
  opacity: 0.55;
}

.amg-nav .amg-foot-link {
  color: var(--ink, #0B0F1A);
  opacity: 0.65;
  transition: opacity 0.14s ease, color 0.14s ease;
}

.amg-nav .amg-foot-link:hover,
.amg-nav .amg-foot-link:focus-visible {
  opacity: 1;
  color: var(--blue, #0037B2);
  outline: none;
}

/* ---------- burger ---------- */
.amg-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line, rgba(11, 15, 26, 0.12));
  background: var(--white, #fff);
  cursor: pointer;
  flex: 0 0 auto;
  transition: border-color 0.15s ease;
}

.amg-burger:hover,
.amg-burger:focus-visible {
  border-color: var(--blue, #0037B2);
  outline: none;
}

.amg-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink, #0B0F1A);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.15s ease;
}

.amg-burger:hover span {
  background: var(--blue, #0037B2);
}

/* ============================================================
   MOBILE DRAWER
   Sits outside <header> so no backdrop-filter creates a
   containing block for the fixed overlay.
   ============================================================ */
.amg-mobile {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  overscroll-behavior: contain;
}

.amg-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.amg-mobile-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 2px solid var(--line, rgba(11, 15, 26, 0.12));
}

.amg-mobile-logo {
  height: 36px;
  width: auto;
  display: block;
}

.amg-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line, rgba(11, 15, 26, 0.12));
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.amg-close:hover,
.amg-close:focus-visible {
  border-color: var(--blue, #0037B2);
  outline: none;
}

.amg-close::before,
.amg-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--ink, #0B0F1A);
}

.amg-close {
  position: relative;
}

.amg-close::before {
  transform: rotate(45deg);
}

.amg-close::after {
  transform: rotate(-45deg);
}

.amg-mobile-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 20px 40px;
}

.amg-m-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue, #0037B2);
  border: 1px solid rgba(0, 55, 178, 0.35);
  padding: 6px 10px;
}

.amg-m-live .amg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red, #D90000);
  animation: amgPulse 1.6s ease-in-out infinite;
}

@keyframes amgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.amg-m-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line, rgba(11, 15, 26, 0.12));
  font-family: 'Anton', sans-serif;
  font-size: 21px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink, #0B0F1A);
}

.amg-m-home::after {
  content: "\2192";
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  color: var(--grey, #5B6472);
}

.amg-acc {
  border-bottom: 1px solid var(--line, rgba(11, 15, 26, 0.12));
}

.amg-acc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  font-family: 'Anton', sans-serif;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink, #0B0F1A);
  -webkit-tap-highlight-color: transparent;
}

.amg-acc > summary::-webkit-details-marker {
  display: none;
}

.amg-acc > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-right: 2px solid var(--grey, #5B6472);
  border-bottom: 2px solid var(--grey, #5B6472);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.amg-acc[open] > summary {
  color: var(--blue, #0037B2);
}

.amg-acc[open] > summary::after {
  transform: rotate(-135deg);
  border-color: var(--blue, #0037B2);
}

.amg-acc-body {
  padding: 0 0 16px;
}

.amg-m-group-label {
  font-family: 'Anton', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue, #0037B2);
  margin: 12px 0 4px;
}

.amg-m-group-label:first-child {
  margin-top: 2px;
}

.amg-m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink, #0B0F1A);
  border-bottom: 1px solid rgba(11, 15, 26, 0.07);
}

.amg-m-link::after {
  content: "\2192";
  font-size: 14px;
  color: var(--grey, #5B6472);
  opacity: 0.7;
}

.amg-m-link:last-child {
  border-bottom: 0;
}

.amg-m-link:hover,
.amg-m-link:focus-visible,
.amg-m-link[aria-current="page"] {
  color: var(--blue, #0037B2);
  outline: none;
}

.amg-m-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 2px solid var(--ink, #0B0F1A);
}

.amg-m-foot-label {
  font-family: 'Anton', sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue, #0037B2);
  margin-bottom: 10px;
}

.amg-m-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-size: 13.5px;
  font-weight: 600;
}

.amg-m-quick a {
  padding: 8px 0;
  color: var(--ink, #0B0F1A);
  border-bottom: 1px solid rgba(11, 15, 26, 0.07);
}

.amg-m-quick a:hover,
.amg-m-quick a:focus-visible {
  color: var(--blue, #0037B2);
  outline: none;
}

.amg-m-address {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--grey, #5B6472);
}

.amg-m-address strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink, #0B0F1A);
  margin-bottom: 2px;
}

body.amg-menu-open {
  overflow: hidden;
}

/* ---------- breakpoints ---------- */
@media (max-width: 1120px) {
  .amg-nav-link {
    padding: 9px 10px;
    font-size: 12.5px;
  }

  .amg-nav-link::after {
    left: 10px;
    right: 10px;
  }

  .amg-mega-grid {
    grid-template-columns: 1fr 1fr 1fr 246px;
    gap: 0 24px;
  }

  .amg-mega-col:not(:last-of-type) {
    padding-right: 24px;
  }
}

@media (max-width: 920px) {
  .amg-nav {
    display: none;
  }

  .amg-burger {
    display: inline-flex;
  }

  header .on-air {
    display: none;
  }

  .amg-mega {
    display: none;
  }
}

@media (min-width: 921px) {
  .amg-mobile {
    display: none;
  }
}

@media (max-width: 560px) {
  .amg-mobile-body {
    padding: 4px 18px 36px;
  }

  .amg-acc > summary,
  .amg-m-home {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amg-mega,
  .amg-mobile,
  .amg-caret,
  .amg-nav-link,
  .amg-nav-link::after,
  .amg-mega-cta span {
    transition-duration: 0.001ms !important;
  }
}
