/* Hero — the injected heading column inside the hub band */

body .ia-resources-hero {
  gap: var(--ia-space-sm) !important;
}

body .ia-resources-hero h1 {
  max-width: 18ch;
}

body .ia-resources-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: var(--ia-space-md);
  border-radius: 2px;
  background-color: var(--ia-action-accent);
}

/* Any hub container left with no widget in it is scaffolding, not a section. */

body.ia-resources .elementor > .e-con.e-parent:not(:has(.elementor-widget)):not(:has(.ia-resources-hero)) {
  display: none !important;
}

/* Elementor writes a per-widget `min-height` on every description box — 200px on
   the articles, 120px on the destinations — so a three-line excerpt sits in a
   box twice its height and the button's inline `margin-top: auto` drops the cue
   to the bottom of the dead space. Neutralised here; the flex column and the
   card gap set the rhythm instead. Presentational, no widget settings touched. */

body.ia-resources .invest-asean-featured-section-description {
  min-height: 0 !important;
}

/* Destinations — where to go for data. The loud band. */

body.ia-resources .ia-res-section--destinations .elementor-heading-title {
  position: relative;
  padding-bottom: var(--ia-space-sm);
}

body.ia-resources .ia-res-section--destinations .elementor-heading-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--ia-action-accent);
}

body .ia-res-card--destination {
  gap: var(--ia-space-sm) !important;
  padding: var(--ia-space-lg) !important;
  border-color: var(--ia-blue-100) !important;
  background-color: var(--ia-blue-50) !important;
  background-image: radial-gradient(
    120% 140% at 12% 0%,
    rgba(0, 96, 169, 0.16) 0%,
    rgba(0, 96, 169, 0) 62%
  ) !important;
}

body .ia-res-card--destination:hover {
  border-color: var(--ia-blue-300) !important;
  box-shadow: var(--ia-shadow-md);
}

body .ia-res-card--destination .ia-icon-plate {
  flex: none;
  color: var(--ia-blue-600);
}

body .ia-res-card--destination .invest-asean-featured-section-header {
  font-size: var(--ia-text-h3) !important;
  font-weight: var(--ia-weight-bold) !important;
  letter-spacing: -0.02em;
}

body .ia-res-card--destination .invest-asean-featured-section-description {
  flex: 0 1 auto;
  color: var(--ia-content) !important;
}

/* Destinations carry the site's solid primary; the articles below keep the
   shipped quiet cue, so the only filled actions on the page are the three
   places a visitor actually goes for data. */

body .ia-res-card--destination .invest-asean-featured-section-button {
  margin-top: auto !important;
  justify-content: center;
  min-height: 48px;
  padding: var(--ia-space-xs) var(--ia-space-lg) !important;
  border-color: transparent !important;
  border-radius: var(--ia-radius-full) !important;
  background-color: var(--ia-action) !important;
  color: var(--ia-action-contrast) !important;
}

body .ia-res-card--destination .invest-asean-featured-section-button .elementor-button-text {
  color: var(--ia-action-contrast) !important;
}

body .ia-res-card--destination .invest-asean-featured-section-button:hover {
  background-color: var(--ia-action-hover) !important;
  color: var(--ia-action-contrast) !important;
  text-decoration: none !important;
}

body .ia-res-card--destination .invest-asean-featured-section-button:hover .elementor-button-text {
  color: var(--ia-action-contrast) !important;
}

/* Articles — nine essays with no dates, images or categories, so the band is
   set as a reading list rather than nine equal boxes: the first article leads
   across both columns, the rest run as ruled rows. */

body.ia-resources .ia-res-section--articles > .e-con-inner > .e-grid {
  --e-con-grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: var(--ia-space-2xl) !important;
  row-gap: 0 !important;
  align-items: start;
}

body.ia-resources .ia-res-section--articles .elementor-widget:has(.ia-res-card--lead) {
  grid-column: 1 / -1;
}

body .ia-res-card--article {
  position: relative;
  height: auto !important;
  gap: var(--ia-space-2xs) !important;
  padding: var(--ia-space-lg) 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--ia-border) !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body .ia-res-card--article:hover,
body .ia-res-card--article:focus-within {
  border-color: var(--ia-border-strong) !important;
  box-shadow: none !important;
  transform: none !important;
}

body .ia-res-card--article .invest-asean-featured-section-header {
  font-size: var(--ia-text-h4) !important;
  font-weight: var(--ia-weight-bold) !important;
  line-height: var(--ia-leading-snug) !important;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  transition: color var(--ia-motion-fast) var(--ia-ease);
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset;
}

/* No clamp. The widget already truncates every excerpt to ~200 characters with
   an ellipsis, and they run 196–250 across all nine — so a line clamp adds
   nothing and only risks slicing a line when the box height misses the line
   grid. Rows top-align, so uneven heights are correct in a ruled list. */

body .ia-res-card--article .invest-asean-featured-section-description {
  flex: 0 1 auto;
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  font-size: var(--ia-text-sm) !important;
  line-height: var(--ia-leading-normal) !important;
  -webkit-line-clamp: unset;
}

/* Footnote links survive in some excerpts and point at archived URLs. They are
   not the row's destination, so they stop being interactive. */

body .ia-res-card--article .invest-asean-featured-section-description a {
  pointer-events: none;
  color: inherit !important;
  text-decoration: none !important;
}

body .ia-res-card--article .invest-asean-featured-section-button {
  margin-top: 0 !important;
  min-height: 0 !important;
  line-height: var(--ia-leading-snug) !important;
  font-size: var(--ia-text-sm) !important;
}

/* The row is the link; the cue only names it. */

body .ia-res-card--article .invest-asean-featured-section-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

body .ia-res-card--article .invest-asean-featured-section-button:focus-visible {
  outline: none;
}

body .ia-res-card--article:has(.invest-asean-featured-section-button:focus-visible) {
  outline: 2px solid var(--ia-focus);
  outline-offset: 4px;
}

body .ia-res-card--article:hover .invest-asean-featured-section-header {
  color: var(--ia-content-link) !important;
}

/* The lead */

body .ia-res-card--lead {
  gap: var(--ia-space-sm) !important;
  padding: 0 0 var(--ia-space-2xl) !important;
  border-top: 0 !important;
}

body .ia-res-card--lead .invest-asean-featured-section-header {
  display: block;
  max-width: 26ch;
  font-size: var(--ia-text-h2) !important;
  letter-spacing: var(--ia-tracking-tight);
  -webkit-line-clamp: unset;
  text-wrap: balance;
}

body .ia-res-card--lead .invest-asean-featured-section-description {
  display: block !important;
  max-width: 62ch;
  font-size: var(--ia-text-lg) !important;
  color: var(--ia-content) !important;
  -webkit-line-clamp: unset;
}

body .ia-res-card--lead .invest-asean-featured-section-button {
  margin-top: 0 !important;
  min-height: 0 !important;
  line-height: var(--ia-leading-snug) !important;
  font-size: var(--ia-text-base) !important;
}

@media screen and (max-width: 782px) {
  body.ia-resources .ia-res-section--articles > .e-con-inner > .e-grid {
    --e-con-grid-template-columns: minmax(0, 1fr) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    column-gap: 0 !important;
  }

  body.ia-resources .ia-res-section--articles .elementor-widget:has(.ia-res-card--lead) {
    grid-column: auto;
  }
}

@media screen and (max-width: 640px) {
  body .ia-res-card--destination {
    padding: var(--ia-space-md) !important;
  }

  body .ia-res-card--lead {
    padding-bottom: var(--ia-space-xl) !important;
  }
}
