/* BellXcel shared site-wide stylesheet: tokens, base typography, header, navigation, closing CTA, and footer. */

:root {
  --cream: #f5efe8;
  --navy: #1b2a5e;
  --deep: #101a43;
  --coral: #d97756;
  --muted: #48536d;
  --line: #dbd0c2;
  --paper: #fff9f3;
  --sand: #eee5da;
  --bxnavy: #1b2a5e;
  --bxcream: #f5efe8;
  --bxcoral: #d97756;
  --bxgold: #e5b25d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font:
    16px/1.64 Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(40px, 4.7vw, 72px) !important;
  line-height: 1.095 !important;
}

h2 {
  font-size: clamp(31px, 3.5vw, 54px) !important;
  line-height: 1.13 !important;
}

h3 {
  font-size: clamp(27px, 2.6vw, 38px);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid #d97756;
  outline-offset: 3px;
}

.wrap {
  width: min(1320px, 100%);
  padding-inline: clamp(24px, 5.4vw, 82px);
  margin-inline: auto;
}

.eyebrow {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
  color: #b95336;
  margin-bottom: 20px;
}

.small-link {
  display: inline-block;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 5px;
}

.small-link:hover {
  border-color: var(--navy);
}

.button {
  display: inline-flex;
  padding: 13px 17px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Header & top navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 232, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ded1c4;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(1440px, 100%);
  margin: auto;
  padding: 15px clamp(24px, 5.2vw, 75px);
}

.logo img {
  width: 149px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(11px, 1.5vw, 22px);
  font-size: 12px;
  font-weight: 700;
}

.menu a {
  text-decoration: none;
  white-space: nowrap;
}

.menu a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.menu .donate {
  background: var(--coral);
  color: white;
  padding: 10px 14px;
  border-radius: 2px;
}

.work-menu {
  display: flex;
  align-items: center;
  position: relative;
  gap: 1px;
}

.work-menu button {
  border: none;
  background: none;
  color: var(--navy);
  font-size: 17px;
  cursor: pointer;
  padding: 5px;
}

.dropdown {
  display: none;
  position: absolute;
  top: 32px;
  left: -15px;
  min-width: 220px;
  padding: 9px;
  background: #fff9f1;
  border: 1px solid var(--line);
  box-shadow: 0 17px 35px #151f4125;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
}

.work-menu:hover .dropdown,
.work-menu:focus-within .dropdown,
.work-menu.open .dropdown {
  display: block;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--navy);
  font-size: 26px;
  cursor: pointer;
}

.bx-mobile-give {
  display: none;
  text-decoration: none;
  background: #d97756;
  color: #fff;
  font:
    bold 13px Arial,
    sans-serif;
  border-radius: 3px;
  padding: 11px 15px;
  white-space: nowrap;
}

.bx-mobile-give:focus-visible {
  outline: 2px solid #1b2a5e;
  outline-offset: 3px;
}

/* Stories & Insights dropdown and unified trigger controls */
.bx-nav-insights {
  position: relative;
  display: inline-block;
}

.bx-nav-insights > a {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.bx-nav-insights-panel {
  position: absolute;
  z-index: 200;
  left: 0;
  top: 100%;
  width: 245px;
  display: none;
  flex-direction: column;
  background: #fff;
  color: #1b2a5e;
  border: 1px solid #ddd4c5;
  box-shadow: 0 12px 28px rgba(27, 42, 94, 0.14);
  padding: 8px;
}

.bx-nav-insights-panel a {
  display: block;
  color: #1b2a5e !important;
  padding: 10px 12px !important;
  font:
    600 13px/1.3 Arial,
    sans-serif;
  text-decoration: none;
  white-space: normal;
}

.bx-nav-insights-panel a:hover,
.bx-nav-insights-panel a:focus-visible {
  background: #f5efe8;
}

.bx-nav-insights:hover .bx-nav-insights-panel,
.bx-nav-insights:focus-within .bx-nav-insights-panel {
  display: flex;
}

.bx72-dropdown-trigger {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: none !important;
  border: 0 !important;
  cursor: pointer !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: inherit !important;
  padding: 0 !important;
  min-height: 40px;
}

.bx72-dropdown-trigger:focus-visible {
  outline: 2px solid #d97756 !important;
  outline-offset: 5px;
}

.bx72-chev {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 2px;
  transition: transform 0.2s;
}

.bx72-open > .bx72-dropdown-trigger .bx72-chev,
.header .bx72-open > .bx72-dropdown-trigger .bx72-chev {
  transform: rotate(225deg) translateY(-2px);
}

.bx72-open > .dropdown,
.bx72-open > .bx-nav-insights-panel,
.bx72-open > .submenu {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.header #menu-drop {
  display: none !important;
}

.header .work-menu.bx72-open > .dropdown,
.header .work-menu.open > .dropdown,
.header .workmenu.bx72-open > .dropdown,
.header .workmenu.open > .dropdown {
  display: block !important;
  flex-direction: column !important;
}

.header .bx-nav-insights.bx72-open > .bx-nav-insights-panel {
  display: flex !important;
  flex-direction: column !important;
}

.header .bx-nav-dismissed > .dropdown,
.header .bx-nav-dismissed > .bx-nav-insights-panel {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Closing CTA band */
.bx72-close {
  background: #1b2a5e;
  color: #f5efe8;
  margin-top: 0;
  padding: 58px max(5vw, 24px) !important;
  min-height: 0 !important;
}

.bx72-close-inner {
  max-width: 1180px;
  margin: auto;
  display: flex;
  align-items: center !important;
  justify-content: space-between;
  gap: 35px !important;
  min-height: 0 !important;
}

.bx72-close h2 {
  font:
    400 clamp(29px, 3.3vw, 52px)/1.13 Georgia,
    serif;
  color: #f5efe8;
  max-width: 750px;
  margin: 0;
  letter-spacing: -0.035em;
}

.bx72-close-inner h2 {
  line-height: 1.14 !important;
  max-width: 760px !important;
}

.bx72-close a {
  color: #f5efe8 !important;
  text-decoration: none !important;
  white-space: nowrap;
  border-bottom: 1px solid #e5b25d;
  padding: 12px 0;
  font:
    700 14px Arial,
    sans-serif;
}

.bx72-close a:hover {
  color: #e5b25d !important;
}

/* Footer */
.footer {
  background: #101a43;
  color: white;
  padding: 0 !important;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-grid > a img {
  width: 128px;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  row-gap: 10px;
  line-height: 1.8;
  max-width: 870px;
  font-size: 11px;
}

.footer-links a {
  display: inline-block;
  white-space: normal;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social {
  font-size: 11px;
  color: #c4cce3;
  line-height: 2;
}

.social a {
  display: inline-block;
  color: white;
  margin: 0 0 0 10px;
}

footer .social-links,
footer .social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  flex-wrap: wrap;
}

footer .home-footer-links,
footer .footer-links {
  line-height: 1.85;
  display: flex;
  gap: 8px 15px;
  flex-wrap: wrap;
  align-items: center;
}

footer .social-links a,
footer .social a {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 119, 86, 0.6);
  padding-bottom: 2px;
}

footer.footer .bx-compact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.4vw, 38px) !important;
  padding: 29px 0;
  flex-wrap: wrap;
}

.footer .bx-compact-foot {
  padding: 22px 0 !important;
}

.bx72-foot-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 165px;
}

footer.footer .bx-compact-foot .bx-foot-brand {
  display: flex;
  align-items: center;
  max-width: 180px;
}

footer.footer .bx-compact-foot .bx-foot-brand img {
  max-width: 170px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
}

.bx72-foot-identity .bx-foot-brand img {
  max-width: 175px;
  display: block;
}

.bx72-foot-identity > span {
  font:
    400 10px/1.5 Arial,
    sans-serif;
  color: #777b86;
  letter-spacing: 0.015em;
}

footer.footer .bx-foot-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

footer.footer .bx-foot-links a,
.bx-foot-links a,
.bx-foot-links a:visited {
  font-size: 15px;
  font-weight: 400 !important;
  line-height: 1.5;
  text-decoration: none;
  color: inherit;
  opacity: 0.96;
}

footer.footer .bx-foot-links a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

footer.footer .bx-foot-social {
  display: flex;
  gap: 14px;
  align-items: center;
}

footer.footer .bx-foot-social a {
  display: inline-grid;
  place-items: center;
  min-width: 37px;
  min-height: 37px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.bx-foot-candid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 18px auto 0;
  font:
    400 12px Arial,
    sans-serif;
  color: inherit;
  opacity: 0.9;
}

.bx-foot-candid a {
  font-weight: 400;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bx-foot-candid::before {
  content: 'C';
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
}

.bx-legal-footer {
  text-align: center;
  font:
    12px/1.5 Arial,
    sans-serif;
  color: inherit;
  opacity: 0.68;
  padding: 4px 16px 19px;
}

/* Responsive layout & chrome rules */
@media (min-width: 840px) {
  .workmenu > .dropdown {
    z-index: 45;
  }

  .workmenu:focus-within > .dropdown,
  .workmenu:hover > .dropdown {
    display: block;
  }
}

@media (min-width: 900px) {
  .wrap {
    max-width: 1220px;
  }
}

@media (min-width: 901px) {
  main
    section:not(.hero):not(.v5-hero):not(.impact-hero):not(.sch-lead):not(
      .arly-hero
    ) {
    scroll-margin-top: 85px;
  }
}

@media (max-width: 1060px) {
  .menu {
    gap: 10px;
    font-size: 11px;
  }

  .head-inner {
    padding-inline: 24px;
  }
}

@media (max-width: 980px) {
  .bx72-close h2 {
    font-size: 35px;
  }
}

@media (max-width: 900px) {
  .bx-nav-insights {
    display: block;
  }

  .bx-nav-insights-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: transparent;
    display: flex;
    padding-left: 12px;
  }

  .bx-nav-insights-panel a {
    padding: 6px 8px !important;
  }
}

@media (max-width: 850px) {
  header .nav .bx-mobile-give,
  header .head-inner .bx-mobile-give {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: 12px;
  }

  header .nav .hamburger,
  header .head-inner .mobile-toggle {
    margin-left: 0 !important;
  }
}

@media (max-width: 770px) {
  .menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 18px 22px 28px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    box-shadow: 0 20px 25px #19204022;
  }

  .menu.show {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .work-menu {
    display: block;
  }

  .work-menu button {
    display: inline;
  }

  .dropdown {
    position: static;
    box-shadow: none;
    min-width: auto;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .footer-links {
    gap: 10px 16px !important;
  }

  .footer-links a {
    font-size: 12px;
  }

  footer .social-links,
  footer .social {
    justify-content: flex-start;
  }

  footer .home-footer-links,
  footer .footer-links {
    gap: 8px 13px;
  }

  footer.footer .bx-compact-foot {
    justify-content: center;
    text-align: center;
    padding: 20px 0;
    gap: 18px;
  }

  footer.footer .bx-foot-links {
    justify-content: center;
    gap: 15px;
  }

  footer.footer .bx-foot-social {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .bx72-close {
    padding: 43px 24px !important;
  }

  .bx72-close-inner {
    display: block;
    gap: 20px !important;
  }

  .bx72-close h2 {
    font-size: 34px;
  }

  .bx72-close a {
    display: inline-block;
    margin-top: 24px;
  }

  .bx72-foot-identity {
    margin-bottom: 18px;
  }

  .footer .bx-compact-foot {
    padding: 18px 0 !important;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: clamp(38px, 8.7vw, 54px) !important;
  }

  h2 {
    font-size: clamp(29px, 7vw, 43px) !important;
  }
}

@media (max-width: 430px) {
  header .nav .bx-mobile-give {
    padding: 9px 11px;
    font-size: 12px;
    margin-right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .bx72-chev {
    transition: none;
  }
}
