body[data-page="funding"] .calculator-section {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

body[data-page="funding"] .calculator-section::before {
  position: absolute;
  inset-inline-start: clamp(12px, 4vw, 68px);
  bottom: clamp(-22px, -1.2vw, -8px);
  color: rgba(68, 7, 9, .045);
  content: "BUDGET";
  font-family: var(--serif);
  font-size: clamp(7rem, 18vw, 18rem);
  letter-spacing: -.08em;
  line-height: .72;
  pointer-events: none;
  white-space: nowrap;
}

body[data-page="funding"] .budget-country-shell {
  position: relative;
  z-index: 1;
  max-width: 1288px;
  margin: 0 auto;
}

/* Route photography stays behind the content instead of protruding as a separate plaque. */
body[data-page="funding"] .funding-card {
  min-height: 430px;
  padding: clamp(34px, 4vw, 52px);
  background: rgba(255, 250, 240, .94);
}

body[data-page="funding"] .funding-card > * { position: relative; z-index: 2; }

body[data-page="funding"] .funding-card::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(100deg, rgba(255, 250, 240, .985) 8%, rgba(255, 250, 240, .91) 57%, rgba(255, 250, 240, .46) 100%),
    var(--funding-plaque-photo) center / cover no-repeat;
  filter: grayscale(.35) sepia(.13) saturate(.66);
  opacity: 1;
}

body[data-page="funding"] .funding-card::after {
  inset: 18px;
  height: auto;
  border-color: rgba(68, 7, 9, .1);
}

body[data-page="funding"] .funding-card:nth-child(1) { --funding-plaque-photo: url("assets/admissions/stage-profile-pexels-12911671.jpg"); }
body[data-page="funding"] .funding-card:nth-child(2) { --funding-plaque-photo: url("assets/universities/shortlist-best-fit-study.jpg"); }
body[data-page="funding"] .funding-card h3 { max-width: 560px; margin-top: clamp(74px, 8vw, 120px); }
body[data-page="funding"] .funding-card p,
body[data-page="funding"] .funding-card ul { max-width: 650px; }

/* Four complete budget layers, using the same manual circular rail as Universities. */
body[data-page="funding"] .funding-costs {
  overflow: hidden;
  background: var(--paper);
}

body[data-page="funding"] .funding-costs .section-head {
  max-width: 980px;
  margin-bottom: clamp(28px, 4vw, 52px);
}

body[data-page="funding"] .funding-cost-carousel {
  overflow: hidden;
  max-width: 1288px;
  margin: 0 auto;
  padding: clamp(14px, 1.5vw, 22px);
  border: 1px solid rgba(68, 7, 9, .17);
  background: var(--cream);
  box-shadow: 0 22px 56px rgba(41, 4, 5, .08);
}

body[data-page="funding"] .funding-carousel-index {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  min-height: 40px;
  margin: 0 0 clamp(12px, 1.2vw, 18px);
  padding-inline: 2px;
}

body[data-page="funding"] .funding-carousel-index button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(68, 7, 9, .22);
  border-radius: 50%;
  background: rgba(255, 250, 240, .74);
  color: rgba(68, 7, 9, .72);
  cursor: pointer;
  font: 600 .62rem/1 var(--sans);
  letter-spacing: .04em;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

body[data-page="funding"] .funding-carousel-index button:hover {
  border-color: var(--burgundy);
  color: var(--burgundy);
}

body[data-page="funding"] .funding-carousel-index button[aria-current="step"] {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
  transform: scale(1.08);
}

body[data-page="funding"] .funding-carousel-index button:focus-visible {
  outline: 3px solid rgba(68, 7, 9, .28);
  outline-offset: 3px;
}

body[data-page="funding"] .funding-cost-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(68, 7, 9, .14);
  background: var(--cream);
  cursor: grab;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

body[data-page="funding"] .funding-cost-viewport::-webkit-scrollbar { display: none; }

body[data-page="funding"] .funding-cost-viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

body[data-page="funding"] .funding-cost-viewport:focus-visible {
  outline: 3px solid rgba(68, 7, 9, .35);
  outline-offset: -5px;
}

body[data-page="funding"] .funding-cost-track {
  display: flex;
  width: 100%;
}

body[data-page="funding"] .funding-cost-card {
  display: grid;
  min-width: 100%;
  flex: 0 0 100%;
  min-height: clamp(560px, 46vw, 690px);
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
  background: var(--cream);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body[data-page="funding"] .funding-cost-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(34px, 4.4vw, 64px);
}

body[data-page="funding"] .funding-cost-copy > span {
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: 1.15rem;
}

body[data-page="funding"] .funding-cost-copy .eyebrow {
  margin: clamp(36px, 5vw, 74px) 0 12px;
  color: var(--burgundy);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
}

body[data-page="funding"] .funding-cost-copy h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.9vw, 5rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .92;
}

body[data-page="funding"] .funding-cost-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.66;
}

body[data-page="funding"] .funding-cost-copy ul {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

body[data-page="funding"] .funding-cost-copy li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--burgundy);
  font-size: .65rem;
}

body[data-page="funding"] .funding-cost-copy a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  color: var(--burgundy);
  font-size: .67rem;
  font-weight: 600;
}

body[data-page="funding"] .funding-cost-copy a:focus-visible {
  outline: 3px solid rgba(68, 7, 9, .3);
  outline-offset: 5px;
}

body[data-page="funding"] .funding-cost-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  margin: 0;
  background: #e7ddcd;
}

body[data-page="funding"] .funding-cost-media::after {
  position: absolute;
  inset: 0;
  border: 18px solid rgba(255, 250, 240, .16);
  content: "";
  pointer-events: none;
}

body[data-page="funding"] .funding-cost-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.12) sepia(.08) saturate(.86) contrast(.96);
}

body[data-page="funding"] .budget-country-tabs {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
  padding-inline: clamp(18px, 3.5vw, 48px);
}

body[data-page="funding"] .budget-country-tabs button {
  display: flex;
  min-width: 0;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px 23px;
  border: 1px solid rgba(255, 250, 240, .22);
  border-bottom: 0;
  border-radius: 0;
  background: #5a0b0e;
  color: var(--cream);
  cursor: pointer;
  transform: translateY(12px);
  transition: background-color .22s ease, transform .22s ease;
}

body[data-page="funding"] .budget-country-tabs button:hover,
body[data-page="funding"] .budget-country-tabs button[aria-selected="true"] {
  background: var(--burgundy);
  transform: translateY(0);
}

body[data-page="funding"] .budget-country-tabs button:focus-visible {
  outline: 3px solid rgba(68, 7, 9, .35);
  outline-offset: 3px;
}

body[data-page="funding"] .budget-country-tabs button span {
  font-size: 1rem;
  line-height: 1;
}

body[data-page="funding"] .budget-country-tabs button b {
  overflow: hidden;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="funding"] .budget-country-plaque {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 720px;
  grid-template-columns: minmax(350px, .82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid rgba(68, 7, 9, .22);
  background: #fffaf0;
  box-shadow: 0 24px 60px rgba(41, 4, 5, .1);
}

body[data-page="funding"] .budget-country-visual {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  margin: 0;
  background: #e7ddcd;
}

body[data-page="funding"] .budget-country-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 4, 5, .02), rgba(41, 4, 5, .54));
  content: "";
  pointer-events: none;
}

body[data-page="funding"] .budget-country-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  filter: grayscale(.12) sepia(.1) saturate(.84);
  transition: opacity .22s ease, transform .55s ease;
}

body[data-page="funding"] .budget-country-visual figcaption {
  position: absolute;
  inset-inline: clamp(22px, 3vw, 38px);
  bottom: clamp(24px, 3vw, 40px);
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 250, 240, .55);
  color: var(--cream);
}

body[data-page="funding"] .budget-country-visual figcaption span {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
}

body[data-page="funding"] .budget-country-visual figcaption b {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  font-weight: 400;
}

body[data-page="funding"] .budget-country-content {
  min-width: 0;
  padding: clamp(34px, 4.2vw, 60px);
}

body[data-page="funding"] .budget-country-details article h2 {
  margin: clamp(24px, 3vw, 38px) 0 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.1vw, 5.3rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .92;
}

body[data-page="funding"] .budget-country-details article p {
  max-width: 760px;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.68;
}

body[data-page="funding"] .budget-country-details article a {
  display: inline-block;
  color: var(--burgundy);
  font-size: .65rem;
  font-weight: 600;
}

body[data-page="funding"] .budget-country-details article[hidden] { display: none; }

body[data-page="funding"] .budget-country-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(26px, 3.5vw, 42px);
}

body[data-page="funding"] .budget-country-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

body[data-page="funding"] .budget-country-form label span {
  min-height: 32px;
  color: var(--muted);
  font-size: .59rem;
  line-height: 1.35;
}

body[data-page="funding"] .budget-country-form input {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(68, 7, 9, .24);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 .78rem var(--sans);
}

body[data-page="funding"] .budget-country-form input:focus-visible {
  outline: 3px solid rgba(68, 7, 9, .28);
  outline-offset: 2px;
}

body[data-page="funding"] .budget-country-result {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(68, 7, 9, .18);
}

body[data-page="funding"] .budget-country-result > span {
  color: var(--burgundy);
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .14em;
}

body[data-page="funding"] .budget-country-result > strong {
  display: block;
  margin: 8px 0 15px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .9;
}

body[data-page="funding"] .budget-country-result > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(68, 7, 9, .16);
}

body[data-page="funding"] .budget-country-result > div > span {
  min-width: 0;
  padding: 12px;
  border-inline-end: 1px solid rgba(68, 7, 9, .16);
}

body[data-page="funding"] .budget-country-result > div > span:last-child { border-inline-end: 0; }
body[data-page="funding"] .budget-country-result b,
body[data-page="funding"] .budget-country-result small { display: block; }
body[data-page="funding"] .budget-country-result b { color: var(--ink); font-size: .74rem; }
body[data-page="funding"] .budget-country-result small { margin-top: 3px; color: var(--muted); font-size: .55rem; }
body[data-page="funding"] .budget-country-result > p { margin: 14px 0 0; color: var(--muted); font-size: .59rem; line-height: 1.55; }

body[data-page="funding"] .funding-rules .resources-head {
  max-width: 1288px;
  margin: 0 auto 24px;
}

body[data-page="funding"] .funding-rules {
  display: block;
}

body[data-page="funding"] .funding-rules .resources-head h2 {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .9;
}

body[data-page="funding"] .funding-rules .resources-head > p:last-child {
  max-width: 600px;
  color: var(--muted);
  font-size: .76rem;
}

body[data-page="funding"] .funding-rules-band {
  display: grid;
  max-width: 1288px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  border: 1px solid rgba(255, 250, 240, .24);
  background: var(--burgundy);
}

body[data-page="funding"] .funding-rules-band a {
  display: grid;
  min-height: 126px;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  border-inline-end: 1px solid rgba(255, 250, 240, .22);
  color: var(--cream);
  transition: background-color .2s ease;
}

body[data-page="funding"] .funding-rules-band a:last-child { border-inline-end: 0; }
body[data-page="funding"] .funding-rules-band a:hover { background: #570b0e; }
body[data-page="funding"] .funding-rules-band a:focus-visible { outline: 3px solid rgba(255, 250, 240, .72); outline-offset: -5px; }
body[data-page="funding"] .funding-rules-band a span { grid-column: 1 / -1; color: var(--taupe); font-size: .58rem; letter-spacing: .12em; }
body[data-page="funding"] .funding-rules-band a b { align-self: end; font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.35rem); font-weight: 400; line-height: 1.1; }
body[data-page="funding"] .funding-rules-band a i { align-self: end; font-style: normal; }

@media (max-width: 1024px) {
  body[data-page="funding"] .funding-cost-card { grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); }
  body[data-page="funding"] .funding-cost-copy { padding: 38px; }
  body[data-page="funding"] .budget-country-tabs { grid-template-columns: repeat(3, 1fr); }
  body[data-page="funding"] .budget-country-tabs button { min-height: 62px; }
  body[data-page="funding"] .budget-country-plaque { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); }
  body[data-page="funding"] .budget-country-content { padding: 34px; }
  body[data-page="funding"] .budget-country-form { grid-template-columns: 1fr; }
  body[data-page="funding"] .budget-country-form label span { min-height: 0; }
}

@media (max-width: 760px) {
  body[data-page="funding"] .funding { padding-top: clamp(42px, 12vw, 64px); }
  body[data-page="funding"] .funding-card { min-height: 390px; padding: 30px 24px; }
  body[data-page="funding"] .funding-card h3 { margin-top: 82px; }
  body[data-page="funding"] .funding-costs { padding-inline: 14px; }
  body[data-page="funding"] .funding-cost-carousel { padding: 10px; }
  body[data-page="funding"] .funding-carousel-index {
    min-height: 38px;
    margin-bottom: 10px;
    padding-inline: 2px;
  }
  body[data-page="funding"] .funding-carousel-index button { width: 32px; height: 32px; }
  body[data-page="funding"] .funding-cost-card { min-height: 0; grid-template-columns: 1fr; }
  body[data-page="funding"] .funding-cost-copy { min-height: 540px; padding: 28px 23px 30px; }
  body[data-page="funding"] .funding-cost-copy .eyebrow { margin-top: 30px; }
  body[data-page="funding"] .funding-cost-copy h3 { font-size: clamp(2.55rem, 12vw, 3.9rem); }
  body[data-page="funding"] .funding-cost-copy > p:not(.eyebrow) { font-size: .73rem; }
  body[data-page="funding"] .funding-cost-media { order: -1; min-height: clamp(220px, 64vw, 310px); }
  body[data-page="funding"] .funding-cost-media video { min-height: clamp(220px, 64vw, 310px); }
  body[data-page="funding"] .calculator-section { padding-inline: 20px; }
  body[data-page="funding"] .budget-country-tabs {
    display: flex;
    overflow-x: auto;
    padding-inline: 10px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  body[data-page="funding"] .budget-country-tabs button {
    min-width: 145px;
    flex: 0 0 145px;
    scroll-snap-align: start;
  }
  body[data-page="funding"] .budget-country-plaque { min-height: 0; grid-template-columns: 1fr; }
  body[data-page="funding"] .budget-country-visual { min-height: 280px; }
  body[data-page="funding"] .budget-country-visual img { min-height: 280px; height: 280px; }
  body[data-page="funding"] .budget-country-content { padding: 28px 22px 30px; }
  body[data-page="funding"] .budget-country-details article h2 { font-size: clamp(2.65rem, 12vw, 4rem); }
  body[data-page="funding"] .budget-country-result > div { grid-template-columns: 1fr; }
  body[data-page="funding"] .budget-country-result > div > span { border-inline-end: 0; border-bottom: 1px solid rgba(68, 7, 9, .16); }
  body[data-page="funding"] .budget-country-result > div > span:last-child { border-bottom: 0; }
  body[data-page="funding"] .funding-rules { padding-inline: 20px; }
  body[data-page="funding"] .funding-rules-band { grid-template-columns: 1fr; }
  body[data-page="funding"] .funding-rules-band a { min-height: 100px; border-inline-end: 0; border-bottom: 1px solid rgba(255, 250, 240, .22); }
  body[data-page="funding"] .funding-rules-band a:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  body[data-page="funding"] .funding-costs,
  body[data-page="funding"] .calculator-section,
  body[data-page="funding"] .funding-rules { padding-inline: 16px; }
  body[data-page="funding"] .funding-cost-copy { min-height: 565px; padding-inline: 19px; }
  body[data-page="funding"] .budget-country-content { padding-inline: 18px; }
  body[data-page="funding"] .budget-country-tabs button { min-width: 132px; flex-basis: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="funding"] .funding-carousel-index button,
  body[data-page="funding"] .budget-country-tabs button,
  body[data-page="funding"] .budget-country-visual img,
  body[data-page="funding"] .funding-rules-band a { transition: none; }
  body[data-page="funding"] .funding-cost-media video { display: none; }
  body[data-page="funding"] .funding-cost-media { background-position: center; background-size: cover; }
  body[data-page="funding"] .funding-cost-card:nth-child(2) .funding-cost-media { background-image: url("assets/funding/funding-cost-tuition-v1.jpg"); }
  body[data-page="funding"] .funding-cost-card:nth-child(3) .funding-cost-media { background-image: url("assets/funding/funding-cost-immigration-v1.jpg"); }
  body[data-page="funding"] .funding-cost-card:nth-child(4) .funding-cost-media { background-image: url("assets/funding/funding-cost-housing-v1.jpg"); }
  body[data-page="funding"] .funding-cost-card:nth-child(5) .funding-cost-media { background-image: url("assets/funding/funding-cost-living-v1.jpg"); }
}

/* 2026-07-22 funding refinement: compact editorial rhythm, distinct imagery and mobile-first carousels. */
body[data-page="funding"] main > .section-pad {
  padding-block: clamp(52px, 5.4vw, 78px);
}

body[data-page="funding"] .funding,
body[data-page="funding"] .funding-costs .section-head,
body[data-page="funding"] .budget-country-intro,
body[data-page="funding"] .funding-rules,
body[data-page="funding"] .page-cta,
body[data-page="funding"] .deep-dive .section-head {
  position: relative;
  overflow: hidden;
}

/* One quiet photographic layer sits behind the complete funding route composition. */
body[data-page="funding"] .funding {
  isolation: isolate;
  background: var(--paper);
}

body[data-page="funding"] .funding::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(250, 246, 237, .9), rgba(250, 246, 237, .72)),
    url("assets/funding/funding-route-overview-v3.jpg") center 42% / cover no-repeat;
  filter: grayscale(.28) sepia(.1) saturate(.7);
  opacity: .46;
  pointer-events: none;
}

body[data-page="funding"] .funding > * {
  position: relative;
  z-index: 1;
}

body[data-page="funding"] .funding-top,
body[data-page="funding"] .funding-route-carousel,
body[data-page="funding"] .funding-costs .section-head,
body[data-page="funding"] .funding-cost-carousel,
body[data-page="funding"] .budget-country-shell,
body[data-page="funding"] .deep-dive > .section-head,
body[data-page="funding"] .funding-layers,
body[data-page="funding"] .decision-band {
  max-width: 1120px;
  margin-inline: auto;
}

body[data-page="funding"] .funding-top {
  position: relative;
  max-width: 940px;
  overflow: visible;
  margin: 0 auto clamp(34px, 4.5vw, 58px);
  padding: 0;
  border: 0;
  background: transparent;
}

body[data-page="funding"] .funding-top::after,
body[data-page="funding"] .funding-costs .section-head::after,
body[data-page="funding"] .budget-country-intro::after,
body[data-page="funding"] .funding-rules::before,
body[data-page="funding"] .page-cta::before,
body[data-page="funding"] .deep-dive > .section-head::after {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 auto;
  width: 48%;
  content: "";
  background-position: center;
  background-size: cover;
  opacity: .13;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%);
  mask-image: linear-gradient(90deg, transparent, #000 42%);
  pointer-events: none;
}

body[data-page="funding"] .funding-top::after { content: none; }
body[data-page="funding"] .funding-costs .section-head::after { background-image: url("assets/funding/funding-scholarship-review-v2.jpg"); }
body[data-page="funding"] .budget-country-intro::after { background-image: url("assets/funding/funding-budget-desk-v2.jpg"); }
body[data-page="funding"] .funding-rules::before {
  inset: 12% 2.5% auto auto;
  width: min(34%, 430px);
  height: 74%;
  background-image: url("assets/funding/funding-official-check-v3.jpg");
  background-position: center;
  background-size: cover;
  opacity: .12;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 88%, transparent);
}
body[data-page="funding"] .funding-rules::after {
  position: absolute;
  z-index: 0;
  inset-inline-start: 5.3vw;
  bottom: -0.12em;
  content: "GUGA";
  color: rgba(68, 7, 9, .035);
  font-family: var(--serif);
  font-size: clamp(6rem, 17vw, 16rem);
  letter-spacing: -.07em;
  line-height: .72;
  pointer-events: none;
}
body[data-page="funding"] .page-cta::before { background-image: url("assets/funding/funding-evidence-desk-v2.jpg"); opacity: .2; }
body[data-page="funding"] .deep-dive > .section-head::after { background-image: url("assets/funding/funding-scholarship-review-v2.jpg"); }

body[data-page="funding"] .funding-top > *,
body[data-page="funding"] .funding-costs .section-head > *,
body[data-page="funding"] .budget-country-intro > *,
body[data-page="funding"] .funding-rules > *,
body[data-page="funding"] .page-cta > *,
body[data-page="funding"] .deep-dive > .section-head > * {
  position: relative;
  z-index: 1;
}

body[data-page="funding"] .funding-top h2 {
  max-width: 920px;
  margin-block: 18px 12px;
  font-size: clamp(3rem, 4.8vw, 5.25rem);
  line-height: .94;
}
body[data-page="funding"] .funding-top h2 span,
body[data-page="funding"] .funding-top h2 em { display: block; }

body[data-page="funding"] .funding-route-carousel { margin-top: 14px; }
body[data-page="funding"] .funding-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body[data-page="funding"] .funding-card {
  min-height: 360px;
  padding: 28px 30px;
  box-shadow: none;
  border-color: rgba(68, 7, 9, .18);
  background: rgba(255, 250, 240, .86);
}
body[data-page="funding"] .funding-card::before {
  background: linear-gradient(100deg, rgba(255,250,240,.88), rgba(255,250,240,.7));
  filter: none;
  opacity: 1;
}
body[data-page="funding"] .funding-card:nth-child(1),
body[data-page="funding"] .funding-card:nth-child(2) { background-image: none; }
body[data-page="funding"] .funding-card h3 { margin-top: clamp(74px, 8vw, 112px); font-size: clamp(2rem, 3vw, 3.2rem); }
body[data-page="funding"] .funding-route-dots { display: none; }

body[data-page="funding"] .funding-costs { padding-inline: 5.3vw; }
body[data-page="funding"] .funding-costs .section-head {
  min-height: 235px;
  padding: 30px 34px;
  border: 1px solid rgba(68, 7, 9, .14);
}
body[data-page="funding"] .funding-costs .section-head h2 {
  max-width: 900px;
  margin-block: 16px 10px;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: .93;
}
body[data-page="funding"] .funding-cost-carousel { margin-top: 14px; }
body[data-page="funding"] .funding-cost-card {
  min-height: 470px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}
body[data-page="funding"] .funding-cost-copy { padding: 34px 38px; }
body[data-page="funding"] .funding-cost-copy .eyebrow { margin-top: 18px; }
body[data-page="funding"] .funding-cost-copy h3 { margin-block: 14px 10px; font-size: clamp(2.6rem, 4.4vw, 4.6rem); }
body[data-page="funding"] .funding-cost-media,
body[data-page="funding"] .funding-cost-media video { min-height: 470px; }
body[data-page="funding"] .funding-cost-media video { pointer-events: none; }

body[data-page="funding"] .budget-country-intro {
  min-height: 240px;
  padding: 30px 34px;
  border: 1px solid rgba(68, 7, 9, .14);
  background: var(--paper);
}
body[data-page="funding"] .budget-country-intro h2 {
  max-width: 800px;
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .93;
}
body[data-page="funding"] .budget-country-intro > p:last-child { max-width: 620px; color: var(--muted); }
body[data-page="funding"] .budget-country-tabs { margin-top: 12px; }
body[data-page="funding"] .budget-country-tabs button,
body[data-page="funding"] .budget-country-tabs button:hover,
body[data-page="funding"] .budget-country-tabs button[aria-selected="true"] { transform: none !important; }
body[data-page="funding"] .budget-country-plaque { min-height: 610px; align-items: stretch; box-shadow: none; }
body[data-page="funding"] .budget-country-visual { min-height: 610px; height: auto; align-self: stretch; }
body[data-page="funding"] .budget-country-visual img {
  position: absolute;
  inset: 0;
  min-height: 100%;
  height: 100%;
}
body[data-page="funding"] .budget-country-content { padding: 34px 40px; }
body[data-page="funding"] .budget-country-example { margin: 12px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.55; }

body[data-page="funding"] .funding-rules { padding-inline: 5.3vw; }
body[data-page="funding"] .funding-rules .resources-head { max-width: 1120px; padding: 26px 34px 22px; border: 1px solid rgba(68,7,9,.14); }
body[data-page="funding"] .funding-rules .resources-head h2 { color: var(--ink) !important; font-size: clamp(3rem, 5vw, 5.4rem); }
body[data-page="funding"] .funding-rules-band { max-width: 1120px; }
body[data-page="funding"] .funding-rules-band a { min-height: 106px; padding: 18px; }

body[data-page="funding"] .page-cta.page-cta {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 52px 5.3vw;
  min-height: 0;
  border: 0;
  background: var(--burgundy) !important;
  color: var(--cream) !important;
}
body[data-page="funding"] .page-cta.page-cta > div { max-width: 760px; }
body[data-page="funding"] .page-cta.page-cta .section-index,
body[data-page="funding"] .page-cta.page-cta p { color: rgba(255,250,240,.76) !important; }
body[data-page="funding"] .page-cta.page-cta h2 { color: var(--cream); }
body[data-page="funding"] .page-cta.page-cta .button { border-color: var(--cream); background: var(--cream); color: var(--burgundy); }

body[data-page="funding"] .deep-dive { padding-inline: 5.3vw; }
body[data-page="funding"] .deep-dive > .section-head { min-height: 235px; padding: 28px 34px; border: 1px solid rgba(68,7,9,.14); }
body[data-page="funding"] .deep-dive > .section-head h2 { margin-block: 16px 10px; font-size: clamp(3rem, 5vw, 5.4rem); }
body[data-page="funding"] .funding-layers { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
body[data-page="funding"] .funding-layer-card { min-height: 320px; border: 0; background: transparent; perspective: 1100px; }
body[data-page="funding"] .funding-layer-inner { position: relative; min-height: 320px; transform-style: preserve-3d; transition: transform .62s cubic-bezier(.22,.72,.28,1); }
body[data-page="funding"] .funding-layer-card.is-flipped .funding-layer-inner { transform: rotateY(180deg); }
body[data-page="funding"] .funding-layer-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(68,7,9,.16);
  background: var(--paper);
  backface-visibility: hidden;
}
body[data-page="funding"] .funding-layer-front { isolation: isolate; }
body[data-page="funding"] .funding-layer-front::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(250,246,237,.96), rgba(250,246,237,.76)), var(--layer-image) center / cover;
}
body[data-page="funding"] .funding-layer-card:nth-child(1) { --layer-image: url("assets/funding/funding-scholarship-review-v2.jpg"); }
body[data-page="funding"] .funding-layer-card:nth-child(2) { --layer-image: url("assets/funding/funding-evidence-desk-v2.jpg"); }
body[data-page="funding"] .funding-layer-card:nth-child(3) { --layer-image: url("assets/funding/funding-budget-desk-v2.jpg"); }
body[data-page="funding"] .funding-layer-card:nth-child(4) { --layer-image: url("assets/funding/funding-students-library-v2.jpg"); }
body[data-page="funding"] .funding-layer-front h3 { margin-top: auto; }
body[data-page="funding"] .funding-layer-front > i { align-self: flex-end; }
body[data-page="funding"] .funding-layer-back { transform: rotateY(180deg); background: var(--burgundy); color: var(--cream); }
body[data-page="funding"] .funding-layer-back a { color: var(--cream); }
body[data-page="funding"] .decision-band { margin-top: 14px; }

body[data-page="funding"] .brand-story-funding { padding: 58px 5.3vw; gap: 4vw; }
body[data-page="funding"] .brand-story-funding::before { top: clamp(-100px, -7vw, -24px); }
body[data-page="funding"] .brand-story-funding .brand-story-media img { height: clamp(300px, 30vw, 420px); object-fit: cover; object-position: center; }

@media (hover: hover) and (pointer: fine) {
  body[data-page="funding"] .funding-layer-card:hover .funding-layer-front {
    border-color: color-mix(in srgb, var(--burgundy) 42%, transparent);
  }
}

@media (min-width: 1000px) {
  body[data-page="funding"] .funding-top h2 span,
  body[data-page="funding"] .funding-costs .section-head h2 span { white-space: nowrap; }
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-page="funding"] .funding-layers {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  body[data-page="funding"] .funding-layers::-webkit-scrollbar { display: none; }
  body[data-page="funding"] .funding-layer-card { min-width: 280px; flex: 0 0 280px; scroll-snap-align: start; }
}

@media (max-width: 760px) {
  body[data-page="funding"] main > .section-pad { padding-block: 44px; }
  body[data-page="funding"] .funding,
  body[data-page="funding"] .funding-costs,
  body[data-page="funding"] .calculator-section,
  body[data-page="funding"] .funding-rules,
  body[data-page="funding"] .deep-dive { padding-inline: 18px; }
  body[data-page="funding"] .funding-top,
  body[data-page="funding"] .funding-costs .section-head,
  body[data-page="funding"] .budget-country-intro,
  body[data-page="funding"] .funding-rules .resources-head,
  body[data-page="funding"] .deep-dive > .section-head { min-height: 0; padding: 24px 21px; }
  body[data-page="funding"] .funding-top { margin-bottom: 30px; padding: 0; }
  body[data-page="funding"] .funding-top::after,
  body[data-page="funding"] .funding-costs .section-head::after,
  body[data-page="funding"] .budget-country-intro::after,
  body[data-page="funding"] .deep-dive > .section-head::after { width: 70%; opacity: .09; }
  body[data-page="funding"] .funding-rules::before {
    inset: 10% -8% auto auto;
    width: 62%;
    height: 56%;
    opacity: .08;
  }
  body[data-page="funding"] .funding-top h2,
  body[data-page="funding"] .funding-costs .section-head h2,
  body[data-page="funding"] .budget-country-intro h2,
  body[data-page="funding"] .funding-rules .resources-head h2,
  body[data-page="funding"] .deep-dive > .section-head h2 { font-size: clamp(2.55rem, 12vw, 4rem); }

  body[data-page="funding"] .funding-route-viewport { overflow: hidden; }
  body[data-page="funding"] .funding-cards { display: flex; gap: 0; transform: translate3d(0,0,0); touch-action: pan-y; }
  body[data-page="funding"] .funding-card { min-width: 100%; flex: 0 0 100%; min-height: 430px; padding: 26px 22px; }
  body[data-page="funding"] .funding-card h3 { margin-top: 64px; }
  body[data-page="funding"] .funding-cost-card { grid-template-columns: 1fr; }
  body[data-page="funding"] .funding-cost-copy { min-height: 390px; padding: 25px 22px 28px; }
  body[data-page="funding"] .funding-cost-copy .eyebrow { margin-top: 14px; }
  body[data-page="funding"] .funding-cost-copy h3 { font-size: clamp(2.45rem, 11vw, 3.65rem); }
  body[data-page="funding"] .funding-cost-media,
  body[data-page="funding"] .funding-cost-media video { min-height: 220px; height: 220px; }

  body[data-page="funding"] .budget-country-tabs { margin-top: 10px; padding-inline: 0; }
  body[data-page="funding"] .budget-country-tabs button { min-width: 140px; flex-basis: 140px; }
  body[data-page="funding"] .budget-country-visual { min-height: 240px; height: 240px; }
  body[data-page="funding"] .budget-country-visual img { position: relative; inset: auto; min-height: 240px; height: 240px; }
  body[data-page="funding"] .budget-country-content { padding: 26px 20px 28px; }

  body[data-page="funding"] .funding-rules-band { grid-template-columns: 1fr; }
  body[data-page="funding"] .funding-rules-band a { min-height: 86px; }
  body[data-page="funding"] .page-cta { padding: 44px 20px; }
  body[data-page="funding"] .funding-layers {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  body[data-page="funding"] .funding-layers::-webkit-scrollbar { display: none; }
  body[data-page="funding"] .funding-layer-card { min-width: min(82vw, 310px); flex: 0 0 min(82vw, 310px); scroll-snap-align: start; }
  body[data-page="funding"] .funding-layer-card,
  body[data-page="funding"] .funding-layer-inner { min-height: 340px; }
  body[data-page="funding"] .brand-story-funding { padding: 48px 20px; gap: 28px; }
  body[data-page="funding"] .brand-story-funding .brand-story-media img { height: 260px; }
}

@media (max-width: 360px) {
  body[data-page="funding"] .funding,
  body[data-page="funding"] .funding-costs,
  body[data-page="funding"] .calculator-section,
  body[data-page="funding"] .funding-rules,
  body[data-page="funding"] .deep-dive { padding-inline: 14px; }
  body[data-page="funding"] .funding-card { min-height: 455px; }
  body[data-page="funding"] .funding-cost-copy { min-height: 430px; padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="funding"] .funding-layer-inner { transition: none; }
}

/* 2026-07-22 heading reset: keep section titles in the original open, left editorial flow. */
body[data-page="funding"] :is(
  .funding-top,
  .funding-costs .section-head,
  .budget-country-intro,
  .funding-rules .resources-head,
  .deep-dive > .section-head
) {
  min-height: 0;
  margin-inline-start: 0;
  margin-inline-end: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: start;
}

body[data-page="funding"] .funding-costs .section-head { max-width: 980px; }
body[data-page="funding"] .budget-country-shell { max-width: 1288px; }
body[data-page="funding"] .budget-country-intro {
  max-width: 980px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
body[data-page="funding"] .funding-rules .resources-head { max-width: 1288px; }
body[data-page="funding"] .deep-dive > .section-head { max-width: 940px; }

/* 2026-07-22 section art reset: restrained photographs live behind whole sections, never inside headings. */
body[data-page="funding"] :is(
  .funding,
  .funding-costs,
  .calculator-section,
  .funding-rules,
  .page-cta,
  .deep-dive
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

body[data-page="funding"] :is(
  .funding,
  .funding-costs,
  .calculator-section,
  .funding-rules,
  .page-cta,
  .deep-dive
) > * {
  position: relative;
  z-index: 1;
}

body[data-page="funding"] :is(
  .funding,
  .funding-costs,
  .funding-rules,
  .page-cta,
  .deep-dive
)::before,
body[data-page="funding"] .calculator-section::after {
  position: absolute;
  z-index: 0;
  inset: auto;
  display: block;
  width: min(34vw, 500px);
  height: auto;
  aspect-ratio: 1;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: saturate(.66) sepia(.08) contrast(.98);
  mix-blend-mode: multiply;
  opacity: .085;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 23%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, #000 23%, transparent 73%);
}

body[data-page="funding"] .funding::before {
  top: 7%;
  inset-inline-end: -4vw;
  width: min(35vw, 510px);
  background-image: url("assets/funding/funding-route-overview-v3.jpg");
  opacity: .1;
  transform: rotate(2deg);
}

body[data-page="funding"] .funding-costs::before {
  top: 13%;
  inset-inline-end: -3vw;
  width: min(32vw, 460px);
  background-image: url("assets/funding/funding-scholarship-review-v2.jpg");
  opacity: .075;
  transform: rotate(-2deg);
}

body[data-page="funding"] .calculator-section::after {
  top: 19%;
  inset-inline-end: -4vw;
  width: min(35vw, 500px);
  background-image: url("assets/funding/funding-budget-desk-v2.jpg");
  opacity: .07;
  transform: rotate(2deg);
}

body[data-page="funding"] .funding-rules::before {
  top: 8%;
  inset-inline-end: -3vw;
  width: min(32vw, 460px);
  background-image: url("assets/funding/funding-official-check-v3.jpg");
  opacity: .075;
  transform: rotate(-2deg);
}

body[data-page="funding"] .page-cta::before {
  top: 50%;
  inset-inline-end: -5vw;
  width: min(39vw, 560px);
  background-image: url("assets/funding/funding-evidence-desk-v2.jpg");
  background-position: center;
  filter: grayscale(.28) sepia(.08) brightness(.86) contrast(1.04);
  mix-blend-mode: screen;
  opacity: .17;
  transform: translateY(-50%) rotate(-3deg);
}

body[data-page="funding"] .deep-dive::before {
  top: 10%;
  inset-inline-end: -4vw;
  width: min(34vw, 490px);
  background-image: url("assets/funding/funding-students-library-v2.jpg");
  opacity: .075;
  transform: rotate(2deg);
}

body[data-page="funding"] :is(
  .funding-top,
  .funding-costs .section-head,
  .budget-country-intro,
  .deep-dive > .section-head
)::after {
  content: none !important;
  background-image: none !important;
}

@media (max-width: 760px) {
  body[data-page="funding"] :is(
    .funding,
    .funding-costs,
    .funding-rules,
    .deep-dive
  )::before,
  body[data-page="funding"] .calculator-section::after {
    inset-inline-end: -78px;
    width: 270px;
    opacity: .055;
  }

  body[data-page="funding"] .funding::before { top: 9%; }
  body[data-page="funding"] .funding-costs::before { top: 17%; }
  body[data-page="funding"] .calculator-section::after { top: 22%; }
  body[data-page="funding"] .funding-rules::before { top: 12%; }
  body[data-page="funding"] .deep-dive::before { top: 11%; }
  body[data-page="funding"] .page-cta::before {
    inset-inline-end: -92px;
    width: 290px;
    opacity: .13;
  }
}

/* 2026-07-23: one typographic voice for the planning label and country name. */
body[data-page="funding"] .budget-country-visual figcaption {
  align-items: center;
  gap: 12px;
}

body[data-page="funding"] .budget-country-visual figcaption :is(span, b) {
  max-width: 50%;
  margin: 0;
  color: inherit;
  font-family: var(--sans);
  font-size: clamp(.72rem, .85vw, .82rem);
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.35;
}

body[data-page="funding"] .budget-country-visual figcaption b {
  text-align: end;
}

/* 2026-07-23: dedicated route photography with compact editorial heading rhythm. */
body[data-page="funding"] .funding-card {
  isolation: isolate;
  overflow: hidden;
}

body[data-page="funding"] .funding-card:nth-child(1) {
  --funding-plaque-photo: url("assets/funding/funding-route-grants-original-v1.jpg");
}

body[data-page="funding"] .funding-card:nth-child(2) {
  --funding-plaque-photo: url("assets/funding/funding-route-personal-budget-original-v1.jpg");
}

body[data-page="funding"] .funding-card::before {
  background:
    linear-gradient(100deg, rgba(255, 250, 240, .97) 0%, rgba(255, 250, 240, .9) 45%, rgba(255, 250, 240, .76) 72%, rgba(255, 250, 240, .66) 100%),
    var(--funding-plaque-photo) center / cover no-repeat;
  filter: grayscale(.08) sepia(.06) saturate(.78) brightness(1.08);
  opacity: 1;
}

body[data-page="funding"] .funding-card h3 {
  margin: clamp(10px, 1vw, 16px) 0 14px;
}

html[dir="rtl"] body[data-page="funding"] .funding-card::before {
  transform: scaleX(-1);
}

@media (max-width: 760px) {
  body[data-page="funding"] .funding-card::before {
    background:
      linear-gradient(rgba(255, 250, 240, .84), rgba(255, 250, 240, .86)),
      var(--funding-plaque-photo) center / cover no-repeat;
  }

  body[data-page="funding"] .funding-card h3 {
    margin: 12px 0 12px;
  }

  body[data-page="funding"] .funding-route-dots {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0 2px;
    direction: ltr;
  }

  body[data-page="funding"] .funding-route-dots button {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(68, 7, 9, .2);
    border-radius: 50%;
    background: rgba(255, 250, 240, .92);
    color: var(--burgundy);
    font: 600 .63rem/1 var(--sans);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
  }

  body[data-page="funding"] .funding-route-dots button[aria-current="true"] {
    border-color: var(--burgundy);
    background: var(--burgundy);
    color: var(--cream);
  }

  body[data-page="funding"] .funding-route-dots button:focus-visible {
    outline: 3px solid rgba(109, 23, 27, .28);
    outline-offset: 3px;
  }
}

/* 2026-07-23: compact, content-led vertical rhythm across the Funding page. */
body[data-page="funding"] main > section.section-pad:not(.inner-hero) {
  padding-block: clamp(42px, 4.2vw, 60px);
}

body[data-page="funding"] .funding-top {
  margin-bottom: clamp(24px, 2.6vw, 36px);
}

body[data-page="funding"] .funding-top h2 {
  margin-block: 14px 10px;
}

body[data-page="funding"] .funding-route-carousel {
  margin-top: 10px;
}

body[data-page="funding"] .funding-card {
  min-height: 0;
  padding: 24px 26px;
}

body[data-page="funding"] .funding-costs .section-head,
body[data-page="funding"] .budget-country-intro {
  margin-bottom: clamp(22px, 2.4vw, 34px);
}

body[data-page="funding"] .funding-costs .section-head h2,
body[data-page="funding"] .budget-country-intro h2,
body[data-page="funding"] .deep-dive > .section-head h2 {
  margin-block: 14px 8px;
}

body[data-page="funding"] .funding-cost-carousel {
  margin-top: 0;
  padding: clamp(12px, 1.1vw, 16px);
}

body[data-page="funding"] .funding-carousel-index {
  min-height: 34px;
  margin-bottom: 8px;
}

body[data-page="funding"] .funding-cost-card {
  min-height: 0;
}

body[data-page="funding"] .funding-cost-copy {
  padding: 28px 32px;
}

body[data-page="funding"] .funding-cost-copy .eyebrow {
  margin-top: 10px;
}

body[data-page="funding"] .funding-cost-copy h3 {
  margin-block: 10px 8px;
}

body[data-page="funding"] .funding-cost-copy ul {
  margin-top: 16px;
}

body[data-page="funding"] .funding-cost-copy a {
  margin-top: 18px;
  padding-top: 0;
}

body[data-page="funding"] .funding-cost-media,
body[data-page="funding"] .funding-cost-media video {
  min-height: 420px;
}

body[data-page="funding"] .budget-country-intro h2 {
  margin-top: 12px;
}

body[data-page="funding"] .budget-country-tabs {
  margin-top: 8px;
}

body[data-page="funding"] .budget-country-tabs button {
  min-height: 56px;
  padding: 10px 8px 12px;
}

body[data-page="funding"] .budget-country-plaque {
  min-height: 0;
}

body[data-page="funding"] .budget-country-visual {
  min-height: clamp(500px, 40vw, 560px);
}

body[data-page="funding"] .budget-country-content {
  padding: 28px 30px;
}

body[data-page="funding"] .budget-country-details article h2 {
  margin-top: clamp(18px, 2vw, 24px);
  margin-bottom: 12px;
}

body[data-page="funding"] .budget-country-form {
  margin-top: clamp(20px, 2.4vw, 28px);
}

body[data-page="funding"] .budget-country-result {
  margin-top: 18px;
  padding-top: 16px;
}

body[data-page="funding"] .funding-rules .resources-head {
  margin-bottom: 20px;
}

body[data-page="funding"] .funding-rules-band a {
  min-height: 90px;
  padding: 16px;
}

body[data-page="funding"] .page-cta.page-cta {
  padding: 40px 5.3vw;
}

body[data-page="funding"] .page-cta h2 {
  margin-block: 14px 8px;
}

body[data-page="funding"] .page-cta > div > p:last-child {
  margin-top: 10px;
}

body[data-page="funding"] .deep-dive > .section-head {
  margin-bottom: 32px;
}

body[data-page="funding"] .funding-layers {
  margin-top: 10px;
}

body[data-page="funding"] .funding-layer-card,
body[data-page="funding"] .funding-layer-inner {
  min-height: 300px;
}

body[data-page="funding"] .funding-layer-face {
  padding: 20px;
}

body[data-page="funding"] .funding-layer-front h3 {
  margin-top: 28px;
}

body[data-page="funding"] .funding-layer-face > i,
body[data-page="funding"] .funding-layer-flip-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-self: flex-end;
  margin-top: auto;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  content: "↻";
  font: 400 1rem/1 var(--sans);
}

body[data-page="funding"] .funding-layer-face > i {
  font-style: normal;
}

body[data-page="funding"] .funding-layer-flip-button {
  padding: 0;
  background: transparent;
  cursor: pointer;
}

body[data-page="funding"] .funding-layer-flip-button:focus-visible,
body[data-page="funding"] .funding-layer-face > i:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body[data-page="funding"] .decision-band {
  margin-top: 10px;
  padding: 28px;
}

body[data-page="funding"] .brand-story-funding {
  gap: 3vw;
  padding: 42px 5.3vw;
}

@media (max-width: 760px) {
  body[data-page="funding"] main > section.section-pad:not(.inner-hero) {
    padding-block: 34px;
  }

  body[data-page="funding"] .funding-top {
    margin-bottom: 22px;
  }

  body[data-page="funding"] .funding-card {
    min-height: 0;
    padding: 22px 18px;
  }

  body[data-page="funding"] .funding-route-dots {
    min-height: 34px;
    margin-bottom: 6px;
  }

  body[data-page="funding"] .funding-route-dots button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body[data-page="funding"] .funding-costs .section-head,
  body[data-page="funding"] .budget-country-intro {
    margin-bottom: 20px;
  }

  body[data-page="funding"] .funding-cost-carousel {
    padding: 8px;
  }

  body[data-page="funding"] .funding-carousel-index {
    min-height: 32px;
    margin-bottom: 6px;
  }

  body[data-page="funding"] .funding-carousel-index button {
    width: 32px;
    height: 32px;
  }

  body[data-page="funding"] .funding-cost-copy {
    min-height: 0;
    padding: 22px 18px 24px;
  }

  body[data-page="funding"] .funding-cost-media,
  body[data-page="funding"] .funding-cost-media video {
    min-height: 210px;
    height: 210px;
  }

  body[data-page="funding"] .budget-country-tabs button {
    min-height: 54px;
    padding-block: 9px;
  }

  body[data-page="funding"] .budget-country-visual,
  body[data-page="funding"] .budget-country-visual img {
    min-height: 220px;
    height: 220px;
  }

  body[data-page="funding"] .budget-country-content {
    padding: 22px 18px 24px;
  }

  body[data-page="funding"] .funding-rules .resources-head {
    margin-bottom: 16px;
  }

  body[data-page="funding"] .funding-rules-band a {
    min-height: 72px;
    padding: 14px;
  }

  body[data-page="funding"] .page-cta.page-cta {
    padding: 32px 18px;
  }

  body[data-page="funding"] .deep-dive > .section-head {
    margin-bottom: 24px;
  }

  body[data-page="funding"] .funding-layer-card,
  body[data-page="funding"] .funding-layer-inner {
    min-height: 320px;
  }

  body[data-page="funding"] .funding-layer-face {
    padding: 18px;
  }

  body[data-page="funding"] .funding-layer-front h3 {
    margin-top: 24px;
  }

  body[data-page="funding"] .decision-band {
    padding: 20px;
  }

  body[data-page="funding"] .brand-story-funding {
    gap: 22px;
    padding: 34px 18px;
  }
}

@media (max-width: 360px) {
  body[data-page="funding"] main > section.section-pad:not(.inner-hero) {
    padding-block: 32px;
  }
}
