/* ============================================================
   iHavos rich content pages (Batch 1, visual direction B)
   Scoped to .rp-page so the existing header/footer stay intact.
   ============================================================ */

.rp-page {
  --rp-green: #006241;
  --rp-green-deep: #004a30;
  --rp-green-ink: #0a2e22;
  --rp-green-soft: #e8f1ec;
  --rp-amber: #c98a1f;
  --rp-amber-soft: #fbf3e2;
  --rp-canvas: #fbfcfa;
  --rp-surface: #ffffff;
  --rp-ink: #17251f;
  --rp-ink-2: #46554d;
  --rp-ink-3: #6c7a72;
  --rp-line: #e3e8e4;
  --rp-radius: 16px;
  --rp-radius-sm: 9px;
  --rp-shadow: 0 18px 50px -28px rgba(0, 74, 48, 0.35);
  --rp-maxw: 1180px;
  --rp-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  background: var(--rp-canvas);
  color: var(--rp-ink);
  font-family: var(--rp-font);
  font-size: 17px;
  line-height: 1.75;
}

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

.rp-wrap {
  width: 100%;
  max-width: var(--rp-maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

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

.rp-page h1,
.rp-page h2,
.rp-page h3,
.rp-page h4 {
  font-family: var(--rp-font);
  color: var(--rp-ink);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 0.5em;
}

.rp-page h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 700; line-height: 1.06; }
.rp-page h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; }
.rp-page h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 650; }
.rp-page h4 { font-size: 1.05rem; font-weight: 650; }
.rp-page p { margin: 0 0 1em; color: var(--rp-ink-2); }
.rp-page a { color: var(--rp-green); text-decoration: none; }
.rp-page a:hover { color: var(--rp-green-deep); }

/* ---------- hero ---------- */
.rp-hero {
  position: relative;
  background-color: var(--rp-green-deep);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: clamp(96px, 13vw, 180px) 0 clamp(64px, 8vw, 104px);
  isolation: isolate;
}
.rp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 42, 27, 0.72) 0%, rgba(0, 42, 27, 0.82) 55%, rgba(0, 32, 21, 0.92) 100%);
  z-index: -1;
}
.rp-hero h1,
.rp-hero h2,
.rp-hero p { color: #fff; }
.rp-crumb {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 28px;
}
.rp-crumb a { color: rgba(255, 255, 255, 0.82); }
.rp-crumb a:hover { color: #fff; }
.rp-crumb span { margin: 0 8px; opacity: 0.5; }

.rp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rp-amber);
  margin-bottom: 18px;
}
.rp-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rp-amber);
}
.rp-hero .rp-kicker { color: #f0c674; }
.rp-hero .rp-kicker::before { background: #f0c674; }

.rp-hero h1 { max-width: 15em; margin-bottom: 18px; }
.rp-hero .rp-sub {
  max-width: 44em;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 28px;
}

.rp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.rp-btn:hover { transform: translateY(-1px); }
.rp-btn-primary { background: var(--rp-amber); color: #1c1404; }
.rp-btn-primary:hover { background: #dda13a; color: #1c1404; }
.rp-btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.rp-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rp-btn-green { background: var(--rp-green); color: #fff; }
.rp-btn-green:hover { background: var(--rp-green-deep); color: #fff; }
.rp-btn-outline { border-color: var(--rp-line); color: var(--rp-ink); background: #fff; }

/* ---------- body ---------- */
.rp-content { padding: 0; }

.rp-section { padding: clamp(56px, 7vw, 92px) 0; }
.rp-section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.rp-section--soft { background: var(--rp-green-soft); }
.rp-section--ink { background: var(--rp-green-ink); color: #fff; }
.rp-section--ink h2,
.rp-section--ink h3,
.rp-section--ink p { color: #fff; }
.rp-section--ink p { color: rgba(255, 255, 255, 0.78); }

.rp-section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.rp-section-head.rp-center { margin-left: auto; margin-right: auto; text-align: center; }
.rp-section-head h2 { margin-bottom: 14px; }
.rp-section-head p { font-size: 1.05rem; }

.rp-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--rp-ink-2); max-width: 52em; }

/* ---------- grids / cards ---------- */
.rp-grid { display: grid; gap: 20px; }
.rp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rp-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.rp-card:hover { box-shadow: var(--rp-shadow); transform: translateY(-2px); }
.rp-card h3 { margin-bottom: 10px; }
.rp-card p:last-child { margin-bottom: 0; }

.rp-card--accent { border-top: 3px solid var(--rp-amber); }
.rp-card--green { background: var(--rp-green); border-color: transparent; color: #fff; }
.rp-card--green h3,
.rp-card--green p { color: #fff; }
.rp-card--green p { color: rgba(255, 255, 255, 0.8); }

.rp-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--rp-green-soft);
  color: var(--rp-green);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.rp-card--green .rp-num { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- EPCO letter cards ---------- */
.rp-epco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rp-epco-card {
  background: #fff;
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius);
  padding: 26px 22px;
}
.rp-epco-letter {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--rp-green);
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.rp-epco-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rp-epco-card p { font-size: 0.94rem; margin: 0; }

/* ---------- split section ---------- */
.rp-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.rp-split--media { grid-template-columns: 1.05fr 0.95fr; }
.rp-split h2 { margin-bottom: 12px; }
.rp-split-media {
  border-radius: var(--rp-radius);
  overflow: hidden;
  background: var(--rp-green-soft);
  border: 1px solid var(--rp-line);
}
.rp-split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

.rp-list { margin: 0 0 1.2em; padding: 0; list-style: none; }
.rp-list li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--rp-ink-2); }
.rp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rp-amber);
}
.rp-list--check li::before {
  content: "✓";
  width: auto;
  height: auto;
  background: none;
  color: var(--rp-green);
  font-weight: 700;
  top: 0;
}

.rp-deliver {
  background: var(--rp-green-soft);
  border-left: 3px solid var(--rp-green);
  padding: 14px 18px;
  border-radius: 0 var(--rp-radius-sm) var(--rp-radius-sm) 0;
  font-size: 0.94rem;
  color: var(--rp-ink-2);
  margin-top: 10px;
}
.rp-deliver strong { color: var(--rp-green-ink); }

/* ---------- steps ---------- */
.rp-steps { display: grid; gap: 0; counter-reset: step; }
.rp-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rp-line);
}
.rp-step:last-child { border-bottom: 0; }
.rp-step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--rp-green);
  color: var(--rp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}
.rp-step h3 { margin-bottom: 6px; }
.rp-step p { margin-bottom: 6px; }
.rp-step .rp-deliver { margin-top: 8px; }

/* ---------- table ---------- */
.rp-table-wrap { overflow-x: auto; border: 1px solid var(--rp-line); border-radius: var(--rp-radius); background: #fff; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rp-table th,
.rp-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rp-line); vertical-align: top; }
.rp-table th { background: var(--rp-green-soft); color: var(--rp-green-ink); font-weight: 650; }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-table td:first-child { color: var(--rp-ink); font-weight: 600; white-space: nowrap; }

/* ---------- FAQ ---------- */
.rp-faq { max-width: 900px; }
.rp-faq details {
  border-bottom: 1px solid var(--rp-line);
  padding: 18px 0;
}
.rp-faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--rp-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq summary::after { content: "+"; color: var(--rp-green); font-size: 1.3rem; line-height: 1; }
.rp-faq details[open] summary::after { content: "−"; }
.rp-faq details p { margin: 12px 0 0; }

/* ---------- CTA ---------- */
.rp-cta {
  background: var(--rp-green-ink);
  color: #fff;
  border-radius: var(--rp-radius);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.rp-cta h2 { color: #fff; margin-bottom: 8px; }
.rp-cta p { color: rgba(255, 255, 255, 0.82); margin: 0; max-width: 46em; }
.rp-cta .rp-actions { flex: 0 0 auto; }

/* ---------- stats ---------- */
.rp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rp-stat { padding: 22px; border-left: 2px solid var(--rp-amber); background: #fff; border-radius: 0 var(--rp-radius-sm) var(--rp-radius-sm) 0; }
.rp-stat strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--rp-green); line-height: 1.1; }
.rp-stat span { font-size: 0.9rem; color: var(--rp-ink-3); }

/* ---------- misc ---------- */
.rp-note { font-size: 0.88rem; color: var(--rp-ink-3); }
.rp-center { text-align: center; }
.rp-mt-0 { margin-top: 0; }
.rp-mt-24 { margin-top: 24px; }
.rp-mt-40 { margin-top: 40px; }
.rp-mb-0 { margin-bottom: 0; }

@media (max-width: 1024px) {
  .rp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-epco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .rp-page { font-size: 16px; }
  .rp-hero { padding-top: 150px; }
  .rp-grid-3,
  .rp-grid-2 { grid-template-columns: 1fr; }
  .rp-split,
  .rp-split--media { grid-template-columns: 1fr; }
  .rp-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .rp-grid-4,
  .rp-epco,
  .rp-stats { grid-template-columns: 1fr; }
  .rp-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .rp-step-num { width: 38px; height: 38px; }
  .rp-hero { padding-top: 140px; }
}

/* 提高按钮在 .rp-page a 下的优先级 */
.rp-page a.rp-btn-primary { color: #1c1404; }
.rp-page a.rp-btn-ghost { color: #fff; }
.rp-page a.rp-btn-green { color: #fff; }
.rp-page a.rp-btn-outline { color: var(--rp-ink); }
.rp-page a.rp-btn-primary:hover { color: #1c1404; }
.rp-page a.rp-btn-ghost:hover { color: #fff; }
.rp-page a.rp-btn-green:hover { color: #fff; }
.rp-page a.rp-btn-outline:hover { color: var(--rp-ink); }
/* 产品页辅助组件 */
.rp-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 18px;
}
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rp-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--rp-line);
  background: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--rp-ink-2);
}
.rp-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rp-green);
  font-weight: 700;
  margin-bottom: 8px;
}
.rp-section--ink .rp-tag { color: #f0c674; }
/* ---------- project pages ---------- */
.rp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rp-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rp-figure { margin: 28px 0; }
.rp-figure img { width: 100%; border-radius: 14px; display: block; object-fit: cover; aspect-ratio: 4 / 3; }
.rp-figure figcaption { font-size: 0.85rem; color: var(--rp-ink-3); margin-top: 8px; }
.rp-project-card { display: flex; flex-direction: column; color: inherit; }
.rp-project-card .rp-card-img { aspect-ratio: 16 / 10; }
.rp-project-card .rp-badge { margin-top: auto; align-self: flex-start; }
.rp-project-card .rp-note { display: block; margin-top: auto; padding-top: 8px; color: var(--rp-green); font-weight: 650; }
.rp-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--rp-ink-3); margin: 8px 0 12px; }
.rp-badge { display: inline-block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.04em; background: var(--rp-amber-soft); color: #8a5a10; padding: 3px 9px; border-radius: 999px; }
.rp-project-lead { max-width: 58em; }
.rp-mt-8 { margin-top: 8px; }
.rp-mt-16 { margin-top: 16px; }
.rp-mb-8 { margin-bottom: 8px; }

@media (max-width: 820px) {
  .rp-gallery, .rp-gallery--3 { grid-template-columns: 1fr; }
}
/* homepage hero text */
.slider-content h5 { color: #f0c674; text-shadow: 0 2px 12px rgba(0,0,0,.55); letter-spacing: .12em; }
.slider-content h2 { text-shadow: 0 2px 20px rgba(0,0,0,.5); }

/* CEA questionnaire */
.rp-wrap--narrow { max-width: 980px; }
.cea-intro { margin-bottom: 36px; }
.cea-form { margin-top: 12px; }
.cea-progress { margin-bottom: 28px; }
.cea-progress-bar { height: 6px; background: #e8eee9; border-radius: 999px; overflow: hidden; }
.cea-progress-bar span { display: block; height: 100%; width: 25%; background: var(--rp-green); border-radius: 999px; transition: width .25s ease; }
.cea-progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--rp-muted); }
.rp-form-step { border: 0; margin: 0; padding: 0; }
.rp-form-step + .rp-form-step { margin-top: 8px; }
.rp-form-legend { font-size: 22px; font-weight: 700; color: var(--rp-ink); margin: 0 0 20px; padding: 0; }
.rp-form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 18px; }
.rp-field { grid-column: span 6; min-width: 0; }
.rp-field--half { grid-column: span 3; }
.rp-field--third { grid-column: span 2; }
.rp-field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--rp-ink); }
.rp-field input[type="text"], .rp-field input[type="email"], .rp-field input[type="tel"], .rp-field input[type="number"], .rp-field input[type="url"], .rp-field input[type="date"], .rp-field textarea, .rp-field select {
  width: 100%; border: 1px solid var(--rp-line); background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--rp-ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.rp-field textarea { resize: vertical; min-height: 110px; }
.rp-field input:focus, .rp-field textarea:focus, .rp-field select:focus { border-color: var(--rp-green); box-shadow: 0 0 0 3px rgba(31, 122, 76, .12); }
.rp-field-help { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--rp-muted); }
.rp-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.rp-choice { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border: 1px solid var(--rp-line); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; line-height: 1.45; }
.rp-choice:hover { border-color: var(--rp-green); }
.rp-choice input { margin-top: 3px; accent-color: var(--rp-green); flex: 0 0 auto; }
.rp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cea-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 32px; }
.cea-actions .rp-btn { min-width: 110px; }
#cea-submit { margin-left: auto; }
.cea-privacy { margin-top: 18px; font-size: 12px; color: var(--rp-muted); }
@media (max-width: 767px) {
  .rp-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .rp-field, .rp-field--half, .rp-field--third { grid-column: span 2; }
  .rp-choices { grid-template-columns: 1fr; }
  #cea-submit { margin-left: 0; }
  .cea-actions .rp-btn { flex: 1 1 45%; }
}
/* Contact page */
.rp-contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.rp-contact-aside { background: var(--rp-soft); border: 1px solid var(--rp-line); border-radius: 18px; padding: 34px; }
.rp-contact-aside h2 { font-size: 30px; margin: 8px 0 14px; }
.rp-contact-aside p { color: var(--rp-muted); }
.rp-contact-list { margin-top: 26px; display: grid; gap: 18px; }
.rp-contact-item { display: grid; gap: 4px; font-size: 15px; }
.rp-contact-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rp-muted); }
.rp-contact-item a { color: var(--rp-ink); font-weight: 600; }
.rp-contact-switch { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.rp-contact-switch a { color: var(--rp-green); font-weight: 600; }
.rp-contact-form-wrap h2 { font-size: 34px; margin: 8px 0 12px; }
.rp-contact-form-wrap > p:not(.rp-kicker) { color: var(--rp-muted); margin-bottom: 24px; }
.rp-contact-form .rp-form-grid { gap: 16px 14px; }
.rp-contact-form .rp-field-label { font-size: 13px; }
.rp-contact-form .rp-btn { min-width: 180px; }
@media (max-width: 991px) {
  .rp-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .rp-contact-aside { padding: 26px; }
}
@media (max-width: 575px) {
  .rp-contact-form-wrap h2 { font-size: 28px; }
  .rp-contact-aside h2 { font-size: 26px; }
}
/* News */
.rp-news-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rp-news-cats a { padding: 8px 14px; border: 1px solid var(--rp-line); border-radius: 999px; font-size: 13px; color: var(--rp-muted); background: #fff; }
.rp-news-cats a:hover { color: var(--rp-green); border-color: var(--rp-green); }
.rp-news-cat-card { display: block; background: #fff; border: 1px solid var(--rp-line); border-radius: 16px; overflow: hidden; }
.rp-news-cat-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.rp-news-cat-card h3 { margin: 16px 18px 6px; font-size: 19px; }
.rp-news-cat-card p { margin: 0 18px 12px; font-size: 13px; color: var(--rp-muted); line-height: 1.55; }
.rp-news-cat-card .rp-note { display: block; margin: 0 18px 18px; }
.rp-news-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--rp-line); border-radius: 16px; overflow: hidden; }
.rp-news-card .rp-news-body { display: flex; flex-direction: column; flex: 1; }
.rp-news-card .rp-news-body .rp-note { margin-top: auto; padding-top: 12px; }
.rp-news-media { aspect-ratio: 16/10; background: var(--rp-soft); overflow: hidden; }
.rp-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.rp-news-card:hover .rp-news-media img { transform: scale(1.03); }
.rp-news-body { padding: 20px; }
.rp-news-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--rp-muted); margin-bottom: 8px; }
.rp-news-body h3 { font-size: 19px; line-height: 1.35; margin: 0 0 8px; }
.rp-news-body p { font-size: 14px; color: var(--rp-muted); line-height: 1.55; margin: 0 0 12px; }
.rp-article-head { padding: 150px 0 42px; background: var(--rp-soft); border-bottom: 1px solid var(--rp-line); }
.rp-article-head h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; margin: 8px 0 16px; max-width: 900px; }
.rp-article { font-size: 16px; line-height: 1.85; color: var(--rp-ink); }
.rp-article h2, .rp-article h3 { margin: 32px 0 12px; line-height: 1.3; }
.rp-article p { margin: 0 0 16px; }
.rp-article img { max-width: 100%; height: auto; border-radius: 12px; }
.rp-article ul { margin: 0 0 18px 20px; padding: 0; }
.rp-article-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rp-line); }
@media (max-width: 767px) {
  .rp-article-head { padding: 120px 0 32px; }
  .rp-news-cat-card img { height: 130px; }
}
/* Gold CTA alias used by the capability pages. */
.rp-page a.rp-btn-gold { background: var(--rp-amber); color: #1c1404; }
.rp-page a.rp-btn-gold:hover { background: #dda13a; color: #1c1404; }

/* =========================================================
   2.0 full-bleed feature: image background + white copy panel
   Used on Home About, About What We Do, EPCO/ACL/Container.
   ========================================================= */
.rp-feature {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 74vh, 760px);
  background: #0d2d22;
}
.rp-feature-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rp-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 26, 19, 0.30) 0%, rgba(4, 26, 19, 0.04) 48%, rgba(4, 26, 19, 0) 100%);
  z-index: 1;
  pointer-events: none;
}
.rp-feature-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.rp-feature-card {
  width: min(600px, 100%);
  background: rgba(255, 255, 255, 0.40);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  backdrop-filter: blur(7px) saturate(1.1);
  padding: clamp(32px, 3.4vw, 52px);
  margin: 52px 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 70px rgba(6, 36, 26, 0.16);
}
.rp-feature-card .rp-kicker { margin-bottom: 18px; }
.about-work-feature .rp-feature-card {
  width: min(880px, 100%);
  background: rgba(255, 255, 255, 0.88);
}
@media (min-width: 901px) {
  .about-work-feature .rp-feature-card { width: min(880px, 78%); }
}
.rp-feature-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.rp-feature-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.rp-feature-card .rp-actions { margin-top: 24px; }
.rp-feature-card .rp-tagline {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 55, 40, 0.12);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b5a42;
}
@media (max-width: 900px) {
  .rp-feature { display: block; min-height: 0; background: #fff; }
  .rp-feature-bg { position: relative; height: 280px; }
  .rp-feature::after {
    height: 280px;
    background: linear-gradient(180deg, rgba(4, 26, 19, 0.10), rgba(4, 26, 19, 0.34));
  }
  .rp-feature-inner { width: 100%; }
  .rp-feature-card {
    width: 100%;
    margin: 0;
    padding: 34px 24px 40px;
    border-left: 0;
    border-right: 0;
  }
}

/* Keep the language trigger on one line (Español / Français / 中文). */
.login .lang-select,
.login .lang-btn { flex-shrink: 0; }
.login .lang-btn {
  white-space: nowrap;
  font-size: 15px !important;
  line-height: 1.2;
  gap: 3px !important;
}
.login ul { gap: 14px !important; }

/* 1024px header: keep the primary nav on one line */
@media (min-width: 992px) and (max-width: 1279px) {
  .header-area .second-menu .main-menu ul li { margin-left: 7px; }
  .header-area .second-menu .main-menu ul li a { font-size: 12px; }
  .header-area .login ul { gap: 8px !important; }
  .header-area .login { margin-left: 10px; }
  .header-area .login .lang-btn { font-size: 12px; }
  .header-area .logo img { max-height: 54px; width: auto; }
}

/* EPCO cards inside the P0 white card */
.rp-feature-card .rp-epco { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-feature-card .rp-epco-card { padding: 18px; }
.rp-feature-card .rp-epco-card h3 { font-size: 1rem; }
@media (max-width: 700px) {
  .rp-feature-card .rp-epco { grid-template-columns: 1fr; }
}

/* .rp-page img sets height:auto; keep the feature image covering the full band. */
.rp-page .rp-feature-bg { width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Solution pathway cards: keep the bottom CTA on one line */
.rp-solution-card { height: 100%; }
.rp-solution-card .rp-actions { margin-top: auto; padding-top: 16px; }

/* Long-form content pages */
.lf-section { padding: 64px 0; background: #fff; }
.lf-section.lf-soft { background: #f2f7f4; }
.lf-wrap { max-width: 920px; }
.lf-kicker { margin: 0 0 18px; color: #8a6a25; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.lf-title { margin: 0 0 28px; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.18; letter-spacing: -.02em; color: #14211b; }
.lf-h3 { margin: 44px 0 14px; font-size: 1.28rem; line-height: 1.4; color: #14211b; }
.lf-wrap p { margin: 0 0 20px; font-size: 1.05rem; line-height: 1.85; color: #40504a; }
.lf-list { margin: 0 0 24px; padding-left: 22px; color: #40504a; }
.lf-list li { margin: 0 0 10px; line-height: 1.8; }
.lf-figure { margin: 34px 0; }
.lf-figure img { width: 100%; height: auto; border-radius: 18px; display: block; }
.lf-figure figcaption { margin-top: 10px; font-size: .82rem; color: #6a7a72; line-height: 1.6; }
.lf-table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .95rem; }
.lf-table th, .lf-table td { border-bottom: 1px solid #dfe8e2; padding: 12px 14px; text-align: left; vertical-align: top; }
.lf-table th { background: #eef5f0; font-weight: 600; }
@media (max-width: 640px) { .lf-section { padding: 58px 0; } .lf-wrap p { font-size: 1rem; line-height: 1.8; } .lf-title { font-size: 1.9rem; } }
.lf-figure { width: 100%; max-width: none; }
.lf-figure img { width: 100% !important; max-width: none !important; }

/* ACL longform: keep the original split image layout */
.lf-figure--split { float: right; width: 44%; max-width: 520px; margin: 4px 0 26px 42px; }
.lf-figure--split img { width: 100%; height: auto; border-radius: 14px; }
.lf-section .lf-wrap::after { content: ""; display: table; clear: both; }
@media (max-width: 900px) {
  .lf-figure--split { float: none; width: 100%; max-width: none; margin: 26px 0; }
}

/* Long-form tables: scroll inside the wrapper, never widen the page */
.lf-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lf-table table { width: 100%; min-width: 640px; border-collapse: collapse; margin: 0; font-size: .95rem; }
.lf-table th, .lf-table td { border-bottom: 1px solid #dfe8e2; padding: 12px 14px; text-align: left; vertical-align: top; }
.lf-table th { background: #eef5f0; font-weight: 600; }

/* EPCO Why cards with source icons */
.rp-card--icon .rp-card-icon { width: 52px; height: 52px; margin-bottom: 16px; display: flex; align-items: center; justify-content: flex-start; }
.rp-card--icon .rp-card-icon img { width: 52px; height: 52px; object-fit: contain; display: block; }

/* Home carousel: left-aligned titles with a short gradient. */
#parallax .single-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 35, 26, .78), rgba(3, 35, 26, .32) 14%, rgba(3, 35, 26, .10) 25%, transparent 34%);
  pointer-events: none;
}
/* Keep the fade visible over the brighter Spatial Intelligence photo. */
#parallax .single-slider[style*="hero-digital-twin-tomatoes-hd.png"]::after {
  background: linear-gradient(90deg, rgba(3, 35, 26, .78), rgba(3, 35, 26, .42) 14%, rgba(3, 35, 26, .19) 25%, transparent 34%);
}
#parallax .single-slider > .container {
  max-width: none;
  padding-inline: max(16px, 5vw);
}
#parallax .s-slider-content {
  top: clamp(16px, 3vw, 44px);
}
#parallax .s-slider-content h5 {
  color: #ffe6a6;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .95);
}
#parallax .s-slider-content h2 {
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
}

/* Product detail: editorial split hero + sticky section nav (reference: iHavos Product Pages) */
.pd-hero{background-color:#07392c;background-size:cover;background-position:center;position:relative;isolation:isolate;color:#fff;padding:170px 0 84px;}
.pd-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,35,26,.94) 0%,rgba(3,35,26,.82) 42%,rgba(3,35,26,.48) 72%,rgba(3,35,26,.58) 100%);z-index:0;}
.pd-hero-grid{position:relative;z-index:1;display:block;}
.pd-hero-grid{position:relative;z-index:1;display:block;}
.pd-hero-copy .rp-crumb{color:rgba(255,255,255,.96);margin-bottom:26px;font-size:13px;text-shadow:0 1px 8px rgba(0,0,0,.35);}
.pd-hero-copy .rp-crumb a{color:#fff;}
.pd-hero-copy .rp-crumb span{color:rgba(255,255,255,.62);}
.pd-eyebrow{font:600 12px/1.4 var(--rp-font,sans-serif);letter-spacing:.18em;text-transform:uppercase;color:#d8b56a;margin:0 0 14px;display:flex;align-items:center;gap:12px;}
.pd-eyebrow::before{content:"";display:inline-block;width:28px;height:1px;background:currentColor;flex:0 0 28px;}
.pd-hero-copy h1{font-size:clamp(36px,3.6vw,54px);line-height:1.02;letter-spacing:-.035em;margin:0 0 18px;color:#fff;}
.pd-hero-copy .rp-sub{font-size:clamp(18px,1.8vw,24px);line-height:1.45;color:rgba(255,255,255,.82);max-width:620px;margin:0 0 30px;}
.pd-hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.pd-hero-lead{font-size:clamp(16px,1.4vw,19px);line-height:1.6;color:rgba(255,255,255,.92);max-width:560px;margin:18px 0 0;}
.pd-hero .rp-btn-primary{background:#d3ad63;border-color:#d3ad63;color:#1b1a12;}
.pd-hero .rp-btn-primary:hover{background:#e0bd76;border-color:#e0bd76;color:#1b1a12;}
.rp-page.has-pd{overflow:visible;}
.rp-subtitle{font-size:clamp(22px,2.2vw,30px);line-height:1.25;color:var(--rp-ink);margin:0 0 10px;}
.pd-hero-media img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.24);}
.pd-nav{position:sticky;top:84px;z-index:60;background:rgba(255,255,255,.96);border-bottom:1px solid #e3ebe5;backdrop-filter:blur(10px);}
.pd-nav ul{display:flex;flex-wrap:wrap;gap:10px 24px;list-style:none;max-width:1200px;margin:0 auto;padding:14px 24px;}
.lf-section{scroll-margin-top:150px;}
.pd-nav a{display:block;white-space:nowrap;font-size:13px;font-weight:600;letter-spacing:.04em;color:#3d5a4c;text-decoration:none;padding:2px 0;border-bottom:2px solid transparent;}
.pd-nav a:hover,.pd-nav a.active{color:#0b5a40;border-bottom-color:#c9a35a;}
@media (max-width:900px){
 .pd-hero{padding:132px 0 56px;}
 .pd-hero-grid{grid-template-columns:1fr;gap:34px;}
 .pd-hero-media img{aspect-ratio:16/10;}
 .pd-nav{top:64px;}
 .pd-nav ul{gap:10px 18px;padding:12px 20px;}
 .lf-section{scroll-margin-top:120px;}
}
.pd-nav-spacer{height:0;}
.pd-nav.is-fixed{position:fixed;left:0;right:0;top:0;z-index:70;}
.pd-hero-link{cursor:pointer;}
.pd-hero-link::after{content:" ↓";font-size:.46em;vertical-align:.35em;color:#f0d49a;}

.pd-hero .pd-eyebrow{color:#d8b56a;}
.pd-hero .pd-hero-lead{color:rgba(255,255,255,.92);}
.pd-hero .rp-crumb,.pd-hero .rp-crumb a{color:#fff;}
.pd-hero .rp-crumb span{color:rgba(255,255,255,.62);}

.rp-solutions-hero h1 {
  max-width: 22ch;
  text-wrap: balance;
}
.rp-about-hero::before {
  background: linear-gradient(90deg, rgba(3, 35, 26, .94), rgba(3, 35, 26, .82) 42%, rgba(3, 35, 26, .18));
}
.rp-about-hero h1 { max-width: 22ch; text-wrap: balance; }
.rp-about-hero .rp-sub { margin-bottom: 0; }
.rp-about-hero .pd-hero-actions { margin-top: 24px; }
:is(#solution-pathways, #about-projects) { scroll-margin-top: 120px; }
/* The header leaves document flow when a jump from the hero makes it sticky. */
body:not(:has(#header-sticky.sticky-menu)) :is(#solution-pathways, #about-projects) {
  scroll-margin-top: 220px;
}
.rp-solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.rp-solution-tags li {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--rp-green-soft);
  color: var(--rp-green);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.project-opening, .project-reading { max-width: 54rem; }
.project-highlights-heading { margin-top: 28px; }
[data-section="84"] .rp-stat strong {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  white-space: nowrap;
}
[data-section="84"] .project-photo-grid:not(.project-photo-grid--featured):not(.project-photo-grid--three):not(.dammam-paired) {
  grid-template-columns: 1fr;
}
[data-section="84"] .project-photo-grid:not(.project-photo-grid--featured):not(.project-photo-grid--three):not(.dammam-paired) img {
  aspect-ratio: 16 / 10;
}
.project-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
}
.project-story-row + .project-story-row,
.project-story-row + .project-reading { margin-top: clamp(28px, 5vw, 56px); }
.project-story-row--reverse { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); }
.project-story-row--reverse .project-story-media { order: -1; }
.project-story-copy > :last-child { margin-bottom: 0; }
.project-photo { margin: 0; }
.project-photo img {
  display: block;
  width: 100%;
  max-height: 280px;
  aspect-ratio: 4 / 3;
  border-radius: var(--rp-radius-sm);
  object-fit: cover;
}
.project-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.project-photo-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-wide-gallery { margin: 24px 0 32px; }
.project-wide-gallery .project-photo img {
  aspect-ratio: auto;
  max-height: 400px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .project-wide-gallery .project-photo-grid { grid-template-columns: 1fr; }
}
.project-photo-grid--featured .project-photo:first-child { grid-column: 1 / -1; }
.project-photo-grid--featured .project-photo:first-child img { aspect-ratio: 16 / 9; }
.project-work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  margin-bottom: 24px;
}
.project-work-list h3, .project-value-list h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}
.project-work-list p { margin-bottom: 0; }
[data-section="84"] .project-story-row:has(.project-work-list) .project-photo img {
  aspect-ratio: auto;
  max-height: 360px;
  object-fit: contain;
}
[data-section="84"] .dammam-fruiting-row,
[data-section="84"] .project-story-row:has(.dammam-paired) {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
[data-section="84"] .dammam-fruiting-row .project-story-copy,
[data-section="84"] .project-story-row:has(.dammam-paired) .project-story-copy {
  max-width: 54rem;
}
[data-section="84"] .project-story-row:has(.dammam-paired) .project-story-media {
  order: 0;
}
[data-section="84"] .dammam-fruiting-row img {
  aspect-ratio: 4 / 3;
}
[data-section="84"] .dammam-paired img {
  aspect-ratio: 16 / 10;
  max-height: none;
}
@media (max-width: 620px) {
  [data-section="84"] .dammam-fruiting-row .project-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-section="84"] .dammam-paired {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 821px) {
  [data-section="84"] .project-story-row:has(.project-work-list) {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
@media (max-width: 540px) {
  [data-section="84"] .project-story-row:has(.project-work-list) .project-photo-grid {
    grid-template-columns: 1fr;
  }
}
.project-value-list {
  max-width: 54rem;
  margin-bottom: 32px;
  padding-inline-start: 1.5rem;
}
.project-value-list li { padding-inline-start: 0.4rem; }
.project-story-row + .project-reading,
.project-summary { margin-bottom: 16px; }
.project-summary { margin-top: 24px; }
.project-table {
  border: 1px solid var(--rp-line);
  border-radius: var(--rp-radius-sm);
  background: var(--rp-surface);
}
.project-table table { min-width: 0; }
.project-table--wide table { min-width: 560px; }
.project-table caption {
  caption-side: top;
  padding: 12px 14px;
  color: var(--rp-ink);
  font-weight: 700;
}
.project-table tbody th { background: var(--rp-surface); }
@media (max-width: 820px) {
  .project-story-row, .project-story-row--reverse, .project-work-list { grid-template-columns: 1fr; }
  .project-story-row--reverse .project-story-media { order: 0; }
  .project-photo img { max-height: 240px; }
}

/* Products list: compact intro above the six cards */
.rp-products-intro{padding:52px 0 0;}
.rp-products-title{font-weight:800;font-size:clamp(40px,4.4vw,64px);line-height:1.05;letter-spacing:-.035em;color:#0b2f24;margin:0;}
.rp-products-grid{padding-top:20px;}
@media (max-width:700px){.rp-products-intro{padding:46px 0 0;}.rp-products-title{font-size:38px;}.rp-products-grid{padding-top:22px;}}
/* Keep project destinations legible on the About page campus photograph. */
.about-project-entries { background-position:center; background-size:cover; position:relative; isolation:isolate; }
.about-project-entries::before { content:""; position:absolute; inset:0; background:rgba(9,33,27,.63); z-index:-1; }
.about-project-entries .rp-section-head h2,.about-project-entries .rp-kicker,
.about-project-entries .rp-card h3,.about-project-entries .rp-card p { color:#fff; }
.about-project-entries .rp-card { background:rgba(15,38,33,.76); padding:1.25rem; border:1px solid rgba(255,255,255,.32); }
.about-project-entries .rp-card:focus-visible { outline:3px solid white; outline-offset:3px; }
.aligned-photo img { width:100%; height:auto; object-fit:contain; }
.approved-section-copy { margin:2rem 0; }
@media (min-width:850px) {
 .lf-wrap:has(> .aligned-photo) { display:flow-root; }
 .lf-wrap > .aligned-photo { float:right; clear:both; width:44%; margin:1rem 0 1.5rem 2rem; }
 .lf-section:nth-of-type(even) .lf-wrap > .aligned-photo { float:left; margin:1rem 2rem 1.5rem 0; }
 .lf-wrap > .approved-section-copy,.lf-wrap > .lf-table { clear:both; }
}
@media (max-width:849px) { .lf-wrap > .aligned-photo { width:100%; margin:1.25rem 0; } }
@media (max-width:849px) {
 .rp-page:not([data-section="141"]) .pd-nav ul { flex-wrap:nowrap; overflow-x:auto; max-width:100%; scrollbar-width:thin; }
 .rp-page:not([data-section="141"]) .pd-nav li { flex:0 0 auto; }
 .rp-page:not([data-section="130"], [data-section="141"]) .lf-wrap { overflow-wrap:break-word; }
}

/* Qassim project photography */
.qassim-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.qassim-story .project-story-copy h3 { margin-top: 1.4rem; }
.qassim-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.qassim-photos .project-photo img { aspect-ratio: 4 / 3; max-height: none; }
.qassim-photos .project-photo:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.qassim-photos .project-photo:first-child:nth-last-child(3) img { aspect-ratio: 16 / 9; }
.qassim-photos .project-photo img.qassim-plan { object-fit: contain; background: var(--rp-surface); }
@media (max-width: 900px) {
  .qassim-story { grid-template-columns: minmax(0, 1fr); }
}

.qassim-pair { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); align-items:center; gap:clamp(22px,4vw,54px); margin-block:28px; }
.qassim-pair .qassim-photos { grid-template-columns:minmax(0,1fr); }
.qassim-pair .project-photo img { width:100%; aspect-ratio:16/9; }
.qassim-pair .qassim-plan { aspect-ratio:auto; }
@media (max-width:760px) {
  .qassim-pair { grid-template-columns:minmax(0,1fr); gap:12px; }
}

[data-section="86"] .qassim-reading { max-width: 82ch; margin-block: 1.5rem; }
[data-section="86"] .qassim-reading h3 { margin-block: 1.6rem .5rem; }
[data-section="86"] .qassim-photos { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,2vw,26px); margin-block:clamp(20px,3vw,38px); }
[data-section="86"] .qassim-photos img { width:100%; aspect-ratio: 3/2; max-height:none; }
[data-section="86"] .qassim-feature { display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(24px,4vw,54px); align-items:center; }
[data-section="86"] .qassim-feature .qassim-photos { grid-template-columns:1fr; }
@media(max-width:760px) {
  [data-section="86"] .qassim-feature, [data-section="86"] .qassim-photos { grid-template-columns:1fr; }
}

/* EPC+O greenhouse configurations */
[data-section="104"] .acl-photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

[data-section="104"] :is(.acl-photo-pair, .rp-split-media) img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
}

@media (max-width: 700px) {
  [data-section="104"] :is(.acl-photo-pair, .rp-split) {
    grid-template-columns: minmax(0, 1fr);
  }
}

[data-section="80"] {
  --epco-section-padding: clamp(30px, 3.4vw, 48px);
}

[data-section="80"] .rp-content .rp-section:not(.rp-section--tight) {
  padding-block: var(--epco-section-padding);
}

[data-section="80"] .rp-section--tight:has(.rp-cta) {
  padding-block-start: 8px;
}

[data-section="80"] .rp-cta {
  padding: clamp(26px, 3.5vw, 48px);
}

[data-section="80"] .rp-cta .rp-actions {
  flex: 0 1 auto;
}

[data-section="80"] .epco-why-tagline {
  color: var(--rp-green);
}

[data-section="80"] #why .epco-why-tagline ~ p {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

[data-section="80"] .epco-why-lead {
  margin-bottom: .65em;
}

[data-section="80"] .rp-section--tight:has(.rp-epco) {
  padding-block-end: 0;
}

/* Keep the comparison card's standalone spacing and typography. */
.epco-greenhouse-types { padding-inline: 8px; }
.ih-gc :is(h2, h3, p) { all: revert; }
.epco-greenhouse-types #ih-gc-title { text-align: center; }

.ih-gc, .ih-gc * { box-sizing: border-box; }
.ih-gc {
  max-width: 1240px;
  margin: 24px auto;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid #dce8e0;
  border-radius: 24px;
  background: #f2f7f3;
  color: #133a2c;
  font: 16px/1.55 system-ui, sans-serif;
}
.ih-gc h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.ih-gc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ih-gc-panel {
  overflow: hidden;
  border: 1px solid #deebe3;
  border-radius: 16px;
  background: #fff;
}
.rp-page .ih-gc-panel--link { color: inherit; text-decoration: none; }
.ih-gc-panel--link:hover { border-color: #8aaea0; }
.ih-gc-panel--link:focus-visible { outline: 3px solid #006047; outline-offset: 3px; }
.ih-gc-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ih-gc-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ih-gc-copy { padding: clamp(16px, 2vw, 26px); }
.ih-gc-copy h3 { margin: 0; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.25; }
.ih-gc-copy p { margin: 8px 0 0; color: #40594d; }
.ih-gc-copy .ih-gc-crop { font-weight: 650; color: #006047; }
.ih-gc-economic {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.ih-gc-economic .ih-gc-photos { align-self: stretch; }
.ih-gc-economic .ih-gc-photos img { height: 100%; }
@media (max-width: 720px) {
  .ih-gc-grid, .ih-gc-economic { grid-template-columns: 1fr; }
}
[data-section="97"] .lf-section { padding-block: clamp(32px, 4vw, 52px); }
[data-section="97"] .lf-wrap:has(.project-story-row) { max-width: var(--rp-maxw); }
[data-section="97"] .lf-wrap:has(.project-story-row) > p,
[data-section="97"] .lf-wrap:has(.project-story-row) > .lf-title { max-width: 50rem; }
[data-section="97"] .project-story-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  margin-block: 20px 28px;
}
[data-section="97"] .project-photo img { max-height: none; aspect-ratio: auto; }
[data-section="97"] .rp-cta .rp-actions { flex: 0 1 auto; }
@media (max-width: 850px) {
  [data-section="97"] .project-story-row { grid-template-columns: minmax(0, 1fr); }
}

[data-section="118"] .gs-band { padding-block:clamp(36px,5vw,72px); border-bottom:1px solid #d8e3db; }
[data-section="118"] .gs-band .kicker { color:#34704e; font-weight:700; text-transform:uppercase; letter-spacing:.13em; font-size:.78rem; }
[data-section="118"] .gs-band h2 { margin:8px 0 14px; }
[data-section="118"] .gs-band .lead { max-width:72ch; color:#40564a; }
[data-section="118"] .flow { background:#e6efe7; padding:14px 18px; border-radius:8px; font-weight:650; }
[data-section="118"] .inventory, [data-section="118"] .gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:24px; }
[data-section="118"] .part { background:white; border:1px solid #dbe5de; border-radius:10px; padding:20px; }
[data-section="118"] .part :is(h3,h4) { font-size:1.17rem; margin:0 0 8px; }
[data-section="118"] .part p { margin:0; font-size:.95rem; color:#40564a; }
[data-section="118"] .gallery figure { margin:0; }
[data-section="118"] .gallery img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:10px; }
[data-section="118"] .gallery .contain { object-fit:contain; }

.rp-page.has-pd .rp-content figure:has(> figcaption) {
  overflow: hidden;
  border: 1px solid #dce6d9;
  border-radius: 14px;
  background: #fff;
}

.rp-page.has-pd .rp-content figure:has(> figcaption) > img {
  border-radius: 0;
}

.rp-page.has-pd .rp-content figure > figcaption {
  margin: 0;
  padding: 12px 18px;
  color: #3c594c;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}
@media(max-width:900px) { [data-section="118"] :is(.inventory,.gallery) { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { [data-section="118"] :is(.inventory,.gallery) { grid-template-columns:1fr; } }

:is([data-section="118"], [data-section="210"]) .gs-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
:is([data-section="118"], [data-section="210"]) .gs-actions a { display:inline-block; padding:10px 18px; border-radius:4px; font-weight:700; text-decoration:none; background:#d5e9b6; color:#122b21; }
:is([data-section="118"], [data-section="210"]) .gs-actions a + a { background:transparent; color:#e6f0df; border:1px solid #8ba995; }
:is([data-section="118"], [data-section="210"]) .gs-actions a:focus-visible { outline:3px solid #d5e9b6; outline-offset:4px; }
[data-section="118"] .gs-band[id] { scroll-margin-top:120px; }

/* Suitable Crops (reference iHavos_Suitable_Crops.html) */
.rp-btn-sage{display:inline-block;background:#d5e9b6;color:#153024;border-radius:6px;padding:12px 22px;font-weight:700;font-size:.95rem;text-decoration:none;}
.rp-btn-sage:hover{background:#c5e2a4;color:#153024;}
.rp-crop-card{display:flex;flex-direction:column;}
.rp-crop-examples{color:#2d6a47;font-weight:700;font-size:.85rem;letter-spacing:.02em;margin:0 0 4px;}
.rp-crop-fit{border-top:1px solid var(--rp-line);padding-top:12px;margin-top:auto;font-size:.8rem;font-weight:700;color:#3d5a4c;}
.rp-env{border-left:4px solid #83a47b;padding:6px 0 6px 20px;}
.rp-env h3{margin:0 0 8px;font-size:1.1rem;}
.rp-env p{margin:0;}

:is(.retrofit-hero-nav, .consult-hero-nav) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

:is(.retrofit-hero-nav, .consult-hero-nav) a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #bad3ba;
  border-radius: 8px;
  background: #e9f3e5;
  color: #244f3b;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}

:is(.retrofit-hero-nav, .consult-hero-nav) a:hover {
  border-color: #7ea77e;
  background: #dcebd8;
  color: #244f3b;
}

:is(.retrofit-hero-nav, .consult-hero-nav) a:focus-visible {
  outline: 2px solid #39734d;
  outline-offset: 4px;
}

.rp-news-latest{margin-top:0;}
.rp-news-categories{margin-top:44px;}
@media (max-width:700px){.rp-news-categories{margin-top:32px;}}

.rp-news-top{padding-top:40px;}
@media (max-width:700px){.rp-news-top{padding-top:30px;}}

