.terra-resources,
.terra-resources * { box-sizing: border-box; }
.terra-resources { color: var(--tr-primary, #5a6a38); }
.terra-resources__inner { margin: auto; max-width: var(--tr-width, 920px); }
.terra-resources__header { text-align: center; }
.terra-resources__intro { color: var(--tr-primary); margin: 0 0 8px; }
.terra-resources__heading,
.terra-resources__results-title { color: var(--tr-primary); font-weight: 400; line-height: 1.1; margin: 0; }
.terra-resources__cards { background: var(--tr-card, #fff); border-radius: var(--tr-radius, 18px); margin-top: 36px; overflow: hidden; }
.terra-resources__card { display: grid; grid-template-columns: 1fr 1fr; }
.terra-resources__media,
.terra-resources__body { height: var(--tr-row-height, 260px); min-width: 0; }
.terra-resources__media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.terra-resources__body { align-items: center; background: var(--tr-card, #fff); color: #222; display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; text-align: center; }
.terra-resources__card--right .terra-resources__media { grid-column: 2; grid-row: 1; }
.terra-resources__card--right .terra-resources__body { grid-column: 1; grid-row: 1; }
.terra-resources__badge { background: var(--tr-pink); border-radius: 999px; color: #fff; padding: 3px 16px; }
.terra-resources__card--green .terra-resources__badge { background: var(--tr-primary); }
.terra-resources__card--coral .terra-resources__badge { background: var(--tr-coral); }
.terra-resources__body h3 { color: var(--tr-pink); font-size: 26px; font-weight: 400; line-height: 1.1; margin: 10px auto 8px; max-width: var(--tr-heading-width, 280px); }
.terra-resources__card--green h3 { color: var(--tr-primary); }
.terra-resources__card--coral h3 { color: var(--tr-coral); }
.terra-resources__body p { color: #222; line-height: 1.2; margin: 0; max-width: 330px; }
.terra-resources__body a { color: var(--tr-pink); margin-top: 10px; text-decoration: var(--tr-link-decoration, underline); }
.terra-resources__card--green .terra-resources__body a { color: var(--tr-primary); }
.terra-resources__card--coral .terra-resources__body a { color: var(--tr-coral); }
.terra-resources__results { margin-top: 44px; text-align: center; }
.terra-resources__results-title { font-size: 42px; }
.terra-resources__result-grid { display: flex; gap: var(--tr-gap, 40px); justify-content: space-around; margin-top: 28px; }
.terra-resources__result { display: flex; flex: 1; flex-direction: column; }
.terra-resources__result strong { font-size: 42px; font-weight: 400; line-height: 1; }
.terra-resources__result span { font-size: 16px; margin-top: 6px; }
@media (max-width: 767px) {
  .terra-resources__heading { font-size: clamp(38px, 10vw, 52px) !important; }
  .terra-resources__cards { display: block; }
  .terra-resources__card,
  .terra-resources__card--right { display: flex; flex-direction: column; }
  .terra-resources__media { aspect-ratio: 4 / 3; height: auto; }
  .terra-resources__body { height: auto; min-height: 270px; padding: 24px 20px; }
  .terra-resources__results-title { font-size: clamp(32px, 8vw, 42px) !important; }
  .terra-resources__result-grid { flex-wrap: wrap; }
  .terra-resources__result { flex: 1 1 120px; }
}
@media (max-width: 420px) {
  .terra-resources__result-grid { display: grid; grid-template-columns: 1fr; }
  .terra-resources__body { padding: 24px 16px; }
  .terra-resources__body h3 { max-width: min(100%, var(--tr-heading-width, 280px)); }
  .terra-resources__result strong { font-size: 36px; }
}
@supports not (aspect-ratio: 4 / 3) {
  @media (max-width: 767px) { .terra-resources__media { height: 280px; } }
}

/* Reference-style resources reveal: fade in place without vertical movement. */
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__intro,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__heading,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__media img,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__body > *,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__results-title,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__result > *,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-reveal-item.terra-reveal-pending,
.terra-motion-ready .body-container--home .terra-home-panel--resources .terra-reveal-item.terra-reveal-visible {
  transform: none !important;
  transition-property: opacity !important;
  transition-duration: 700ms !important;
  transition-timing-function: ease-out !important;
  will-change: opacity !important;
}

@media (prefers-reduced-motion: reduce) {
  .terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__intro,
  .terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__heading,
  .terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__media img,
  .terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__body > *,
  .terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__results-title,
  .terra-motion-ready .body-container--home .terra-home-panel--resources .terra-resources__result > * {
    opacity: 1 !important;
    transition: none !important;
  }
}

/* Allow larger editor-selected text to expand cards without clipping. */
.terra-resources__body{height:auto;min-height:var(--tr-row-height,260px)}
.terra-resources__media{height:auto;min-height:var(--tr-row-height,260px);position:relative}
.terra-resources__media img{position:absolute;inset:0}
@media(max-width:767px){.terra-resources__media{min-height:0}.terra-resources__body{min-height:270px}}

/* Hidden content must not leave an empty grid column. */
.terra-resources__card--single {grid-template-columns:minmax(0,1fr);}
.terra-resources__card--single > .terra-resources__media,
.terra-resources__card--single > .terra-resources__body {grid-column:1;grid-row:1;}
.terra-resources__body > * {max-width:100%;overflow-wrap:anywhere;}

/* Video follows the same responsive media area as the image. */
.terra-resources__media video{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:100%;object-fit:contain;background:#000}
.terra-resources__media video:focus{outline:3px solid var(--tr-primary,#556b2e);outline-offset:-3px}
.terra-resources__video-note{position:absolute;z-index:1;bottom:8px;left:8px;right:8px;margin:0;padding:12px;background:#fff;color:#333;font:14px/1.4 sans-serif}
