/* Vanguard UK — Active fixed income (static rebuild) */

:root {
  --vg-red: #96151d;
  --vg-red-bright: #b40437;
  --vg-black: #1a1a1a;
  --vg-charcoal: #303030;
  --grey-1: #6c6c6c;
  --grey-2: #979797;
  --grey-3: #d1d1d1;
  --grey-4: #eaeaea;
  --grey-5: #f9f9f9;
  --white: #ffffff;
  --ocean-blue: #0274c9;
  --max-width: 1200px;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--vg-black);
  font-size: 16px;
  line-height: 1.5;
  background: var(--white);
}

h1, h2, h3, h4, h5 { line-height: 1.2; color: var(--vg-black); }
h1 { font-size: 2.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.75rem; margin: 0 0 1.25rem; }
h3 { font-size: 1.25rem; margin: 0 0 .75rem; }
p { margin: 0 0 1rem; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.container--narrow { max-width: 900px; }

.section { padding: 3rem 0; }
.section--grey { background: var(--grey-5); }
.section-title { font-size: 1.75rem; font-weight: 700; }
.section-title--center { text-align: center; margin-top: 3rem; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--vg-black); color: var(--white);
  padding: .75rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Links & CTAs ---------- */
.text-link {
  color: var(--vg-black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.text-link:hover { color: var(--vg-red); }

.cta {
  display: inline-block;
  padding: .8rem 1.75rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.cta--primary-white {
  background: var(--white); color: var(--vg-black); border-color: var(--white);
}
.cta--primary-white:hover { background: transparent; color: var(--white); }
.cta--secondary-black {
  background: transparent; color: var(--vg-black); border-color: var(--vg-black);
}
.cta--secondary-black:hover { background: var(--vg-black); color: var(--white); }

.footnote { font-size: .875rem; color: var(--grey-1); }

/* ---------- Header ---------- */
.global-header { border-bottom: 1px solid var(--grey-3); position: relative; z-index: 100; }

.header-top { background: var(--vg-charcoal); color: var(--white); font-size: .85rem; }
.header-top__inner { display: flex; justify-content: space-between; align-items: center; padding-top: .4rem; padding-bottom: .4rem; }
.header-top a { color: var(--white); text-decoration: none; margin-left: 1.25rem; }
.header-top a:hover { text-decoration: underline; }

.header-main__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo__img { height: 72px; width: auto; display: block; }

.primary-nav { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; }
.nav-item { position: static; }
.nav-link {
  background: none; border: 0; font: inherit; cursor: pointer;
  padding: 1.4rem 1rem; font-weight: 600; color: var(--vg-black);
  border-bottom: 3px solid transparent;
}
.nav-link:hover, .nav-item.open .nav-link { border-bottom-color: var(--vg-red); color: var(--vg-red); }

.mega-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); border-top: 1px solid var(--grey-4);
  box-shadow: 0 12px 24px rgba(0,0,0,.12); padding: 2rem 0;
}
.nav-item.open .mega-menu { display: block; }
.mega-menu__inner { display: flex; gap: 3rem; flex-wrap: wrap; }
.mega-menu__col { flex: 1 1 220px; }
.mega-menu__col h3 { font-size: 1rem; margin-bottom: .75rem; }
.mega-menu__col ul { list-style: none; margin: 0; padding: 0; }
.mega-menu__col li { margin-bottom: .5rem; }
.mega-menu__col a { color: var(--vg-black); text-decoration: none; font-size: .95rem; }
.mega-menu__col a:hover { color: var(--vg-red); text-decoration: underline; }
.mega-menu__promo img { width: 200px; border-radius: 4px; margin-bottom: .75rem; }
.mega-menu__promo p { font-size: .9rem; color: var(--grey-1); }

.search-btn { background: none; border: 0; cursor: pointer; padding: .5rem; color: var(--vg-black); }
.search-panel { background: var(--grey-5); border-top: 1px solid var(--grey-4); padding: 1rem 0; color: var(--grey-1); }

.nav-toggle { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 1rem; padding-bottom: 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; font-size: .85rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--grey-2); }
.breadcrumbs a { color: var(--grey-1); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--vg-black); font-weight: 600; }

/* ---------- Thin banner ---------- */
.thin-banner { background: var(--grey-5); padding: 2rem 0; }
.thin-banner__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: center; }
.thin-banner__image img { border-radius: 4px; width: 100%; }
.thin-banner .eds-large-body-text { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.thin-banner .h5 { font-size: 1.05rem; font-weight: 400; color: var(--grey-1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__image { width: 100%; height: 480px; object-fit: cover; object-position: center right; }
.hero__container { position: relative; }
.hero__panel {
  background: var(--vg-red);
  background: linear-gradient(135deg, #96151d 0%, #b40437 77%);
  color: var(--white);
  padding: 2.5rem 2.25rem;
  max-width: 620px;
  margin-top: -16rem;
  margin-bottom: 4rem;
  position: relative;
}
.hero__title {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
.hero__title em { font-style: italic; }
.hero__title.large { font-size: 3.5rem; }
.hero__blurb { font-size: 1.25rem; margin-bottom: 2rem; }

.cta--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
}
.cta--outline-white:hover { background: var(--white); color: var(--vg-red); }

/* ---------- Stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat h3 { font-size: 1.4rem; color: var(--vg-red); margin-bottom: .5rem; }
.stat p { color: var(--grey-1); font-size: .95rem; }

.footnotes-section { padding-top: 0; color: var(--grey-1); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; }
.timeline__item {
  counter-increment: step;
  position: relative;
  padding: 0 0 2rem 4.5rem;
  border-left: 2px solid var(--grey-3);
  margin-left: 1.4rem;
}
.timeline__item::before {
  content: counter(step);
  position: absolute; left: -1.4rem; top: 0;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--vg-red); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.timeline__item:last-child { border-left-color: transparent; }
.timeline__title { color: var(--vg-red); font-size: 1.3rem; margin-bottom: .75rem; }
.timeline__body ul { margin: 0; padding-left: 1.1rem; }
.timeline__body li { margin-bottom: .75rem; }

/* ---------- Accordion ---------- */
.accordion { max-width: 900px; margin: 0 auto 2rem; }
.accordion__item { border-bottom: 1px solid var(--grey-3); }
.accordion__heading { margin: 0; }
.accordion__trigger {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem .25rem; font: inherit; font-weight: 700; font-size: 1.15rem;
  color: var(--vg-black); text-align: left;
}
.accordion__trigger:hover { color: var(--vg-red); }
.accordion__icon { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s; }
.accordion__item.open .accordion__icon { transform: rotate(180deg); }
.accordion__panel { overflow: hidden; }
.accordion__content { padding: 0 .25rem 1.5rem; color: var(--vg-charcoal); }
.accordion__content p { margin-bottom: 1rem; }

/* ---------- Text + image rows ---------- */
.text-image { padding: 2rem 0; }
.text-image__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.text-image__media img { border-radius: 4px; width: 100%; }
.text-image__text h3 { font-size: 1.5rem; }
.text-image__text p { color: var(--vg-charcoal); }
.text-image--right .text-image__media { order: 2; }
.risk-note { margin-top: 2rem; }

/* ---------- Video ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 2rem;
  background: var(--vg-charcoal);
}
.video-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.transcript { max-width: 900px; margin: 0 auto; }

/* ---------- Brochure card ---------- */
.brochure-card {
  display: grid; grid-template-columns: 1fr 2fr; gap: 2rem;
  background: var(--white); border: 1px solid var(--grey-4); border-radius: 4px;
  padding: 2rem; align-items: center; max-width: 900px;
}
.brochure-card__image img { border-radius: 4px; }
.brochure-card__body h3 { font-size: 1.4rem; }

/* ---------- Article cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card {
  display: flex; flex-direction: column;
  color: inherit; text-decoration: none;
  border: 1px solid var(--grey-4); border-radius: 4px; overflow: hidden;
  background: var(--white);
  transition: box-shadow .15s;
}
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.card__image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__meta {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1rem 0; font-size: .8rem; color: var(--grey-1);
}
.card__time { display: inline-flex; align-items: center; gap: .3rem; }
.card__title { font-size: 1.05rem; padding: .5rem 1rem 0; }
.card__body { font-size: .9rem; color: var(--grey-1); padding: 0 1rem 1.25rem; }

/* ---------- 365 banner ---------- */
.banner-365 { position: relative; overflow: hidden; }
.banner-365__image { width: 100%; height: 420px; object-fit: cover; }
.banner-365__container { position: relative; }
.banner-365__panel {
  background: var(--white);
  padding: 2.5rem 2.25rem;
  max-width: 560px;
  margin-top: -14rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.banner-365__panel h2 { font-size: 1.75rem; }

/* ---------- Footer ---------- */
.global-footer { background: var(--vg-charcoal); color: var(--white); margin-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
  padding-top: 3rem; padding-bottom: 3rem;
}
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--grey-3); text-decoration: none; font-size: .88rem; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }

.footer-bottom { border-top: 1px solid #4a4a4a; padding-top: 2rem; padding-bottom: 2rem; }
.social-links { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.social-icon { color: var(--white); display: inline-flex; }
.social-icon:hover { color: var(--grey-3); }
.footer-legal { font-size: .8rem; color: var(--grey-2); }
.footer-legal-links { list-style: none; margin: 1.5rem 0 0; padding: 0; columns: 3; font-size: .8rem; }
.footer-legal-links li { margin-bottom: .5rem; break-inside: avoid; }
.footer-legal-links a { color: var(--grey-2); text-decoration: none; }
.footer-legal-links a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .stats__grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: .5rem;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--vg-black); }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-top: 1px solid var(--grey-4);
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
  }
  .global-header.nav-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; }
  .nav-link { width: 100%; text-align: left; padding: 1rem; }
  .mega-menu { position: static; box-shadow: none; border: 0; padding: 0 1rem 1rem; }
  .nav-item.open .mega-menu { display: block; }
  .mega-menu__inner { flex-direction: column; gap: 1.5rem; }

  .thin-banner__inner, .text-image__inner, .brochure-card { grid-template-columns: 1fr; }
  .text-image--right .text-image__media { order: 0; }
  .hero__image { height: 320px; }
  .hero__panel { margin-top: -8rem; padding: 1.75rem 1.5rem; }
  .hero__title.large { font-size: 2rem; }
  .banner-365__image { height: 300px; }
  .banner-365__panel { margin-top: -6rem; padding: 1.75rem 1.5rem; }
  .footer-legal-links { columns: 1; }
}

/* ---------- Index exposure analysis page ---------- */
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card--static { cursor: default; }
.card--static:hover { box-shadow: none; }
.card__cta { margin: auto 1rem 1.25rem; align-self: flex-start; font-size: .9rem; padding: .6rem 1.25rem; }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { margin-bottom: 1rem; padding-left: 1.75rem; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35rem;
  width: .9rem; height: .9rem; border-radius: 50%;
  background: var(--vg-red);
}

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.team-card { background: var(--white); border: 1px solid var(--grey-4); border-radius: 4px; padding: 1.75rem; text-align: center; }
.team-card__face { width: 7rem; height: 7rem; border-radius: 50%; overflow: hidden; margin: 0 auto 1.25rem; background: var(--grey-4); }
.team-card__face img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.team-card__role { color: var(--vg-red); font-weight: 700; font-size: .88rem; }

.center-cta { text-align: center; margin-top: 3rem; }

.cta--outline-dark {
  background: transparent; color: var(--vg-black);
  border: 2px solid var(--vg-black); border-radius: 999px;
  display: inline-flex; align-items: center; gap: .5rem;
}
.cta--outline-dark:hover { background: var(--vg-black); color: var(--white); }

@media (max-width: 1024px) {
  .cards--3 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- Outlook page additions ---------- */
.cap-card__icon { width: 72px; height: 72px; margin: 1.25rem 1rem 0; flex-shrink: 0; }
.cap-card__icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.link-more { font-size: .9rem; font-weight: 700; color: var(--vg-red); margin: auto 1rem 1.25rem; align-self: flex-start; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.badge { display: inline-block; background: var(--grey-5); border: 1px solid var(--grey-4); font-size: .75rem; padding: .15rem .6rem; border-radius: 999px; color: var(--vg-charcoal); }
.webinar-card--col .card__meta { padding-top: 1.25rem; }
.legal h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.legal p { font-size: .85rem; color: var(--vg-charcoal); margin-bottom: .75rem; }

/* ---------- About us page additions ---------- */
.hero__eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; margin-bottom: .75rem; opacity: .9; }
.prose p { margin-bottom: 1rem; color: var(--vg-charcoal); font-size: 1.05rem; line-height: 1.65; }
.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.fact-card { background: var(--white); border: 1px solid var(--grey-4); border-radius: 4px; padding: 1.5rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.fact-card__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-1); }
.fact-card__value { font-size: 1.15rem; font-weight: 700; color: var(--vg-red); line-height: 1.35; }
.footnote { margin-top: 1.5rem; font-size: .78rem; color: var(--grey-1); line-height: 1.6; }
.info-card .card__title { padding-top: 1.25rem; }
@media (max-width: 1024px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .fact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer heading links ---------- */
.footer-col h3 a { color: inherit; text-decoration: none; }
.footer-col h3 a:hover { text-decoration: underline; }

/* Why Vanguard plain (non-link) menu items */
.mega-menu__col .nav-plain { color: var(--vg-black); font-size: .95rem; cursor: default; }

/* ---------- Why Vanguard pages ---------- */
.pull-quote { max-width: 760px; margin: 0 auto; text-align: center; border: 0; padding: 1rem 0; }
.pull-quote p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.75rem; line-height: 1.45; color: var(--vg-red); margin-bottom: 1rem; }
.pull-quote cite { font-style: normal; font-size: .95rem; color: var(--grey-1); }
.chart-figure { margin: 2rem auto 0; max-width: 720px; }
.chart-figure img { width: 100%; background: #fff; padding: 1rem; border-radius: 4px; }
.award-list { list-style: disc; padding-left: 1.1rem; font-size: .85rem; color: var(--vg-charcoal); }
.award-list li { margin-bottom: .4rem; }

/* ---------- Legal / utility pages ---------- */
.page-header { background: var(--vg-red); background: linear-gradient(135deg, #96151d 0%, #b40437 77%); color: var(--white); padding: 3.5rem 0; }
.page-header .hero__eyebrow { margin-bottom: .75rem; }
.page-header h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 2.75rem; line-height: 1.15; max-width: 820px; }
.page-header h1, .page-header .hero__eyebrow { color: var(--white); }

/* ---------- No blue links in content ---------- */
.legal a, .prose a:not([class]), .footnote a:not([class]), .section a:not([class]):not(.breadcrumbs a) { color: var(--vg-red); }
.legal a:hover, .prose a:not([class]):hover, .footnote a:not([class]):hover { text-decoration: underline; }

/* ---------- Suppress 4th dropdown menu ---------- */
.navbar-nav.navbar-nav-scroll .nav-item.dropdown:nth-child(4) .dropdown-menu,
.navbar-nav.navbar-nav-scroll .nav-item.dropdown:nth-child(4) .dropdown-menu.show {
    display: none !important;
    pointer-events: none !important;
}
