/* AMI home page – ABTA brand colours (October 2026 review)
   Loaded by index.html only, after the page's own <style> block.
   Palette (ABTA Brand Guidelines):
     Deep Indigo #1A237E  Gold Ochre #F4A300  Emerald Green #008060  Rich Maroon #8E2F3E
     Charcoal #333333  Grey #666666  Light Gray #F7F7F7  Cerebral Gray #CCCCCC  White #FFFFFF
   Rules:
     - Blue grounds carry white text. Buttons on blue are white outline with white text.
     - Gold Ochre is never used as text on white (contrast 2.1:1). On white it is a fill with charcoal text.
     - Maroon and emerald are never used as text on blue.
   Font: Inter stands in until Museo Sans is licensed. */

/* 1. Tokens used by the page's own CSS */
:root {
  --gold: #F4A300;
  --gold-light: #F4A300;
  --gold-pale: #EEF0FA;
  --terra: #8E2F3E;
  --terra-dark: #8E2F3E;
  --green: #008060;
  --green-mid: #008060;
  --ink: #333333;
  --ink-mid: #333333;
  --ink-soft: #666666;
  --cream: #FFFFFF;
  --cream-dark: #F7F7F7;
  --border: #CCCCCC;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #333333;
  --text-soft: #666666;
  --nav-bg: #1A237E;
  --nav-text: #FFFFFF;
  --header-bg: #F7F7F7;
  --divider: #CCCCCC;
  --card-bg: #FFFFFF;
}
html body { background: #FFFFFF; }

/* 2. Exchange-rate strip: Charcoal, all white */
html body .ami-strip { background: #333333 !important; color: #FFFFFF !important; }
html body .ami-strip__i b,
html body .ami-strip__i { color: #FFFFFF !important; }
html body .ami-strip__lead,
html body .ami-strip__src,
html body .ami-strip__src a { color: #E0E0E0 !important; }

/* 3. Masthead: Deep Indigo, white wordmark */
html body header.masthead { background: #1A237E !important; border-bottom: 1px solid rgba(255, 255, 255, .2) !important; }
html body header.masthead .masthead-name,
html body header.masthead .masthead-name span { color: #FFFFFF !important; }
html body header.masthead .masthead-cta a.dr-nav__account,
html body header.masthead .masthead-cta #amiNavLoginBtn { color: #FFFFFF !important; }

/* 4. Buttons on blue: white outline, white text */
html body header.masthead .btn-subscribe {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  transition: background .2s, color .2s;
}
html body header.masthead .btn-subscribe:hover,
html body header.masthead .btn-subscribe:focus-visible {
  background: #FFFFFF !important;
  color: #1A237E !important;
}

/* 5. Navigation band: Deep Indigo, white text, gold ochre on hover and for the current page */
html body .ami-band {
  background: #1A237E !important;
  border-top: 1px solid rgba(255, 255, 255, .2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .2) !important;
}
html body .ami-band__name,
html body .ami-band__nav a,
html body .ami-band__switch a,
html body .ami-band__drop > button { color: #FFFFFF !important; }
html body .ami-band__nav a:hover,
html body .ami-band__nav a:focus,
html body .ami-band__switch a:hover,
html body .ami-band__switch a:focus,
html body .ami-band__drop > button:hover { color: #F4A300 !important; }
html body .ami-band__nav a[aria-current="page"],
html body .ami-band__switch a[aria-current="page"] { box-shadow: inset 0 -2px 0 #F4A300 !important; }
html body .ami-band__sep { background: rgba(255, 255, 255, .3) !important; }
html body .ami-band__menu { background: #1A237E !important; border-color: rgba(255, 255, 255, .3) !important; }
html body .ami-band .ami-search-btn,
html body .ami-band .ami-search-btn svg { color: #FFFFFF !important; stroke: #FFFFFF; }

/* 6. Advert bands */
html body .ami-adband { background: #F7F7F7 !important; border-bottom-color: #CCCCCC !important; }

/* 7. Headlines and text */
html body .ami-lay a.lay-a { color: #333333; }
html body .ami-lay a.lay-a:hover { color: #1A237E; text-decoration: underline; }
html body .ami-lay .lay-h1 a.lay-a,
html body .ami-lay .lay-h1 { color: #1A237E; }
html body .lay-sf { color: #666666; }
html body .lay-meta { color: #666666; }
html body .lay-cap { background: #FFFFFF; }
html body .lay-tag { background: #1A237E; color: #FFFFFF; }
html body .lay-rail__h { color: #1A237E; }
html body .ami-lay .lay-lead > div,
html body .ami-lay .lay-c4 > div,
html body .ami-lay .lay-sub3 > div { border-left-color: #CCCCCC; }

/* 8. Section colour coding (labels use data-sec, set in layout.js) */
html body .lay-kick { color: #8E2F3E; font-weight: 700; }
html body .lay-kick[data-sec="Energy"],
html body .lay-kick[data-sec="Markets"] { color: #008060; }
html body .lay-kick[data-sec="Economy"],
html body .lay-kick[data-sec="Tech"] { color: #1A237E; }
html body .lay-kick[data-sec="Politics"] { color: #333333; }

/* Section headings and "All ..." links, matched on their page links */
html body .ami-lay .section-header { border-top-color: #CCCCCC; }
html body .ami-lay .section-header .section-title { color: #1A237E; font-weight: 700; }
html body .ami-lay .section-header .section-title:not(:has(a)) { border-bottom: 3px solid #F4A300; display: inline-block; padding-bottom: 4px; }
html body .section-title a[href*="deals"], html body .lay-blk__more a[href*="deals"] { color: #8E2F3E; }
html body .section-title a[href*="energy"], html body .lay-blk__more a[href*="energy"],
html body .section-title a[href*="markets"], html body .lay-blk__more a[href*="markets"] { color: #008060; }
html body .section-title a[href*="economy"], html body .lay-blk__more a[href*="economy"],
html body .section-title a[href*="tech"], html body .lay-blk__more a[href*="tech"] { color: #1A237E; }
html body .section-title a[href*="politics"], html body .lay-blk__more a[href*="politics"] { color: #333333; }
html body .lay-blk__more a { font-weight: 700; }
html body .ami-lay .section-header .view-more { color: #1A237E; }
html body .ami-lay .section-header .view-more:hover { color: #8E2F3E; }

/* 9. Newsletter box: white, indigo border, gold ochre button */
html body .newsletter-widget { background: #FFFFFF !important; border: 2px solid #1A237E !important; }
html body .newsletter-widget::before { color: rgba(26, 35, 126, .08) !important; }
html body .newsletter-widget h3,
html body .newsletter-widget [class*="title"],
html body .newsletter-widget [class*="head"] { color: #1A237E !important; }
html body .newsletter-widget p,
html body .newsletter-widget label,
html body .newsletter-widget small { color: #333333 !important; }
html body .newsletter-widget input {
  background: #F7F7F7 !important; border: 1px solid #CCCCCC !important; color: #333333 !important;
}
html body .newsletter-widget .nw-btn { background: #F4A300 !important; color: #333333 !important; }
html body .newsletter-widget .nw-btn:hover { background: #FFFFFF !important; box-shadow: inset 0 0 0 2px #F4A300; }

/* 10. Pagination: current page is an indigo circle with a white number */
html body .page-btn { border-color: #CCCCCC; color: #666666; }
html body .page-btn:hover { color: #1A237E; border-color: #1A237E; }
html body .page-btn.active { background: #1A237E; border-color: #1A237E; color: #FFFFFF; }

/* 11. Footer: Deep Indigo ground (matches masthead and abta.africa), white text, Gold Ochre top line and hover */
html body footer.ami-foot { background: #1A237E !important; color: #FFFFFF; border-top: 3px solid #F4A300 !important; }
html body footer.ami-foot h2 { color: #FFFFFF; }
html body footer.ami-foot a,
html body footer.ami-foot p,
html body footer.ami-foot .ami-foot__linkbtn { color: #FFFFFF; }
html body footer.ami-foot a:hover,
html body footer.ami-foot a:focus,
html body footer.ami-foot .ami-foot__linkbtn:hover,
html body footer.ami-foot .ami-foot__linkbtn:focus { color: #F4A300; }
html body footer.ami-foot .ami-foot__rule { background: rgba(255, 255, 255, .3); }
html body footer.ami-foot .ami-foot__legal p,
html body footer.ami-foot .ami-foot__credit,
html body footer.ami-foot .ami-foot__credit a { color: #E0E0E0; }
html body footer.ami-foot .ami-foot__verify { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
html body footer.ami-foot .ami-foot__verify:hover { background: #FFFFFF; color: #1A237E; }

/* 12. Type: Inter until Museo Sans is licensed (ABTA Brand Guidelines) */
html body,
html body .ami-lay,
html body header.masthead .masthead-name,
html body .ami-band__name,
html body .ami-bar__msg b {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  --lay-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --lay-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
html body header.masthead .masthead-name { font-weight: 700 !important; letter-spacing: -.01em !important; }

/* 13. Newsletter bar (bottom of screen): Deep Indigo, white outline button */
html body .ami-bar { background: #1A237E !important; color: #FFFFFF !important; border-top: 3px solid #F4A300 !important; }
html body .ami-bar input[type=email] { border-color: #FFFFFF !important; background: #FFFFFF !important; color: #333333 !important; }
html body .ami-bar button[type=submit] {
  background: transparent !important; color: #FFFFFF !important; border: 2px solid #FFFFFF !important;
}
html body .ami-bar button[type=submit]:hover { background: #FFFFFF !important; color: #1A237E !important; }
html body .ami-bar__consent { color: #E0E0E0 !important; }
html body .ami-bar__consent input { accent-color: #F4A300 !important; }
html body .ami-bar__consent a,
html body .ami-bar a { color: #FFFFFF !important; text-decoration: underline; }
html body .ami-bar__close { color: #FFFFFF !important; }
html body .ami-bar__status.err { color: #FFFFFF !important; }

/* 14. Analytics notice: white with indigo controls */
html body .ami-cookie { background: #FFFFFF !important; color: #333333 !important; border-top: 3px solid #1A237E !important; }
html body .ami-cookie a { color: #1A237E !important; }
html body .ami-cookie .ok { background: #1A237E !important; color: #FFFFFF !important; border-color: #1A237E !important; }
html body .ami-cookie .no { background: #FFFFFF !important; color: #1A237E !important; border-color: #1A237E !important; }

/* 15. Headlines, standfirsts and newsletter title in Inter, matching the approved design */
html body .lay-a,
html body .lay-sf,
html body .nw-title,
html body .lay-h1,
html body .lay-it .lay-a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
}

/* 16. "All Articles" bar on archive pages: plain indigo rule, no old terracotta side bar */
html body .archive-header {
  border: 0 !important;
  border-bottom: 2px solid #1A237E !important;
  background: #FFFFFF !important;
  margin: 0 0 14px !important;
  padding: 10px 0 !important;
}
html body .archive-title { color: #1A237E !important; font-weight: 600 !important; letter-spacing: .08em !important; }
html body .archive-count { color: #666666 !important; }

/* 17. Headline size: Inter is wider than the old serif, so headlines are 8% smaller to wrap as before */
html body :is(h1, h2, h3, h4):not(.section-title) > .lay-a {
  font-size: 92% !important;
  letter-spacing: -.01em !important;
}

/* 18. Africa Week in Review box: Deep Indigo top section (title and description), white form area */
html body .newsletter-widget { overflow: hidden !important; }
html body .newsletter-widget .nw-title {
  background: #1A237E !important;
  color: #FFFFFF !important;
  margin: -24px -24px 0 !important;
  padding: 24px 24px 6px !important;
}
html body .newsletter-widget .nw-sub {
  background: #1A237E !important;
  color: #FFFFFF !important;
  margin: 0 -24px 18px !important;
  padding: 0 24px 22px !important;
}

/* 19. Deal Tracker cards (deals.html): indigo bar, Inter type, brand-colour deal type tags */
html body .deal-card { border-left-color: #1A237E !important; }
html body .deal-card [style*="Playfair"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: -.01em !important;
  color: #333333 !important;
}
html body .deal-card [style*="Spectral"],
html body .deal-card [style*="DM Mono"] {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
}
html body .deal-card [style*="DM Mono"] { letter-spacing: .04em !important; }
html body .deal-type-badge {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  background: #1A237E !important;
  color: #FFFFFF !important;
}
html body .deal-type-badge.infrastructure { background: #F4A300 !important; color: #333333 !important; }
html body .deal-type-badge.ma { background: #008060 !important; color: #FFFFFF !important; }
html body .deal-type-badge.debt { background: #333333 !important; color: #FFFFFF !important; }
html body .deal-type-badge.dfi { background: #8E2F3E !important; color: #FFFFFF !important; }
html body .deal-type-badge.exit { background: #666666 !important; color: #FFFFFF !important; }

/* 20. Article page (article.html): headlines in Inter to match the rest of the site */
html body .af-headline,
html body .article-full .ra,
html body .more-from__title,
html body .card-headline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
}
html body .af-headline { font-size: 38px !important; font-weight: 600 !important; letter-spacing: -.02em !important; }
html body .article-full .ra { font-size: 17.5px !important; font-weight: 600 !important; }
html body .more-from__title { font-size: 20px !important; font-weight: 600 !important; }
html body .card-headline { font-size: 15px !important; font-weight: 600 !important; }

/* 21. "This article is free" box at the end of free articles: Deep Indigo, white text, white outline button */
html body #amiFreeNote > div { border-top: 0 !important; }
html body #amiFreeNote > div > div { background: #1A237E !important; }
html body #amiFreeNote > div > div > div {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 11px !important; font-weight: 600 !important; letter-spacing: .14em !important; color: #E0E0E0 !important;
}
html body #amiFreeNote > div > div > p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-style: normal !important; font-weight: 400 !important; color: #FFFFFF !important;
}
html body #amiFreeNote > div > div > a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  background: transparent !important; color: #FFFFFF !important; border: 2px solid #FFFFFF !important;
  padding: 9px 22px !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .09em !important;
}
html body #amiFreeNote > div > div > a:hover { background: #FFFFFF !important; color: #1A237E !important; }

/* 22. Mobile menu: white menu button on the blue band, Deep Indigo slide-out panel, Gold Ochre headings */
html body .ami-menu-btn { color: #FFFFFF !important; }
html body .ami-menu { background: #1A237E !important; }
html body .ami-menu__head,
html body .ami-menu-search,
html body .ami-menu a { border-bottom-color: rgba(255, 255, 255, .25) !important; }
html body .ami-menu__title,
html body .ami-menu h3 { color: #F4A300 !important; }
html body .ami-menu a,
html body .ami-menu-search,
html body .ami-menu__close { color: #FFFFFF !important; }
html body .ami-menu a:hover,
html body .ami-menu a:focus,
html body .ami-menu-search:hover { color: #F4A300 !important; }

/* 23. Subscriber login box (login.js): white card, Deep Indigo accents, Gold Ochre button, Inter type */
html body #amiLoginOverlay { background: rgba(51, 51, 51, .8) !important; }
html body #amiLoginOverlay,
html body #amiLoginOverlay * { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important; }
html body #amiLoginOverlay > div { background: #FFFFFF !important; border-top-color: #1A237E !important; }
html body #amiLoginOverlay div[style*="Playfair"] { color: #333333 !important; font-weight: 600 !important; }
html body #amiLoginOverlay div[style*="width:3px"] { background: #1A237E !important; }
html body #amiLoginOverlay p { color: #666666 !important; }
html body #amiLoginOverlay label { color: #333333 !important; }
html body #amiLoginOverlay input:not([type=checkbox]) { border-color: #CCCCCC !important; color: #333333 !important; }
html body #amiLoginOverlay input:not([type=checkbox]):focus { border-color: #1A237E !important; }
html body #amiLoginOverlay input[type=checkbox] { accent-color: #1A237E !important; }
html body #amiLoginOverlay div[style*="border-bottom:1px solid"] { border-bottom-color: #CCCCCC !important; }
html body #amiTabSignIn,
html body #amiTabSetup { color: #666666 !important; border-bottom: 2px solid transparent !important; }
html body #amiTabSignIn[style*="600"],
html body #amiTabSetup[style*="600"] { color: #1A237E !important; border-bottom: 2px solid #1A237E !important; }
html body #amiLoginOverlay button[style*="text-decoration:underline"] { color: #1A237E !important; }
html body #amiLoginOverlay button[aria-label="Close"] { color: #666666 !important; }
html body #amiSignInBtn,
html body #amiSetupBtn,
html body #amiResetBtn { background: #F4A300 !important; color: #333333 !important; }
html body #amiSignInBtn:hover,
html body #amiSetupBtn:hover,
html body #amiResetBtn:hover { background: #1A237E !important; color: #FFFFFF !important; }
html body #amiSignInError,
html body #amiSetupError,
html body #amiResetError { background: #F7F7F7 !important; border-left-color: #8E2F3E !important; color: #8E2F3E !important; }
html body #amiSetupSuccess,
html body #amiResetSuccess,
html body #amiSetupWelcome { background: #F7F7F7 !important; border-color: #CCCCCC !important; border-left-color: #008060 !important; color: #333333 !important; }
html body #amiSetupInfoBanner { background: #F7F7F7 !important; border-left-color: #1A237E !important; color: #333333 !important; }
html body #amiSetupInfoBanner a { color: #1A237E !important; }

/* 24. Pop-up messages (toasts): white with Deep Indigo border so they show on blue and white; maroon for errors */
html body .toast {
  background: #FFFFFF !important; border: 2px solid #1A237E !important; color: #1A237E !important;
  font-weight: 600 !important; box-shadow: 0 6px 24px rgba(0, 0, 0, .3) !important;
}
html body .toast[style*="244, 67, 54"] { border-color: #8E2F3E !important; color: #8E2F3E !important; }
html body .toast[style*="201, 168, 76"] { border-color: #333333 !important; color: #333333 !important; }

/* 25. Bottom of page: the space kept clear for the newsletter bar and analytics notice takes the footer's blue,
   so no white strip shows between the footer and the bar once the notice is closed */
html { background-color: #1A237E !important; }
html body { background-clip: content-box !important; }

/* 26. Membership page (membership.html): Inter type, Deep Indigo for the yearly plan, Emerald Green ticks */
html body #page-title-display {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 42px !important; font-weight: 600 !important; letter-spacing: -.02em !important;
}
html body p[style*="Playfair"] { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important; }
html body .plan-box .pprice {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-weight: 600 !important; letter-spacing: -.02em !important;
}
html body .plan-box.featured { border-top-color: #1A237E !important; }
html body .plan-box.featured .plan-cta { background: #1A237E !important; color: #FFFFFF !important; }
html body .plan-box .plan-cta:hover { background: #1A237E !important; color: #FFFFFF !important; }
html body .plan-box.featured .plan-cta:hover { background: #F4A300 !important; color: #333333 !important; }
html body .plan-badge {
  background: #1A237E !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
}
html body .plan-box ul li::before,
html body .plan-features li::before { color: #008060 !important; }
