/* ============================================================
   Fonts — self-hosted copies of the live site's brand fonts
   (GrifoS display serif, Aeonik sans). See NOTES-FOR-ALEX.md
   "Style pass — flagged items" re: licensing for this domain.
   ============================================================ */
@font-face {
  font-family: GrifoS;
  src: url("/assets/fonts/GrifoS-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: GrifoS;
  src: url("/assets/fonts/GrifoS-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: GrifoS;
  src: url("/assets/fonts/GrifoS-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: GrifoS;
  src: url("/assets/fonts/GrifoS-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "aplus-brand-logo";
  src: url("/assets/fonts/aplus-brand-logo.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Aeonik;
  src: url("/assets/fonts/aeonik-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url("/assets/fonts/aeonik-regularitalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url("/assets/fonts/aeonik-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url("/assets/fonts/aeonik-mediumitalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   Tokens — exact brand palette, pulled from the live theme.json
   ============================================================ */
:root {
  --black: #000000;
  --charcoal: #242424;
  --silver: #999999;
  --mercury: #d8d9d5;
  --dark-sterling: #e1e1e1;
  --sterling: #ebebeb;
  --off-white: #f4f4f4;
  --white: #ffffff;
  --crimson: #dd0b22;
  --gold: #dbb149;

  --font-display: GrifoS, Georgia, serif;
  --font-body:
    Aeonik, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  --max-width: 1280px;
  --menu-btn: 12.8vw; /* round logo + menu button size on phones/tablets */
}

/* ============================================================
   Scale — the ONE place sizes are decided.
   The root font-size steps with screen width (percentages of the
   browser default, so a user's own font setting still applies).
   Everything else is written in plain rem and follows the step, and every
   font size is a --fs-* token redeclared per step below.
   897px is the only layout break (phone/tablet stack vs desktop).

     step    screen       root        (rem = )
     base    < 600        50%         8px   (phones, tuned at 375)
     600     600-896      100%        16px  (tablets, tuned at 768)
     897     897-1199     68.75%      11px  (small laptops)
     1200    1200-1599    93.75%      15px  (laptops/desktops, tuned at 1440)
     1600    1600+        125%        20px  (large screens, tuned at 1920)
   ============================================================ */
html {
  font-size: 50%;
}
:root {
  --fs-small: 1.5rem; /* eyebrows, buttons, footer legal-ish */
  --fs-medium: 2rem; /* body copy */
  --fs-large: 3rem; /* lead paragraphs, small headings */
  --fs-h4: 4rem;
  --fs-h3: 4rem;
  --fs-h2: 6rem;
  --fs-h1: 5rem; /* legacy pages (integrate, terms, privacy) */
  --fs-hero: 5.4rem; /* home masthead headline */
  --fs-hero-sub: 2.4rem;
  --fs-nav: 1.6rem;
  --fs-menu: 3rem; /* full-screen mobile menu */
  --fs-count: 1.75rem; /* network legend counts */
  --fs-stat: 15rem; /* big numbers on How A+ Works */
  --fs-footer-tag: 5rem;
  --fs-footer-link: 2.9rem;
  --fs-footer-legal: 1.75rem;
  --gutter: 3rem; /* page side padding (always ~24px) */
  --section-pad: 6rem;
  --page-top: 17.5rem;
  --col-width: calc(19 * var(--fs-h3)); /* the narrow centred column on home */
}
@media (min-width: 600px) {
  html {
    font-size: 100%;
  }
  :root {
    --fs-small: 0.83rem;
    --fs-medium: 1.1rem;
    --fs-large: 1.65rem;
    --fs-h4: 2.3rem;
    --fs-h3: 2.55rem;
    --fs-h2: 3.65rem;
    --fs-h1: 2.9rem;
    --fs-hero: 3.25rem;
    --fs-hero-sub: 1.45rem;
    --fs-nav: 0.9rem;
    --fs-menu: 2.1rem;
    --fs-count: 0.97rem;
    --fs-stat: 8.3rem;
    --fs-footer-tag: 2.78rem;
    --fs-footer-link: 1.6rem;
    --fs-footer-legal: 0.97rem;
    --gutter: 1.5rem;
    --section-pad: 3.4rem;
    --page-top: 8.75rem;
  }
}
@media (min-width: 897px) {
  html {
    font-size: 68.75%;
  }
  :root {
    --fs-small: 1.3rem;
    --fs-medium: 1.7rem;
    --fs-large: 2.6rem;
    --fs-h4: 3.7rem;
    --fs-h3: 4.3rem;
    --fs-h2: 6rem;
    --fs-h1: 5.5rem;
    --fs-hero: 5.3rem;
    --fs-hero-sub: 1.7rem;
    --fs-nav: 1.4rem;
    --fs-count: 1.5rem;
    --fs-stat: 12.5rem;
    --fs-footer-tag: 4.3rem;
    --fs-footer-link: 2.45rem;
    --fs-footer-legal: 1.5rem;
    --gutter: 2.2rem;
    --section-pad: 6.4rem;
    --page-top: 16.4rem;
  }
}
@media (min-width: 1200px) {
  html {
    font-size: 93.75%;
  }
  :root {
    --fs-small: 1.05rem;
    --fs-medium: 1.4rem;
    --fs-large: 2.1rem;
    --fs-h4: 3rem;
    --fs-h3: 3.7rem;
    --fs-h2: 5.1rem;
    --fs-h1: 5.8rem;
    --fs-hero: 5.55rem;
    --fs-hero-sub: 1.8rem;
    --fs-nav: 1.125rem;
    --fs-count: 1.25rem;
    --fs-stat: 10.4rem;
    --fs-footer-tag: 3.46rem;
    --fs-footer-link: 2rem;
    --fs-footer-legal: 1.22rem;
    --gutter: 1.6rem;
    --page-top: 14.7rem;
  }
}
@media (min-width: 1600px) {
  html {
    font-size: 125%;
  }
  :root {
    --fs-small: 0.86rem;
    --fs-medium: 1.15rem;
    --fs-large: 1.72rem;
    --fs-h4: 2.55rem;
    --fs-h3: 3.33rem;
    --fs-h2: 4.48rem;
    --fs-h1: 4.4rem;
    --fs-hero: 4.8rem;
    --fs-hero-sub: 1.5rem;
    --fs-nav: 0.93rem;
    --fs-count: 1.03rem;
    --fs-stat: 8.6rem;
    --fs-footer-tag: 2.87rem;
    --fs-footer-link: 1.65rem;
    --fs-footer-legal: 1rem;
    --gutter: 1.2rem;
    --section-pad: 4.8rem;
    --page-top: 11rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-medium);
  font-weight: 400;
  line-height: 1.7;
  color: var(--charcoal);
  /* The live site's actual page background is Sterling (#ebebeb), not
     white — confirmed directly via getComputedStyle on the live page, not
     assumed. White was wrong site-wide, not just on this one section. */
  background: var(--sterling);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h4);
}
h3 {
  font-size: var(--fs-large);
  font-weight: 400;
}
h4 {
  font-size: var(--fs-medium);
  font-weight: 400;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong,
h5 strong,
h6 strong {
  font-family: aplus-brand-logo, GrifoS, serif;
  font-size: 64%;
  font-weight: normal;
  font-feature-settings: "liga";
  font-variant-ligatures: discretionary-ligatures;
}

p {
  margin: 0 0 1em;
  max-width: 56em;
}
.lede {
  color: #444;
  max-width: 42em;
}

a {
  color: var(--charcoal);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 500;
  font-size: var(--fs-medium);
  letter-spacing: 0.1em;
  margin: 0 0 1em;
}

/* ============================================================
   Header — values from the live theme (+ its inline "single black
   CTA" overrides). Pill/logo/toggle proportions are in vw (as live); type and spacing in rem.
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.site-header_inner {
  position: relative;
}
.site-header_logo {
  position: relative;
  display: block;
}
.site-header_logo svg {
  display: block;
  height: 100%;
  width: auto;
}
.site-header_logo svg .background {
  transition: fill 600ms linear;
  fill: rgba(36, 36, 36, 0.05);
}
.page-scrolled .site-header_logo svg .background {
  fill: var(--dark-sterling);
}

.site-header_nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header_nav-list li {
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
  font-size: var(--fs-nav);
}
.site-header_nav-link {
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: all 300ms linear;
}
.site-header_nav-link[aria-current="page"] {
  color: var(--crimson);
}
@media (hover: hover) {
  .site-header_nav-link:hover {
    color: var(--crimson);
  }
}
.site-header_nav-link-cta {
  display: inline-block;
  white-space: nowrap;
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 0.78em 2.2em;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.site-header_nav-link-cta[aria-current="page"],
.site-header_nav-link-cta:hover {
  background: var(--crimson);
  color: #fff;
}

.site-header_nav-toggle {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 2rem;
  right: 2rem;
  width: var(--menu-btn);
  height: var(--menu-btn);
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: rgba(36, 36, 36, 0.05);
  transition: background 600ms linear;
  outline: 0;
}
.page-scrolled .site-header_nav-toggle {
  background: var(--dark-sterling);
}
.toggle-box {
  position: relative;
  display: block;
  width: 5vw;
  height: 5vw;
}
.toggle-inner,
.toggle-inner::before,
.toggle-inner::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.666px;
  background: var(--charcoal);
  transition:
    transform 150ms ease,
    top 150ms ease,
    bottom 150ms ease,
    opacity 150ms ease;
}
.toggle-inner {
  display: block;
  top: 50%;
  margin-top: -0.4vw;
}
.toggle-inner::before,
.toggle-inner::after {
  content: "";
  display: block;
}
.toggle-inner::before {
  top: -425%;
}
.toggle-inner::after {
  bottom: -425%;
}
.site-header_nav-toggle[aria-expanded="true"] .toggle-inner {
  background: transparent;
}
.site-header_nav-toggle[aria-expanded="true"] .toggle-inner::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header_nav-toggle[aria-expanded="true"] .toggle-inner::after {
  bottom: 0;
  transform: rotate(-45deg);
}
.accessible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (min-width: 897px) {
  .site-header_stars {
    display: none;
  }
  .site-header_inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    height: 3.4vw;
    top: 1.5vw;
    margin-inline: 5vw;
  }
  .site-header_logo {
    height: 3.4vw;
  }
  .site-header_nav {
    display: flex;
    align-items: center;
    padding: 0 6px 0 2rem;
    border-radius: 16px;
    background: rgba(36, 36, 36, 0.05);
    transition: background 450ms linear;
  }
  .page-scrolled .site-header_nav {
    background: var(--dark-sterling);
  }
  .site-header_nav-list {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
}
@media (max-width: 896px) {
  .site-header_inner {
    top: 2rem;
    left: 2rem;
    right: 2rem;
  }
  .site-header_logo {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--menu-btn);
    z-index: 10;
  }
  .site-header_nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* full-screen menu: links centred, gold stars scattered behind, CTA as a wide button */
  .site-header_nav {
    position: fixed;
    inset: 0;
    display: none;
    overflow: hidden;
    background: var(--sterling);
    padding: calc(var(--menu-btn) + 6rem) 3rem 4rem;
  }
  body:has(.site-header_nav-toggle[aria-expanded="true"]) .site-header_nav {
    display: block;
  }
  body:has(.site-header_nav-toggle[aria-expanded="true"])
    .site-header_logo
    .background,
  body:has(.site-header_nav-toggle[aria-expanded="true"])
    .site-header_nav-toggle {
    fill: var(--dark-sterling);
    background: var(--dark-sterling);
  }
  .site-header_nav-list {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100svh - (var(--menu-btn) + 6rem) - 4rem);
    gap: 4.5rem;
    padding: 0;
  }
  .site-header_nav-list li {
    font-size: var(--fs-menu);
    width: 100%;
  }
  .site-header_nav-list li:has(.site-header_nav-link-cta) {
    margin-top: 2rem;
  }
  .site-header_nav-link-cta {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.9em 1em;
    font-size: 0.7em;
  }
  .toggle-box {
    width: calc(var(--menu-btn) * 0.39);
    height: calc(var(--menu-btn) * 0.39);
  }
  .site-header_stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .menu-star {
    position: absolute;
    width: 3rem;
    height: auto;
    animation: nr-twinkle 5s ease-in-out infinite;
  }
  .menu-star-1 {
    left: 14%;
    top: 24%;
  }
  .menu-star-2 {
    right: 12%;
    top: 18%;
    width: 4rem;
    animation-delay: -1.5s;
  }
  .menu-star-3 {
    right: 20%;
    top: 42%;
    width: 2.4rem;
    animation-delay: -3s;
  }
  .menu-star-4 {
    left: 8%;
    top: 58%;
    width: 2.4rem;
    animation-delay: -2s;
  }
  .menu-star-5 {
    right: 9%;
    top: 68%;
    width: 3rem;
    animation-delay: -4s;
  }
  .menu-star-6 {
    left: 30%;
    top: 86%;
    width: 2.2rem;
    animation-delay: -0.8s;
  }
}
/* smallest screens (rem is 8px here): much bigger round buttons and a bigger CTA */
@media (max-width: 599px) {
  :root {
    --menu-btn: 17vw;
  }
  .site-header_nav-link-cta {
    padding: 1.1em 1em;
    font-size: 0.95em;
    border-radius: 16px;
  }
}
/* tablets (rem is 16px here): stars were 48px, make them dainty */
@media (min-width: 600px) and (max-width: 896px) {
  :root {
    --menu-btn: 15vw;
  }
  .site-header_nav-link-cta {
    padding: 1.1em 1em;
    font-size: 0.95em;
    border-radius: 16px;
  }
  .menu-star {
    width: 1.6rem;
  }
  .menu-star-2 {
    width: 2.2rem;
  }
  .menu-star-3,
  .menu-star-4 {
    width: 1.3rem;
  }
  .menu-star-6 {
    width: 1.2rem;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: calc(1.334em + 2px) calc(2.666em + 2px);
  border: 0;
  cursor: pointer;
  transition:
    background 250ms linear,
    color 250ms linear,
    border-color 250ms linear;
}
.btn-primary {
  background: var(--charcoal);
  color: var(--sterling);
}
.btn-primary:hover {
  background: var(--crimson);
  color: var(--white);
}
.btn-mercury {
  background: var(--mercury);
  color: var(--charcoal);
}
.btn-mercury:hover {
  background: var(--dark-sterling);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-large);
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-decoration: none;
  background: var(--crimson);
  color: var(--white);
  border-radius: 999px;
  padding: 0.42em 1.9em;
  transition: filter 200ms linear;
}
.pill-badge:hover {
  filter: brightness(0.92);
}

/* ============================================================
   Sections / rhythm
   ============================================================ */
/* ============================================================
   Hero (homepage masthead)
   ============================================================ */
.masthead {
  position: relative;
  text-align: center;
  background: var(--mercury);
  /* Exact values from the live theme's compiled CSS (padding-block,
     breakpoint at 896/897px) — not approximated. Bottom padding reserves
     space for .masthead_art below, which is absolutely positioned and
     anchored independent of text height (see that rule) so a wrapped
     heading never collides with it. */
  padding-inline: var(--gutter);
  padding-block: 10vw 32vw;
  overflow: clip;
}
@media (max-width: 896px) {
  .masthead {
    padding-block: 30vw 100.8vw;
  }
}
.masthead_copy {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
}
.masthead_copy .lede {
  margin-left: auto;
  margin-right: auto;
  font-size: var(--fs-hero-sub);
}
.masthead h1 {
  margin-bottom: 0.3em;
  font-weight: 500;
  font-size: var(--fs-hero);
}
@media (max-width: 896px) {
  .masthead h1 {
    line-height: 1.05;
  }
  .masthead_copy .lede {
    line-height: 1.3;
  }
}
.masthead_actions {
  margin-top: 1.1em;
}
.masthead_art {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  pointer-events: none;
  left: 14vw;
  width: 72vw;
  bottom: -36vw;
}
@media (max-width: 896px) {
  /* globe is cut just below its equator (about 53% shown) so no empty band is left under it (Alex) */
  .masthead_art {
    left: -20vw;
    width: 160vw;
    bottom: -67.2vw;
  }
}
.masthead_art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% -20%;
  display: block;
  transform: translateY(10vw);
}
@media (max-width: 896px) {
  .masthead_art img {
    transform: translateY(8vw);
  }
}

/* ============================================================
   Hero decorative line-art (animated squiggle) — real SVG path
   and animation copied from the live site's compiled theme.
   Disabled on Firefox: known to balloon memory there (Alex's
   call, and the live site itself disables it there too — see
   the @supports(-moz-appearance:none) guard below, which is a
   reliable Firefox-only feature query despite the odd name).
   ============================================================ */
.masthead_lines {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
/* phones: much smaller than live's 400vw so the arcs read as fine lines, not blocks (Alex) */
@media (max-width: 896px) {
  .masthead_lines {
    width: 200vw;
    top: 45vw;
    left: -50vw;
  }
}
@media (min-width: 897px) {
  .masthead_lines {
    width: 122vw;
    top: 9vw;
    left: -11vw;
  }
}
.masthead_lines-inner {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  will-change: transform;
  transform-origin: 50% 50%;
  animation: masthead-rotate-lines2 250s linear infinite;
}
.masthead_lines svg {
  width: 100%;
  display: block;
  opacity: 1;
}
.masthead_lines svg .gpu-sweep {
  offset-path: path(
    "M 220,150 C 520,-60 980,-60 1280,150 C 1520,340 1520,520 1280,660 C 980,860 520,860 220,660 C -20,520 -20,340 220,150 Z"
  );
  animation: masthead-rotate-lines 4s linear infinite;
}
@keyframes masthead-rotate-lines {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}
@keyframes masthead-rotate-lines2 {
  0% {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@supports (-moz-appearance: none) {
  .masthead_lines g[mask],
  .masthead_lines .gpu-sweep {
    display: none !important;
  }
  .masthead_lines,
  .masthead_lines * {
    animation: none !important;
    will-change: auto !important;
  }
}

/* ============================================================
   Framed content reveal ("Introducing $USDA+" app shot) — corner
   crosshair brackets draw in from the center on scroll, exact
   structure/keyframes from the live theme's compiled CSS. Toggled
   by the IntersectionObserver in base.njk adding .animate once.
   ============================================================ */
.b-framed-content {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: clip;
  padding: var(--gutter) 0;
}
.b-framed-content_container {
  position: relative;
  width: 100%;
}
@media (min-width: 897px) {
  /* This inset is what keeps the corner brackets' outward-pointing tips
     from getting clipped by .b-framed-content's overflow:clip — without
     it there's no horizontal room between the image edge and the box
     edge for the plus marks' overflow to live in. Matches the live
     theme's own padding-inline here exactly. */
  .b-framed-content_container {
    padding-inline: 18%;
  }
}
.b-framed-content-container {
  position: relative;
  width: 100%;
  margin: 0;
  display: block;
}
.b-framed-content-container_container {
  position: relative;
  width: 100%;
  display: block;
}
@media (min-width: 897px) {
  .b-framed-content.has-animation .b-framed-content-container_container {
    visibility: hidden;
  }
  .b-framed-content.has-animation.animate
    .b-framed-content-container_container {
    animation: b-framed-content-container_container 2s ease-out both;
  }
}
@keyframes b-framed-content-container_container {
  0% {
    visibility: visible;
    opacity: 0;
    clip-path: inset(50% 50% 50% 50%);
  }
  100% {
    visibility: visible;
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
  }
}

.b-focal-point-image {
  position: relative;
  width: 100%;
  margin: 0;
}
.b-focal-point-image img {
  position: relative;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
  max-width: 100%;
}

.b-framed-content-container_overlay {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
@media (max-width: 896px) {
  .b-framed-content-container_overlay {
    display: none;
  }
}
.b-framed-content-container_overlay .plus,
.b-framed-content-container_overlay .line {
  position: absolute;
}

.b-framed-content-container_topleft {
  left: 50%;
  top: 50%;
}
.animate .b-framed-content-container_topleft {
  animation: b-framed-content-container_topleft 2s ease-out both;
}
.b-framed-content-container_topleft .plus {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.b-framed-content-container_topleft .line {
  left: 0;
  height: 1px;
  width: 0;
  transform: translateX(-50%);
  background: var(--crimson);
}
.animate .b-framed-content-container_topleft .line {
  animation: b-framed-content-container_topleft-line 2s ease-out both;
}

.b-framed-content-container_topright {
  right: 50%;
  top: 50%;
  height: 100%;
}
.animate .b-framed-content-container_topright {
  animation: b-framed-content-container_topright 2s ease-out both;
}
.b-framed-content-container_topright .plus {
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
}
.b-framed-content-container_topright .line {
  left: 0;
  top: 0;
  height: 0%;
  width: 1px;
  background: var(--crimson);
}
.animate .b-framed-content-container_topright .line {
  animation: b-framed-content-container_topright-line 2s ease-out both;
}

.b-framed-content-container_bottomleft {
  left: 50%;
  bottom: 50%;
  height: 100%;
}
.animate .b-framed-content-container_bottomleft {
  animation: b-framed-content-container_bottomleft 2s ease-out both;
}
.b-framed-content-container_bottomleft .plus {
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
}
.b-framed-content-container_bottomleft .line {
  left: 0;
  bottom: 0;
  height: 0%;
  width: 1px;
  background: var(--crimson);
}
.animate .b-framed-content-container_bottomleft .line {
  animation: b-framed-content-container_bottomleft-line 2s ease-out both;
}

.b-framed-content-container_bottomright {
  right: 50%;
  bottom: 50%;
}
.animate .b-framed-content-container_bottomright {
  animation: b-framed-content-container_bottomright 2s ease-out both;
}
.b-framed-content-container_bottomright .plus {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.b-framed-content-container_bottomright .line {
  right: 0;
  height: 1px;
  width: 0;
  transform: translateX(50%);
  background: var(--crimson);
}
.animate .b-framed-content-container_bottomright .line {
  animation: b-framed-content-container_bottomright-line 2s ease-out both;
}

@keyframes b-framed-content-container_topleft {
  0% {
    left: 50%;
    top: 50%;
  }
  100% {
    left: 0%;
    top: 0%;
  }
}
@keyframes b-framed-content-container_topleft-line {
  0% {
    width: 0;
  }
  50%,
  100% {
    width: 200vw;
  }
}
@keyframes b-framed-content-container_topright {
  0% {
    right: 50%;
    top: 50%;
  }
  100% {
    right: 0%;
    top: 0%;
  }
}
@keyframes b-framed-content-container_topright-line {
  0% {
    height: 0%;
  }
  100% {
    height: 100%;
  }
}
@keyframes b-framed-content-container_bottomleft {
  0% {
    left: 50%;
    bottom: 50%;
  }
  100% {
    left: 0%;
    bottom: 0%;
  }
}
@keyframes b-framed-content-container_bottomleft-line {
  0% {
    height: 0%;
  }
  100% {
    height: 100%;
  }
}
@keyframes b-framed-content-container_bottomright {
  0% {
    right: 50%;
    bottom: 50%;
  }
  100% {
    right: 0%;
    bottom: 0%;
  }
}
@keyframes b-framed-content-container_bottomright-line {
  0% {
    width: 0;
  }
  50%,
  100% {
    width: 200vw;
  }
}

/* ============================================================
   Press / newsroom
   ============================================================ */
blockquote {
  border-left: 2px solid var(--crimson);
  padding-left: 1.25em;
  margin: 1.5em 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-medium);
  color: var(--charcoal);
}

/* ============================================================
   Forms + the "Integrate Today" popup.
   Form controls use fixed px (like native inputs; 16px also stops iOS
   zooming into a field), everything around them uses the rem scale.
   ============================================================ */
.b-form {
  max-width: 640px;
  margin: 24px auto 0;
}
.b-field {
  background: var(--off-white);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 16px 16px 2px;
}
@media (min-width: 897px) {
  .b-field {
    padding: 16px;
  }
}
.b-field label,
.b-check label {
  display: block;
  margin: 0;
  color: rgba(36, 36, 36, 0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 17px;
  text-transform: uppercase;
}
.b-check label {
  line-height: 1.3;
}
@media (min-width: 897px) {
  .b-field label,
  .b-check label {
    font-size: 16px;
  }
}
.b-req {
  color: var(--gold);
  font-weight: 400;
}
.b-field input,
.b-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  font: inherit;
  font-size: 16px;
  line-height: 16px;
  outline: none;
  box-shadow: none;
}
.b-field input {
  height: 43px;
}
.b-field textarea {
  height: 70px;
  padding: 13.5px 0;
  line-height: 1.3;
  resize: vertical;
}
@media (min-width: 897px) {
  .b-field textarea {
    height: 120px;
  }
}
.b-field:focus-within {
  outline: 2px solid var(--crimson);
  outline-offset: 1px;
}
.b-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 10px 2px;
}
@media (min-width: 897px) {
  .b-check {
    padding: 16px;
  }
}
.b-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--charcoal);
}
.b-check a {
  color: inherit;
}
.b-form_submit {
  margin-top: 10px;
  line-height: 0;
}

.b-cta-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.b-cta-popup[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.b-cta-popup::backdrop {
  background: rgba(0, 0, 0, 0.5);
}
.b-cta-popup_content {
  position: relative;
  width: 100%;
  margin: 15vw 2rem;
  background: var(--white);
  border-radius: 16px;
}
@media (min-width: 982px) {
  .b-cta-popup_content {
    max-width: 45vw;
    margin: 2rem;
  }
}
.b-cta-popup_inner {
  padding: 2rem;
  max-height: calc(100vh - 4rem);
  overflow: auto;
}
.b-cta-popup_close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sterling);
  color: var(--charcoal);
  cursor: pointer;
  line-height: 0;
  transition: background 200ms linear;
}
.b-cta-popup_close:hover {
  background: var(--dark-sterling);
}

/* page variant: heading sits flush under the page top, like live */
.blocks .b-block.b-block-flush {
  padding-top: 0;
}
.blocks .b-block-flush > .b-title {
  margin-top: 0;
}

/* ============================================================
   Legal pages (Terms, Privacy): shared page frame + a numbered list.
   ============================================================ */
.blocks .b-block-legal {
  padding-top: 3.2rem;
}
.blocks .b-block-legal p {
  margin: 1em 0 0;
}
.blocks .b-block-legal .b-legal-updated {
  margin-top: 1.5em;
}
.b-legal-list {
  margin: 1em 0 0;
  padding-left: 2rem;
}
.b-legal-list li {
  margin: 0 0 1em;
  padding-left: 0.5rem;
}
.b-legal-list li:last-child {
  margin-bottom: 0;
}
.b-legal-clause {
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   Footer — live proportions, no divider line.
   Logo+tagline take 60% and links 40% on desktop; stacked under 897px.
   ============================================================ */
.site-footer {
  background: var(--mercury);
  overflow: hidden;
  padding: 4rem 2rem;
}
@media (min-width: 897px) {
  .site-footer {
    padding-bottom: 2rem;
  }
}
.site-footer_primary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 2rem 8rem;
}
@media (min-width: 897px) {
  .site-footer_primary {
    flex-direction: row;
    gap: 0;
    padding: 2rem;
  }
}
.site-footer_primary-logo {
  min-width: 0;
}
@media (min-width: 897px) {
  .site-footer_primary-logo {
    flex: 0 0 60%;
    padding-right: 4rem;
    box-sizing: border-box;
  }
  .site-footer_primary-links {
    flex: 0 0 40%;
  }
}
.site-footer_primary-logo svg {
  display: block;
  width: 760px;
  max-width: none;
  height: auto;
}
@media (min-width: 897px) {
  .site-footer_primary-logo svg {
    width: 50.25rem;
  }
}
.site-footer_body {
  margin: 0.5em 0 0;
  font-size: var(--fs-footer-tag);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.site-footer_nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer_nav-list li {
  margin: 0;
  padding: 0;
  font-size: var(--fs-footer-link);
  line-height: 1.7;
  letter-spacing: -0.02em;
}
.site-footer_nav-link {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 200ms linear;
}
.site-footer_nav-link:hover {
  color: var(--crimson);
}
.site-footer_secondary {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}
@media (min-width: 897px) {
  .site-footer_secondary {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}
.site-footer_legal,
.site-footer_tagline {
  margin: 0;
  font-size: var(--fs-footer-legal);
  line-height: 1.75;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7e7f7d;
}

/* ============================================================
   Shared content blocks (How A+ Works, Home below the hero, Network).
   Spacing is plain rem; type uses the --fs-* tokens from the Scale block.
   ============================================================ */
.page-top {
  padding-top: 18.75rem;
}
@media (min-width: 600px) {
  .page-top {
    padding-top: 10rem;
  }
}
@media (min-width: 897px) {
  .page-top {
    padding-top: 10vw;
  }
}
.blocks p {
  margin: 0;
  max-width: none;
  font-size: var(--fs-medium);
  line-height: 1.7;
  letter-spacing: -0.02em;
}
.blocks h2,
.blocks h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.blocks ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blocks .b-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: var(--fs-medium);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.blocks h2.b-eyebrow {
  margin-top: 0.25em;
}
.b-center {
  text-align: center;
}
.blocks .b-title {
  font-size: var(--fs-h2);
  text-align: center;
  text-wrap: balance;
  max-width: 19em;
  margin: 0.25em auto 0;
}
.blocks .b-eyebrow + .b-title {
  margin-top: 0.25rem;
}
.blocks .b-title-h3 {
  font-size: var(--fs-h3);
}
.blocks .b-lead {
  text-align: center;
  margin: 2rem auto 0;
}
.sp-2x {
  height: 4rem;
}
.sp-3x {
  height: 6rem;
}
.sp-4x {
  height: 8rem;
}

/* --- 1. Revealing text (words fade up as they scroll in) --- */
.b-revealing-plus-text_inner {
  padding: 0 2rem 2rem;
}
.b-revealing-plus-text_container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 2rem;
}
@media (min-width: 897px) {
  .b-revealing-plus-text_inner,
  .b-revealing-plus-text_container {
    max-width: 14em;
    margin: 0 auto;
    padding-inline: 0;
    font-size: var(--fs-h3);
  }
}
.blocks .b-revealing-plus-text-item_body {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  line-height: 1.25;
}
.b-revealing-plus-text-item_body span {
  display: inline-block;
}
.b-revealing-plus-text {
  position: relative;
}
.b-revealing-plus-text_plus {
  position: absolute;
}
@media (max-width: 896px) {
  .b-revealing-plus-text_plus {
    display: none;
  }
}
@keyframes b-reveal-plus {
  0%,
  30% {
    opacity: 0;
    transform: translateY(250%);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
  }
}
@supports (animation-timeline: view()) {
  .b-revealing-plus-text_plus {
    animation: b-reveal-plus linear both;
    animation-timeline: view();
    animation-range: cover 0% cover 75%;
  }
}
@keyframes b-reveal-word {
  from {
    opacity: 0.2;
  }
  to {
    opacity: 1;
  }
}
@supports (animation-timeline: view()) {
  .b-revealing-plus-text-item_body span {
    animation: b-reveal-word linear both;
    animation-timeline: view();
    animation-range: entry-crossing calc(50% + var(--word-index) * 12%)
      entry-crossing calc(100% + var(--word-index) * 12%);
  }
}

/* --- 2. Vertical timeline --- */
.b-vertical-timeline {
  position: relative;
  padding: 2rem;
  overflow: clip;
  counter-reset: step;
}
.b-vertical-timeline_inner {
  text-align: center;
  padding-bottom: 2rem;
}
.blocks .b-vertical-timeline_heading {
  font-size: var(--fs-h3);
  margin-top: 0.25em;
}
.b-vertical-timeline_artboard {
  position: relative;
  width: 100%;
}
@media (min-width: 897px) {
  .b-vertical-timeline_line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--crimson);
  }
}
.b-vertical-timeline_container {
  position: relative;
  display: flex;
  flex-direction: column;
}
.b-vertical-timeline-item {
  position: relative;
  width: 100%;
}
@keyframes b-timeline-item {
  0%,
  30% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}
@supports (animation-timeline: view()) {
  .b-vertical-timeline-item {
    animation: b-timeline-item linear both;
    animation-timeline: view();
    animation-range: entry-crossing 75% entry-crossing 150%;
  }
}
.b-vertical-timeline-item_inner {
  padding: 2rem;
  border: 1px solid var(--crimson);
  border-radius: 16px;
}
@media (max-width: 896px) {
  .b-vertical-timeline-item:not(:first-child) {
    margin-top: 8rem;
  }
  .b-vertical-timeline-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 1px;
    height: 8rem;
    background: var(--crimson);
  }
}
@media (min-width: 897px) {
  .b-vertical-timeline-item {
    display: flex;
  }
  .b-vertical-timeline-item_inner {
    position: relative;
    width: calc(30vw + 2rem);
    margin: 0 1rem;
  }
  .b-vertical-timeline-item:nth-child(odd) {
    padding-right: 50%;
    justify-content: flex-end;
  }
  .b-vertical-timeline-item:nth-child(even) {
    padding-left: 50%;
    justify-content: flex-start;
  }
  .b-vertical-timeline-item_inner::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--crimson);
  }
  .b-vertical-timeline-item:nth-child(odd)
    .b-vertical-timeline-item_inner::after {
    left: 100%;
  }
  .b-vertical-timeline-item:nth-child(even)
    .b-vertical-timeline-item_inner::after {
    right: 100%;
  }
}
.blocks .b-vertical-timeline-item_step {
  display: block;
  line-height: 1.7;
  font-size: var(--fs-small);
  color: var(--silver);
}
.b-vertical-timeline-item_step::before {
  counter-increment: step;
  content: attr(data-prefix) " " counter(step, decimal-leading-zero);
}
.blocks .b-vertical-timeline-item_heading {
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-large);
}
.blocks .b-vertical-timeline-item_body {
  margin-top: 1em;
}

/* --- 3. Block wrapper (live "responsive container" paddings) + diagram grid --- */
.b-block {
  padding: 2rem;
}
.b-block-diff {
  padding: 4rem 2rem;
}
.b-block-division {
  padding: 2rem;
}
@media (min-width: 897px) {
  .b-block-diff {
    padding: 6rem 8rem 4rem;
  }
  .b-block-division {
    padding: 8rem;
  }
}
.b-diagram-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 897px) {
  .b-diagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}
.b-diagram-grid-item {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (max-width: 896px) {
  .b-diagram-grid {
    gap: 0;
  }
  .b-diagram-grid-item {
    align-items: center;
    gap: 1.5rem;
    padding-block: 4rem;
  }
  .b-diagram-grid-item:not(:last-child) {
    border-bottom: 1px solid var(--silver);
  }
  /* mobile uses trimmed copies of the diagrams (no built-in empty margins); each fills its row up to a sensible height */
  .b-diagram-grid-item_photo {
    width: auto;
    max-width: 100%;
    max-height: 55vw;
  }
  .b-diagram-grid-item picture {
    display: block;
    width: 100%;
  }
  .b-diagram-grid-item_photo {
    display: block;
  }
  .b-diagram-grid-item:first-child .b-diagram-grid-item_photo {
    width: 55%;
  }
  .b-diagram-grid-item:last-child {
    padding-bottom: 2rem;
  }
}
.blocks .b-diagram-grid-item_heading {
  margin-top: 0.25em;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-large);
  text-transform: uppercase;
}
.b-diagram-grid-item_photo {
  width: 90%;
  height: auto;
  margin: 0 auto;
}
.blocks .b-diagram-grid-item_body {
  text-align: center;
}
.b-rule {
  height: 2px;
  border: 0;
  margin: 2rem 0;
  background: var(--silver);
}

/* --- 4. Large stats (compact) --- */
.b-large-stats-item {
  position: relative;
}
@media (min-width: 897px) {
  .b-large-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
.b-large-stats-item_inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 4rem;
}
@media (min-width: 897px) {
  .b-large-stats-item_inner {
    gap: 0;
    padding: 4rem 0;
  }
}
.b-large-stats-item .plus {
  width: 32px;
  height: 24px;
  margin-bottom: 6rem;
}
.b-large-stats-item:first-child .plus {
  display: none;
}
@media (min-width: 897px) {
  .b-large-stats-item .plus {
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    transform: translate(-50%, -50%);
  }
  .b-large-stats-item:nth-child(3n + 1) .plus {
    display: none;
  }
}
.blocks .b-large-stats-item_heading {
  position: relative;
  top: -0.1em;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-size: var(--fs-stat);
}
.blocks .b-large-stats-item_body {
  margin-top: 1em;
}

/* --- 5. Coloured panels --- */
.b-colored-panels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 897px) {
  .b-colored-panels {
    grid-template-columns: repeat(2, 1fr);
  }
}
.b-colored-panels-item {
  border-radius: 16px;
  color: var(--white);
}
.b-panel-charcoal {
  background: var(--charcoal);
}
.b-panel-crimson {
  background: var(--crimson);
}
.b-colored-panels-item_container {
  padding: 4rem;
}
.blocks .b-colored-panels-item ul {
  margin-top: 2.5rem;
}
.blocks .b-colored-panels-item li {
  font-size: var(--fs-large);
  letter-spacing: -0.02em;
  line-height: 1.7;
}
.blocks .b-colored-panels-item li + li {
  margin-top: 0.5em;
}

/* --- 6. Framed CTA with rotating red lines --- */
.b-framed-content-container_lines {
  position: absolute;
  inset: 0;
  display: none;
}
@media (min-width: 897px) {
  .b-framed-cta .b-framed-content-container_container {
    background: var(--mercury);
  }
  .b-framed-content-container_lines {
    display: block;
  }
}
.b-framed-content-container_lines img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(1.65);
  animation: b-framed-lines-rotate 250s linear infinite;
}
@keyframes b-framed-lines-rotate {
  from {
    transform: translate(-50%, -50%) scale(1.65) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) scale(1.65) rotate(360deg);
  }
}
.b-framed-cta_content {
  position: relative;
  padding: 2rem;
}
@media (min-width: 897px) {
  .b-framed-cta_content {
    padding: 8rem 6rem;
  }
}
.b-buttons {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  line-height: 0;
}

/* ============================================================
   A+ Network page — Mapbox map block + intro (live theme values)
   ============================================================ */
.b-block-page {
  padding: 0 2rem 2rem;
}
@media (min-width: 897px) {
  .b-block-page {
    padding: 0 8rem 8rem;
  }
}
/* newsroom + article: content column is capped (66rem) and centred so there is room at the sides on desktop */
@media (min-width: 897px) {
  .blocks .b-block-narrow {
    box-sizing: border-box;
    max-width: 82rem;
    margin-inline: auto;
  }
}
.blocks .b-title-left {
  text-align: left;
  margin: 0 0 0.25em;
  max-width: none;
}
.blocks .b-net-lede {
  margin-top: 2rem;
  max-width: 77em;
}
@media (max-width: 896px) {
  .b-net-lede br {
    display: none;
  }
}
.sp-half {
  height: 1rem;
}
.sp-1_5x {
  height: 3rem;
}
.blocks .b-rule-gold {
  background: var(--gold);
  height: 2px;
  margin: 2rem 0;
}

.b-network-map {
  position: relative;
  width: 100%;
  margin: 0;
}
.b-network-map_container {
  position: relative;
  width: 100%;
  background: #ccc;
}
.b-network-map_inner {
  position: relative;
  background: #fff;
}
.b-network-map_inner h3 {
  margin: 0;
  padding: 0.25rem 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  font-size: var(--fs-small);
  line-height: 200%;
  letter-spacing: 0.01em;
  color: #606060;
  text-align: center;
}
.b-network-map_inner ul {
  position: relative;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blocks .b-network-map_inner li {
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-medium);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.b-network-map_inner li .count {
  display: inline-block;
  box-sizing: border-box;
  border-radius: 9999px;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  font-size: var(--fs-count);
  padding: 0.25em 0.33em;
  min-height: 1.75em;
  min-width: 1.75em;
}
@media (max-width: 896px) {
  .b-network-map_inner {
    margin-inline: -2rem;
    width: 100vw;
    padding-block: 1rem;
  }
  /* shorter than a full screen so there is always page above/below to scroll with; the map itself needs two fingers on touch (see network-map.js) */
  .b-network-map_container {
    aspect-ratio: 4 / 3;
    max-height: 60vh;
    margin-inline: -2rem;
    width: 100vw;
  }
}
@media (min-width: 897px) {
  .b-network-map_inner {
    position: absolute;
    left: 1rem;
    top: 1rem;
    border-radius: 16px;
    z-index: 10;
    overflow: hidden;
  }
  .b-network-map_inner h3 {
    text-align: left;
  }
  .b-network-map_inner ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .b-network-map_inner li:nth-child(even) {
    background: #f9f9f9;
  }
  .b-network-map_container {
    aspect-ratio: 1320 / 600;
  }
}
.b-network-map .pin {
  cursor: pointer;
}

/* ============================================================
   Newsroom — built from the shared blocks (same page frame as Network,
   .b-eyebrow / .b-title / .b-cols / .btn), so it scales with the rest.
   ============================================================ */
.nr-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media (min-width: 897px) {
  .nr-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding-bottom: 3rem;
  }
}
.nr-title {
  max-width: 14em;
}
.nr-logo-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  white-space: nowrap;
}
.nr-title svg {
  display: block;
  height: 0.72em;
  width: auto;
  flex: none;
}
/* phones/tablets: globe sits centred under the title; desktop: big, to the right */
.nr-globe {
  width: 56vw;
  max-width: 360px;
  height: auto;
  flex: none;
  align-self: center;
}
@media (min-width: 897px) {
  .nr-globe {
    width: 21rem;
    max-width: none;
    align-self: auto;
  }
}

.nr-post {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 2.4rem;
  background: var(--off-white);
  box-shadow:
    0 1px 2px rgba(36, 36, 36, 0.05),
    0 12px 32px rgba(36, 36, 36, 0.07);
}
.nr-post + .nr-post {
  margin-top: 3rem;
}
@media (min-width: 897px) {
  .nr-post {
    padding: 3rem;
  }
}
.nr-post-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.nr-post-text {
  gap: 1.6rem;
}
.nr-post-text p:not(.nr-meta) {
  max-width: 38em;
}
.blocks .nr-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.nr-meta .nr-accent,
.nr-meta .nr-accent a {
  color: var(--crimson);
}
.nr-meta time::before {
  content: "\00B7";
  margin-right: 1.6rem;
}
.blocks .nr-post-title {
  font-size: var(--fs-large);
  font-weight: 500;
  line-height: 1.2;
  max-width: 26em;
}
.nr-post-title a {
  text-decoration: none;
}
.nr-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.nr-read-more {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--crimson);
  font-size: var(--fs-medium);
  font-weight: 400;
  text-decoration: none;
}
.nr-arrow {
  width: 1.2em;
  height: auto;
  flex: none;
}
.nr-email {
  color: inherit;
  font-weight: 500;
  text-underline-offset: 0.2em;
}
.nr-contact {
  margin-top: 2rem;
}
.blocks .nr-contact .b-col > * + * {
  margin-top: 1.5rem;
}
.blocks .nr-contact .b-col > .b-eyebrow + * {
  margin-top: 0.5rem;
}

.nr-page {
  position: relative;
  overflow-x: clip;
}
.nr-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nr-star {
  position: absolute;
  width: 3.2rem;
  height: auto;
  animation: nr-twinkle 5s ease-in-out infinite;
}
.nr-star-1 {
  left: 4%;
  top: 14rem;
}
.nr-star-2 {
  left: 9%;
  top: 28rem;
  width: 2.4rem;
  animation-delay: -1s;
}
.nr-star-3 {
  left: 2%;
  top: 44rem;
  width: 2.4rem;
  animation-delay: -3s;
}
.nr-star-4 {
  left: 24%;
  top: 10rem;
  width: 2.2rem;
  animation-delay: -2s;
}
.nr-star-5 {
  left: 46%;
  top: 22rem;
  width: 2.2rem;
  animation-delay: -4s;
}
.nr-star-6 {
  right: 5%;
  top: 10rem;
  width: 4.4rem;
  animation-delay: -1.5s;
}
.nr-star-7 {
  right: 2%;
  top: 34rem;
  width: 3rem;
  animation-delay: -2.5s;
}
.nr-star-8 {
  right: 10%;
  top: 50rem;
  width: 2.4rem;
  animation-delay: -3.5s;
}
.nr-star-9 {
  left: 14%;
  top: 58rem;
  width: 2.2rem;
  animation-delay: -0.5s;
}
.nr-star-10 {
  right: 26%;
  top: 8rem;
  width: 2.2rem;
  animation-delay: -4.5s;
}
@keyframes nr-twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nr-star {
    animation: none;
  }
}
@media (max-width: 896px) {
  .nr-star-3,
  .nr-star-5,
  .nr-star-9,
  .nr-star-10 {
    display: none;
  }
  .nr-star {
    width: 2.4rem;
  }
}
.blocks .nr-hero,
.blocks .nr-post,
.nr-contact {
  position: relative;
  z-index: 1;
}

.nr-article-title {
  max-width: 19em;
  margin-bottom: 4rem;
}
.nr-article-body {
  max-width: 80rem;
}
.blocks .nr-article-body p {
  margin: 0 0 1.2em;
}
.blocks .nr-article-body h4 {
  font-size: var(--fs-large);
  font-weight: 400;
  margin: 2em 0 0.6em;
}
.nr-article-body blockquote {
  margin: 2em 0;
  padding-left: 2rem;
  font-size: var(--fs-large);
  line-height: 1.4;
}

/* ============================================================
   Home page blocks below the hero — live theme structure, sizes in
   rem. Deliberate changes from live, per Alex:
   logos spread across the full row, intro image full column width,
   framed-copy paragraph larger.
   ============================================================ */
.rc-1x {
  padding: 2rem;
}
.rc-statement {
  padding: 2rem 4rem;
}
/* logo row is exactly as wide as the statement column below it */
.rc-logos {
  box-sizing: border-box;
  padding-inline: 4rem;
}
@media (min-width: 897px) {
  .rc-logos {
    max-width: var(--col-width);
    margin-inline: auto;
    padding-inline: 0;
  }
}
@media (min-width: 897px) {
  .rc-statement {
    padding-inline: 9rem;
  }
}
.sp-1x {
  height: 2rem;
}
.b-rule-mercury {
  height: 2px;
  border: 0;
  margin: 2rem 0;
  background: var(--mercury);
}
.home .b-eyebrow {
  margin-top: 1em;
}

/* logo garden */
.b-logo-garden {
  position: relative;
  width: 100%;
}
.b-logo-garden_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.b-logo-garden-item {
  width: calc((100% - 0.5rem) / 2 - 0.5px);
  padding: 1em;
}
@media (min-width: 897px) {
  .b-logo-garden_container {
    gap: 1rem;
  }
  .b-logo-garden-item {
    width: calc((100% - 3rem) / 4 - 0.5px);
    padding: 1em 0;
  }
}
.b-logo-garden-item_inner {
  display: block;
  width: 100%;
  height: 100%;
}
.b-logo-garden-item_photo {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  transform: scale(0.75);
}

/* statement */
.home .b-statement {
  font-size: var(--fs-h3);
  text-align: center;
  max-width: 19em;
  margin: 0.25em auto 0;
}
.b-statement mark {
  background: transparent;
  color: var(--crimson);
}

/* framed reveal on home: image + columns share one wrapper */
@media (min-width: 897px) {
  .b-framed-home .b-framed-content_container {
    box-sizing: border-box;
    max-width: var(--col-width);
    margin-inline: auto;
    padding-inline: 0;
  }
}
.rc-global {
  padding: 2rem;
}
@media (min-width: 897px) {
  .rc-global {
    box-sizing: border-box;
    max-width: var(--col-width);
    margin-inline: auto;
    padding: 2rem 0;
  }
}
.home .b-framed-copy {
  font-size: var(--fs-large);
  line-height: 1.4;
}
.b-framed-home .b-buttons {
  margin-top: 1.5rem;
  line-height: 0;
}

/* theme columns (stack under 897px) */
.b-cols {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4rem;
}
.b-col {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 896px) {
  .b-cols {
    flex-direction: column;
    gap: 2rem;
  }
  .b-col {
    flex: 0 0 auto;
  }
}
.blocks .b-h-4 {
  font-size: var(--fs-h4);
  text-align: left;
  text-wrap: balance;
  margin: 0;
}
.blocks .b-h-3 {
  font-size: var(--fs-h3);
  text-align: left;
  text-wrap: balance;
  margin: 0;
}
.b-buttons-left {
  justify-content: flex-start;
}

/* Why banks join A+ */
@media (min-width: 897px) {
  .b-col-third {
    flex: 0 0 28%;
  }
  .b-col-twothirds {
    flex: 0 0 calc(72% - 4rem);
  }
}
.home .b-features-heading {
  font-size: var(--fs-h2);
  margin: 0;
}
.b-features-heading strong {
  color: var(--crimson);
}
@media (min-width: 897px) {
  .b-features-heading {
    position: sticky;
    top: 8vw;
  }
}
.b-highlighted-features {
  position: relative;
}
.b-highlighted-features-item {
  position: relative;
  padding: 2rem;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
  transition:
    background-color 150ms linear,
    color 150ms linear,
    border 150ms linear;
}
@media (min-width: 897px) {
  .b-highlighted-features-item {
    padding: 2rem 2rem 4rem;
  }
}
.b-highlighted-features-item.active {
  background: var(--crimson);
  color: var(--white);
  border-bottom-color: rgba(36, 36, 36, 0.2);
}
.b-highlighted-features-item_icon {
  display: block;
  width: var(--menu-btn);
  transition: filter 150ms linear;
}
@media (min-width: 897px) {
  .b-highlighted-features-item_icon {
    width: 3.33vw;
  }
}
.b-highlighted-features-item.active .b-highlighted-features-item_icon {
  filter: brightness(500%);
}
.b-highlighted-features-item_columns {
  display: flex;
  gap: 4rem;
}
.b-highlighted-features-item_columns > * {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 896px) {
  .b-highlighted-features-item_columns {
    flex-direction: column;
    gap: 2rem;
  }
  .b-highlighted-features-item_columns > * {
    flex: 0 0 auto;
  }
}
/* headings stay on one line; fixed heading column so every description lines up */
@media (min-width: 897px) {
  .b-highlighted-features-item_columns {
    display: grid;
    grid-template-columns: calc(var(--fs-h4) * 8.8) minmax(0, 1fr);
  }
  .b-highlighted-features-item_heading {
    white-space: nowrap;
  }
}
.home .b-highlighted-features-item_heading {
  font-size: var(--fs-h4);
  margin-top: 0.25em;
}
.home .b-highlighted-features-item_body {
  margin: 0;
}

/* Compatible with core banking: chained list */
.b-chained-list {
  position: relative;
  margin: 0;
  padding: 6rem 0;
}
.b-chained-list_line {
  position: absolute;
  top: 6.5rem;
  bottom: 6.5rem;
  left: 50%;
  width: 1px;
  background: #242424;
  opacity: 0.1;
}
.b-chained-list_plus1,
.b-chained-list_plus2 {
  position: absolute;
  width: 32px;
  height: 24px;
}
.b-chained-list_plus1 {
  left: 50%;
  top: 33%;
  transform: translate(-49.25%, -50%);
  animation: b-chain-top 5s ease-out infinite forwards;
}
.b-chained-list_plus2 {
  left: 50%;
  bottom: 33%;
  transform: translate(-49.25%, -50%);
  animation: b-chain-bottom 5s ease-out infinite forwards;
}
.b-chained-list_container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12rem;
}
.b-chained-list-item {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 2rem 4rem 2.5rem;
  text-align: center;
  border-radius: 12px;
}
@media (min-width: 897px) {
  .b-chained-list {
    padding: 2rem 0;
  }
  .b-chained-list_line {
    left: 2px;
    right: 2px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .b-chained-list_plus1 {
    top: 50%;
    left: 33%;
    bottom: auto;
    transform: translate(-50%, -49.5%);
    animation: b-chain-left 7s ease-out infinite forwards;
  }
  .b-chained-list_plus2 {
    top: 50%;
    right: 33%;
    left: auto;
    bottom: auto;
    transform: translate(-50%, -49.5%);
    animation: b-chain-right 7s ease-out infinite forwards;
  }
  .b-chained-list_container {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4rem;
  }
  .b-chained-list-item {
    padding: 1.1rem 2rem 1.4rem;
  }
}
.b-chain-sterling {
  background: var(--dark-sterling);
}
.b-chain-crimson {
  background: var(--crimson);
  color: var(--white);
}
.home .b-chained-list-item_heading {
  font-size: var(--fs-h4);
  margin-top: 0.25em;
}
.b-chained-list-item:first-child h2,
.b-chained-list-item:last-child h2 {
  min-width: 5.5em;
  text-align: center;
}
.home .b-chained-list-item_body {
  margin: 0.25em 0 0;
  opacity: 0.75;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@keyframes b-chain-top {
  0% {
    top: 15%;
  }
  100% {
    top: 47%;
  }
}
@keyframes b-chain-bottom {
  0% {
    bottom: 15%;
  }
  100% {
    bottom: 47%;
  }
}
@keyframes b-chain-left {
  0% {
    left: 15%;
  }
  100% {
    left: 49%;
  }
}
@keyframes b-chain-right {
  0% {
    right: 15%;
  }
  100% {
    right: 49%;
  }
}
