/* Updated: 2026-06-02 */
/* =========================================================
   RESOURCES HUB PAGE
   Full CSS for current HTML structure
   Uses globals for:
   - .section-padding-*
   - .bg-surface-*
   - .container-wide
   - .text-hero / .text-title / .text-lead
   - .btn-consource-primary / .btn-consource-secondary
   - .highlight-orange / .highlight-teal / .highlight-yellow
   ========================================================= */

/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

.resources-hub-hero {
  position: relative;
  overflow: hidden;
}

.resources-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 40px;
  align-items: center;
}

.resources-hub-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.resources-hub-eyebrow {
  margin: 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-secondary);
}

.resources-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.resources-intent-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface-0);
  border: 1px solid var(--surface-200);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.resources-intent-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 28px;
  gap: 20px;
  align-items: start;
  padding: 28px 30px;
  text-decoration: none;
  color: inherit;
  background: var(--surface-0);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.resources-intent-row + .resources-intent-row {
  border-top: 1px solid var(--surface-200);
}

.resources-intent-row:hover {
  background: var(--surface-50);
}

.resources-intent-row:nth-child(1):hover {
  box-shadow: inset 4px 0 0 var(--brand-secondary);
}

.resources-intent-row:nth-child(2):hover {
  box-shadow: inset 4px 0 0 var(--brand-primary);
}

.resources-intent-row:nth-child(3):hover {
  box-shadow: inset 4px 0 0 var(--brand-yellow);
}

.resources-intent-row-index {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--surface-400);
  padding-top: 2px;
}

.resources-intent-row:nth-child(1) .resources-intent-row-index {
  color: var(--brand-secondary);
}

.resources-intent-row:nth-child(2) .resources-intent-row-index {
  color: var(--brand-primary);
}

.resources-intent-row:nth-child(3) .resources-intent-row-index {
  color: var(--brand-yellow);
}

.resources-intent-row-main h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--surface-900);
}

.resources-intent-row-main p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.resources-intent-row-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 6px;
  font-size: 18px;
  line-height: 1;
  color: var(--surface-400);
  transition: transform 0.2s ease, color 0.2s ease;
}

.resources-intent-row:hover .resources-intent-row-icon {
  color: var(--surface-700);
  transform: translate(2px, -2px);
}

/* ---------------------------------------------------------
   SHARED SECTION HEADERS
--------------------------------------------------------- */

.resources-section-header {
  margin-bottom: 32px;
}

.resources-section-header-centered {
  text-align: center;
}

/* ---------------------------------------------------------
   LATEST SECTION
--------------------------------------------------------- */

.resources-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.resources-latest-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px;
  border: 1px solid var(--surface-200);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.resources-latest-card-article {
  background: var(--surface-0);
  border-top: 3px solid var(--brand-secondary);
}

.resources-latest-card-resource {
  background: var(--brand-primary-soft);
  border-top: 3px solid var(--brand-primary);
}

.resources-latest-card-glossary {
  background: var(--brand-yellow-soft);
  border-top: 3px solid var(--brand-yellow);
}

.resources-latest-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.resources-latest-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  font-size: 18px;
}

.resources-latest-card-article .resources-latest-icon {
  background: var(--brand-secondary-soft);
  color: var(--brand-secondary);
}

.resources-latest-card-resource .resources-latest-icon {
  background: var(--surface-0);
  color: var(--brand-primary);
}

.resources-latest-card-glossary .resources-latest-icon {
  background: var(--surface-0);
  color: var(--brand-yellow);
}

.resources-latest-type {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
}

/* shortcode output */
.resources-latest-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resources-latest-title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--surface-900);
}

.resources-latest-title a {
  color: inherit;
  text-decoration: none;
}

.resources-latest-title a:hover {
  color: var(--brand-secondary);
}

.resources-latest-excerpt {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* resource card */
.resources-resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.resources-resource-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  background: var(--surface-0);
  color: var(--surface-700);
  border: 1px solid var(--surface-200);
}

.resources-resource-summary {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--surface-700);
}

/* glossary card */
.resources-glossary-label {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--surface-600);
}

.resources-glossary-term {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--surface-900);
}

.resources-glossary-term a {
  color: inherit;
  text-decoration: none;
}

.resources-glossary-term a:hover {
  color: var(--surface-900);
}

.resources-glossary-definition {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--surface-700);
}

.resources-latest-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.resources-latest-link::after {
  content: "→";
  line-height: 1;
}

.resources-latest-card-article .resources-latest-link {
  color: var(--brand-secondary);
}

.resources-latest-card-resource .resources-latest-link {
  color: var(--brand-primary);
}

.resources-latest-card-glossary .resources-latest-link {
  color: var(--surface-900);
}

.resources-latest-link:hover {
  transform: translateX(2px);
}

/* empty state */
.resources-empty-state {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 180px;
}

.resources-empty-state h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--surface-900);
}

.resources-empty-state p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.resources-empty-state a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-primary);
}

.resources-empty-state a::after {
  content: "→";
}

/* ---------------------------------------------------------
   EXPLORE MORE TAG CLOUD
--------------------------------------------------------- */

.resources-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.resources-mixed-tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.resources-mixed-tag:hover {
  transform: translateY(-1px);
}

.resources-mixed-tag.is-feature {
  color: var(--brand-secondary);
  background: var(--brand-secondary-soft);
  border: 1px solid rgba(255, 159, 0, 0.18);
}

.resources-mixed-tag.is-feature:hover {
  border-color: var(--brand-secondary);
}

.resources-mixed-tag.is-solution {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
  border: 1px solid rgba(0, 171, 187, 0.18);
}

.resources-mixed-tag.is-solution:hover {
  border-color: var(--brand-primary);
}

/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1100px) {
  .resources-hub-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .resources-latest-grid {
    grid-template-columns: 1fr;
  }

  .resources-intent-row {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 16px;
    padding: 24px;
  }

  .resources-intent-row-main h3 {
    font-size: 24px;
  }

  .resources-latest-card {
    padding: 24px;
  }

  .resources-glossary-term {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .resources-hub-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .resources-hub-hero-actions .btn-consource-primary,
  .resources-hub-hero-actions .btn-consource-secondary {
    width: 100%;
    justify-content: center;
  }

  .resources-intent-row {
    grid-template-columns: 1fr;
  }

  .resources-intent-row-index,
  .resources-intent-row-icon {
    display: none;
  }

  .resources-latest-title {
    font-size: 20px;
  }

  .resources-glossary-term {
    font-size: 24px;
  }
}

/* ==========================================================================
   DIVI DEFAULT OVERRIDES
   Neutralise the decorative vertical line Divi adds via ::before
   on #main-content .container on resource pages.
   ========================================================================== */

#main-content .container:before {
  content: none !important;
  display: none !important;
  width: 0 !important;
  background-color: transparent !important;
}
}