/*
 * AJ Content System — Premium Content Components 1.1.0
 * AJCS-PREMIUM-COMPONENTS:1.1.0
 * Canonical money-page guide hub + visual lists.
 * Additive only. No JavaScript. Scoped to .aj-content.
 */

/*
 * Factory wraps every section in .aj-section. A guide hub is itself the visual section,
 * so neutralize the generic outer card to avoid a "card inside card" layout.
 * :has() is supported by the browsers targeted by the current site stack.
 */
.aj-content > section.aj-section:has(> .aj-guide-hub) {
  margin: 64px 0 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  overflow: visible;
}

.aj-content > section.aj-section:has(> .aj-guide-hub)::before {
  display: none;
}

.aj-content > section.aj-section:has(> .aj-guide-hub) > h2 {
  display: none;
}

/* ===== Canonical premium guide hub ===== */
.aj-content .aj-guide-hub {
  margin: 0;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #dfe4eb;
  border-radius: 16px;
  background: linear-gradient(145deg, #f9fafc 0%, #f4f1e8 100%);
  box-shadow: 0 18px 42px rgba(15, 37, 68, .08);
}

.aj-content .aj-guide-hub,
.aj-content .aj-guide-hub * {
  box-sizing: border-box;
}

.aj-content .aj-guide-hub__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 28px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(15, 37, 68, .12);
}

.aj-content .aj-guide-hub__eyebrow {
  margin: 0 0 9px;
  color: #8b6d16;
  font: 700 12px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.aj-content .aj-guide-hub__intro h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #0f2544;
  font: 700 29px/1.22 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.aj-content .aj-guide-hub__intro h2::after {
  display: none;
}

.aj-content .aj-guide-hub__lead {
  max-width: 720px;
  margin: 0;
  color: #5f6a78;
  font: 15px/1.7 Arial, Helvetica, sans-serif;
}

.aj-content .aj-guide-hub__count {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
  border: 1px solid rgba(201, 162, 39, .42);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.aj-content .aj-guide-hub__count strong {
  color: #0f2544;
  font: 700 44px/1 Georgia, "Times New Roman", serif;
}

.aj-content .aj-guide-hub__count span {
  margin-top: 8px;
  color: #6c7581;
  font: 700 11px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.aj-content .aj-guide-hub__featured {
  margin: 24px 0 0;
}

.aj-content .aj-guide-hub__featured-link {
  position: relative;
  display: block;
  min-height: 218px;
  padding: 30px 126px 30px 30px;
  border: 1px solid rgba(201, 162, 39, .46);
  border-radius: 14px;
  background: linear-gradient(145deg, #0f2544 0%, #19375f 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(15, 37, 68, .16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.aj-content .aj-guide-hub__featured-link:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: #d5b34e;
  box-shadow: 0 18px 34px rgba(15, 37, 68, .22);
}

.aj-content .aj-guide-hub__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(201, 162, 39, .62);
  border-radius: 999px;
  color: #e5c75f;
  font: 700 11px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.aj-content .aj-guide-hub__number {
  position: absolute;
  top: 26px;
  right: 30px;
  color: rgba(229, 199, 95, .9);
  font: 700 56px/1 Georgia, "Times New Roman", serif;
}

.aj-content .aj-guide-hub__featured h3 {
  max-width: 680px;
  margin: 19px 0 10px;
  color: #fff;
  font: 700 25px/1.25 Georgia, "Times New Roman", serif;
}

.aj-content .aj-guide-hub__featured p {
  max-width: 690px;
  margin: 0;
  color: #c7d1df;
  font: 15px/1.65 Arial, Helvetica, sans-serif;
}

.aj-content .aj-guide-hub__more {
  display: inline-block;
  margin-top: 19px;
  color: #e5c75f;
  font: 700 13px/1.35 Arial, Helvetica, sans-serif;
}

.aj-content .aj-guide-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  margin-top: 17px;
}

.aj-content .aj-guide-hub__card {
  min-width: 0;
  margin: 0;
}

.aj-content .aj-guide-hub__card-link {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 220px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid #dfe4eb;
  border-top: 3px solid #c9a227;
  border-radius: 0 0 12px 12px;
  background: #fff;
  color: #2b3340;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 37, 68, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.aj-content .aj-guide-hub__card-link:hover {
  color: #2b3340;
  transform: translateY(-4px);
  border-color: #d2b55a;
  box-shadow: 0 14px 28px rgba(15, 37, 68, .11);
}

.aj-content .aj-guide-hub__card-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.aj-content .aj-guide-hub__label {
  color: #8b6d16;
  font: 700 10px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.aj-content .aj-guide-hub__card-number {
  color: #b2bac5;
  font: 700 26px/1 Georgia, "Times New Roman", serif;
}

.aj-content .aj-guide-hub__card h3 {
  margin: 0 0 10px;
  color: #0f2544;
  font: 700 19px/1.34 Georgia, "Times New Roman", serif;
}

.aj-content .aj-guide-hub__card p {
  margin: 0;
  color: #66717e;
  font: 13px/1.62 Arial, Helvetica, sans-serif;
}

.aj-content .aj-guide-hub__card .aj-guide-hub__more {
  margin-top: auto;
  padding-top: 18px;
  color: #0f2544;
}

.aj-content .aj-guide-hub__footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 20px 22px;
  border-left: 4px solid #c9a227;
  border-radius: 0 10px 10px 0;
  background: #fff;
}

.aj-content .aj-guide-hub__footer p {
  margin: 0;
  color: #495565;
  font: 14px/1.62 Arial, Helvetica, sans-serif;
}

.aj-content .aj-guide-hub__footer strong {
  color: #0f2544;
}

.aj-content .aj-guide-hub__consult {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 7px;
  background: #0f2544;
  color: #fff;
  font: 700 13px/1.3 Arial, Helvetica, sans-serif;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.aj-content .aj-guide-hub__consult:hover {
  color: #fff;
  transform: translateY(-2px);
  background: #19375f;
  box-shadow: 0 9px 20px rgba(15, 37, 68, .18);
}

.aj-content .aj-guide-hub__featured-link:focus-visible,
.aj-content .aj-guide-hub__card-link:focus-visible,
.aj-content .aj-guide-hub__consult:focus-visible {
  outline: 3px solid rgba(201, 162, 39, .62);
  outline-offset: 3px;
}

/* ===== Visual lists ===== */
.aj-content .aj-visual-list {
  display: grid;
  gap: 11px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: aj-visual-list;
}

.aj-content .aj-visual-list > li {
  position: relative;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px 13px 52px;
  border: 1px solid #dfe4eb;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #fbfaf7);
  color: #2b3340;
  box-shadow: 0 5px 16px rgba(15, 37, 68, .035);
}

.aj-content .aj-visual-list > li::before {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #0f2544;
  color: #c9a227;
  content: "✓";
  font: 800 12px/1 Arial, Helvetica, sans-serif;
}

.aj-content .aj-visual-list--ordered > li {
  counter-increment: aj-visual-list;
}

.aj-content .aj-visual-list--ordered > li::before {
  content: counter(aj-visual-list);
}

@media (max-width: 760px) {
  .aj-content > section.aj-section:has(> .aj-guide-hub) {
    margin-top: 50px;
  }

  .aj-content .aj-guide-hub {
    padding: 25px 20px;
  }

  .aj-content .aj-guide-hub__intro {
    grid-template-columns: 1fr;
  }

  .aj-content .aj-guide-hub__intro h2 {
    font-size: 25px;
  }

  .aj-content .aj-guide-hub__count {
    display: grid;
    min-height: 0;
    grid-template-columns: auto 1fr;
    gap: 11px;
    text-align: left;
  }

  .aj-content .aj-guide-hub__count strong {
    font-size: 36px;
  }

  .aj-content .aj-guide-hub__count span {
    margin: 0;
  }

  .aj-content .aj-guide-hub__featured-link {
    min-height: 0;
    padding: 25px;
  }

  .aj-content .aj-guide-hub__number {
    position: static;
    display: block;
    margin-top: 15px;
    font-size: 38px;
  }

  .aj-content .aj-guide-hub__featured h3 {
    font-size: 22px;
  }

  .aj-content .aj-guide-hub__grid {
    grid-template-columns: 1fr;
  }

  .aj-content .aj-guide-hub__card-link {
    min-height: 0;
  }

  .aj-content .aj-guide-hub__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .aj-content .aj-guide-hub__consult {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aj-content .aj-guide-hub__featured-link,
  .aj-content .aj-guide-hub__card-link,
  .aj-content .aj-guide-hub__consult {
    transition: none;
  }

  .aj-content .aj-guide-hub__featured-link:hover,
  .aj-content .aj-guide-hub__card-link:hover,
  .aj-content .aj-guide-hub__consult:hover {
    transform: none;
  }
}
