/* ============================================================
   OFI THEME CSS ARCHITECTURE

   01 Foundation, tokens and reset
   02 Typography system
   03 Layout and spacing system
   04 Color and surface system
   05 Modular reusable blocks
   06 Global site components
   07 Page-specific composition
   08 Responsive rules

   Page-specific rules must inherit the shared typography, spacing,
   color and modular block systems rather than redefining them.
   ============================================================ */

/* ============================================================
   OFI Theme — Main Stylesheet
   Cleaned version
   Fonts: Arca Majora 3 (headings), Roboto (body)
   ============================================================ */

/* ============================================================
   TABLE OF CONTENTS
   01 Variables / Design Tokens
   02 Reset / Base
   03 Typography System
   04 Buttons
   05 Header / Navigation
   06 Hero
   07 Homepage Sections
   08 Interior / Editorial Components
   09 Footer
   10 Blog / Inner Pages
   11 Animations
   12 Responsive
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --ofi-color-brand-orange: #db793c;
  --ofi-color-brand-orange-bright: #fb8f1d;
  --ofi-color-action-primary: #e1832c;
  --ofi-color-action-donate: #ee8625;
  --ofi-color-brand-brown-muted: #b66328;
  --ofi-color-brand-green-dark: #032204;

  /* Approved image-overlay palette. No other overlay colours are permitted. */
  --ofi-color-overlay-grey: #898989;
  --ofi-color-overlay-green: #859c88;
  --ofi-color-overlay-tan: #c49e85;
  --ofi-color-overlay-orange: #db793c;

  /* Text */
  --ofi-color-text-primary: #202020;
  --ofi-color-text-secondary: #555555;
  --ofi-color-text-muted: #848484;

  /* Shared full-bleed section surfaces.
     White is the default; every coloured section must use one of these
     approved site-wide tokens rather than a page-named colour. */
  --ofi-color-surface-white: #ffffff;
  --ofi-color-surface-light: #faf9f9;
  --ofi-color-surface-soft: #f3eeed;
  --ofi-color-surface-neutral: #f7f6f4;
  --ofi-color-surface-warm: #f5f0ea;
  --ofi-color-surface-paper: #fbfaf7;
  --ofi-color-surface-green-soft: #f3f6f3;
  --ofi-color-surface-tan-soft: #f8f3ef;
  --ofi-color-surface-orange-soft: #fbf2ec;
  --ofi-color-surface-orange: var(--ofi-color-brand-orange);
  --ofi-color-surface-green-dark: #405846;

  /* Compatibility aliases retained for older components pending later cleanup. */
  --ofi-color-surface-footer: #f0eeec;
  --ofi-color-border-default: #dcdcdc;
  --ofi-color-heading-editorial: #3f3f3f;
  --ofi-color-text-editorial: #222222;
  --ofi-color-accent-editorial: #df7a2f;
  --ofi-color-border-soft: #e5e0d8;

  /* Fonts */
  --ofi-font-family-heading: "Arca Majora 3", sans-serif;
  --ofi-font-family-body: "Roboto", sans-serif;

  /* Layout */
  --ofi-layout-container-max-width: 1200px;
  --ofi-layout-container-padding-inline: clamp(1rem, 4vw, 2rem);

  /* Typography and rhythm */
  --ofi-line-height-section-heading: 1.05;
  --ofi-font-size-body: 1.0625rem;
  --ofi-font-size-body-compact: .98rem;
  --ofi-font-size-lead: clamp(1.0625rem, 1rem + .25vw, 1.25rem);
  --ofi-line-height-body: 1.75;
  --ofi-line-height-body-relaxed: 1.8;
  --ofi-line-height-body-compact: 1.7;
  --ofi-typography-gap-flow: 1.25rem;
  --ofi-typography-gap-heading-body: 1.25rem;
  --ofi-typography-gap-subheading-body: .75rem;
  --ofi-typography-gap-text-action: 1.75rem;
  --ofi-typography-gap-content-section: 1.4rem; 

  /* Shared page-shell dimensions */
  --ofi-layout-header-height: 86px;
  --ofi-layout-subnav-height: 4rem;

  /* Effects */
  --ofi-effect-shadow-card: 0 18px 45px rgba(0, 0, 0, .04);
  --ofi-layout-content-max-width: 760px;

  /* Interior-page layout rhythm. Typography and the homepage use separate systems. */
  --ofi-layout-section-padding-block: 5rem;
  --ofi-layout-page-padding-top: 5rem;
  --ofi-layout-page-padding-bottom: 5rem;
  --ofi-layout-section-group-gap: 3rem;
    --ofi-spacing-xs: .5rem;
    --ofi-spacing-sm: 1rem;
    --ofi-spacing-md: 1.5rem;
    --ofi-spacing-lg: 2rem;
    --ofi-spacing-xl: 3rem;
    --ofi-spacing-2xl: 4rem;

    /* Shared typography tokens */
/* Arca Majora heading weights. Do not use these for Roboto. */
    --ofi-font-weight-heading: 700;
    --ofi-font-weight-heading-heavy: 900;

    /* Homepage campaign hero: max remains 4.25rem. */
    --ofi-font-size-hero-home: clamp(2.4rem, 1.55rem + 2.75vw, 4.25rem);

    /* Interior, Facts and archive heroes: max remains 3.35rem. */
    --ofi-font-size-hero-page: clamp(2.25rem, 1.78rem + 1.55vw, 3.35rem);
    --ofi-font-size-hero-subtitle: clamp(1rem, .94rem + .25vw, 1.2rem);

    /* Blog featured story: max remains 3.15rem. */
    --ofi-font-size-blog-feature-title: clamp(2.25rem, 1.6rem + 2.1vw, 3.15rem);

    /* Reusable editorial hierarchy. */
    --ofi-font-size-heading-xl: clamp(2.25rem, 1.85rem + 1.25vw, 3rem);
	--ofi-font-size-heading-lg: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
    --ofi-font-size-section-title: clamp(1.75rem, 1.55rem + .65vw, 2rem);
    /* Shared h3 / medium-heading system. */
    --ofi-font-size-heading-medium: clamp(1.25rem, 1.15rem + .35vw, 1.5rem);
    --ofi-font-size-heading-medium-compact: 1.1rem;
    --ofi-line-height-heading-medium: 1.2;
    --ofi-line-height-heading-medium-compact: 1.25;
    --ofi-typography-gap-heading-medium: .75rem;
    --ofi-typography-gap-heading-medium-compact: .35rem;
    --ofi-color-heading-medium: var(--ofi-color-heading-editorial);

    /* Existing card-title consumers remain mapped to the h3 scale. */
    --ofi-font-size-card-title: var(--ofi-font-size-heading-medium);

}


@font-face {
  font-family: "Arca Majora 3";
  src:
    url("./fonts/ArcaMajora3-Bold.woff2") format("woff2"),
    url("./fonts/ArcaMajora3-Bold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Arca Majora 3";
  src:
    url("./fonts/ArcaMajora3-Heavy.woff2") format("woff2"),
    url("./fonts/ArcaMajora3-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* ── Reset / Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--ofi-font-family-body);
  color: var(--ofi-color-text-primary);
  overflow-x: clip;
  background: var(--ofi-color-surface-white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  font-family: inherit;
}

body p {
  font-size: var(--ofi-font-size-body, 1.0625rem);
  line-height: var(--ofi-line-height-body, 1.75);
}

.ofi-container {
  width: 100%;
  max-width: var(--ofi-layout-container-max-width);
  margin-inline: auto;
  padding-inline: var(--ofi-layout-container-padding-inline);
  position: relative;
}


/* ============================================================
   OFI Typography System
   Homepage styles preserved. Editorial classes are opt-in.
   ============================================================ */

/* Shared kicker appearance across the site. */
.ofi-kicker,
.ofi-hero__kicker {
    display: block;
    color: var(--ofi-color-brand-orange);
    font-family: var(--ofi-font-family-body);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

/* Standard kicker + section h2 relationship. */
.ofi-kicker {
    margin: 0 0 .35rem;
}

.ofi-kicker + h2 {
    margin-top: 0;
}

/* Homepage hero kicker + oversized h1 relationship. */
.ofi-hero__kicker {
    margin: 0 0 .9rem;
}

/* Editorial typography — apply manually on interior pages. */

.ofi-heading {
  color: var(--ofi-color-text-secondary);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-card-title);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.ofi-heading-xl {
  margin: 0 0 1.35rem;
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-xl);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: var(--ofi-line-height-section-heading);
  letter-spacing: -.04em;
}

.ofi-heading-lg {
  margin: 0 0 1.25rem;
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-section-title);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: var(--ofi-line-height-section-heading);
  letter-spacing: -.035em;
}

/* Standard medium headings are owned by explicit components or prose
   containers. Do not restore a page-wide #ofi-main h3 fallback: it allows a
   generic heading rule to override compact component typography. */
.ofi-heading-md,
.ofi-comparison__title,
:where(#ofi-main .ofi-flow:not(.ofi-flow--compact) > h3),
:where(#ofi-main .ofi-media-card__body > h3),
:where(#ofi-main .ofi-sequence__item > h3),
:where(#ofi-main .ofi-feature-card > h3),
:where(#ofi-main .ofi-info-card > h3),
:where(#ofi-main .ofi-info-card__header > h3),
:where(#ofi-main .ofi-facts-species-card__body > h3) {
  margin: 0 0 var(--ofi-typography-gap-heading-medium, .75rem);
  color: var(--ofi-color-heading-medium, var(--ofi-color-heading-editorial));
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-medium, clamp(1.25rem, 1.15rem + .35vw, 1.5rem));
  font-weight: var(--ofi-font-weight-heading, 700);
  line-height: var(--ofi-line-height-heading-medium, 1.2);
  letter-spacing: -.02em;
}

.ofi-donate-panel__title {
    font-family: var(--ofi-font-family-heading);
    font-size: var(--ofi-font-size-lead);
    font-weight: var(--ofi-font-size-blog-feature-title);
    margin-bottom: 1rem;
}

/* Compact headings are owned by the compact components that use them. */
.ofi-stat-note h3,
.ofi-callout__body > h3,
.ofi-numbered-steps h3 {
  color: var(--ofi-color-text-secondary);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-medium-compact, 1.1rem);
  font-weight: var(--ofi-font-weight-heading, 700);
  line-height: var(--ofi-line-height-heading-medium-compact, 1.25);
  letter-spacing: -.02em;
}

/* Non-flow compact notes own their local title gap. */
.ofi-stat-note h3 {
  margin: 0 0 var(--ofi-typography-gap-heading-medium-compact, .35rem);
}

/* Flow wrappers remain the sole owner of title-to-body spacing. */
.ofi-callout__body > h3,
.ofi-numbered-steps h3 {
  margin: 0;
}

.ofi-lead {
  max-width: 760px;
  margin: 0;
  color: var(--ofi-color-text-editorial);
  font-family: var(--ofi-font-family-body);
  font-size: var(--ofi-font-size-lead, clamp(1.0625rem, 1rem + .25vw, 1.25rem));
  font-weight: 400;
  line-height: var(--ofi-line-height-body-relaxed, 1.8);
}

.ofi-lead.ofi-lead--display {
  font-family: var(--ofi-font-family-heading);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: var(--ofi-font-weight-heading, 700);
  line-height: 1.45;
  letter-spacing: -.02em;
}

.ofi-body,
body .ofi-flow > p:not([class]) {
  font-family: var(--ofi-font-family-body);
  font-size: var(--ofi-font-size-body, 1.0625rem);
  font-weight: 400;
  line-height: var(--ofi-line-height-body, 1.75);
}

.ofi-body {
  margin: 0;
  color: var(--ofi-color-text-editorial);
}

body .ofi-flow--compact > p:not([class]) {
  font-size: var(--ofi-font-size-body-compact, .98rem);
  line-height: var(--ofi-line-height-body-compact, 1.7);
}

/* Semantic fine print used by taxonomy notes and editorial guidance. */
.ofi-fine-print {
  display: block;
  color: var(--ofi-color-text-muted);
  font-size: .8125rem;
  line-height: 1.5;
}

.ofi-fine-print--wide {
  max-width: 58rem;
  margin-top: 1.6rem;
  font-size: .84rem;
  line-height: 1.65;
}

.ofi-text-center {
  text-align: center;
}

.ofi-heading-rule {
  width: 64px;
  height: 2px;
  background: var(--ofi-color-accent-editorial);
  margin: 0;
}

/* Standard inline links inside body paragraphs. */
#ofi-main p a:not(.ofi-btn) {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-color: var(--ofi-color-brand-orange);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    text-decoration-skip-ink: auto;
}

#ofi-main p a:not(.ofi-btn):hover,
#ofi-main p a:not(.ofi-btn):focus-visible {
    color: var(--ofi-color-brand-orange);
    text-decoration-color: currentColor;
}
/* ── Buttons ───────────────────────────────────────────────── */
.ofi-btn {
  --ofi-button-color-background: transparent;
  --ofi-button-color-text: var(--ofi-color-text-primary);
  --ofi-button-color-border: transparent;
  --ofi-button-color-background-hover: var(--ofi-button-color-background);
  --ofi-button-color-text-hover: var(--ofi-button-color-text);
  --ofi-button-color-border-hover: var(--ofi-button-color-border);
  --ofi-button-color-background-active: var(--ofi-button-color-background-hover);
  --ofi-button-color-text-active: var(--ofi-button-color-text-hover);
  --ofi-button-color-border-active: var(--ofi-button-color-border-hover);
  --ofi-button-color-focus-outline: var(--ofi-color-brand-orange);

  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 2rem;
  border: 1px solid var(--ofi-button-color-border);
  border-radius: 2px;
  background: var(--ofi-button-color-background);
  color: var(--ofi-button-color-text);
  font-family: var(--ofi-font-family-heading);
  font-size: 1rem;
  font-weight: var(--ofi-font-weight-heading);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.ofi-btn:visited {
  color: var(--ofi-button-color-text);
}

.ofi-btn:hover {
  border-color: var(--ofi-button-color-border-hover);
  background: var(--ofi-button-color-background-hover);
  color: var(--ofi-button-color-text-hover);
  transform: translateY(-1px);
}

.ofi-btn:focus-visible {
  outline: 3px solid var(--ofi-button-color-focus-outline);
  outline-offset: 3px;
}

.ofi-btn:active {
  border-color: var(--ofi-button-color-border-active);
  background: var(--ofi-button-color-background-active);
  color: var(--ofi-button-color-text-active);
  transform: translateY(1px);
  transition-duration: .06s;
}

.ofi-btn[aria-disabled="true"],
.ofi-btn:disabled,
button.ofi-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.ofi-btn--primary {
  --ofi-button-color-background: var(--ofi-color-action-primary);
  --ofi-button-color-text: #fff;
  --ofi-button-color-border: var(--ofi-color-action-primary);
  --ofi-button-color-background-hover: var(--ofi-color-brand-orange);
  --ofi-button-color-text-hover: #fff;
  --ofi-button-color-border-hover: var(--ofi-color-brand-orange);
  --ofi-button-color-background-active: #b85c25;
  --ofi-button-color-text-active: #fff;
  --ofi-button-color-border-active: #b85c25;
  --ofi-button-color-focus-outline: #8f451f;
}

.ofi-btn--outline {
  --ofi-button-color-background: transparent;
  --ofi-button-color-text: var(--ofi-color-brand-brown-muted);
  --ofi-button-color-border: #585858;
  --ofi-button-color-background-hover: transparent;
  --ofi-button-color-text-hover: var(--ofi-color-brand-orange);
  --ofi-button-color-border-hover: var(--ofi-color-brand-orange);
  --ofi-button-color-background-active: var(--ofi-color-surface-orange-soft);
  --ofi-button-color-text-active: #9f4d20;
  --ofi-button-color-border-active: #9f4d20;
}

.ofi-btn--ghost {
  --ofi-button-color-background: rgba(255, 255, 255, .08);
  --ofi-button-color-text: #fff;
  --ofi-button-color-border: rgba(255, 255, 255, .55);
  --ofi-button-color-background-hover: rgba(255, 255, 255, .16);
  --ofi-button-color-text-hover: #fff;
  --ofi-button-color-border-hover: #fff;
  --ofi-button-color-background-active: rgba(255, 255, 255, .24);
  --ofi-button-color-text-active: #fff;
  --ofi-button-color-border-active: #fff;
  --ofi-button-color-focus-outline: #fff;
}

/* Donation actions are protected planned functionality. */
.ofi-btn--donate,
.ofi-btn--donate-cta {
  --ofi-button-color-background: var(--ofi-color-action-donate);
  --ofi-button-color-text: #fff;
  --ofi-button-color-border: var(--ofi-color-action-donate);
  --ofi-button-color-background-hover: var(--ofi-color-brand-orange);
  --ofi-button-color-text-hover: #fff;
  --ofi-button-color-border-hover: var(--ofi-color-brand-orange);
  --ofi-button-color-background-active: #b85c25;
  --ofi-button-color-text-active: #fff;
  --ofi-button-color-border-active: #b85c25;
  --ofi-button-color-focus-outline: #8f451f;
}

.ofi-btn--donate-cta {
  width: 100%;
  padding: 1rem;
  margin-bottom: .75rem;
}

.ofi-btn--full {
  width: 100%;
}

@media (max-width: 700px) {
  .ofi-btn {
    white-space: normal;
    text-align: center;
  }
}
/* ── Header / Navigation ───────────────────────────────────── */
.ofi-header,
#ofi-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: top .25s ease, background-color .25s ease, box-shadow .25s ease;
}

#ofi-header.is-sticky,
.ofi-header.is-sticky {
  background: #fff;
  border-bottom: 1px solid var(--ofi-color-border-default);
}

.ofi-nav {
  height: var(--ofi-layout-header-height);
  padding: 0 2.5rem;
/*      box-shadow: 0 6px 20px rgba(0,0,0,.04); */
}

/* Initial masthead: left menu | centered logo | right menu */
.ofi-nav__menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.ofi-nav__group {
  min-width: 0;
}

.ofi-nav__group > ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ofi-nav__group--left {
  grid-column: 1;
  padding-right: 2.25rem;
}

.ofi-nav__group--right {
  grid-column: 3;
  padding-left: 2.25rem;
}

.menu-item-logo {
  grid-column: 2;
  justify-self: center;
  z-index: 2;
}

.menu-item-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  margin-top: 46px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
  transition: height .3s ease, margin .3s ease;
}

.ofi-nav__menu a {
  position: relative;
  font-family: var(--ofi-font-family-body);
  font-size: 1.0625rem;
  color: #fff;
  transition: color .15s;
  white-space: nowrap;
  font-weight:400;
}

.ofi-nav__menu a:hover {
  color: var(--ofi-color-brand-orange);
}

.ofi-header.is-sticky .ofi-nav__menu a {
  color: var(--ofi-color-heading-editorial);
  font-weight: 400;
}

/* Sticky layout: logo left, menu right */
.ofi-header.is-sticky .ofi-nav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ofi-header.is-sticky .menu-item-logo {
  margin-right: auto;
  padding: .75rem 1rem;
  border: 1px solid #e5e5e5;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.ofi-header.is-sticky .menu-item-logo img {
  height: 82px;
  margin-top: 32px;
}

.ofi-header.is-sticky .ofi-nav__group,
.ofi-header.is-sticky .ofi-nav__group--left,
.ofi-header.is-sticky .ofi-nav__group--right {
  display: flex;
  justify-content: flex-start;
  padding: 0;
}

.ofi-header.is-sticky .ofi-nav__group--left {
  margin-right: 2rem;
}

.ofi-header.is-sticky .ofi-nav__group--left > ul,
.ofi-header.is-sticky .ofi-nav__group--right > ul {
  gap: 2rem;
}

/* Sticky desktop navigation order and wrapping */
@media (min-width: 1101px) {
  .ofi-header.is-sticky .ofi-nav__menu {
    display: flex;
    flex-wrap: nowrap;
  }

  .ofi-header.is-sticky .menu-item-logo {
    order: 0;
    flex: 0 0 auto;
    margin-right: auto;
  }

  .ofi-header.is-sticky .ofi-nav__group--left {
    order: 1;
    flex: 0 0 auto;
    margin-right: 2rem;
  }

  .ofi-header.is-sticky .ofi-nav__group--right {
    order: 2;
    flex: 0 0 auto;
  }

  .ofi-header.is-sticky .ofi-nav__group > ul {
    flex-wrap: nowrap;
  }
}

/* Donate menu item */
.is-sticky .menu-item-donate > a {
  background: var(--ofi-color-action-donate);
  color: #fff !important;
  padding: .75rem 1rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ofi-font-family-heading);
}

.menu-item-donate > a::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3 9.24 3 10.91 3.81 12 5.09 13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5 22 12.28 18.6 15.36 13.45 20.04L12 21.35z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3 9.24 3 10.91 3.81 12 5.09 13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5 22 12.28 18.6 15.36 13.45 20.04L12 21.35z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Dropdown add-on: preserves the centered nav */
/* Dropdown menu */
.ofi-nav__menu .menu-item-has-children {
  position: relative;
}

.ofi-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 56%;
    transform: translate(-50%, 8px);
    min-width: 300px;
    padding: .65rem;
    margin: 1.5rem 0 0 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(170 170 170 / 45%);
    border-radius: 4px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.ofi-nav__menu .sub-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: rgb(255 255 255);
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid rgb(170 170 170 / 45%);
    border-top: 1px solid rgb(170 170 170 / 45%);
}

.ofi-nav__menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ofi-nav__menu .sub-menu li {
  width: 100%;
}

.ofi-nav__menu .sub-menu a {
  display: block;
  width: 100%;

  padding: .75rem .85rem;

  color: var(--ofi-color-text-secondary);
  background: transparent;

  font-size: .9rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;

  border-radius: 3px;
}

.ofi-nav__menu .sub-menu a:hover {
  color: var(--ofi-color-brand-orange);
  background: rgba(219,121,60,.08);
}

.ofi-nav__menu .sub-menu a::after {
  display: none;
}

.ofi-nav__menu .menu-item-has-children > a::after {
  display: none;
}

/* Nav underline */
.ofi-nav__menu li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 32px;
  height: 2px;
  background: var(--ofi-color-brand-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}

.ofi-nav__menu li a:hover::after,
.ofi-nav__menu li.current-menu-item > a::after,
.ofi-nav__menu li.current-page-ancestor > a::after {
  transform: scaleX(1);
}

.is-sticky .ofi-nav__menu li a::after {
  background: var(--ofi-color-border-soft);
}

.is-sticky .menu-item-logo a::after,
.is-sticky .menu-item-donate a::after {
  display: none;
}

.ofi-nav__menu .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    top: 100%;
    height: 32px;   /* invisible bridge */
}

.ofi-nav__menu li a.ofi-nav__logo-link::after {
    display: none;
}

/* Mobile nav */
.ofi-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}

.ofi-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform .2s, opacity .2s;
}

.ofi-mobile-menu {
  display: none;
  position: fixed;
  top: 133px;
  left: 0;
  right: 0;
  background: var(--ofi-color-brand-brown-muted);
  z-index: 200;
  padding: 1.5rem;
}

.ofi-mobile-menu.is-open {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ofi-mobile-menu__list li a {
  color: #fff;
  font-size: 1rem;
  padding: .5rem 0;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ofi-mobile-menu__list .sub-menu {
  display: none;
  padding-left: 1rem;
}

.ofi-mobile-menu__list .menu-item-has-children.open > .sub-menu {
  display: block;
}

.ofi-mobile-menu__donate {
  margin-top: 1rem;
  text-align: center;
  justify-content: center;
}

/* ── Hero ──────────────────────────────────────────────────── */
.ofi-hero__title {
  max-width: 600px;
  margin: 0 0 1.25rem;
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-hero-home);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: .80;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ofi-hero__title span {
  display: block;
}

.ofi-hero {
  position: relative;
  height: 680px;
  min-height: calc(100vh - 20px);
  background-size: cover;
  background-position: 70% center;
  background-repeat: no-repeat;
}

.ofi-hero__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .2), transparent);
}

.ofi-hero__content.ofi-container {
  display: none;
}

.ofi-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 33%;
  bottom: auto;
  z-index: 20;
}

.ofi-hero__actions {
  display: flex;
  gap: .85rem;
  align-items: center;
}


.ofi-hero__fixed,
.ofi-hero__changing {
  color: #fff;
}

.ofi-hero .ofi-btn {
  margin-top: 0;
}

.ofi-hero__dots {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ofi-hero__dot {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: #fff;
}

.ofi-hero__dot--active {
  background: var(--ofi-color-brand-orange-bright);
}

.ofi-hero__title--swap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1em;
  max-width: none;
  white-space: nowrap;
}

.ofi-hero__changing {
  transition: opacity .7s ease, transform .7s ease;
}

.ofi-hero__changing.is-changing {
  opacity: 0;
  transform: translateY(-10px);
}

/* ── Floating Stats ────────────────────────────────────────── */
.floating-stats {
  position: absolute;
  left: 50%;
  bottom: -40px;
  transform: translateX(-50%);
  width: min(1135px, calc(100% - 40px));
  background: #fff;
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  z-index: 5;
  border: 1px solid var(--ofi-color-border-default);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .03); 
}

.stat {
  padding: 36px 25px;
  text-align: center;
  border-right: 1px solid var(--ofi-color-border-default);
}

.stat:last-child {
  border-right: 0;
}

.stat-number {
  display: block;
  font-size: 1.7rem;
  font-family: var(--ofi-font-family-heading);
  font-weight: 700;
  color: var(--ofi-color-brand-brown-muted);
}

.stat-label {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  color: #555;
  font-weight: 400;
}

/* ── Work / Mission Blocks ─────────────────────────────────── */

.ofi-work-intro {
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  grid-template-columns: 1.4fr .8fr;
  gap: 60px;
  align-items: start;
}

/* Interior/editorial heading defaults for older page markup. */
.ofi-work-intro h2,
.ofi-work-intro__text h2 {
  font-size: var(--ofi-font-size-section-title);
  font-weight: var(--ofi-font-weight-heading-heavy);
}

.ofi-section-head h2,
.ofi-status-section__content h2 {
  color: var(--ofi-color-text-secondary);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-section-title);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: var(--ofi-line-height-section-heading);
  letter-spacing: -.035em;
}

.ofi-work-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ofi-color-text-editorial);
}

.ofi-work-pillars__inner {
  width: 100%;
  max-width: var(--ofi-layout-container-max-width);
  margin: 0 auto;
  padding-inline: var(--ofi-layout-container-padding-inline);
}

/* Shared split section-heading layouts. */
.ofi-section-head--split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, .82fr) minmax(0, 1.25fr);
  grid-template-areas: "title aside";
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* The title column remains in normal flow and controls the heading height. */
.ofi-section-head--split > .ofi-flow:first-child {
  grid-area: title;
  min-width: 0;
}

/* Centre the summary without allowing its height to move the content below. */
.ofi-section-head--split > .ofi-section-head__aside {
  position: absolute;
  grid-area: aside;
  inset: 50% 0 auto;
  width: 100%;
  transform: translateY(-50%);
}

.ofi-section-head--compact {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 28rem);
}

.ofi-section-head__aside {
  max-width: 44rem;
  color: var(--ofi-color-text-editorial);
}

@media (max-width: 900px) {
  .ofi-section-head--split {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "aside";
    gap: 1.5rem;
  }

  .ofi-section-head--split > .ofi-section-head__aside {
    position: static;
    width: auto;
    transform: none;
  }
}

.ofi-section-head--centered {
  max-width: 52rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.ofi-section-head--centered .ofi-heading-rule {
  margin-inline: auto;
}

.ofi-section-head--centered > p {
  max-width: 45rem;
  margin-inline: auto;
  color: var(--ofi-color-text-secondary);
}

.ofi-work-pillars {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ofi-work-pillars__grid {
  display: grid;
  width: 100%;
  margin-inline: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.ofi-work-card {
  background: #fff;
  border: 1px solid var(--ofi-color-border-default);
}

.ofi-work-card__image {
  height: 230px;
  background: #9d9d8f;
}

.ofi-work-card__body {
  padding: 1.75rem;
}

.ofi-media-image--muted {
  background: linear-gradient(rgba(0, 0, 0, .15), rgba(0, 0, 0, .15)),
              linear-gradient(135deg, #d8d1c5, #8c8f7a);
}

#range.ofi-work-pillars,
#route-map.ofi-work-pillars,
#our-approach.ofi-work-pillars {
  background-size: 47%;
  background-image: url(https://saveorangutans.org/wp-content/uploads/2026/06/background-map.png);
}

section[id] {
  scroll-margin-top: 6rem;
}
/* ── Conservation status scale ─────────────────────────────── */
.ofi-status-card {
  border: 1px solid var(--ofi-color-border-default);
  background: #fff;
}

.ofi-status-section {
  width: 100%;
}

.ofi-status-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin: 0;
}

.ofi-status-card--compact {
  max-width: 100%;
  padding: 2rem 0;
  overflow-x: visible;
  border: 0;
}

.ofi-status-scale {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: .3rem;
  padding-bottom: 2.25rem;
}

.ofi-status-level {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  opacity: .5;
  text-align: center;
  transition: .25s;
}

.ofi-status-level--active {
  position: relative;
  opacity: 1;
  transform: scale(1.2);
}

.ofi-status-level__circle {
  display: flex;
  width: 49px;
  height: 49px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e4ded2;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

.ofi-status-level:nth-child(1) .ofi-status-level__circle {
  background: #111;
}

.ofi-status-level:nth-child(2) .ofi-status-level__circle {
  background: #222;
}

.ofi-status-level:nth-child(3) .ofi-status-level__circle {
  background: #d93d3d;
}

.ofi-status-level:nth-child(4) .ofi-status-level__circle {
  background: #e37a2f;
}

.ofi-status-level:nth-child(5) .ofi-status-level__circle {
  background: #e0b10b;
  color: #222;
}

.ofi-status-level:nth-child(6) .ofi-status-level__circle {
  background: #198a79;
}

.ofi-status-level:nth-child(7) .ofi-status-level__circle {
  background: #0d8b8b;
}

.ofi-status-level--active .ofi-status-level__circle {
  color: #fff;
  box-shadow: 0 0 0 8px rgba(180, 102, 42, .14);
}

.ofi-status-level small {
  display: block;
  margin-top: .65rem;
  font-size: .72rem;
  line-height: 1.25;
  text-align: center;
}

.ofi-status-scale::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--ofi-color-border-default);
}

.ofi-status-level--active::after {
  content: "";
  position: absolute;
  bottom: -2.25rem;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-right: 9px solid transparent;
  border-bottom: 12px solid #d93d3d;
  border-left: 9px solid transparent;
  transform: translateX(-50%);
}

@media (max-width: 900px) {
  .ofi-status-card--compact {
    display: block;
    padding: 1rem 0 0;
    overflow: visible;
  }

  .ofi-status-scale {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem .35rem;
    overflow: visible;
    padding: 0;
  }

  .ofi-status-scale::after,
  .ofi-status-level--active::after {
    display: none;
  }

  .ofi-status-level {
    min-width: 0;
  }

  .ofi-status-level__circle {
    width: 42px;
    height: 42px;
    font-size: .72rem;
  }

  .ofi-status-level small {
    font-size: .6rem;
    line-height: 1.15;
  }
}

@media (max-width: 800px) {
  .ofi-status-section__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .ofi-status-level--active .ofi-status-level__circle {
    box-shadow: 0 0 0 5px rgba(180, 102, 42, .14);
  }
}

@media (max-width: 420px) {
  .ofi-status-scale {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ── Shared Interior Page Hero ─────────────────────────────── */
.ofi-page-hero {
  --ofi-page-hero-padding-top: clamp(8rem, 18vw, 13rem);
  --ofi-page-hero-padding-bottom: clamp(3rem, 7vw, 4rem);
  --ofi-page-hero-kicker-margin-bottom: 1.1rem;

  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-start;
  background-color: var(--ofi-color-brand-green-dark);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Full-image contrast for the title and subtitle. */
.ofi-page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 75%) 30%,
      rgb(17 11 4 / 46%) 56%,
      rgba(4, 17, 7, .08) 75%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, .38) 0%,
      transparent 48%
    );
  pointer-events: none;
}

/* .ofi-hero__gradient remains a separate shared layer. It protects the
   transparent header/menu before the sticky header takes over. */
.ofi-page-hero__content {
  position: relative;
  z-index: 5;
  max-width: 65rem;
  padding-block: var(--ofi-page-hero-padding-top) var(--ofi-page-hero-padding-bottom);
}

.ofi-page-hero .ofi-page-hero__kicker {
  display: block;
  margin: 0 0 var(--ofi-page-hero-kicker-margin-bottom);
  color: var(--ofi-color-brand-orange-bright);
}

.ofi-page-hero__kicker + h1 {
  margin-top: 0;
}

.ofi-page-hero h1 {
  display: inline;
  margin: 0;
  color: #fff;
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-hero-page);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: .82;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}

.ofi-page-hero__subtitle {
  display: block;
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-family: var(--ofi-font-family-body);
  font-size: var(--ofi-font-size-hero-subtitle, clamp(1rem, .94rem + .25vw, 1.2rem));
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.ofi-split-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ofi-feature-card,
.ofi-info-card {
  padding: 2rem;
  background: #fff;
  transition: transform .35s ease, box-shadow .35s ease;
}

.ofi-feature-card {
  border: 1px solid var(--ofi-color-border-default);
}

.ofi-info-card {
  border: 1px solid var(--ofi-color-border-soft);
  color: var(--ofi-color-text-editorial);
}

.ofi-info-card__header > h3 {
  margin-bottom: var(--ofi-typography-gap-heading-medium-compact);
  color: var(--ofi-color-heading-medium);
  font-size: var(--ofi-font-size-heading-medium-compact);
  line-height: var(--ofi-line-height-heading-medium-compact);
}

.ofi-info-card__body p {
  color: var(--ofi-color-text-secondary);
  font-size: var(--ofi-font-size-body-compact);
  line-height: var(--ofi-line-height-body-compact);
}

#our-work .ofi-feature-card, #overview .ofi-feature-card  {
    margin-top: 2rem;
}

@media (min-width: 980px) {
  .ofi-page-hero {
    --ofi-page-hero-padding-top: clamp(10.5rem, calc(18vw + 2.5rem), 17rem);
    min-height: 540px;
  }
}

@media (max-width: 700px) {
  .ofi-page-hero {
    min-height: 430px;
  }

  .ofi-page-hero h1 {
    line-height: .9;
  }
}

@media (max-width: 420px) {
  .ofi-page-hero {
    min-height: 400px;
  }
}
/* Shared fact/evidence band. The homepage impact and floating-stat systems are intentionally separate. */
.ofi-fact-band {
  --ofi-fact-band-columns: 3;
  --ofi-fact-band-color-border: var(--ofi-color-border-soft);
  --ofi-fact-band-color-value: var(--ofi-color-heading-medium);

  display: grid;
  grid-template-columns: repeat(var(--ofi-fact-band-columns), minmax(0, 1fr));
}

.ofi-fact-band--three {
  --ofi-fact-band-columns: 3;
}

.ofi-fact-band--four {
  --ofi-fact-band-columns: 4;
}

.ofi-fact-band--large {
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--ofi-fact-band-color-border);
  background: var(--ofi-fact-band-color-border);
}

.ofi-fact-band--large .ofi-fact-band__item {
  min-height: 10rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
}

.ofi-fact-band--large .ofi-fact-band__value {
  display: block;
  margin-bottom: .75rem;
  color: var(--ofi-fact-band-color-value);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-medium);
  font-weight: var(--ofi-font-weight-heading);
  line-height: var(--ofi-line-height-heading-medium);
  letter-spacing: -.02em;
}

.ofi-fact-band--large .ofi-fact-band__description {
  display: block;
  color: var(--ofi-color-text-secondary);
  font-size: var(--ofi-font-size-body-compact);
  line-height: var(--ofi-line-height-body-compact);
}

.ofi-fact-band--guide .ofi-fact-band__item {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: center;
  justify-content: flex-start;
  min-height: 15rem;
  text-align: center;
}

.ofi-fact-band--guide .ofi-fact-band__icon {
  display: grid;
  place-items: center;
  width: 5.75rem;
  height: 5.75rem;
  color: var(--ofi-color-text-primary);
}

.ofi-fact-band--guide .ofi-fact-band__icon svg {
  width: 4.5rem;
  height: 4.5rem;
}

.ofi-fact-band--guide .ofi-fact-band__item > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ofi-fact-band--guide .ofi-fact-band__value {
  max-width: 18ch;
  margin-bottom: .45rem;
  font-size: var(--ofi-font-size-heading-medium-compact);
  line-height: var(--ofi-line-height-heading-medium-compact);
}

.ofi-fact-band--guide .ofi-fact-band__description {
  max-width: 27ch;
}

.ofi-fact-band--compact {
  --ofi-fact-band-color-border: rgba(35, 33, 31, .16);
  --ofi-fact-band-color-value: #405846;

  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--ofi-fact-band-color-border);
  border-bottom: 1px solid var(--ofi-fact-band-color-border);
}

.ofi-fact-band--compact .ofi-fact-band__item {
  display: grid;
  grid-template-columns: minmax(8rem, .55fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 1.25rem;
}

.ofi-fact-band--compact .ofi-fact-band__item + .ofi-fact-band__item {
  border-left: 1px solid var(--ofi-fact-band-color-border);
}

.ofi-fact-band--compact .ofi-fact-band__value {
  color: var(--ofi-fact-band-color-value);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-medium);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: 1;
  letter-spacing: -.03em;
}

.ofi-fact-band--compact .ofi-fact-band__description {
  color: var(--ofi-color-text-secondary);
  font-size: .86rem;
  line-height: 1.55;
}

.ofi-fact-band--flush {
  margin-top: 0;
}

@media (max-width: 1100px) {
  .ofi-fact-band--four {
    --ofi-fact-band-columns: 2;
  }

  .ofi-fact-band--compact .ofi-fact-band__item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .ofi-fact-band--large.ofi-fact-band--three {
    --ofi-fact-band-columns: 1;
  }
}

@media (max-width: 680px) {
  .ofi-fact-band--compact {
    --ofi-fact-band-columns: 1;
  }

  .ofi-fact-band--compact .ofi-fact-band__item + .ofi-fact-band__item {
    border-top: 1px solid var(--ofi-fact-band-color-border);
    border-left: 0;
  }
}

@media (max-width: 620px) {
  .ofi-fact-band--large.ofi-fact-band--four {
    --ofi-fact-band-columns: 1;
  }
}

.ofi-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.ofi-split-cta h2 {
    margin-bottom: 1.5rem;
    font-family: var(--ofi-font-family-heading);
    font-weight: var(--ofi-font-weight-heading-heavy);
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.4;
    color: var(--ofi-color-text-primary);
}

.ofi-split-cta h2 span {
  color: var(--ofi-color-brand-orange);
}

.ofi-threat-list li {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--ofi-color-border-default);
  color: var(--ofi-color-text-secondary);
  font-family: var(--ofi-font-family-heading);
  font-size: 1.15rem;
}

.ofi-threat-list li:last-child {
  border-bottom: 0;
}


.ofi-threat-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--ofi-color-brand-orange);
  transform: translateY(-50%);
}

.ofi-threat-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--ofi-color-brand-orange);
  border-right: 2px solid var(--ofi-color-brand-orange);
  transform: translateY(-50%) rotate(45deg);
}
/* ── Sub Intro ─────────────────────────────────────────────── */
.ofi-sub-intro {
  padding: 8rem 0 3rem;
  background: var(--ofi-color-surface-white);
}

.ofi-sub-intro__inner {
  display: grid;
  grid-template-columns: 2.5fr 2fr;
  gap: 4rem;
  align-items: center;
}

.ofi-container.ofi-sub-intro__inner {
  position: relative;
}

.ofi-sub-intro__image {
  position: absolute;
  top: 0px;
  right: 186px;
}

.ofi-sub-intro__heading {
  font-size: var(--ofi-font-size-section-title);
}

.ofi-sub-intro__heading::after {
  content: "";
  display: block;
  width: 288px;
  height: 2px;
  background: var(--ofi-color-border-default);
  margin-top: .5rem;
}

.ofi-sub-intro__img {
  width: 100%;
  max-height: 463px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: none;
  transition: transform .4s ease, box-shadow .4s ease;
}

.ofi-sub-intro__img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .14), 0 0 12px rgba(0, 0, 0, .08);
}

/* ── How To Help ───────────────────────────────────────────── */
.ofi-how-to-help {
  padding: 3rem 0 3rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.ofi-how-to-help__leaf,
.ofi-OOTM__leaf {
  position: absolute;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.ofi-how-to-help__leaf {
  top: -5rem;
  right: 0;
  width: 19rem;
}

.ofi-OOTM__leaf {
  top: -4rem;
  right: -7rem;
  width: 17rem;
}

.ofi-how-to-help__leaf img,
.ofi-OOTM__leaf img {
  width: 100%;
  object-fit: contain;
}

.ofi-how-to-help__heading {
  margin-bottom: 1.5rem;
}

.ofi-how-to-help__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ofi-help-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
}

.ofi-help-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20%;
  z-index: 1;
  pointer-events: none;
  transition: height .4s ease;
}

.ofi-help-card:hover::before {
  height: 55%;
}

.ofi-help-card:nth-child(1)::before { background: linear-gradient(to top, #898989 0%, rgba(137, 137, 137, .75) 50%, rgba(137, 137, 137, 0) 100%); }
.ofi-help-card:nth-child(2)::before { background: linear-gradient(to top, #859C88 0%, rgba(133, 156, 136, .75) 50%, rgba(133, 156, 136, 0) 100%); }
.ofi-help-card:nth-child(3)::before { background: linear-gradient(to top, #C49E85 0%, rgba(196, 158, 133, .75) 50%, rgba(196, 158, 133, 0) 100%); }
.ofi-help-card:nth-child(4)::before { background: linear-gradient(to top, #DB793C 0%, rgba(219, 121, 60, .75) 50%, rgba(219, 121, 60, 0) 100%); }

.ofi-help-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.ofi-help-card:hover .ofi-help-card__img {
  transform: scale(1.02);
}

.ofi-help-card__ribbon,
.ofi-help-card__label {
  position: absolute;
  z-index: 2;
}

.ofi-help-card__ribbon {
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
}

.ofi-help-card__ribbon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ofi-help-card__label {
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--ofi-font-family-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: #fff;
  transition: color .5s ease-in-out;
}

.ofi-help-card__label:hover,
span.ofi-help-card__label:hover {
  color: #dcdcdc;
}

/* ── Donate Section ────────────────────────────────────────── */
.ofi-donate-section {
    padding: 5rem 0;
    background: var(--ofi-color-surface-light);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.ofi-donate-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  z-index: 1;
}

.ofi-donate-section__leaf {
  position: absolute;
  left: 35px;
  top: -34%;
  width: 26rem;
  pointer-events: none;
  transform: rotate(-1deg);
  z-index: -2;
}

.ofi-donate-section__leaf img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left;
}

.ofi-donate-section__heading {
  font-family: var(--ofi-font-family-heading);
  font-weight: var(--ofi-font-weight-heading-heavy);
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.4;
  color: var(--ofi-color-text-primary);
}

.ofi-donate-section__heading-block {
  display: block;
}

.ofi-donate-section__accent {
  color: var(--ofi-color-brand-orange);
}

.ofi-donate-panel {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--ofi-color-border-default);
  padding: 2rem;
}

.ofi-donate-form__label {
  font-family: var(--ofi-font-family-body);
  font-size: .875rem;
  color: var(--ofi-color-text-secondary);
  margin-bottom: .5rem;
}

.ofi-donate-form__toggle {
  display: flex;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.ofi-toggle-btn,
.ofi-amount-btn {
  border: 2px solid var(--ofi-color-border-default);
  font-family: var(--ofi-font-family-body);
  font-weight: 600;
  font-size: .875rem;
  color: var(--ofi-color-text-secondary);
  background: transparent;
  transition: all .2s;
  border-radius: 2px;
}

.ofi-toggle-btn {
  flex: 1;
  padding: .625rem;
}

.ofi-amount-btn {
  padding: .75rem .5rem;
}

.ofi-toggle-btn:hover,
.ofi-amount-btn:hover {
  border-color: var(--ofi-color-brand-orange);
}

.ofi-toggle-btn--active,
.ofi-amount-btn--active {
  background: var(--ofi-color-brand-orange);
  border-color: var(--ofi-color-brand-orange);
  color: #fff;
}

.ofi-donate-form__amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: .75rem;
}

.ofi-donate-form__custom {
  width: 100%;
  border: 2px dashed var(--ofi-color-border-default);
  padding: .625rem 1rem;
  font-family: var(--ofi-font-family-body);
  font-size: .875rem;
  color: var(--ofi-color-text-secondary);
  background: transparent;
  margin-bottom: 1.25rem;
  outline: none;
  transition: border-color .2s;
  border-radius: 2px;
}

.ofi-donate-form__custom:focus {
  border-color: var(--ofi-color-brand-orange);
}

.ofi-donate-form__custom::placeholder {
  color: #bbb;
}

.ofi-donate-form__small {
  font-family: var(--ofi-font-family-body);
  font-size: .75rem;
  color: #aaa;
  text-align: center;
}

/* orangutan facts */

.ofi-orangutan-facts {
  width: 100%;
}

.ofi-orangutan-facts > .ofi-section-head,
.ofi-orangutan-facts__layout {
  margin-inline: auto;
}

.ofi-orangutan-facts__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ofi-inline-image {
    height: 370px;
    margin-left: -2rem;
}

.ofi-orangutan-facts__sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ofi-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ofi-info-list__item {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.ofi-info-list__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ofi-info-list dt {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ofi-color-heading-editorial);
}

.ofi-info-list dd {
  margin: 0;
  color: var(--ofi-color-text-editorial);
  line-height: 1.7;
}

.ofi-info-list strong {
  color: var(--ofi-color-heading-editorial);
}

.ofi-pullquote {
    margin: 3rem 0;
    padding: 1.75rem 2rem;
    border-left: 4px solid var(--ofi-color-brand-orange);
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
}

@media (max-width: 1000px) {
  .ofi-orangutan-facts__layout {
    grid-template-columns: 1fr;
  }

  .ofi-orangutan-facts__sidebar {
    position: static;
  }
}

@media (max-width: 980px) {
  .ofi-inline-image {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .ofi-inline-image {
    height: clamp(260px, 60vw, 360px);
    margin-block: 2.25rem;
  }

  .ofi-orangutan-facts__sidebar {
    gap: 1rem;
  }
}
/* timeline */
/* ============================================================
   HISTORY TIMELINE
   ============================================================ */

/* ------------------------------------------------------------
   Timeline structure
   ------------------------------------------------------------ */

/* Top and bottom arrows */

/* Up arrow */

/* Down arrow */

/* ------------------------------------------------------------
   Timeline items
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Timeline dots
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Year labels
   ------------------------------------------------------------ */

/* Year appears on opposite side of the timeline */

/* ------------------------------------------------------------
   Text cards
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Card arrows pointing toward the centre
   ------------------------------------------------------------ */

/* Arrow from left card */

/* Arrow from right card */

/* ------------------------------------------------------------
   Timeline images
   ------------------------------------------------------------ */

/* Prevent image items from displaying card arrows */

/* ------------------------------------------------------------
   Tablet
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   Mobile timeline
   ------------------------------------------------------------ */

/* timeline */
/* ============================================================
   HISTORY TIMELINE
   ============================================================ */

.ofi-history-timeline {
  overflow: visible;
}

.ofi-history-timeline > .ofi-section-head,
.ofi-zigzag-timeline {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}


/* ------------------------------------------------------------
   Timeline structure
   ------------------------------------------------------------ */

.ofi-zigzag-timeline {
  margin-top: 5rem;
  padding-block: 1.5rem;

  /* Central vertical line */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .14),
      rgba(0, 0, 0, .14)
    )
    center top / 2px 100% no-repeat;
}


/* Top and bottom arrows */

.ofi-zigzag-timeline::before,
.ofi-zigzag-timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  z-index: 5;
}

/* Up arrow */

.ofi-zigzag-timeline::before {
  top: -13px;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid var(--ofi-color-brand-orange);
}

/* Down arrow */

.ofi-zigzag-timeline::after {
  bottom: -13px;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 13px solid var(--ofi-color-brand-orange);
}


/* ------------------------------------------------------------
   Timeline items
   ------------------------------------------------------------ */

.ofi-zigzag-timeline__item {
  position: relative;
  width: 50%;
  min-height: 250px;
  padding-bottom: 4.5rem;
}

.ofi-zigzag-timeline__item--left {
  left: 0;
  padding-right: 4.5rem;
}

.ofi-zigzag-timeline__item--right {
  left: 50%;
  padding-left: 4.5rem;
}


/* ------------------------------------------------------------
   Timeline dots
   ------------------------------------------------------------ */

.ofi-zigzag-timeline__item::after {
  content: "";
  position: absolute;
  top: 2.6rem;

  width: 22px;
  height: 22px;

  background: #fff;
  border: 5px solid var(--ofi-color-brand-orange);
  border-radius: 50%;

  z-index: 6;
}

.ofi-zigzag-timeline__item--left::after {
  right: -11px;
}

.ofi-zigzag-timeline__item--right::after {
  left: -11px;
}


/* ------------------------------------------------------------
   Year labels
   ------------------------------------------------------------ */

.ofi-zigzag-timeline__year {
  position: absolute;
  top: 2.7rem;
  z-index: 7;

  color: var(--ofi-color-brand-orange);
  font-family: var(--ofi-font-family-heading);
  font-size: 1rem;
  font-weight: var(--ofi-font-weight-heading);
  line-height: 1.2;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Year appears on opposite side of the timeline */

.ofi-zigzag-timeline__item--left
.ofi-zigzag-timeline__year {
  right: -8.25rem;
  text-align: left;
}

.ofi-zigzag-timeline__item--right
.ofi-zigzag-timeline__year {
  left: -8.25rem;
  text-align: right;
}


/* ------------------------------------------------------------
   Text cards
   ------------------------------------------------------------ */

.ofi-zigzag-timeline__content {
  position: relative;
  z-index: 2;

  padding: 2.25rem;

  background: #fff;
  border: 1px solid var(--ofi-color-border-default);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .025);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.ofi-zigzag-timeline__content:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .07);
}

.ofi-zigzag-timeline__content .ofi-kicker {
  margin-bottom: 1rem;
}



.ofi-zigzag-timeline__content p {
  margin: 0;

  color: var(--ofi-color-text-editorial);
  font-size: 1.025rem;
  line-height: 1.75;
}


/* ------------------------------------------------------------
   Card arrows pointing toward the centre
   ------------------------------------------------------------ */

.ofi-zigzag-timeline__item--left
.ofi-zigzag-timeline__content::before,
.ofi-zigzag-timeline__item--right
.ofi-zigzag-timeline__content::before {
  content: "";
  position: absolute;
  top: 2.25rem;

  width: 20px;
  height: 20px;

  background: #fff;
  transform: rotate(45deg);
  z-index: -1;
}

/* Arrow from left card */

.ofi-zigzag-timeline__item--left
.ofi-zigzag-timeline__content::before {
  right: -11px;

  border-top: 1px solid var(--ofi-color-border-default);
  border-right: 1px solid var(--ofi-color-border-default);
}

/* Arrow from right card */

.ofi-zigzag-timeline__item--right
.ofi-zigzag-timeline__content::before {
  left: -11px;

  border-bottom: 1px solid var(--ofi-color-border-default);
  border-left: 1px solid var(--ofi-color-border-default);
}


/* ------------------------------------------------------------
   Timeline images
   ------------------------------------------------------------ */

.ofi-zigzag-timeline__image {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 300px;

  overflow: hidden;
  background: #ebe8e2;
  border: 1px solid var(--ofi-color-border-default);
  border-radius: 3px;

  box-shadow: 0 16px 40px rgba(0, 0, 0, .06);
}

.ofi-zigzag-timeline__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform .6s ease;
}

.ofi-zigzag-timeline__image:hover img {
  transform: scale(1.035);
}


/* Prevent image items from displaying card arrows */

.ofi-zigzag-timeline__item--image
.ofi-zigzag-timeline__image::before,
.ofi-zigzag-timeline__item--image
.ofi-zigzag-timeline__image::after {
  display: none;
}


/* ------------------------------------------------------------
   Tablet
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .ofi-zigzag-timeline__item--left {
    padding-right: 3.5rem;
  }

  .ofi-zigzag-timeline__item--right {
    padding-left: 3.5rem;
  }

  .ofi-zigzag-timeline__content {
    padding: 1.75rem;
  }

  .ofi-zigzag-timeline__image {
    height: 260px;
  }

  .ofi-zigzag-timeline__item--left
  .ofi-zigzag-timeline__year {
    right: -7rem;
  }

  .ofi-zigzag-timeline__item--right
  .ofi-zigzag-timeline__year {
    left: -7rem;
  }
}


/* ------------------------------------------------------------
   Mobile timeline
   ------------------------------------------------------------ */

@media (max-width: 700px) {
  .ofi-history-timeline {
    padding: 4rem 0;
  }

  .ofi-zigzag-timeline {
    margin-top: 3rem;
    padding-block: 1rem;

    background-position: 20px top;
  }

  .ofi-zigzag-timeline::before,
  .ofi-zigzag-timeline::after {
    left: 20px;
  }

  .ofi-zigzag-timeline__item,
  .ofi-zigzag-timeline__item--left,
  .ofi-zigzag-timeline__item--right {
    left: 0;
    width: 100%;
    min-height: 0;

    padding:
      2.75rem
      0
      3.5rem
      4rem;
  }

  .ofi-zigzag-timeline__item::after,
  .ofi-zigzag-timeline__item--left::after,
  .ofi-zigzag-timeline__item--right::after {
    top: 2.9rem;
    left: 9px;
    right: auto;
  }

  .ofi-zigzag-timeline__year,
  .ofi-zigzag-timeline__item--left
  .ofi-zigzag-timeline__year,
  .ofi-zigzag-timeline__item--right
  .ofi-zigzag-timeline__year {
    top: .35rem;
    left: 4rem;
    right: auto;

    text-align: left;
  }

  .ofi-zigzag-timeline__item--left
  .ofi-zigzag-timeline__content::before,
  .ofi-zigzag-timeline__item--right
  .ofi-zigzag-timeline__content::before {
    top: 2rem;
    left: -11px;
    right: auto;

    border: 0;
    border-bottom: 1px solid var(--ofi-color-border-default);
    border-left: 1px solid var(--ofi-color-border-default);
  }

  .ofi-zigzag-timeline__content {
    padding: 1.5rem;
  }

  .ofi-zigzag-timeline__image {
    height: 230px;
  }
}

/* ── OOTM ──────────────────────────────────────────────────── */
.ofi-ootm {
  padding: 3rem 0 3rem;
  background: var(--ofi-color-surface-white);
}

.ofi-ootm__heading {
  margin-bottom: 1.5rem;
}

.ofi-ootm__slider,
.ofi-ootm__image {
  position: relative;
  overflow: hidden;
}

.ofi-ootm__slide {
  display: none;
  opacity: 0;
}

.ofi-ootm__slide.is-active {
  display: block;
  opacity: 1;
  animation: ootmFadeIn .45s ease;
}

.ofi-ootm__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.ofi-ootm__image-link {
  display: block;
  overflow: hidden;
}

.ofi-ootm__img {
  width: 100%;
  aspect-ratio: 1024 / 750;
  object-fit: cover;
  border: 1px solid var(--ofi-color-border-default);
  transition: transform .6s ease;
}

.ofi-ootm__image-link:hover .ofi-ootm__img {
  transform: scale(1.04);
}

.ofi-ootm__date {
  font-family: var(--ofi-font-family-heading);
  font-weight: var(--ofi-font-weight-heading-heavy);
  font-size: 1.2rem;
  color: var(--ofi-color-text-secondary);
}

.ofi-ootm__name {
  font-family: var(--ofi-font-family-heading);
  font-weight: var(--ofi-font-weight-heading-heavy);
  font-size: 2.75rem;
  color: var(--ofi-color-brand-orange);
  line-height: 1.1;
}

.ofi-ootm__excerpt {
  font-size: 1rem;
  line-height: 1.875;
  color: #070707;
}

.ofi-ootm__content {
  --ofi-typography-gap-subheading-body: 1.5rem;

  padding: 15px 0;
}

.ofi-ootm__pagination {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
  padding: 1rem 0 1rem 1.25rem;
  z-index: 5;
  border-top: 2px solid var(--ofi-color-border-default);
  border-left: 2px solid var(--ofi-color-border-default);
}

.ofi-ootm__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.ofi-ootm__button {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ofi-color-text-secondary);
  border-radius: 50%;
  background: #fff;
  color: var(--ofi-color-text-secondary);
}

.ofi-ootm__button:hover,
.ofi-ootm__button.current {
  border-color: var(--ofi-color-brand-orange);
  color: var(--ofi-color-brand-orange);
}

.ofi-ootm__slide.is-active .ofi-ootm__img {
  animation: ootmImage 1s ease forwards;
}

.ofi-ootm__slide.is-active .ofi-ootm__content {
  animation: ootmContent .6s ease forwards;
}

/* ── News ──────────────────────────────────────────────────── */
.ofi-news {
  padding: 3rem 0 3rem;
  background: var(--ofi-color-surface-white);
}

.ofi-news__header,
.ofi-impact__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ofi-news__header {
  margin-bottom: 1.5rem;
}

.ofi-news__view-all,
.ofi-impact__view-all {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-family: var(--ofi-font-family-body);
  font-weight: 700;
  font-size: 1.325rem;
  color: var(--ofi-color-brand-brown-muted);
  transition: color .15s;
}

.ofi-news__view-all:hover,
.ofi-impact__view-all:hover {
  color: var(--ofi-color-brand-orange);
}

.ofi-news__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}


.ofi-news__empty {
  color: var(--ofi-color-text-muted);
}

.ofi-news__pagination {
  display: none;
}

/* ── Impact ────────────────────────────────────────────────── */
.ofi-impact {
  padding: 3rem 0 3rem;
  background: var(--ofi-color-surface-white);
}

.ofi-impact__heading {
  margin-bottom: 0;
}

.ofi-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.ofi-impact-card {
  text-align: center;
  transition: transform .5s ease;
}

.ofi-impact-card:hover {
  transform: translateY(-2px);
}

.ofi-impact-card__icon {
  width: 14rem;
  height: 14rem;
  margin: 0 auto 1rem;
}

.ofi-impact-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.8);
  scale: .8;
  transition: transform .5s ease;
}

.ofi-impact-card:hover .ofi-impact-card__icon img {
  transform: scale(1.03);
}

.ofi-impact-card__number {
  font-family: var(--ofi-font-family-heading);
  font-weight: var(--ofi-font-weight-heading-heavy);
  font-size: 2rem;
  color: var(--ofi-color-brand-orange-bright);
  line-height: 1;
}

.ofi-impact-card__label {
  font-family: var(--ofi-font-family-body);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ofi-color-text-primary);
  margin-top: .5rem;
  line-height: 1.4;
}

/* ── Newsletter ────────────────────────────────────────────── */
.ofi-newsletter {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.ofi-newsletter__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, .68) 0%,
    rgba(0, 0, 0, .55) 40%,
    rgba(0, 0, 0, .3) 70%,
    rgba(0, 0, 0, .15) 100%
  );
}

.ofi-newsletter__inner {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.ofi-newsletter__phonetic p {
  font-family: var(--ofi-font-family-body);
  font-weight: 800;
  font-size: 1.75rem;
  color: #fff;
  line-height: 1.3;
}

.ofi-newsletter__form {
  flex-shrink: 0;
}

.ofi-newsletter__fields {
  display: flex;
  overflow: hidden;
  background: #fff;
  border-radius: 3px;
}

.ofi-newsletter__input {
  border: 1px solid var(--ofi-color-action-primary);
  background: transparent;
  font-family: var(--ofi-font-family-body);
  font-size: .9375rem;
  color: var(--ofi-color-text-primary);
  padding: 0 1.25rem;
  height: 54px;
  width: 300px;
  outline: none;
}

.ofi-newsletter__input::placeholder {
  color: var(--ofi-color-text-muted);
}

.ofi-newsletter__btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--ofi-color-action-primary);
  color: #fff;
  font-family: var(--ofi-font-family-body);
  font-size: .9375rem;
  font-weight: 600;
  padding: 0 1.5rem;
  height: 54px;
  transition: background .2s;
  white-space: nowrap;
}

.ofi-newsletter__btn:hover {
  background: var(--ofi-color-brand-orange);
}

p.ofi-newsletter-subtext {
  margin-top: .5rem;
  color: rgb(255 248 248 / 71%);
  font-size: .8125rem;
  text-align: right;
}

.ofi-newsletter__success {
  margin-top: .5rem;
  color: rgba(255, 255, 255, .8);
  font-size: .875rem;
  text-align: right;
}

p.ofi-newletter-sub {
  font-size: .9rem;
  font-weight: 500;
}

/* ── Footer ────────────────────────────────────────────────── */
.ofi-footer {
  background: var(--ofi-color-surface-footer);
  color: var(--ofi-color-text-muted);
  border: 1px solid var(--ofi-color-border-default);
}

.ofi-footer__col.ofi-footer__col--badge strong {
    font-size: large;
}

.ofi-footer__social {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ofi-color-border-default);
}

.ofi-footer__social-link {
  color: #6f6f6f;
  transition: color .15s;
}

.ofi-footer__social-link:hover,
.ofi-footer__list li a:hover {
  color: var(--ofi-color-brand-orange);
}

.ofi-footer__social-link svg {
  width: 23px;
  height: 29px;
}

.ofi-footer__nav {
  padding: 3rem var(--ofi-layout-container-padding-inline);
  gap: 2.5rem;
}

.ofi-footer__col-title {
  font-family: var(--ofi-font-family-heading);
  font-weight: var(--ofi-font-weight-heading-heavy);
  font-size: 1.1rem;
  color: var(--ofi-color-text-secondary);
  margin-bottom: .75rem;
}

.ofi-footer__divider {
  border: 0;
  border-top: 1px solid rgba(132, 132, 132, .3);
  margin-bottom: 1rem;
}

.ofi-footer__list li,
.ofi-footer__list li a {
  font-family: var(--ofi-font-family-body);
  font-size: 1rem;
  line-height: 35px;
  color: var(--ofi-color-text-muted);
}

.ofi-footer__list a {
  transition: color .5s ease-in-out;
}

.ofi-footer__list--address li {
  line-height: 1.8;
}

.ofi-footer__bottom {
  border-top: 1px solid var(--ofi-color-border-default);
  padding: 1rem var(--ofi-layout-container-padding-inline);
}

.ofi-footer__copyright {
  font-family: var(--ofi-font-family-body);
  font-size: .75rem;
  color: var(--ofi-color-text-muted);
}
/* ── Inner Pages / Blog ────────────────────────────────────── */
#people .ofi-feature-card {
    margin-top: 2rem;
}

/* Shared data-table foundation. Visual treatment lives in modifiers. */
.ofi-table {
    width: 100%;
    border-collapse: collapse;
}

.ofi-table--facts {
    margin-top: 2rem;
    font-size: .95rem;
}

.ofi-table--facts tr {
    border-bottom: 1px solid var(--ofi-color-border-default);
}

.ofi-table--facts tr:first-child {
    border-top: 1px solid var(--ofi-color-border-default);
}

.ofi-table--facts th,
.ofi-table--facts td {
    padding: 1rem 0;
    vertical-align: top;
}

.ofi-table--facts th {
    width: 30%;
    color: var(--ofi-color-heading-editorial);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -.035em;
    text-align: left;
}

.ofi-table--facts td {
    color: var(--ofi-color-text-primary);
}

.ofi-table--facts em {
    font-style: italic;
}

.ofi-table--facts th:nth-child(2) {
    font-size:2rem;
    font-weight: 800;
}

@media (max-width: 700px) {
  .ofi-table--facts {
    table-layout: fixed;
    font-size: .88rem;
  }

  .ofi-table--facts th {
    width: 34%;
    padding-right: .7rem;
    font-size: .9rem;
  }

  .ofi-table--facts td {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
/* ── Animations ────────────────────────────────────────────── */
@keyframes ootmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ootmImage {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes ootmContent {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* threats page */

/* old might not need it */

/* donation page */ 

.ofi-donate-intro {
  align-items: flex-start;
}

.ofi-donate-form {
  flex: 1.2;
  min-width: 0;
}

.ofi-donate-intro .ofi-feature-card {
  flex: .8;
}

.ofi-donate-intro .ofi-feature-card h2 {
  margin-bottom: 1rem;
}

.ofi-donate-intro .ofi-threat-list {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .ofi-donate-intro {
    flex-direction: column;
  }

  .ofi-donate-form,
  .ofi-donate-intro .ofi-feature-card {
    width: 100%;
  }
}

/* images in the wordpress page */

.ofi-work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ofi-inline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  #ofi-header,
  #ofi-header.is-sticky {
    position: absolute !important;
    top: 0 !important;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .ofi-nav {
    justify-content: flex-end;
    padding: 0 1rem;
      box-shadow: 0 6px 20px rgba(0,0,0,.06);
    }

  .ofi-nav__group,
  .ofi-header.is-sticky .ofi-nav__group {
    display: none;
  }

  .ofi-nav__hamburger {
    display: flex;
  }

  .menu-item-logo,
  .ofi-header.is-sticky .menu-item-logo {
    margin-right: auto;
  }

  .ofi-header.is-sticky .ofi-nav__menu {
    display: flex;
  }

  .ofi-header.is-sticky .menu-item-logo img {
    height: 82px;
    margin-top: 20px;
  }

  .ofi-sub-intro__image,
  .ofi-how-to-help__leaf,
  .ofi-OOTM__leaf {
    display: none;
  }
}

@media (max-width: 1024px) {
  .ofi-how-to-help__grid,
  .ofi-news__grid,
  .ofi-impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ofi-footer__nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .ofi-work-intro,
  .ofi-work-pillars__grid,
  .ofi-split-cta__inner,
  .ofi-card-grid {
    grid-template-columns: 1fr;
  }
  
}

@media (max-width: 800px) {
  .floating-stats {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: calc(100% - 30px);
    margin: -80px auto 0;
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid #e5e0d8;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid #e5e0d8;
  }
}

@media (max-width: 768px) {
  .ofi-sub-intro__inner,
  .ofi-donate-section__inner,
  .ofi-ootm__inner,
  .ofi-blog-archive__grid {
    grid-template-columns: 1fr;
  }

  .ofi-newsletter__inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .ofi-newsletter__input,
  .ofi-newsletter__fields {
    width: 100%;
  }

  p.ofi-newsletter-subtext,
  .ofi-newsletter__success {
    text-align: center;
  }

  .ofi-footer__nav {
    grid-template-columns: 1fr;
  }
  .ofi-hero__content {
    display: none;
}
  
  
}

@media (max-width: 500px) {
  .floating-stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(odd) {
    border-right: 0;
  }
  .ofi-sub-intro {
    padding: 8rem 0 3rem;
    background: var(--ofi-color-surface-white);
}
}

@media (max-width: 480px) {
  .ofi-how-to-help__grid,
  .ofi-news__grid,
  .ofi-impact__grid {
    grid-template-columns: 1fr;
  }

  .ofi-impact__grid {
    gap: 2rem;
  }

  .ofi-hero__content {
    left: 1.5rem;
  }

  .ofi-impact-card__icon {
    width: 20rem;
    height: 20rem;
  }
}/*==================================================
Below Hero Card
==================================================*/

.ofi-hero-facts {
    background: #fff;
    border: 1px solid var(--ofi-color-border-default);
    border-radius: 4px;
    overflow: hidden;
    z-index: 30;
}

.ofi-hero-facts__item{
    display:flex;
    align-items:center;
    gap:1rem;

    padding:1.35rem 1.5rem;
}

.ofi-hero-facts__divider{
    height:1px;
    background:var(--ofi-color-border-default);
    margin-inline:auto;
}

.ofi-hero-facts__icon{
    width:52px;
    height:52px;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:1.5rem;

    color:var(--ofi-color-brand-orange);

    border-radius:50%;
    background:#faf7f3;

    flex-shrink:0;
}

.ofi-hero-facts__status {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ofi-color-surface-light);
    color: var(--ofi-color-action-primary);
    font-family: var(--ofi-font-family-heading);
    font-size: .95rem;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 0;
}

.ofi-hero-facts__content{
    display:flex;
    flex-direction:column;
    gap:.2rem;
}

.ofi-hero-facts__label{
    font-size:.68rem;
    font-weight:800;
    letter-spacing:.12em;
    text-transform:uppercase;

    color:var(--ofi-color-brand-orange);
}

.ofi-hero-facts__content strong{
    font-size:1rem;
    line-height:1.3;

    color:var(--ofi-color-text-secondary);

    font-weight:700;
}

/* Mobile */

@media (max-width:900px){

    .ofi-hero-facts{

        position:relative;

        right:auto;
        bottom:auto;

        width:100%;
        margin:2rem auto 0;
    }

}

/* total donations */

.migla-panel-heading{ padding-top: 30px;
}

@media (max-width: 700px) {
  .ofi-hero-facts__item {
    gap: .8rem;
    padding: 1rem;
  }

  .ofi-hero-facts__icon,
  .ofi-hero-facts__status {
    width: 44px;
    height: 44px;
  }
}
/* orangutan facts card image */

.ofi-facts-intro__visual {
  position: relative;
  padding: 0 0 4rem 3rem;
}

.ofi-facts-intro__image {
  height: clamp(430px, 48vw, 590px);
  overflow: hidden;
}

.ofi-facts-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ofi-stat-note {
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(390px, 86%);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.55rem 1.7rem;
    background: #fff;
    border: 1px solid var(--ofi-color-border-soft);
  /*  box-shadow: 0 5px 28px rgba(0, 0, 0, .04); */
}

.ofi-stat-note__value {
  color: var(--ofi-color-brand-orange);
  font-family: var(--ofi-font-family-heading);
  font-size: 2.5rem;
  line-height: 1;
}

.ofi-stat-note p {
  margin: 0;
  color: #555;
  font-size: .9rem;
  line-height: 1.55;
}

/* ---------- Species cards ---------------------------------- */
.ofi-facts-species {
  width: 100%;
  margin: 0 auto;
 /* padding: clamp(5rem, 9vw, 8.5rem) 0; */
  /* background: var(--ofi-color-surface-light); */
}

.ofi-section-summary {
    color: var(--ofi-color-text-secondary);
    border-left: 2px solid var(--ofi-color-accent-editorial);
    padding-left: var(--ofi-typography-gap-flow);
    font-size: 1rem;
    margin: .55rem 0 0;
}

.ofi-facts-species__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.ofi-facts-species-card {
  background: #fff;
  border: 1px solid var(--ofi-color-border-soft);
}

.ofi-facts-species-card__image {
  position: relative;
  height: 330px;
  overflow: hidden;
  background: #ffffff;
  /* padding: 20px; */
}

.ofi-facts-species-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to top, rgba(0, 0, 0, .28), transparent 50%); */
}

.ofi-facts-species-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ofi-facts-species-card__number {
    position: absolute;
    z-index: 2;
    left: 1.45rem;
    bottom: -0.7rem;
    color: white;
    font-family: var(--ofi-font-family-heading);
    font-size: 2.8rem;
    line-height: 1;
}

.ofi-facts-species-card__body {
  padding: 1.8rem;
}

/* Species names sit directly above their scientific names. */
.ofi-facts-species-card h3 {
  margin-bottom: 0;
}

.ofi-facts-species-card__scientific {
  margin-bottom: 1.3rem;
  color: #777;
  font-size: .92rem;
  margin-top: 0rem !important;
  line-height: 1.7;
}

.ofi-facts-species-card__body > p:not(.ofi-facts-species-card__scientific) {
  margin-bottom: 1.25rem;
  font-size: .95rem;
  line-height: 1.7;
}

.ofi-facts-species-card__status {
  display: inline-block;
  padding-top: .8rem;
  border-top: 1px solid var(--ofi-color-border-soft);
  color: #b93a32;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .ofi-facts-species__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ofi-facts-species__grid > :last-child {
    grid-column: 1 / -1;
    width: min(100%, 34rem);
    justify-self: center;
  }

  .ofi-facts-intro__visual {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  .ofi-facts-intro__visual {
    padding: 0;
  }

  .ofi-facts-intro__image {
    height: clamp(300px, 70vw, 430px);
  }

  .ofi-stat-note {
    position: static;
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .ofi-facts-species__grid {
    grid-template-columns: 1fr;
  }

  .ofi-facts-species__grid > :last-child {
    grid-column: auto;
    width: auto;
  }

  .ofi-facts-species-card__image {
    height: clamp(250px, 76vw, 340px);
  }

  .ofi-facts-species-card__body {
    padding: 1.35rem;
  }

  .ofi-stat-note {
    grid-template-columns: auto 1fr;
    gap: .9rem;
    padding: 1.2rem;
  }

  .ofi-stat-note__value {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .ofi-stat-note {
    grid-template-columns: 1fr;
  }
}
/* ── Informed Action Panel ─────────────────────────────────── */

.ofi-guide-list {
    border-top: 1px solid var(--ofi-color-border-default);
}

.ofi-guide-list li {
    border-bottom: 1px solid var(--ofi-color-border-default);
}

.ofi-guide-link {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.ofi-guide-link > span {
    font-family: var(--ofi-font-family-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--ofi-color-brand-orange);
}

.ofi-guide-link strong {
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--ofi-font-family-heading);
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ofi-color-text-primary);
}

.ofi-guide-link small {
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ofi-color-text-secondary);
}

.ofi-guide-link > b {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--ofi-color-brand-orange);
    transition: transform 0.2s ease;
}

.ofi-guide-link:hover {
    color: var(--ofi-color-brand-orange);
    transform: translateX(4px);
}

.ofi-guide-link:hover > b {
    transform: translateX(4px);
}

@media (max-width: 760px) {
    .ofi-guide-link {
        grid-template-columns: 1.75rem minmax(0, 1fr) auto;
        gap: 0.75rem;
    }

    .ofi-guide-link small {
        font-size: 0.85rem;
    }
}

/* ============================================================
   EVERGREEN GUIDE PAGES
============================================================ */

/* On-page navigation */

.ofi-page-nav {
    position: relative;
    z-index: 20;
    width: 100%;
    border-top: 1px solid var(--ofi-color-border-default, #ddd4cf);
    background: #fff;
}

.ofi-page-nav .ofi-container {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: var(--ofi-layout-subnav-height);
}

.ofi-page-nav__label {
    flex: 0 0 auto;
    font-family: var(--ofi-font-family-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ofi-page-nav ul {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.ofi-page-nav ul::-webkit-scrollbar {
    display: none;
}

.ofi-page-nav a {
    display: block;
    padding: 1.35rem 0;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 700;
}

.ofi-page-nav a:hover {
    color: var(--ofi-color-brand-orange);
}

@media (max-width: 900px) {
  .ofi-page-nav .ofi-container {
    gap: 0;
    padding-inline: 1rem;
  }

  .ofi-page-nav ul {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }

  .ofi-page-nav a {
    padding-block: 1rem;
  }
}

@media (max-width: 420px) {
  .ofi-page-nav .ofi-container {
    padding-inline: .75rem;
  }

  .ofi-page-nav ul {
    gap: 1rem;
  }

  .ofi-page-nav a {
    font-size: .82rem;
  }
}
/* Main section system */


.ofi-rail-layout {
    display: grid;
    grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 2fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: start;
}

.ofi-rail-layout > .ofi-section-head p {
    max-width: 46rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ofi-color-text-secondary, #5f5a57);
}

.ofi-rail-layout__content {
    max-width: 47rem;
    color: var(--ofi-color-text-secondary, #5f5a57);
}


@media (max-width: 900px) {
    .ofi-rail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ofi-spacing-xl);
    }

    .ofi-rail-layout__content {
        max-width: none;
    }
}

/* Connected numbered sequence
   Canonical reference: the Palm Oil supply-chain treatment, promoted to a
   shared component and enclosed by a complete outer border. Column-count
   modifiers configure one component-level variable; templates never use
   inline styles for the column count. */

.ofi-sequence {
    --ofi-sequence-columns: 4;

    display: grid;
    grid-template-columns: repeat(var(--ofi-sequence-columns), minmax(0, 1fr));
    list-style: none;
}

.ofi-sequence--three {
    --ofi-sequence-columns: 3;
}

.ofi-sequence--four {
    --ofi-sequence-columns: 4;
}

.ofi-sequence--five {
    --ofi-sequence-columns: 5;
}

.ofi-sequence--connected {
    margin-top: 3rem;
    overflow: hidden;
    border: 1px solid var(--ofi-color-border-default, #ddd4cf);
    background: #fff;
}

.ofi-sequence--flush {
    margin-top: 0;
}

.ofi-sequence__item {
    position: relative;
    min-width: 0;
    min-height: 18rem;
    padding: clamp(1.5rem, 2.5vw, 2rem);
    border-top: 1px solid var(--ofi-color-border-default, #ddd4cf);
    border-left: 1px solid var(--ofi-color-border-default, #ddd4cf);
    background: #fff;
    color: var(--ofi-color-text-secondary, #5f5a57);
}

.ofi-sequence__item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.15rem;
    right: -.42rem;
    z-index: 2;
    width: .78rem;
    height: .78rem;
    border-top: 1px solid var(--ofi-color-border-default, #ddd4cf);
    border-right: 1px solid var(--ofi-color-border-default, #ddd4cf);
    background: #fff;
    transform: rotate(45deg);
}

.ofi-sequence__number {
    display: block;
    margin-bottom: 1.75rem;
    color: var(--ofi-color-brand-orange, #db793c);
    font-family: var(--ofi-font-family-body);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
}

.ofi-sequence__item h3 {
    margin: 0 0 .8rem;
}

.ofi-sequence__item > strong {
    display: block;
    margin-bottom: 1.1rem;
    color: var(--ofi-color-heading-editorial, #3f3f3f);
    font-size: .77rem;
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ofi-sequence__item p {
    margin: 0;
    color: var(--ofi-color-text-secondary, #5f5a57);
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

/* Desktop row boundaries. */
@media (min-width: 1101px) {
    .ofi-sequence--three > .ofi-sequence__item:nth-child(-n + 3),
    .ofi-sequence--four > .ofi-sequence__item:nth-child(-n + 4),
    .ofi-sequence--five > .ofi-sequence__item:nth-child(-n + 5) {
        border-top: 0;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(3n + 1),
    .ofi-sequence--four > .ofi-sequence__item:nth-child(4n + 1),
    .ofi-sequence--five > .ofi-sequence__item:nth-child(5n + 1) {
        border-left: 0;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(3n)::after,
    .ofi-sequence--four > .ofi-sequence__item:nth-child(4n)::after,
    .ofi-sequence--five > .ofi-sequence__item:nth-child(5n)::after,
    .ofi-sequence--connected > .ofi-sequence__item:last-child::after {
        display: none;
    }
}

/* Five-step sequences wrap to three columns before the smaller-count
   variants change at their existing tablet breakpoint. */
@media (min-width: 1001px) and (max-width: 1100px) {
    .ofi-sequence--five {
        --ofi-sequence-columns: 3;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(-n + 3),
    .ofi-sequence--four > .ofi-sequence__item:nth-child(-n + 4),
    .ofi-sequence--five > .ofi-sequence__item:nth-child(-n + 3) {
        border-top: 0;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(3n + 1),
    .ofi-sequence--four > .ofi-sequence__item:nth-child(4n + 1),
    .ofi-sequence--five > .ofi-sequence__item:nth-child(3n + 1) {
        border-left: 0;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(3n)::after,
    .ofi-sequence--four > .ofi-sequence__item:nth-child(4n)::after,
    .ofi-sequence--five > .ofi-sequence__item:nth-child(3n)::after,
    .ofi-sequence--connected > .ofi-sequence__item:last-child::after {
        display: none;
    }
}

@media (min-width: 901px) and (max-width: 1000px) {
    .ofi-sequence--three,
    .ofi-sequence--four {
        --ofi-sequence-columns: 2;
    }

    .ofi-sequence--five {
        --ofi-sequence-columns: 3;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(-n + 2),
    .ofi-sequence--four > .ofi-sequence__item:nth-child(-n + 2),
    .ofi-sequence--five > .ofi-sequence__item:nth-child(-n + 3) {
        border-top: 0;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(2n + 1),
    .ofi-sequence--four > .ofi-sequence__item:nth-child(2n + 1),
    .ofi-sequence--five > .ofi-sequence__item:nth-child(3n + 1) {
        border-left: 0;
    }

    .ofi-sequence--three > .ofi-sequence__item:nth-child(2n)::after,
    .ofi-sequence--four > .ofi-sequence__item:nth-child(2n)::after,
    .ofi-sequence--five > .ofi-sequence__item:nth-child(3n)::after,
    .ofi-sequence--connected > .ofi-sequence__item:last-child::after {
        display: none;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .ofi-sequence {
        --ofi-sequence-columns: 2;
    }

    .ofi-sequence__item:nth-child(-n + 2) {
        border-top: 0;
    }

    .ofi-sequence__item:nth-child(2n + 1) {
        border-left: 0;
    }

    .ofi-sequence__item:nth-child(2n)::after,
    .ofi-sequence__item:last-child::after {
        display: none;
    }
}

@media (max-width: 700px) {
    .ofi-sequence {
        --ofi-sequence-columns: 1;
    }

    .ofi-sequence__item {
        min-height: 0;
        border-left: 0;
    }

    .ofi-sequence__item:first-child {
        border-top: 0;
    }

    .ofi-sequence__item::after {
        display: none !important;
    }

    .ofi-sequence__number {
        margin-bottom: 1.5rem;
    }
}

/* Checklists */

.ofi-checklist {
    display: grid;
    gap: 0.85rem;
    margin: 1.75rem 0 0;
    list-style: none;
}

.ofi-checklist--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ofi-checklist li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
    line-height: 1.55;
}

.ofi-checklist li::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "\2713";
    font-weight: 800;
    color: var(--ofi-color-brand-orange);
}

/* Comparison table */

.ofi-table-wrap {
    margin-top: 3rem;
    overflow-x: auto;
    border: 1px solid var(--ofi-color-border-default, #ddd4cf);
}

.ofi-table--comparison {
    min-width: 58rem;
    background: #fff;
}

.ofi-table--comparison th,
.ofi-table--comparison td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--ofi-color-border-default, #ddd4cf);
    text-align: left;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.55;
}

.ofi-table--comparison thead th {
    background: var(--ofi-color-text-primary, #1f1d1c);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
} 

.ofi-table--comparison tbody th {
    width: 18%;
} 

/* Numbered questions */

/* Warning cards */

/* Paired comparisons
   One foundation supports separated panels, touching panels, a central
   transition column, and light/dark contrast without page-specific names. */

.ofi-comparison {
    --ofi-comparison-color-line: rgba(35, 33, 31, .16);
    --ofi-comparison-color-green: #6f8c73;
    --ofi-comparison-color-orange: var(--ofi-color-brand-orange);
    --ofi-comparison-color-charcoal: #242321;

    display: grid;
    align-items: stretch;
}

.ofi-comparison--separated {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.ofi-comparison--touching {
    border: 1px solid var(--ofi-comparison-color-line);
    background: var(--ofi-color-surface-white);
}

.ofi-comparison--with-transition {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.ofi-comparison--contrast {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
}

.ofi-comparison__panel {
    padding: clamp(2rem, 4vw, 3.5rem);
    background: var(--ofi-color-surface-white);
}

.ofi-comparison--with-transition .ofi-comparison__panel {
    padding: clamp(2rem, 4vw, 3rem);
}

.ofi-comparison__panel--accent-top {
    border-top: 5px solid var(--ofi-color-brand-orange);
}

.ofi-checklist--crosses li::before {
    content: "\00D7"; 
}

.ofi-comparison__eyebrow {
    display: block;
    color: var(--ofi-comparison-color-orange);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ofi-comparison--with-transition .ofi-comparison__eyebrow {
    margin-bottom: 1.1rem;
}

.ofi-comparison--contrast .ofi-comparison__eyebrow {
    margin-bottom: 1.1rem;
}

.ofi-comparison__panel--orange .ofi-comparison__eyebrow,
.ofi-comparison__panel--dark .ofi-comparison__eyebrow {
    color: var(--ofi-comparison-color-orange);
}

.ofi-comparison--with-transition .ofi-comparison__title,
.ofi-comparison--contrast .ofi-comparison__title {
    margin-bottom: 1.5rem;
    font-size: var(--ofi-font-size-card-title);
}

.ofi-comparison__list li {
    position: relative;
    color: var(--ofi-color-text-secondary);
    font-size: var(--ofi-font-size-body-compact);
    line-height: 1.55;
}

.ofi-comparison--with-transition .ofi-comparison__list li {
    padding: .75rem 0 .75rem 1.35rem;
    border-top: 1px solid var(--ofi-comparison-color-line);
}

.ofi-comparison--with-transition .ofi-comparison__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 7px;
    height: 7px;
    background: var(--ofi-comparison-color-orange);
}

.ofi-comparison--with-transition .ofi-comparison__panel--green li::before {
    border-radius: 50%;
}

.ofi-comparison--with-transition .ofi-comparison__panel--orange li::before {
    background: var(--ofi-comparison-color-orange);
    transform: rotate(45deg);
}

.ofi-comparison__transition {
    display: grid;
    place-items: center;
    width: 5.5rem;
    border-right: 1px solid var(--ofi-comparison-color-line);
    border-left: 1px solid var(--ofi-comparison-color-line);
    background: var(--ofi-color-surface-light);
}

.ofi-comparison__transition span {
    color: var(--ofi-color-heading-editorial);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-transform: uppercase;
}

.ofi-comparison__panel--warm {
    background: var(--ofi-color-surface-warm);
}

.ofi-comparison__panel--dark {
    color: var(--ofi-color-surface-white);
    background: var(--ofi-color-heading-editorial);
}

.ofi-comparison__panel--dark .ofi-comparison__title {
    color: var(--ofi-color-surface-white);
}

.ofi-comparison--contrast .ofi-comparison__list li {
    padding: .9rem 0 .9rem 1.5rem;
    border-top: 1px solid var(--ofi-comparison-color-line);
}

.ofi-comparison--contrast .ofi-comparison__list li::before {
    content: "\002B";
    position: absolute;
    left: 0;
    top: .83rem;
    color: var(--ofi-comparison-color-green);
    font-weight: 900;
}

.ofi-comparison--contrast .ofi-comparison__panel--dark li {
    border-top-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .78);
}

.ofi-comparison--contrast .ofi-comparison__panel--dark li::before {
    content: "\2212";
    color: var(--ofi-comparison-color-orange);
}
/* Notes */

/* FAQ */

/* Sources */

.ofi-sources {
    border-top: 1px solid var(--ofi-color-border-default, #ddd4cf);
}

.ofi-sources__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
    gap: 4rem;
}

.ofi-sources__title {
    margin: 0;
    color: var(--ofi-color-heading-editorial);
    font-family: var(--ofi-font-family-heading);
    font-size: var(--ofi-font-size-section-title);
    font-weight: var(--ofi-font-weight-heading-heavy);
    line-height: var(--ofi-line-height-section-heading);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.ofi-sources p {
    max-width: 48rem;
    color: var(--ofi-color-text-secondary, #5f5a57);
}

.ofi-sources li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--ofi-color-border-default, #ddd4cf);
}

.ofi-sources a {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* Responsive */

@media (max-width: 700px) {
    

    

    

    .ofi-page-nav__label {
        display: none;
    }

    

}

    .ofi-guide-list li:last-child a.ofi-guide-link {
    padding-bottom: 0px;
}

    .ofi-guide-list li:last-child{
    border-bottom: none;
}

/* Hide newsletter honeypot from real visitors */
.ofi-newsletter__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.ofi-newsletter__honeypot input,
.ofi-newsletter__honeypot label {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
}

/* ============================================================
   ETHICAL ORANGUTAN TOURISM PAGE
   ============================================================ */

/* ============================================================
   FLOW / BODY-COPY SYSTEM

   Spacing is applied between siblings, never below the final item.
   Text classes own typography; flow wrappers own vertical rhythm.
   ============================================================ */
.ofi-flow {
  --ofi-flow-gap: var(--ofi-typography-gap-flow, 1.25rem);
}

.ofi-flow--compact {
  --ofi-flow-gap: var(--ofi-typography-gap-subheading-body, .75rem);
}

.ofi-flow--section {
  --ofi-flow-gap: var(--ofi-typography-gap-content-section, 3rem);
}

body .ofi-flow > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure, table) {
  margin-block: 0;
}

body .ofi-flow > * + * {
  margin-block-start: var(--ofi-flow-gap);
}

body .ofi-flow > :is(span:first-child, .ofi-kicker) + * {
  margin-block-start: 0;
}

body .ofi-flow > :is(h1, h2) + :is(p, ul, ol, blockquote) {
  margin-block-start: var(--ofi-typography-gap-heading-body, 1.25rem);
}

body .ofi-flow > :is(h3, h4) + :is(p, ul, ol, blockquote) {
  margin-block-start: var(--ofi-typography-gap-subheading-body, .75rem);
}

body .ofi-flow > :is(p, ul, ol, blockquote, figure, table) + :is(h2, h3, h4) {
  margin-block-start: var(--ofi-typography-gap-content-section, 3rem);
}

body .ofi-flow > :is(p, ul, ol) + :is(.ofi-btn, [class$="__actions"]) {
  margin-block-start: var(--ofi-typography-gap-text-action, 1.75rem);
}

body .ofi-flow > p + .ofi-checklist {
  margin-block-start: var(--ofi-typography-gap-text-action, 1.75rem);
}

body .ofi-flow > * + .ofi-callout {
  margin-block-start: clamp(2rem, 4vw, 3rem);
}

body .ofi-flow--article > p:not([class]),
body .ofi-flow--article > .ofi-body {
  line-height: var(--ofi-line-height-body-relaxed, 1.8);
}

body .ofi-flow--article > * + :is(blockquote, figure, .wp-block-image) {
  margin-block-start: var(--ofi-typography-gap-content-section, 3rem);
}

body .ofi-flow--article > :is(blockquote, figure, .wp-block-image) + * {
  margin-block-start: var(--ofi-typography-gap-content-section, 3rem);
}

body .ofi-flow--article > :is(p, ul, ol, blockquote, figure, table) + h2 {
  margin-block-start: 3.75rem;
}

body .ofi-flow--article > :is(p, ul, ol, blockquote, figure, table) + h3 {
  margin-block-start: 3rem;
}

body .ofi-flow--article > :is(p, ul, ol, blockquote, figure, table) + h4 {
  margin-block-start: 2.5rem;
}

/* ============================================================
   LAYOUT AND SPACING SYSTEM — CONSOLIDATED
   ============================================================ */

/* ============================================================
   MODULAR REUSABLE BLOCK SYSTEM — CONSOLIDATED
   ============================================================ */

/* Source: guide-pages.css */
/* ============================================================
   SHARED GUIDE PAGE COMPONENTS
   Used by Ethical Orangutan Tourism, Why Palm Oil Is Bad and
   the practical Palm Oil Guide. The base hero, section, layout,
   card, comparison and source components live in main.css.
   ============================================================ */

.ofi-guide-page {
    overflow: hidden;
    color: var(--ofi-color-text-primary);
    background: var(--ofi-color-surface-white);
}

.ofi-table-wrap--spaced {
    margin-top: 2.5rem;
}

/* Canonical horizontal numbered media cards.
   Reference: Ethical Orangutan Tourism, "What an Ethical Encounter Looks Like". */
.ofi-media-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    margin-top: 3rem;
}

.ofi-media-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    min-height: 20rem;
    overflow: hidden;
    border: 1px solid var(--ofi-color-border-soft);
    background: #fff;
}

.ofi-media-card__image {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

.ofi-media-card__image img {
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
}

.ofi-media-card__image--close img {
    object-position: 79% center;
}

/* Reusable focal-position helpers for cropped media.
   Apply a helper to the image wrapper; centred cropping remains the default. */
.ofi-media-position--top {
    --ofi-media-position: center top;
}

.ofi-media-position--bottom {
    --ofi-media-position: center bottom;
}

.ofi-media-position--left {
    --ofi-media-position: left center;
}

/* Preserve the existing tuned crop used by the Ethical Tourism card. */
.ofi-media-position--right {
    --ofi-media-position: 72% center;
}

.ofi-media-position--top-left {
    --ofi-media-position: left top;
}

.ofi-media-position--top-right {
    --ofi-media-position: right top;
}

:is(
    .ofi-media-position--top,
    .ofi-media-position--bottom,
    .ofi-media-position--left,
    .ofi-media-position--right,
    .ofi-media-position--top-left,
    .ofi-media-position--top-right
) img {
    object-position: var(--ofi-media-position);
}

.ofi-media-card__number {
    position: absolute;
    left: 1.45rem;
    bottom: -.7rem;
    z-index: 2;
    color: #fff;
    font-family: var(--ofi-font-family-heading);
    font-size: 2.8rem;
    line-height: 1;
}

.ofi-media-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--ofi-color-text-secondary);
}
/* just changes the size on the orangutan threats page */

.ofi-threat-detail {
  --ofi-threat-heading-size: clamp(2rem, 2.5vw, 2.75rem);
}

.ofi-threat-detail .ofi-heading-xl-heavy {
  font-size: var(--ofi-threat-heading-size);
}

/* Shared image-and-text split.
   Canonical reference: Orangutan Threats, Habitat Loss. */
.ofi-media-split {
    --ofi-media-color-overlay: var(--ofi-color-overlay-grey);

    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: flex-start;
}

.ofi-media-split__visual,
.ofi-media-split__content {
    min-width: 0;
}

.ofi-media-split--reverse .ofi-media-split__visual {
    order: 2;
}

.ofi-media-split--reverse .ofi-media-split__content {
    order: 1;
}

.ofi-media-split--overlay-grey {
    --ofi-media-color-overlay: var(--ofi-color-overlay-grey);
}

.ofi-media-split--overlay-green {
    --ofi-media-color-overlay: var(--ofi-color-overlay-green);
}

.ofi-media-split--overlay-tan {
    --ofi-media-color-overlay: var(--ofi-color-overlay-tan);
}

.ofi-media-split--overlay-orange {
    --ofi-media-color-overlay: var(--ofi-color-overlay-orange);
}

.ofi-media-split__media {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .08);
    background: #fff;
}

.ofi-media-split__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.ofi-media-split__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    padding: .85rem 1.2rem;
    border-radius: 0;
    background: var(--ofi-media-color-overlay);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ofi-media-split__number {
    display: block;
    margin-bottom: .35rem;
    color: var(--ofi-media-color-overlay);
    opacity: .45;
    font-family: var(--ofi-font-family-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: var(--ofi-font-weight-heading-heavy);
    letter-spacing: -.07em;
    line-height: 1;
}

.ofi-media-split__points {
    margin-top: 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.ofi-media-split__points li {
    position: relative;
    padding: .8rem .5rem .8rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, .12);
    color: var(--ofi-color-text-secondary);
    font-size: var(--ofi-font-size-body-compact);
    font-weight: 600;
    line-height: 1.55;
}

.ofi-media-split__points li::before {
    position: absolute;
    top: 1.08rem;
    left: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--ofi-media-color-overlay);
    border-bottom: 2px solid var(--ofi-media-color-overlay);
    content: "";
    transform: rotate(-45deg);
}

.ofi-media-split__visual > figure + .ofi-callout {
    margin-top: 2rem;
}

.ofi-media-split:not(.ofi-media-split--simple) .ofi-callout {
    grid-template-columns: minmax(8.5rem, .25fr) minmax(0, 1fr);
    border-color: var(--ofi-color-border-soft);
}

.ofi-media-split:not(.ofi-media-split--simple) .ofi-callout__label {
    color: var(--ofi-media-color-overlay);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

/* Simpler use of the same split: caption below the image and no overlay. */
.ofi-media-split--simple .ofi-media-split__content {
    color: var(--ofi-color-text-secondary);
}

.ofi-media-split--simple .ofi-media-split__visual > img,
.ofi-media-split--simple .ofi-media-split__visual > figure > img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
}

.ofi-media-split--simple .ofi-media-split__visual > figcaption,
.ofi-media-split--simple .ofi-media-split__visual > figure > figcaption {
    margin-top: .75rem;
    color: var(--ofi-color-text-muted);
    font-size: .84rem;
    line-height: 1.55;
}

/* Optional simple-split modifier: on wider screens, the text column
   determines the row height and the image is cropped inside that height. */
.ofi-media-split--matched {
    align-items: stretch;
}

@media (min-width: 981px) {
    .ofi-media-split--matched .ofi-media-split__visual {
        position: relative;
        min-height: 0;
        overflow: hidden;
    }

    .ofi-media-split--matched .ofi-media-split__visual > figure {
        position: relative;
        height: 100%;
        overflow: hidden;
    }

    .ofi-media-split--matched .ofi-media-split__visual > img,
    .ofi-media-split--matched .ofi-media-split__visual > figure > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

@media (min-width: 981px) {
    .ofi-media-split:not(.ofi-media-split--simple) {
        align-items: start;
    }

    .ofi-media-split:not(.ofi-media-split--simple) .ofi-media-split__visual {
        align-self: start;
        margin-top: 0;
    }

    .ofi-media-split:not(.ofi-media-split--simple) .ofi-media-split__media img {
        height: 430px;
        aspect-ratio: auto;
    }
}

@media (max-width: 980px) {
    .ofi-media-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ofi-media-split--reverse .ofi-media-split__visual,
    .ofi-media-split--reverse .ofi-media-split__content {
        order: initial;
    }

    .ofi-media-split--matched {
        align-items: flex-start;
    }

    .ofi-media-split--matched .ofi-media-split__visual {
        position: static;
        min-height: 0;
        overflow: visible;
    }

    .ofi-media-split--matched .ofi-media-split__visual > figure {
        position: static;
        height: auto;
        overflow: visible;
    }

    .ofi-media-split--matched .ofi-media-split__visual > img,
    .ofi-media-split--matched .ofi-media-split__visual > figure > img {
        position: static;
        inset: auto;
        width: 100%;
        height: auto;
        max-height: none;
        aspect-ratio: 1.35 / 1;
        object-fit: cover;
    }
}

@media (max-width: 760px) {
    .ofi-media-split:not(.ofi-media-split--simple) .ofi-callout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ofi-media-split__caption {
        padding: .8rem 1rem;
    }
}

/* Shared in-flow callout. Canonical reference: Orangutan Threats,
   Habitat Loss, the “Fragmentation” callout. */
.ofi-callout {
    display: grid;
    grid-template-columns: minmax(5.5rem, .18fr) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--ofi-color-border-soft);
    background: var(--ofi-color-surface-light);
}

.ofi-callout__label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 1.5rem 1rem;
    border-right: 1px solid var(--ofi-color-border-soft);
    background: #faf7f3;
    color: var(--ofi-color-brand-orange);
    font-family: var(--ofi-font-family-heading);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
}

.ofi-callout__body {
    min-width: 0;
    padding: 1.35rem 1.55rem;
    color: var(--ofi-color-text-secondary);
}

/* Optional component-spacing modifiers. These describe visible rhythm and
   are reusable wherever the same composition appears. */

.ofi-media-card-grid--flush {
    margin-top: 0;
}

.ofi-callout--compact-top {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Keep source-image proportions from changing the height of media cards. */
.ofi-media-card__image {
    position: relative;
    min-height: 20rem;
    overflow: hidden;
}

.ofi-media-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
}

@media (max-width: 1000px) {
    .ofi-media-card {
        grid-template-columns: 1fr;
    }

    .ofi-media-card__image {
        min-height: 16rem;
    }
}

@media (max-width: 760px) {
    .ofi-media-card-grid {
        grid-template-columns: 1fr;
    }

    .ofi-callout {
        grid-template-columns: 1fr;
    }

    .ofi-callout__label {
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        border-right: 0;
        border-bottom: 1px solid var(--ofi-color-border-soft);
    }

    .ofi-callout__body {
        padding: 1.25rem;
    }
}
/* Source: orangutan-map.css */
/* ==========================================================================
   Shared Interactive Maps
   ========================================================================== */

/* --------------------------------------------------------------------------
   Filter Buttons
   -------------------------------------------------------------------------- */

.ofi-map-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .8rem;
}

.ofi-map-filters button {
    appearance: none;
    border: 1px solid var(--ofi-color-border-default);
    border-radius: 999px;
    padding: .7rem 1.35rem;
    background: #fff;
    color: var(--ofi-color-text-secondary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.ofi-map-filters button:hover,
.ofi-map-filters button.is-active {
    background: var(--ofi-color-brand-orange);
    border-color: var(--ofi-color-brand-orange);
    color: #fff;
}

#ofi-orangutan-map {
    width: 100%;
    height: 520px;
    border-top: 1px solid var(--ofi-color-border-default);
    border-bottom: 1px solid var(--ofi-color-border-default);
}

#route-map #ofi-orangutan-map {
    opacity: 1;
    transition: opacity .28s ease;
}

#route-map #ofi-orangutan-map.is-loading {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Popup
   -------------------------------------------------------------------------- */

.maplibregl-popup-content {
    border-radius: 10px;
    padding: 1.4rem !important;
    font-family: inherit;
}

.ofi-map-popup span {
    display: block;
    color: var(--ofi-color-brand-orange);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .4rem;
}

.ofi-map-popup p {
    margin: 0;
    color: var(--ofi-color-text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Map Controls
   -------------------------------------------------------------------------- */

.maplibregl-ctrl-group {
    border-radius: 8px;
    overflow: hidden;
}

.maplibregl-ctrl-group button {
    width: 36px;
    height: 36px;
}

.maplibregl-popup-close-button {
    background-color: transparent;
    border-radius: 0 3px 0 0;
    cursor: pointer;
    position: absolute;
    right: 0;
    padding: 1.1rem !important;
    top: 0;
}

/* ==========================================================================
   Shared Map Headers
   ========================================================================== */

#range .ofi-section-head,
#route-map .ofi-section-head {
    display: flex;
    max-width: 760px;
    margin: 1rem auto 4.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#route-map .ofi-map-head > .ofi-section-summary {
    display: none;
}

#route-map > .ofi-container:last-child {
    display: flex;
    justify-content: center;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

#route-map > .ofi-container:last-child .ofi-section-summary {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
    text-align: center;
}

#range #ofi-orangutan-map {
    height: 500px;
}

section#range,
section#route-map {
    padding-bottom: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    #route-map #ofi-orangutan-map {
        transition: none;
    }
}

@media (max-width: 768px) {

    #ofi-orangutan-map {
        height: 380px;
    }

    .ofi-map-filters {
        gap: .5rem;
    }

    .ofi-map-filters button {
        padding: .6rem 1rem;
        font-size: .875rem;
    }

    #route-map .ofi-section-head {
        margin-bottom: 3rem;
    }
}

@media (max-width: 700px) {
    #range .ofi-map-filters,
    #route-map .ofi-map-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    #range .ofi-map-filters button,
    #route-map .ofi-map-filters button {
        width: 100%;
        min-height: 44px;
        padding: .65rem .75rem;
    }

    #range #ofi-orangutan-map {
        height: 350px;
    }
}

@media (max-width: 420px) {
    #range #ofi-orangutan-map {
        height: 320px;
    }
}
/* ============================================================
   BLOG INDEX, ARCHIVES AND STORY CARDS
   Shared by the News page, post archives and homepage story cards.
   ============================================================ */

/* ------------------------------------------------------------
   Blog index foundation
   ------------------------------------------------------------ */

.ofi-blog-index {
  background: var(--ofi-color-surface-white);
  color: var(--ofi-color-text-primary);
}

.ofi-blog-index.ofi-main--blog {
  padding-bottom: 0;
}

.ofi-blog-index__content {
  padding: var(--ofi-layout-page-padding-top) 0 var(--ofi-layout-page-padding-bottom);
}

.ofi-blog-index--home .ofi-blog-index__content {
  padding-top: 0;
}

/* ------------------------------------------------------------
   Blog navigation
   ------------------------------------------------------------ */

.ofi-blog-nav {
  position: sticky;
  top: var(--ofi-layout-header-height);
  z-index: 20;
  border-top: 1px solid var(--ofi-color-border-default, #ddd4cf);
  border-bottom: 1px solid var(--ofi-color-border-default, #ddd4cf);
  background: rgba(255, 255, 255, .98);
  backdrop-filter: blur(12px);
}

.ofi-blog-nav__inner {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: var(--ofi-layout-subnav-height);
  overflow-x: auto;
  padding-top: 0;
  padding-bottom: 0;
  scrollbar-width: none;
}

.ofi-blog-nav__inner::-webkit-scrollbar {
  display: none;
}

.ofi-blog-nav__label {
  flex: 0 0 auto;
  margin-right: .2rem;
  color: #45413e;
  font-family: var(--ofi-font-family-heading);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ofi-blog-nav__link {
  flex: 0 0 auto;
  box-shadow: none;
  white-space: nowrap;
  transition:
    transform .2s ease,
    filter .2s ease,
    box-shadow .2s ease,
    color .2s ease,
    background .2s ease;
}

.ofi-blog-nav__link:hover,
.ofi-blog-nav__link:focus-visible {
  transform: translateY(-1px);
  filter: brightness(.975);
}

/* ------------------------------------------------------------
   Shared category pills
   ------------------------------------------------------------ */

.ofi-category-pill {
  --ofi-category-color-background: #f2dfd2;
  --ofi-category-color-text: #6f4028;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .7rem .36rem;
  border-radius: 999px;
  background: var(--ofi-category-color-background);
  color: var(--ofi-category-color-text);
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.ofi-category-pill--conservation-news,
.ofi-story-card--conservation-news,
.ofi-blog-feature--conservation-news {
  --ofi-category-color-background: #dfe8d7;
  --ofi-category-color-text: #30462f;
}

.ofi-category-pill--conservation-voices,
.ofi-story-card--conservation-voices,
.ofi-blog-feature--conservation-voices {
  --ofi-category-color-background: #e8e0ef;
  --ofi-category-color-text: #51415c;
}

.ofi-category-pill--field-stories,
.ofi-story-card--field-stories,
.ofi-blog-feature--field-stories {
  --ofi-category-color-background: #dce9ef;
  --ofi-category-color-text: #36515d;
}

.ofi-category-pill--oci-updates,
.ofi-story-card--oci-updates,
.ofi-blog-feature--oci-updates {
  --ofi-category-color-background: #f0e4c7;
  --ofi-category-color-text: #69562d;
}

.ofi-category-pill--orangutan-news,
.ofi-story-card--orangutan-news,
.ofi-blog-feature--orangutan-news {
  --ofi-category-color-background: #f1d9cb;
  --ofi-category-color-text: #6b402b;
}

.ofi-blog-nav .ofi-category-pill {
  --ofi-category-color-background: #ebe0d561;
  --ofi-category-color-text: #624b3d;
}

.ofi-blog-nav .ofi-category-pill.is-active {
  background: #ead9c7;
}

/* ------------------------------------------------------------
   Featured story
   ------------------------------------------------------------ */

.ofi-blog-feature {
  --ofi-category-color-background: #f2dfd2;
  --ofi-category-color-text: #6f4028;
  --ofi-blog-feature-padding-block: clamp(4rem, 7vw, 5.5rem);
  --ofi-blog-feature-margin-bottom: clamp(4.5rem, 8vw, 6rem);
  display: grid;
  width: 100vw;
  min-height: 0;
  margin-left: calc(50% - 50vw);
  margin-bottom: var(--ofi-blog-feature-margin-bottom);
  padding-block: var(--ofi-blog-feature-padding-block);
  padding-inline: max(var(--ofi-layout-container-padding-inline), calc((100vw - var(--ofi-layout-container-max-width)) / 2 + var(--ofi-layout-container-padding-inline)));
  grid-template-columns: minmax(0, 560px) minmax(340px, 470px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(4rem, 6vw, 5rem);
  background: var(--ofi-color-surface-warm);
  box-shadow: none;
}

.ofi-blog-feature__media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 560px;
  min-height: 0;
  aspect-ratio: 3 / 2;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(55, 52, 48, .12);
  border-radius: 5px;
  background: #d7d1c8;
  box-shadow: none;
}

.ofi-blog-feature__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transition: transform .65s ease;
}

.ofi-blog-feature:hover .ofi-blog-feature__image {
  transform: scale(1.025);
}

.ofi-blog-feature__placeholder,
.ofi-story-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, rgba(219, 121, 60, .92), rgba(182, 99, 40, .92));
  color: rgba(255, 255, 255, .9);
  font-family: var(--ofi-font-family-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ofi-blog-feature__body {
  display: flex;
  width: 100%;
  max-width: 470px;
  flex-direction: column;
  justify-content: center;
  justify-self: start;
  color: var(--ofi-color-text-primary);
}

.ofi-blog-feature__meta-row,
.ofi-story-card__meta-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-wrap: wrap;
}

.ofi-blog-feature__meta,
.ofi-story-card__meta {
  margin: 0;
  color: var(--ofi-color-text-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ofi-blog-feature__title {
  max-width: 11ch;
  margin: 1.15rem 0 1.2rem;
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-blog-feature-title);
  font-weight: var(--ofi-font-weight-heading-heavy);
  line-height: .98;
  letter-spacing: -.045em;
}

.ofi-blog-feature__excerpt {
  max-width: 470px;
  margin-bottom: 1.8rem;
  color: var(--ofi-color-text-secondary);
}

.ofi-blog-feature__excerpt p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.75;
}

.ofi-blog-feature__read-more {
  align-self: flex-start;
  padding: .78rem 1.45rem;
  border-color: var(--ofi-color-brand-brown-muted);
  color: var(--ofi-color-brand-brown-muted);
}

.ofi-blog-feature__read-more:hover,
.ofi-blog-feature__read-more:focus-visible {
  border-color: var(--ofi-color-brand-brown-muted);
  background: var(--ofi-color-brand-brown-muted);
  color: #fff;
}

/* ------------------------------------------------------------
   Blog section-heading metadata
   ------------------------------------------------------------ */

.ofi-blog-section-head__count {
  margin: 0;
  color: var(--ofi-color-text-primary);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   Story-card grid
   ------------------------------------------------------------ */

.ofi-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: clamp(3.25rem, 5vw, 4.75rem);
  column-gap: clamp(1.4rem, 3vw, 2.4rem);
}

.ofi-story-card {
  --ofi-category-color-background: #f2dfd2;
  --ofi-category-color-text: #6f4028;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: visible;
  background: transparent;
}

.ofi-story-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e2dc;
}

.ofi-story-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.ofi-story-card:hover .ofi-story-card__image {
  transform: scale(1.035);
}

.ofi-story-card__placeholder {
  min-height: 100%;
}

/* Ghost post silhouettes used to complete short category rows. */
.ofi-story-card--placeholder .ofi-story-card__media {
  position: relative;
  display: grid;
  place-items: center;
  border: 2px dashed var(--ofi-color-border-default, #ddd4cf);
  background: #f3f1ef;
}

.ofi-story-card--placeholder .ofi-story-card__placeholder {
  min-height: 100%;
  background: transparent;
  color: rgba(90, 86, 82, .48);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
}

.ofi-story-card--placeholder .ofi-story-card__body {
  position: relative;
  display: block;
  min-height: 235px;
  padding: 1rem 0 0;
  overflow: hidden;
}

.ofi-story-card--placeholder .ofi-story-card__body::before {
  content: "";
  display: block;
  width: 100%;
  height: 183px;
  background:
    /* category pill */ linear-gradient(#ece9e6 0 0) 0 0 / 78px 18px no-repeat,
    /* date */ linear-gradient(#ece9e6 0 0) 90px 3px / 72px 12px no-repeat,
    /* title line 1 */ linear-gradient(#ece9e6 0 0) 0 39px / 84% 23px no-repeat,
    /* title line 2 */ linear-gradient(#ffffff 0 0) 0 66px / 0% 23px no-repeat,
    /* excerpt line 1 */ linear-gradient(#ece9e6 0 0) 0 109px / 100% 19px no-repeat,
    /* excerpt line 2 */ linear-gradient(#ece9e6 0 0) 0 136px / 91% 19px no-repeat,
    /* excerpt line 3 */ linear-gradient(#ece9e6 0 0) 0 164px / 81% 24px no-repeat;
}

article.ofi-story-card.ofi-story-card--placeholder {
  opacity: .8;
}

.ofi-story-card--placeholder .ofi-story-card__body::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 98px;
  height: 34px;
  border: 1px solid var(--ofi-color-border-default, #ddd4cf);
  background: transparent;
}

.ofi-story-card--placeholder .ofi-story-card__title,
.ofi-story-card--placeholder .ofi-story-card__excerpt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ofi-story-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 0 0;
}

.ofi-story-card__title {
  min-height: 2.3em;
  margin: 1rem 0 var(--ofi-typography-gap-heading-medium, .75rem);
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-medium, clamp(1.25rem, 1.15rem + .35vw, 1.5rem));
  font-weight: var(--ofi-font-weight-heading, 700);
  line-height: var(--ofi-line-height-heading-medium, 1.2);
  letter-spacing: -.02em;
  transition: color .2s ease;
}

.ofi-story-card__title:hover,
.ofi-story-card__title:focus-within {
  color: var(--ofi-color-brand-orange);
}

.ofi-story-card__excerpt {
  min-height: 5.2em;
  margin: 0 0 1rem;
  color: var(--ofi-color-text-secondary);
}

.ofi-story-card__excerpt p {
  margin: 0;
  font-size: .98rem;
  line-height: 1.7;
}

.ofi-story-card__read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding: .15rem 0 .22rem;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ofi-color-brand-orange);
  font-family: var(--ofi-font-family-heading);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.ofi-story-card__read-more:hover,
.ofi-story-card__read-more:focus-visible {
  border-color: currentColor;
  background: transparent;
  color: var(--ofi-color-brand-brown-muted);
}

.ofi-story-card__read-more:active {
  color: #8f451f;
}

/* Homepage story-card variation: same structure, compact square layout. */
.ofi-story-card--compact {
  z-index: 3;
}

.ofi-story-card--compact .ofi-story-card__media {
  aspect-ratio: 1;
  border-radius: 0;
}

.ofi-story-card--compact:hover .ofi-story-card__image {
  transform: scale(1.05);
}

.ofi-story-card--compact .ofi-story-card__body {
  padding-top: 1rem;
}

.ofi-story-card--compact .ofi-story-card__meta-row {
  gap: .65rem;
  margin-bottom: .35rem;
}

.ofi-story-card--compact .ofi-story-card__meta {
  color: var(--ofi-color-text-muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.ofi-story-card--compact .ofi-story-card__title {
  min-height: 0;
  margin: 0;
  color: var(--ofi-color-text-primary);
  font-family: var(--ofi-font-family-body);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

/* ------------------------------------------------------------
   Pagination and empty state
   ------------------------------------------------------------ */

.ofi-blog-pagination {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: 0;
  border-top: 0;
}

.ofi-blog-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.ofi-blog-pagination .page-numbers {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .6rem .85rem;
  place-items: center;
  border: 1px solid var(--ofi-color-border-default);
  border-radius: 999px;
  background: #fff;
  color: var(--ofi-color-text-primary);
  font-size: .82rem;
  font-weight: 800;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.ofi-blog-pagination .page-numbers.prev,
.ofi-blog-pagination .page-numbers.next {
  min-width: auto;
  padding-inline: 1rem;
}

.ofi-blog-pagination .page-numbers:hover,
.ofi-blog-pagination .page-numbers:focus-visible,
.ofi-blog-pagination .page-numbers.current {
  border-color: var(--ofi-color-brand-orange);
  background: var(--ofi-color-brand-orange);
  color: #fff;
}

.ofi-blog-empty {
  padding: 4rem 0;
  text-align: center;
}

.ofi-blog-empty__title {
  font-family: var(--ofi-font-family-heading);
  font-size: 2rem;
  font-weight: 900;
}

/* ------------------------------------------------------------
   Responsive ownership
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .ofi-blog-nav {
    top: 0;
  }
}

@media (max-width: 980px) {
  .ofi-blog-feature {
    --ofi-blog-feature-padding-block: 3rem 3.5rem;
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
    row-gap: 2.25rem;
  }

  .ofi-blog-feature__media,
  .ofi-blog-feature__body {
    max-width: 560px;
    justify-self: center;
  }

  .ofi-blog-feature__title {
    max-width: 15ch;
  }

  .ofi-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ofi-blog-nav__inner {
    min-height: var(--ofi-layout-subnav-height);
    gap: .75rem;
  }

  .ofi-blog-nav__label {
    display: none;
  }

  .ofi-story-card__title,
  .ofi-story-card__excerpt {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .ofi-blog-index__content {
    padding-top: var(--ofi-layout-page-padding-top);
  }

  .ofi-blog-index--home .ofi-blog-index__content {
    padding-top: 0;
  }

  .ofi-blog-feature {
    --ofi-blog-feature-margin-bottom: var(--ofi-layout-section-padding-block);
  }

  .ofi-blog-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   SHARED CALL TO ACTION
   Canonical reusable full-width CTA component.
   ============================================================ */

.ofi-cta {
  --ofi-cta-color-background: transparent;
  --ofi-cta-color-text: var(--ofi-color-text-primary);
  --ofi-cta-color-copy: var(--ofi-color-text-secondary);
  --ofi-cta-color-heading: var(--ofi-color-heading-editorial);
  --ofi-cta-color-kicker: var(--ofi-color-brand-orange);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
  color: var(--ofi-cta-color-text);
  background: var(--ofi-cta-color-background);
}

.ofi-cta--warm {
  --ofi-cta-color-background: var(--ofi-color-surface-warm);
}

.ofi-cta--dark {
  --ofi-cta-color-background: var(--ofi-color-surface-green-dark);
  --ofi-cta-color-text: #fff;
  --ofi-cta-color-copy: rgba(255, 255, 255, .76);
  --ofi-cta-color-heading: #fff;
  --ofi-cta-color-kicker: #d8c3ae;
}

.ofi-cta--decorated::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  z-index: -1;
  width: 22rem;
  height: 22rem;
  border: 3rem solid rgba(219, 121, 60, .1);
  border-radius: 50%;
}

.ofi-cta__inner {
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, auto);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.ofi-cta__copy {
  max-width: 680px;
  color: var(--ofi-cta-color-copy);
}

.ofi-cta__title {
  max-width: 680px;
  margin: 0;
  color: var(--ofi-cta-color-heading);
  font-family: var(--ofi-font-family-heading);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}

.ofi-cta .ofi-kicker {
  color: var(--ofi-cta-color-kicker);
}

.ofi-cta__copy > p {
  max-width: 45rem;
}

.ofi-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .8rem;
}

.ofi-cta--dark .ofi-btn--outline,
.ofi-cta--dark .ofi-btn--ghost {
  --ofi-button-color-background: transparent;
  --ofi-button-color-text: #fff;
  --ofi-button-color-border: rgba(255, 255, 255, .65);
  --ofi-button-color-background-hover: rgba(255, 255, 255, .12);
  --ofi-button-color-text-hover: #fff;
  --ofi-button-color-border-hover: #fff;
  --ofi-button-color-background-active: rgba(255, 255, 255, .22);
  --ofi-button-color-text-active: #fff;
  --ofi-button-color-border-active: #fff;
  --ofi-button-color-focus-outline: #fff;
}

@media (max-width: 980px) {
  .ofi-cta__inner {
    grid-template-columns: 1fr;
  }

  .ofi-cta__actions {
    justify-content: flex-start;
  }

  .ofi-cta--decorated::after {
    right: -9rem;
    top: 58%;
    bottom: auto;
    width: 27rem;
    opacity: .5;
  }
}

@media (max-width: 700px) {
  .ofi-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .ofi-cta--decorated::after {
    right: -10rem;
    top: auto;
    bottom: -9rem;
    width: 24rem;
    opacity: .38;
    transform: rotate(-8deg);
  }
}

@media (max-width: 640px) {
  .ofi-cta__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ofi-cta__actions .ofi-btn {
    justify-content: center;
    width: 100%;
  }
}
/* Page source: orangutan-subspecies.css */
/* ============================================================
   BORNEAN ORANGUTAN SUBSPECIES
   Visual extension of the species cards on page-orangutan-facts.php
   ============================================================ */

.ofi-bornean-subspecies {
  --ofi-subspecies-color-line: var(--ofi-color-brand-orange, #db793c);
  --ofi-subspecies-color-placeholder-light: #d8d0c8;
  --ofi-subspecies-color-placeholder-dark: #c8bdb2;
  position: relative;
  margin-top: 0;
}

/* Taxonomy connector from the Bornean species card to the child cards. */
.ofi-bornean-subspecies__connector {
  position: relative;
  height: 160px;
  color: var(--ofi-color-brand-brown-muted);
  z-index: 1;
}

.ofi-bornean-subspecies__trunk,
.ofi-bornean-subspecies__branch,
.ofi-bornean-subspecies__drop {
  position: absolute;
  display: block;
  pointer-events: none;
}

.ofi-bornean-subspecies__trunk {
  top: 0;
  left: 16.6667%;
  height: 99px;
  border-left: 2px solid currentColor;
}

.ofi-bornean-subspecies__trunk::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--ofi-color-surface-neutral);
}

.ofi-bornean-subspecies__branch {
  top: 97px;
  left: 16.6667%;
  right: 16.6667%;
  border-top: 2px solid currentColor;
}

.ofi-bornean-subspecies__drop {
  top: 97px;
  height: 63px;
  border-left: 2px solid currentColor;
}

.ofi-bornean-subspecies__drop::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--ofi-color-surface-neutral);
}

.ofi-bornean-subspecies__drop--one {
  left: 16.6667%;
}

.ofi-bornean-subspecies__drop--two {
  left: 50%;
}

.ofi-bornean-subspecies__drop--three {
  left: 83.3333%;
}

.ofi-bornean-subspecies__title {
  position: absolute;
  top: 88px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 0.7rem 0.2rem;
  background: var(--ofi-color-surface-neutral);
  color: var(--ofi-color-brand-brown-muted);
  font-family: var(--ofi-font-family-body);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.8;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.ofi-bornean-subspecies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.ofi-bornean-subspecies .ofi-facts-species-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ofi-bornean-subspecies .ofi-facts-species-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.ofi-bornean-subspecies .ofi-facts-species-card__image {
  height: 245px;
}

.ofi-facts-species-card__image--placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.36), transparent 42%),
    linear-gradient(135deg, var(--ofi-subspecies-color-placeholder-light), var(--ofi-subspecies-color-placeholder-dark));
}

.ofi-facts-species-card__image--placeholder::after {
  background: none;
}

.ofi-subspecies-placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  color: #625b55;
  text-align: center;
}

.ofi-subspecies-placeholder svg {
  width: 42px;
  height: 42px;
  opacity: 0.75;
}

.ofi-subspecies-placeholder strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ofi-subspecies-placeholder small {
  max-width: 190px;
  color: #756d66;
  font-size: 0.72rem;
  line-height: 1.45;
}

.ofi-bornean-subspecies .ofi-facts-species-card__scientific {
  margin-bottom: 1.3rem;
}

.ofi-bornean-subspecies .ofi-facts-species-card__body > p:not(.ofi-facts-species-card__scientific) {
  flex: 1;
}

.ofi-subspecies-range {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid var(--ofi-color-border-soft);
    color: var(--ofi-color-brand-brown-muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    line-height: 1.45;
    text-transform: uppercase;
}

.ofi-subspecies-range svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.ofi-population-estimate a {
  display: inline-block;
  margin-top: 0.15rem;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-transform: none;
}

.ofi-bornean-subspecies__note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.2rem;
  padding: 1.55rem 1.7rem;
  border: 1px solid var(--ofi-color-border-soft);
  background: #ffffff;
}

.ofi-bornean-subspecies__note-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--ofi-color-brand-orange);
  background: #faf7f3;
}

.ofi-bornean-subspecies__note-icon svg {
  width: 25px;
  height: 25px;
}

.ofi-bornean-subspecies__note p {
  margin: 0;
  color: var(--ofi-color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .ofi-bornean-subspecies__connector {
    display: none;
  }

  .ofi-bornean-subspecies {
    margin-top: 3.5rem;
    padding-top: 3.2rem;
    border-top: 1px solid var(--ofi-color-border-soft);
  }

  .ofi-bornean-subspecies__title {
    position: static;
    display: block;
    transform: none;
    margin: 0 0 1.5rem;
    padding: 0;
    background: transparent;
    text-align: left;
    white-space: normal;
  }

  .ofi-bornean-subspecies__grid {
    grid-template-columns: 1fr;
  }

  .ofi-bornean-subspecies .ofi-facts-species-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.75fr) minmax(0, 1.25fr);
  }

  .ofi-bornean-subspecies .ofi-facts-species-card__image {
    height: 100%;
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .ofi-bornean-subspecies .ofi-facts-species-card {
    display: block;
  }

  .ofi-bornean-subspecies .ofi-facts-species-card__image {
    height: 220px;
    min-height: 0;
  }

  .ofi-bornean-subspecies__note {
    grid-template-columns: 1fr;
  }
}
/* Page source: orangutan-threats.css */
/* ============================================================
   THREATS TO ORANGUTANS
   Layout and page-specific colour only. Typography and callouts
   come from the shared design system and guide components.
   ============================================================ */



/* Reusable XL heavy heading treatment. */
.ofi-heading-xl-heavy {
    margin: 0 0 var(--ofi-typography-gap-heading-body, 1.25rem);
    color: var(--ofi-color-heading-editorial);
    font-family: var(--ofi-font-family-heading);
    font-size: var(--ofi-font-size-heading-xl);
    font-weight: var(--ofi-font-weight-heading-heavy);
    line-height: 1.12;
    letter-spacing: -.02em;
    text-wrap: balance;
}

/* Shared split page introduction */

.ofi-page-intro__grid {
    display: grid;
    grid-template-columns: minmax(15rem, .78fr) minmax(0, 1.5fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
    margin-bottom: var(--ofi-spacing-2xl);
}

.ofi-page-intro__copy {
    max-width: 44rem;
    color: var(--ofi-color-text-editorial);
}

/* Threat detail section surfaces. The inner layout is the shared media split. */
.ofi-threat-detail {
    border-top: 1px solid var(--ofi-color-border-soft);
}

/* Conservation response spacing is provided by the shared section edges. */

/* Shared separated text cards. The three approved variants preserve the
   Orangutan Threats protection cards and the dark and labelled choices cards. */
.ofi-text-card-grid {
    --ofi-text-card-columns: 3;

    display: grid;
    grid-template-columns: repeat(var(--ofi-text-card-columns), minmax(0, 1fr));
    gap: 1rem;
}

.ofi-text-card-grid--protection,
.ofi-text-card-grid--dark {
    --ofi-text-card-columns: 4;
}

.ofi-text-card {
    position: relative;
    min-width: 0;
    min-height: var(--ofi-text-card-min-height, 18rem);
    padding: var(--ofi-text-card-padding, 2rem);
    overflow: hidden;
    border: var(--ofi-text-card-border-style, 0);
    color: var(--ofi-text-card-color-text, var(--ofi-color-heading-editorial));
    background: var(--ofi-text-card-color-background, #fff);
}

.ofi-text-card__eyebrow {
    display: block;
    margin-bottom: var(--ofi-text-card-eyebrow-margin-bottom, var(--ofi-typography-gap-heading-medium));
    color: var(--ofi-text-card-color-eyebrow, var(--ofi-color-brand-orange));
    font-family: var(--ofi-text-card-eyebrow-font-family, var(--ofi-font-family-body));
    font-size: var(--ofi-text-card-eyebrow-font-size, .72rem);
    font-weight: var(--ofi-text-card-eyebrow-font-weight, 900);
    letter-spacing: var(--ofi-text-card-eyebrow-letter-spacing, .1em);
    line-height: var(--ofi-text-card-eyebrow-line-height, 1);
    text-transform: var(--ofi-text-card-eyebrow-text-transform, none);
}

.ofi-text-card__title {
    margin: 0;
    color: var(--ofi-text-card-color-title, currentColor);
    font-family: var(--ofi-font-family-heading);
    font-size: var(
    --ofi-text-card-title-font-size,
    var(--ofi-font-size-heading-medium)
);
    font-weight: var(--ofi-font-weight-heading);
    line-height: var(--ofi-line-height-heading-medium);
    letter-spacing: -.02em;
}



.ofi-text-card__text {
    color: var(--ofi-text-card-color-body, currentColor);
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

/* Protection variation: light cards with the four approved accent colours. */
.ofi-text-card--protection {
    --ofi-text-card-color-accent: var(--ofi-color-overlay-grey);
    --ofi-text-card-padding: clamp(1.6rem, 2.7vw, 2.25rem);
    --ofi-text-card-border-style: 1px solid var(--ofi-color-border-soft);
    --ofi-text-card-color-background: color-mix(in srgb, var(--ofi-color-surface-light) 35%, #fff);
    --ofi-text-card-color-eyebrow: var(--ofi-text-card-color-accent);
    --ofi-text-card-eyebrow-font-family: var(--ofi-font-family-heading);
    --ofi-text-card-eyebrow-font-size: var(--ofi-font-size-heading-xl);
    --ofi-text-card-eyebrow-font-weight: var(--ofi-font-weight-heading-heavy);
    --ofi-text-card-eyebrow-letter-spacing: -.055em;
    --ofi-text-card-eyebrow-line-height: .8;
--ofi-text-card-title-font-size: var(--ofi-font-size-lead);
}

.ofi-text-card--protection:nth-child(2) {
    --ofi-text-card-color-accent: var(--ofi-color-overlay-green);
}

.ofi-text-card--protection:nth-child(3) {
    --ofi-text-card-color-accent: var(--ofi-color-overlay-tan);
}

.ofi-text-card--protection:nth-child(4) {
    --ofi-text-card-color-accent: var(--ofi-color-overlay-orange);
}

.ofi-text-card--protection::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ofi-text-card-color-accent);
}

/* Dark numbered variation: Make Informed Choices product categories. */
.ofi-text-card--dark {
    --ofi-text-card-padding: 1.8rem;
    --ofi-text-card-border-style: 0;
    --ofi-text-card-color-text: #fff;
    --ofi-text-card-color-background: #23211f;
    --ofi-text-card-eyebrow-margin-bottom: 2.25rem;
    --ofi-text-card-color-eyebrow: var(--ofi-color-brand-orange-bright, #fb8f1d);
    --ofi-text-card-color-title: #fff;
}

/* Image-backed dark cards retain the component's dimensions and text flow. */
.ofi-text-card-grid--dark .ofi-text-card--dark {
    isolation: isolate;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ofi-text-card-grid--dark .ofi-text-card--dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.76) 0%, rgba(20, 18, 16, 0.86) 48%, rgba(20, 18, 16, 0.97) 100%);
}

.ofi-text-card-grid--dark .ofi-text-card--dark:nth-child(1) {
    background-image: url("https://saveorangutans.org/wp-content/uploads/2026/08/pexels-kenzero14-21582447-scaled.jpg");
}

.ofi-text-card-grid--dark .ofi-text-card--dark:nth-child(2) {
    background-image: url("https://saveorangutans.org/wp-content/uploads/2026/08/pexels-cottonbro-7440053-1-scaled.jpg");
}

.ofi-text-card-grid--dark .ofi-text-card--dark:nth-child(3) {
    background-image: url("https://saveorangutans.org/wp-content/uploads/2026/08/pexels-ellie-burgin-1661546-3177257-scaled.jpg");
}

.ofi-text-card-grid--dark .ofi-text-card--dark:nth-child(4) {
    background-image: url("https://saveorangutans.org/wp-content/uploads/2026/08/pexels-connor-lucock-259838-28752021-scaled.jpg");
}

/* Labelled variation: Make Informed Choices certification explanations. */
.ofi-text-card--labelled {
    --ofi-text-card-min-height: 19rem;
    --ofi-text-card-border-style: 0;
    --ofi-text-card-color-text: var(--ofi-color-text-secondary, #625c57);
    --ofi-text-card-color-background: #fff;
    --ofi-text-card-eyebrow-margin-bottom: 3.25rem;
    --ofi-text-card-eyebrow-letter-spacing: .11em;
    --ofi-text-card-eyebrow-text-transform: uppercase;

    border-top: 5px solid var(--ofi-color-brand-orange, #db793c);
}

.ofi-text-card--labelled .ofi-text-card__eyebrow {
    display: inline-block;
}

@media (max-width: 1100px) {
    .ofi-text-card-grid--dark {
        --ofi-text-card-columns: 2;
    }

    .ofi-text-card-grid--labelled {
        --ofi-text-card-columns: 1;
    }

    .ofi-text-card--labelled {
        --ofi-text-card-min-height: 0;
        --ofi-text-card-eyebrow-margin-bottom: 2rem;
    }
}

@media (max-width: 1080px) {
    .ofi-text-card-grid--protection {
        --ofi-text-card-columns: 2;
    }
}

@media (max-width: 980px) {
    .ofi-page-intro__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

@media (max-width: 640px) {

    .ofi-text-card-grid--protection {
        --ofi-text-card-columns: 1;
    }

    .ofi-text-card--protection {
        --ofi-text-card-min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ofi-threats-page *,
    .ofi-threats-page *::before,
    .ofi-threats-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Page source: palm-guides.css */
/* ============================================================
   PALM OIL GUIDE — UNIQUE COMPONENTS
   Shared hero, section, layout, table, callout and source styles
   live in main.css and guide-pages.css.
   ============================================================ */

/* Three-step label scanner. */
.ofi-numbered-steps {
    display: grid;
    list-style: none;
}

.ofi-numbered-steps > article,
.ofi-numbered-steps > li {
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.35rem 0;
}

.ofi-numbered-steps--lined,
.ofi-numbered-steps--light {
    gap: 0;
}

.ofi-numbered-steps--lined {
    margin-top: 0;
    border-top: 1px solid var(--ofi-color-border-soft);
}

.ofi-numbered-steps--light {
    border-top: 1px solid rgba(255, 255, 255, .34);
}

.ofi-numbered-steps--lined > li,
.ofi-numbered-steps--light > li {
    grid-template-columns: 3.5rem minmax(0, 1fr);
}

.ofi-numbered-steps--lined > li {
    border-bottom: 1px solid var(--ofi-color-border-soft);
    color: var(--ofi-color-text-secondary);
}

.ofi-numbered-steps--light > li {
    border-bottom: 1px solid rgba(255, 255, 255, .34);
    color: rgba(255, 255, 255, .82);
}

.ofi-numbered-steps--lined > li > span,
.ofi-numbered-steps--light > li > span {
    font-family: var(--ofi-font-family-body);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    line-height: 1;
}

.ofi-numbered-steps--lined > li > span {
    color: var(--ofi-color-brand-orange);
}

.ofi-numbered-steps--light > li > span {
    color: var(--ofi-cta-color-kicker);
}

.ofi-numbered-steps--lined h3,
.ofi-numbered-steps--light h3 {
    font-size: var(--ofi-font-size-heading-medium-compact);
    font-weight: var(--ofi-font-weight-heading);
    line-height: var(--ofi-line-height-heading-medium-compact);
}

.ofi-numbered-steps--lined h3 {
    color: var(--ofi-color-heading-editorial);
}

.ofi-numbered-steps--light h3 {
    color: #fff;
}

.ofi-numbered-steps--lined p,
.ofi-numbered-steps--light p {
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

.ofi-numbered-steps--lined p {
    color: var(--ofi-color-text-secondary);
}

/* Palm Oil Guide label-reading lesson. */
.ofi-label-guide__header {
    max-width: 50rem;
    margin-bottom: clamp(2.75rem, 5vw, 4rem);
}

.ofi-label-guide__header p {
    max-width: 46rem;
    color: var(--ofi-color-text-secondary);
    font-size: var(--ofi-font-size-body);
    line-height: var(--ofi-line-height-body);
}

.ofi-label-guide__body {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
}

.ofi-label-guide__visual {
    margin: 0;
}

.ofi-label-guide__image {
    overflow: hidden;
}

.ofi-label-guide__image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ofi-label-guide__visual figcaption {
    padding: 1rem 1.1rem;
    border: 1px solid var(--ofi-color-border-soft);
    border-top: 0;
    background: var(--ofi-color-surface-paper);
    color: var(--ofi-color-text-secondary);
    font-size: .88rem;
    line-height: 1.6;
}

/* Desktop-only matched layout: the numbered steps set the total height.
   The caption keeps its natural height and the image wrapper fills the rest. */
@media (min-width: 981px) {
    .ofi-label-guide__body--matched {
        align-items: stretch;
    }

    .ofi-label-guide__body--matched .ofi-label-guide__visual {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        min-width: 0;
        min-height: 0;
        align-self: stretch;
    }

    .ofi-label-guide__body--matched .ofi-label-guide__image {
        position: relative;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .ofi-label-guide__body--matched .ofi-label-guide__image img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

/* Low-key utility strip placed where hidden derivatives are explained. */
.ofi-tool-strip {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--ofi-color-border-soft);
    background: var(--ofi-color-surface-paper);
}

.ofi-tool-strip__icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    color: var(--ofi-color-text-primary);
}

.ofi-tool-strip__icon svg {
    width: 2.35rem;
    height: 2.35rem;
}

.ofi-tool-strip__body {
    min-width: 0;
    color: var(--ofi-color-text-secondary);
}

.ofi-tool-strip__body h3 {
    color: var(--ofi-color-text-primary);
    font-size: var(--ofi-font-size-heading-medium-compact);
    line-height: var(--ofi-line-height-heading-medium-compact);
}

.ofi-tool-strip__body p {
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

.ofi-tool-strip__link {
    white-space: nowrap;
    color: var(--ofi-color-brand-orange);
    font-weight: 700;
    text-decoration: none;
}

.ofi-tool-strip__link:hover,
.ofi-tool-strip__link:focus-visible {
    text-decoration: underline;
}

/* Temporary editorial image placeholders. */
.ofi-media-placeholder {
    margin: 0;
}

.ofi-media-placeholder > div {
    display: flex;
    min-height: 28rem;
    padding: 2.25rem;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px dashed rgba(255, 255, 255, .42);
    background:
        linear-gradient(135deg, rgba(35, 33, 31, .92), rgba(35, 33, 31, .66)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px);
    color: #fff;
}

.ofi-media-placeholder--wide > div {
    min-height: 34rem;
}

.ofi-media-placeholder span {
    margin-bottom: .8rem;
    color: var(--ofi-color-brand-orange-bright, #fb8f1d);
    font-family: var(--ofi-font-family-body);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}

.ofi-media-placeholder strong {
    max-width: 26rem;
    font-family: var(--ofi-font-family-heading);
    font-size: var(--ofi-font-size-section-title);
    font-weight: var(--ofi-font-weight-heading-heavy);
    line-height: var(--ofi-line-height-section-heading);
    letter-spacing: -.035em;
}

.ofi-media-placeholder small {
    max-width: 30rem;
    margin-top: .8rem;
    color: rgba(255, 255, 255, .72);
    font-family: var(--ofi-font-family-body);
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

.ofi-media-placeholder figcaption {
    padding-top: .75rem;
    color: var(--ofi-color-text-muted, #77716b);
    font-family: var(--ofi-font-family-body);
    font-size: .82rem;
    line-height: 1.5;
}

/* Final action list. */
.ofi-action-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
}

/* Matched-height version used by the label-reading CTA. The text and callout
   determine the section height; the photograph fills the remaining space
   below the heading and is cropped inside that height. */
#read-the-label .ofi-action-layout {
    align-items: stretch;
}

#read-the-label .ofi-action-layout > .ofi-flow:first-child {
    display: grid;
    grid-template-rows: auto auto minmax(15rem, 1fr);
    min-width: 0;
}

#read-the-label .ofi-action-layout > .ofi-flow:first-child > .ofi-label-guide__image {
    position: relative;
    min-width: 0;
    min-height: 15rem;
    margin-block-start: 1.5rem;
    overflow: hidden;
}

#read-the-label .ofi-action-layout > .ofi-flow:first-child > .ofi-label-guide__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-fit: cover;
}

#read-the-label .ofi-action-layout > .ofi-flow:last-child {
    align-content: start;
}

#read-the-label .ofi-action-layout > .ofi-flow:last-child > .ofi-callout {
    margin-block-start: 1.25rem;
}

body.page-template-page-make-informed-choices .ofi-section--orange h2,
body.page-template-page-make-informed-choices .ofi-section--orange h3 {
    color: #fff;
}
/*
body.page-template-page-make-informed-choices .ofi-rail-layout__content,
body.page-template-page-make-informed-choices .ofi-media-split__content,
body.page-template-page-make-informed-choices .ofi-sources p {
    color: var(--ofi-color-text-editorial);
    font-family: var(--ofi-font-family-body);
    font-size: var(--ofi-font-size-body);
    line-height: var(--ofi-line-height-body);
}

body.page-template-page-make-informed-choices .ofi-lead,
body.page-template-page-make-informed-choices .ofi-lead--display {
    color: var(--ofi-color-text-editorial);
    font-family: var(--ofi-font-family-body);
    font-size: var(--ofi-font-size-lead);
    font-weight: 400;
    line-height: var(--ofi-line-height-body-relaxed);
    letter-spacing: 0;
}
*/
body.page-template-page-make-informed-choices .ofi-table--comparison {
    font-family: var(--ofi-font-family-body);
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

body.page-template-page-make-informed-choices .ofi-text-card--labelled {
    --ofi-text-card-color-background: var(--ofi-color-surface-white);
}

body.page-template-page-make-informed-choices .ofi-numbered-steps h3 {
    font-size: var(--ofi-font-size-heading-medium-compact);
    font-weight: var(--ofi-font-weight-heading);
    line-height: var(--ofi-line-height-heading-medium-compact);
}

body.page-template-page-make-informed-choices .ofi-numbered-steps p {
    font-size: var(--ofi-font-size-body-compact);
    line-height: var(--ofi-line-height-body-compact);
}

@media (max-width: 980px) {
    .ofi-label-guide__body {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 820px) {
    .ofi-action-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    #read-the-label .ofi-action-layout > .ofi-flow:first-child {
        display: block;
    }

    #read-the-label .ofi-action-layout > .ofi-flow:first-child > .ofi-label-guide__image {
        min-height: 0;
        aspect-ratio: 1.35 / 1;
    }

    #read-the-label .ofi-action-layout > .ofi-flow:first-child > .ofi-label-guide__image img {
        position: absolute;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .ofi-media-placeholder > div,
    .ofi-media-placeholder--wide > div {
        min-height: 23rem;
    }
}

@media (max-width: 760px) {
    .ofi-tool-strip {
        grid-template-columns: 3rem minmax(0, 1fr);
        gap: 1rem;
        padding: 1.35rem;
    }

    .ofi-tool-strip__icon {
        width: 3rem;
        height: 3rem;
    }

    .ofi-tool-strip__link {
        grid-column: 2;
        justify-self: start;
        white-space: normal;
    }
}

@media (max-width: 620px) {
    .ofi-text-card-grid--dark {
        --ofi-text-card-columns: 1;
    }

    .ofi-text-card--dark {
        --ofi-text-card-min-height: 0;
        --ofi-text-card-eyebrow-margin-bottom: 2.2rem;
    }

    .ofi-numbered-steps > article,
    .ofi-numbered-steps > li {
        grid-template-columns: 2.8rem minmax(0, 1fr);
    }
}
/* ============================================================
   Individual editorial stories
   ============================================================ */

.ofi-main--single {
  background: var(--ofi-color-surface-white);
  color: var(--ofi-color-text-editorial);
}

.ofi-single__article {
  overflow: hidden;
}

/* The story image leads the page. The title and introduction sit below it. */
.ofi-single__hero {
  position: relative;
  width: 100%;
  height: clamp(440px, 68vh, 760px);
  overflow: hidden;
  background: #e8e2dc;
}

.ofi-single__hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 13rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .48), rgba(0, 0, 0, .12), transparent);
}

.ofi-single__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ofi-single__header-shell {
  padding: clamp(3.5rem, 7vw, 6rem) var(--ofi-layout-container-padding-inline) clamp(2.75rem, 5vw, 4rem);
}

.ofi-single__article:not(.has-post-thumbnail) .ofi-single__header-shell {
  padding-top: clamp(10rem, 16vw, 13rem);
}

.ofi-single__header {
  width: 100%;
  max-width: 940px;
  margin-inline: auto;
}

.ofi-single__meta-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.ofi-single__date,
.ofi-single__byline {
  color: var(--ofi-color-text-muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ofi-single__title {
    max-width: 920px;
    margin: 0;
    color: var(--ofi-color-heading-editorial);
    font-family: var(--ofi-font-family-heading);
    font-size: var(--ofi-font-size-heading-lg);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.05em;
}

.ofi-single__dek {
  max-width: 790px;
  margin: 1.5rem 0 0;
  color: var(--ofi-color-text-secondary);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.65;
}

.ofi-single__byline {
  margin: 1.55rem 0 0;
}

.ofi-single__byline a {
  color: var(--ofi-color-brand-brown-muted);
}

/* ------------------------------------------------------------
   Reading column
   ------------------------------------------------------------ */

.ofi-single__content {
  width: min(760px, calc(100% - (2 * var(--ofi-layout-container-padding-inline))));
  margin-inline: auto;
  padding: 0 0 clamp(4rem, 8vw, 5rem);
  color: var(--ofi-color-text-editorial);
}

/* Black magazine-style drop cap on the opening paragraph. */
.ofi-single__content > p:first-of-type:not(.has-drop-cap)::first-letter {
  float: left;
  margin: .075em .14em -.04em 0;
  color: #111;
  font-size: 5.45rem;
  font-weight: 700;
  line-height: .72;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ofi-single__content h2,
.ofi-single__content h4 {
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-weight: 900;
  letter-spacing: -.035em;
}

.ofi-single__content h2 {
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  line-height: 1.08;
}

.ofi-single__content h4 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.ofi-single__content a:not(.ofi-btn) {
  color: var(--ofi-color-brand-brown-muted);
  text-decoration: underline;
  text-decoration-color: rgba(182, 99, 40, .4);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

.ofi-single__content ul,
.ofi-single__content ol {
  margin: 0 0 1.75rem 1.4rem;
  padding: 0;
}

.ofi-single__content ul {
  list-style: disc;
}

.ofi-single__content ol {
  list-style: decimal;
}

.ofi-single__content li {
  margin-bottom: .65rem;
  padding-left: .25rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.ofi-single__content blockquote:not(.ofi-pullquote) {
  margin: 2.75rem 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--ofi-color-border-soft);
  color: var(--ofi-color-text-secondary);
}

.ofi-single__content blockquote:not(.ofi-pullquote) p:last-child {
  margin-bottom: 0;
}

/* Reuse the existing pull-quote class, but let it break wider than the text. */
.ofi-single__content .ofi-pullquote {
  width: min(980px, calc(100vw - (2 * var(--ofi-layout-container-padding-inline))));
  max-width: none;
  margin: clamp(3rem, 7vw, 5rem) 50%;
  padding: .35rem 0 .35rem 2rem;
  transform: translateX(-50%);
  border-left: 5px solid var(--ofi-color-brand-orange);
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -.03em;
}

.ofi-single__content .ofi-pullquote p {
  margin: 0;
  font: inherit;
  line-height: inherit;
}

.ofi-single__content figure,
.ofi-single__content .wp-block-image {
  margin: 1.4rem 0;
}

.ofi-single__content figure img,
.ofi-single__content .wp-block-image img {
  width: 100%;
}

/* WordPress left- and right-aligned article images */
.ofi-single__content figure.alignleft,
.ofi-single__content figure.alignright,
.ofi-single__content .wp-block-image.alignleft,
.ofi-single__content .wp-block-image.alignright {
  width: min(42%, 360px);
  margin-top: .35rem;
  margin-bottom: 1.5rem;
}

.ofi-single__content figure.alignleft,
.ofi-single__content .wp-block-image.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-left: 0;
}

.ofi-single__content figure.alignright,
.ofi-single__content .wp-block-image.alignright {
  float: right;
  margin-right: 0;
  margin-left: 1.5rem;
}

.ofi-single__content figure.alignleft img,
.ofi-single__content figure.alignright img,
.ofi-single__content .wp-block-image.alignleft img,
.ofi-single__content .wp-block-image.alignright img {
  display: block;
  width: 100%;
  height: auto;
}

/* Classic Editor image markup */
.ofi-single__content img.alignleft,
.ofi-single__content img.alignright {
  width: auto;
  max-width: 42%;
  height: auto;
  margin-top: .35rem;
  margin-bottom: 1.5rem;
}

.ofi-single__content img.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-left: 0;
}

.ofi-single__content img.alignright {
  float: right;
  margin-right: 0;
  margin-left: 1.5rem;
}

/* Return aligned images to full width on smaller screens */
@media (max-width: 700px) {
  .ofi-single__content figure.alignleft,
  .ofi-single__content figure.alignright,
  .ofi-single__content .wp-block-image.alignleft,
  .ofi-single__content .wp-block-image.alignright,
  .ofi-single__content img.alignleft,
  .ofi-single__content img.alignright {
    float: none;
    width: 100%;
    max-width: none;
    margin: 2rem 0;
  }
}

.ofi-single__content figcaption,
.ofi-single__content .wp-element-caption {
  margin-top: .75rem;
  color: var(--ofi-color-text-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.ofi-single__content .alignwide {
  width: min(1040px, calc(100vw - (2 * var(--ofi-layout-container-padding-inline))));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.ofi-single__content .alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* Paragraph spacing inside blog posts, including nested Gutenberg blocks */
.ofi-single__content p {
  margin: 0;
}

.ofi-single__content p + p {
  margin-top: 1.4em;
}

/* Empty paragraphs should not be used to create spacing */
.ofi-single__content p:empty {
  display: none;
}

/* ------------------------------------------------------------
   Quiet story footer and navigation
   ------------------------------------------------------------ */

.ofi-single__post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(1040px, calc(100% - (2 * var(--ofi-layout-container-padding-inline))));
  margin: 1.5rem auto 0;
  padding: 0 0 clamp(4rem, 7vw, 6rem);
}

.ofi-post-nav__prev,
.ofi-post-nav__next {
  border-top: 1px solid var(--ofi-color-border-soft);
  padding-top: 1.25rem;
}

.ofi-post-nav__next {
  text-align: right;
}

.ofi-single__post-nav a {
  color: var(--ofi-color-text-secondary);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.ofi-single__post-nav a:hover {
  color: var(--ofi-color-brand-orange);
}

/* ------------------------------------------------------------
   Related stories
   ------------------------------------------------------------ */

.ofi-single-related {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--ofi-color-surface-light);
}

.ofi-single-related__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.ofi-single-related__title {
  margin: 0;
  color: var(--ofi-color-heading-editorial);
  font-family: var(--ofi-font-family-heading);
  font-size: var(--ofi-font-size-heading-lg);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.ofi-single-related__all {
  flex: 0 0 auto;
  color: var(--ofi-color-brand-brown-muted);
  font-size: var(--ofi-font-size-heading-medium);
  font-weight: 800;
}

.ofi-single-comments {
  width: min(760px, calc(100% - (2 * var(--ofi-layout-container-padding-inline))));
  margin-inline: auto;
  padding-bottom: 4rem;
}

/* A story without a featured image needs a readable masthead. */
body.ofi-single-no-image .ofi-header,
body.ofi-single-no-image #ofi-header {
  background: #fff;
  border-bottom: 1px solid var(--ofi-color-border-default);
}

body.ofi-single-no-image .ofi-nav__menu a {
  color: var(--ofi-color-brand-brown-muted);
}

body.ofi-single-no-image .ofi-nav__hamburger span {
  background: var(--ofi-color-brand-brown-muted);
}

@media (max-width: 760px) {
  .ofi-single__hero {
    height: clamp(360px, 58vh, 560px);
  }

  .ofi-single__header-shell {
    padding-top: 3rem;
  }

  .ofi-single__title {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  .ofi-single__content > p:first-of-type:not(.has-drop-cap)::first-letter {
    margin-right: .12em;
    font-size: 4.5rem;
  }

  .ofi-single__content .ofi-pullquote {
    padding-left: 1.25rem;
  }

  

  .ofi-single__post-nav {
    grid-template-columns: 1fr;
  }

  .ofi-post-nav__next {
    text-align: left;
  }
}


.ofi-single .wp-caption.alignnone {
    width: 100% !important;
    max-width: 100%;
    margin: 2rem 0;
}

.ofi-single .wp-caption.alignnone img {
    display: block;
    width: 100%;
    height: auto;
}

.ofi-single .wp-caption-text,
.ofi-single figcaption {
    margin: 0;
    padding: 0.75rem 0 0;
    border-top: solid 1px var(--ofi-color-border-soft);
    max-width: 100%;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ofi-color-text-muted);
    font-style: normal;
    text-align: left;
}

.ofi-single .wp-caption img,
.ofi-single figure img {
    display: block;
    margin: 0;
}

/* Default article image */
.ofi-single__content figure.wp-caption.alignnone {
    width: 100% !important;
    max-width: 100%;
    margin: 2.5rem 0;
}

.ofi-single__content figure.wp-caption.alignnone img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

/* Optional image breakout */
.ofi-single__content figure.wp-caption.ofi-breakout-left {
    width: calc(100% + 3rem) !important;
    max-width: none;
    margin-left: -3rem;
}/* Page source: why-palm-oil-is-bad.css */
/* ============================================================
   WHY PALM OIL IS BAD
   Investigative supply-chain report with a visual language distinct
   from the alternating story layout used on Orangutan Threats.
   ============================================================ */

/* Palm Oil report palette. These component-scoped tokens describe the
   property they control and retain the established page values. */
.ofi-palm-page {
    --ofi-palm-color-border: rgba(35, 33, 31, .16);
    --ofi-palm-color-image-background: #242321;
    --ofi-palm-color-accent-orange: var(--ofi-color-brand-orange);
    --ofi-palm-color-accent-forest: #6f8c73;
}



/* What a plantation replaces */
.ofi-palm-replacement__image {
    position: relative;
    margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
    overflow: hidden;
    background: var(--ofi-palm-color-image-background);
}

.ofi-palm-replacement__image img {
    width: 100%;
    height: clamp(25rem, 48vw, 38rem);
    object-fit: cover;
}

.ofi-palm-replacement__image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background: linear-gradient(0deg, rgba(25, 24, 22, .76), transparent);
    pointer-events: none;
}

.ofi-palm-replacement__image figcaption {
    position: absolute;
    left: clamp(1.25rem, 3vw, 2.5rem);
    right: clamp(1.25rem, 3vw, 2.5rem);
    bottom: clamp(1.25rem, 3vw, 2.25rem);
    z-index: 2;
    max-width: 44rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.ofi-palm-wildlife-note {
    display: grid;
    grid-template-columns: minmax(16rem, .55fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 5px solid var(--ofi-palm-color-accent-orange);
    background: #fff;
}

.ofi-palm-wildlife-note img {
    width: 100%;
    height: 15rem;
    object-fit: cover;
}

.ofi-palm-wildlife-note h3 {
    font-size: var(--ofi-font-size-heading-medium);
}

.ofi-palm-wildlife-note p {
    max-width: 48rem;
    color: var(--ofi-color-text-secondary);
    font-size: var(--ofi-font-size-body);
    line-height: var(--ofi-line-height-body);
}

/* Economic ledger */


/* Case study: prominent metric + narrative.
   The route is optional; the dark variant preserves the approved Palm Oil
   haze treatment while keeping the component available site-wide. */
.ofi-case-study {
    --ofi-case-study-color-background: var(--ofi-color-surface-white);
    --ofi-case-study-color-text: var(--ofi-color-text-editorial);
    --ofi-case-study-color-heading: var(--ofi-color-heading-editorial);
    --ofi-case-study-color-muted: var(--ofi-color-text-secondary);
    --ofi-case-study-color-lead: var(--ofi-color-text-editorial);
    --ofi-case-study-color-border: var(--ofi-color-border-default);
    --ofi-case-study-color-accent: var(--ofi-color-brand-orange);

    color: var(--ofi-case-study-color-text);
    background: var(--ofi-case-study-color-background);
}

.ofi-case-study--dark {
    --ofi-case-study-color-background: var(--ofi-color-surface-green-dark);
    --ofi-case-study-color-text: rgba(255, 255, 255, .76);
    --ofi-case-study-color-heading: #fff;
    --ofi-case-study-color-muted: rgba(255, 255, 255, .66);
    --ofi-case-study-color-lead: rgba(255, 255, 255, .9);
    --ofi-case-study-color-border: rgba(255, 255, 255, .18);

    background:
        radial-gradient(circle at 18% 50%, rgba(219, 121, 60, .16), transparent 32%),
        var(--ofi-case-study-color-background);
}

.ofi-case-study__grid {
    display: grid;
    grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 8vw, 8rem);
    align-items: center;
}

.ofi-case-study__metric {
    padding-right: clamp(2rem, 5vw, 4rem);
    border-right: 1px solid var(--ofi-case-study-color-border);
}

.ofi-case-study__label {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--ofi-case-study-color-accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ofi-case-study--dark .ofi-case-study__label {
    color: var(--ofi-color-overlay-tan);
}

.ofi-case-study__value {
    display: block;
    color: var(--ofi-case-study-color-heading);
    font-family: var(--ofi-font-family-heading);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: var(--ofi-font-weight-heading-heavy);
    letter-spacing: -.075em;
    line-height: .85;
}

.ofi-case-study__metric-text {
    max-width: 20rem;
    margin: 1.5rem 0 0;
    color: var(--ofi-case-study-color-muted);
    font-size: var(--ofi-font-size-body-compact);
    line-height: 1.6;
}

.ofi-case-study__title {
    margin: 0 0 var(--ofi-typography-gap-heading-body, 1.25rem);
    color: var(--ofi-case-study-color-heading);
    font-family: var(--ofi-font-family-heading);
    font-size: var(--ofi-font-size-heading-xl);
    font-weight: var(--ofi-font-weight-heading-heavy);
    line-height: var(--ofi-line-height-section-heading);
    letter-spacing: -.035em;
    text-wrap: balance;
}

.ofi-case-study .ofi-kicker {
    color: var(--ofi-case-study-color-accent);
}

.ofi-case-study__content {
    color: var(--ofi-case-study-color-text);
}

.ofi-case-study__content .ofi-lead {
    color: var(--ofi-case-study-color-lead);
}

.ofi-case-study__route {
    display: grid;
    grid-template-columns: auto minmax(2rem, 1fr) auto minmax(2rem, 1fr) auto;
    gap: .8rem;
    align-items: center;
    margin-top: 2.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ofi-case-study-color-border);
}

.ofi-case-study__route span {
    color: var(--ofi-case-study-color-heading);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ofi-case-study__route i {
    position: relative;
    display: block;
    height: 1px;
    background: var(--ofi-case-study-color-accent);
}

.ofi-case-study__route i::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: .5rem;
    height: .5rem;
    border-top: 1px solid var(--ofi-case-study-color-accent);
    border-right: 1px solid var(--ofi-case-study-color-accent);
    transform: translateY(-50%) rotate(45deg);
}

/* Certification cards */

.ofi-certification-grid {
    gap: .9rem;
}

.ofi-certification-card {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    align-items: center;
    column-gap: 1.35rem;
    padding: 1.4rem 1.6rem;
}

.ofi-certification-card__icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    display: block;
    width: 5rem;
    height: 5rem;
    object-fit: contain;
    filter: invert(38%) sepia(13%) saturate(363%) hue-rotate(44deg) brightness(93%) contrast(92%);
}

.ofi-certification-card__content {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    align-content: center;
    gap: 0;
    min-width: 0;
    text-align: left;
}

.ofi-certification-card__content h3,
.ofi-certification-card__content p {
    margin: 0;
}

.ofi-certification-card__content h3 {
    margin-bottom: .2rem;
    color: var(--ofi-color-heading-medium);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}

.ofi-certification-card__subtitle {
    margin-bottom: .45rem !important;
    color: var(--ofi-color-text-secondary);
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.35;
}

.ofi-certification-card__content > p:last-child {
    color: var(--ofi-color-text-editorial);
    font-size: .93rem;
    line-height: 1.48;
}

.ofi-palm-certification__note {
    max-width: 58rem;
    margin: 2rem 0 0;
    padding-left: 1.25rem;
    border-left: 3px solid var(--ofi-palm-color-accent-forest);
    color: var(--ofi-color-text-secondary);
    font-size: .9rem;
    line-height: 1.65;
}

/* Sources */

.ofi-sources--editorial {
    border-top: 1px solid var(--ofi-color-border-default);
}

.ofi-sources--editorial .ofi-sources__inner {
    display: grid;
    grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.4fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.ofi-sources--editorial p {
    color: var(--ofi-color-text-editorial);
}

.ofi-sources--editorial a {
    color: var(--ofi-color-text-secondary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
}

.ofi-sources--editorial ul {
    border-top: 1px solid var(--ofi-color-border-default);
}

.ofi-sources--editorial li {
    padding: .8rem 0;
    border-bottom: 1px solid var(--ofi-color-border-default);
    color: var(--ofi-color-text-secondary);
    font-size: .9rem;
    line-height: 1.55;
}

.ofi-sources--editorial a:hover,
.ofi-sources--editorial a:focus-visible {
    color: var(--ofi-color-brand-orange);
}

@media (max-width: 900px) {

    .ofi-section-head--split,
    .ofi-case-study__grid,
    .ofi-sources--editorial .ofi-sources__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ofi-comparison--with-transition,
    .ofi-comparison--contrast {
        grid-template-columns: 1fr;
    }

    .ofi-comparison__transition {
        width: 100%;
        min-height: 4rem;
        border-top: 1px solid var(--ofi-comparison-color-line);
        border-right: 0;
        border-bottom: 1px solid var(--ofi-comparison-color-line);
        border-left: 0;
    }

    .ofi-comparison__transition span {
        writing-mode: horizontal-tb;
    }

    .ofi-palm-wildlife-note {
        grid-template-columns: 1fr;
    }

    .ofi-case-study__metric {
        padding-right: 0;
        padding-bottom: 2.5rem;
        border-right: 0;
        border-bottom: 1px solid var(--ofi-case-study-color-border);
    }

    
}

@media (max-width: 680px) {

    .ofi-palm-replacement__image img {
        height: 24rem;
    }

    .ofi-palm-wildlife-note {
        padding: 1.25rem;
    }

    .ofi-palm-wildlife-note img {
        height: 13rem;
    }

    .ofi-case-study__route {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .ofi-case-study__route i {
        width: 1px;
        height: 1.75rem;
        margin-left: 1.1rem;
    }

    .ofi-case-study__route i::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 50%;
        border-top: 0;
        border-right: 1px solid var(--ofi-case-study-color-accent);
        border-bottom: 1px solid var(--ofi-case-study-color-accent);
        transform: translateX(-50%) rotate(45deg);
    }
}

@media (max-width: 600px) {
    .ofi-certification-card {
        grid-template-columns: 4.25rem minmax(0, 1fr);
        column-gap: 1rem;
        padding: 1.25rem;
    }

    .ofi-certification-card__icon {
        width: 4rem;
        height: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ofi-palm-page *,
    .ofi-palm-page *::before,
    .ofi-palm-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
/* ============================================================
   OFI LAYOUT COMPOSITION — LOCKED V1

   Zero-specificity helpers provide the approved layout vocabulary while
   allowing component states and responsive rules to retain precedence.
   Typography is intentionally excluded from this system.
   ============================================================ */

:where(.ofi-container--narrow) {
    max-width: var(--ofi-layout-content-max-width);
}

:where(.ofi-full-bleed) {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}

/* Major content groups inside one genuine section. This is layout spacing,
   not typography rhythm, and must not be used between page-level sections. */
:where(.ofi-section-stack) {
    display: grid;
    gap: var(--ofi-layout-section-group-gap); 
}

/* Shared interior-page section rhythm and surfaces.
   Every genuine interior section receives 5rem on both outer edges. Page start
   and page end remain separate layout tokens even while they share that value.
   The homepage and typography rhythm are intentionally outside this API. */
:where(.ofi-section) {
    --ofi-section-padding-top: var(--ofi-layout-section-padding-block);
    --ofi-section-padding-bottom: var(--ofi-layout-section-padding-block);
    --ofi-section-color-background: var(--ofi-color-surface-white);

    padding-top: var(--ofi-section-padding-top);
    padding-bottom: var(--ofi-section-padding-bottom);
    background-color: var(--ofi-section-color-background);
}

:where(.ofi-section--entry) {
    --ofi-section-padding-top: var(--ofi-layout-page-padding-top);
}

:where(.ofi-section--exit) {
    --ofi-section-padding-bottom: var(--ofi-layout-page-padding-bottom);
}

.ofi-section--light {
    --ofi-section-color-background: var(--ofi-color-surface-light);
}

.ofi-section--soft {
    --ofi-section-color-background: var(--ofi-color-surface-soft);
}

.ofi-section--neutral {
    --ofi-section-color-background: var(--ofi-color-surface-neutral);
}

.ofi-section--warm {
    --ofi-section-color-background: var(--ofi-color-surface-warm);
}

.ofi-section--paper {
    --ofi-section-color-background: var(--ofi-color-surface-paper);
}

.ofi-section--green-soft {
    --ofi-section-color-background: var(--ofi-color-surface-green-soft);
}

.ofi-section--tan-soft {
    --ofi-section-color-background: var(--ofi-color-surface-tan-soft);
}

.ofi-section--orange-soft {
    --ofi-section-color-background: var(--ofi-color-surface-orange-soft);
}

.ofi-section--orange {
    --ofi-section-color-background: var(--ofi-color-surface-orange);

    color: #fff;
}

.ofi-section--dark-green {
    --ofi-section-color-background: var(--ofi-color-surface-green-dark);

    color: #fff;
}

.ofi-section--orange .ofi-kicker {
    color: #23211f;
}

.ofi-section--dark-green .ofi-kicker {
    color: var(--ofi-color-overlay-tan);
}

.ofi-section--orange :is(h1, h2, h3, h4, h5, h6),
.ofi-section--dark-green :is(h1, h2, h3, h4, h5, h6) {
    color: #fff;
}

.ofi-section--orange :is(p, li),
.ofi-section--dark-green :is(p, li) {
    color: rgba(255, 255, 255, .82);
}

:where(.ofi-row) {
    display: flex;
}

:where(.ofi-stack) {
    display: flex;
    flex-direction: column;
    gap: var(--ofi-spacing-md);
}

:where(.ofi-cluster) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ofi-spacing-sm);
}

:where(.ofi-flex-center) {
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(.ofi-wrap) {
    flex-wrap: wrap;
}

:where(.ofi-grid) {
    display: grid;
    gap: var(--ofi-spacing-md);
}

:where(.ofi-grid--2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ofi-grid--3) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ofi-grid--4) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

:where(.ofi-grid--5) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

:where(.ofi-grid--auto) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

:where(.ofi-split) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--ofi-spacing-2xl);
    align-items: start;
}

:where(.ofi-split--wide-left) {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr);
}

:where(.ofi-split--wide-right) {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
}

:where(.ofi-items-start) {
    align-items: flex-start;
}

:where(.ofi-items-center) {
    align-items: center;
}

:where(.ofi-items-end) {
    align-items: flex-end;
}

:where(.ofi-items-stretch) {
    align-items: stretch;
}

:where(.ofi-justify-start) {
    justify-content: flex-start;
}

:where(.ofi-justify-center) {
    justify-content: center;
}

:where(.ofi-justify-between) {
    justify-content: space-between;
}

:where(.ofi-justify-end) {
    justify-content: flex-end;
}

:where(.ofi-gap-xs) {
    gap: var(--ofi-spacing-xs);
}

:where(.ofi-gap-sm) {
    gap: var(--ofi-spacing-sm);
}

:where(.ofi-gap-md) {
    gap: var(--ofi-spacing-md);
}

:where(.ofi-gap-lg) {
    gap: var(--ofi-spacing-lg);
}

:where(.ofi-gap-xl) {
    gap: var(--ofi-spacing-xl);
}

:where(.ofi-gap-2xl) {
    gap: var(--ofi-spacing-2xl);
}

:where(.ofi-m-0) {
    margin: 0 !important;
}

:where(.ofi-mt-0) {
    margin-top: 0 !important;
}

:where(.ofi-mb-0) {
    margin-bottom: 0 !important;
}

:where(.ofi-p-0) {
    padding: 0 !important;
}

:where(.ofi-w-full) {
    width: 100%;
}

:where(.ofi-h-full) {
    height: 100%;
}

:where(.ofi-object-cover) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

:where(.ofi-object-contain) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

:where(.ofi-relative) {
    position: relative;
}

:where(.ofi-overflow-hidden) {
    overflow: hidden;
}

:where(.ofi-hidden) {
    display: none !important;
}

:where(.ofi-visually-hidden) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 64rem) {
    :where(.ofi-grid--4),
    :where(.ofi-grid--5) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 56.25rem) {
    :where(.ofi-grid--2),
    :where(.ofi-grid--3),
    :where(.ofi-split) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 30rem) {
    :where(.ofi-grid--4),
    :where(.ofi-grid--5) {
        grid-template-columns: 1fr;
    }
}

/* Prevent wide children from forcing no-sidebar page compositions wider than the viewport. */
.ofi-page--no-sidebar,
.ofi-page--no-sidebar .ofi-page__article,
.ofi-page--no-sidebar section,
.ofi-page--no-sidebar [class*="__inner"],
.ofi-page--no-sidebar [class*="__grid"],
.ofi-page--no-sidebar [class*="__content"] {
  min-width: 0;
}
/* Table width and spacing corrections.
   Loaded after the shared comparison-table component so compact tables can
   use the container width while genuinely dense tables retain scrolling. */

.ofi-table--comparison {
    width: 100%;
    min-width: 0;
}

.ofi-table--comparison thead th {
    background: var(--ofi-color-surface-paper);
    color: var(--ofi-color-heading-editorial);
}

/* Long three-column reference tables on shared guide pages remain wide. */
.ofi-guide-page .ofi-table--comparison {
    min-width: 58rem;
}

/* Four or more columns require enough room to remain readable. */
.ofi-table--comparison:has(thead th:nth-child(4)) {
    min-width: 58rem;
}
