/* Keep relocated content legible inside the existing light detail panels. */
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) {
  --eg-detail-ink: #29232e;
  --eg-detail-copy: #514a5c;
  --eg-detail-link: #653783;
  --eg-detail-line: #d8cdbb;
  min-width: 0;
  color: var(--eg-detail-ink);
}

body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-section {
  padding: 28px 0 12px;
  scroll-margin-top: 24px;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-section-head {
  margin: 0 0 22px;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-section-head h2 {
  margin: 8px 0 12px;
  font: 400 clamp(1.75rem, 3vw, 2.4rem)/1.2 Georgia, serif;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-eyebrow {
  margin: 0 0 12px;
  color: #795311 !important;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 22px 0;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--eg-detail-line);
  border-radius: 16px;
  background: #fff !important;
  color: var(--eg-detail-ink) !important;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card.purple {
  background: #f4eef8 !important;
  border-color: #cdbbd9;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card :is(h2, h3, strong) {
  color: #29232e !important;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card h3 {
  margin: 0 0 12px;
  font: 400 1.5rem/1.25 Georgia, serif;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card :is(p, li, small) {
  color: #514a5c !important;
  font-size: 1rem;
  line-height: 1.6;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card > p {
  margin: 0 0 18px;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card .eg-lupa-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: 0 0 18px;
  border-radius: 12px;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-price {
  display: block;
  margin: 0 0 20px;
  color: #51385d !important;
  font-size: 1.125rem;
  line-height: 1.5;
}
body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card > a {
  margin-top: auto;
  min-height: 44px;
  padding: 10px 0;
  color: #653783 !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-underline-offset: 4px;
}
body.approved-design #formacion .eg-hub-detail-content #chatgpt-experto-destacado {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  gap: 18px !important;
}
body.approved-design #formacion .eg-hub-detail-content #chatgpt-experto-destacado > div {
  min-width: 0 !important;
  max-width: 100%;
}
body.approved-design #formacion .eg-hub-detail-content #chatgpt-experto-destacado span {
  color: #795311 !important;
}

/* Accordions retain their existing controls and content, with light surfaces. */
body.approved-design .approved-panel .eg-hub-detail-content .eg-v3-accordion {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v3-accordion > details {
  margin: 0;
  padding: 0 24px;
  border: 1px solid #d8cdbb;
  border-radius: 12px;
  background: #fff !important;
  color: #29232e;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v3-accordion > details > summary {
  padding: 17px 0;
  min-height: 56px;
  color: #3d294b !important;
  font-size: 1.0625rem !important;
  font-weight: 600;
  line-height: 1.5;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v3-accordion > details[open] {
  border-color: #a99061;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v3-accordion > details > div {
  padding: 0 0 22px;
  color: #514a5c;
}
body.approved-design .approved-panel .eg-hub-detail-content :is(#te-lo-dejo-montado-quipu, .eg-v3-systeme) {
  padding: 24px;
  border: 1px solid #d8cdbb;
  border-radius: 12px;
  background: #f7f2e9 !important;
  color: #29232e !important;
}
body.approved-design .approved-panel .eg-hub-detail-content :is(#te-lo-dejo-montado-quipu, .eg-v3-systeme) :is(strong, span) {
  color: #3d294b !important;
}

/* The business and novel cards now belong to the relevant detail area. */
body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card {
  margin: 24px 0;
  padding: 28px;
  border: 1px solid #d8cdbb;
  border-radius: 16px;
  background: #fff !important;
  color: #29232e !important;
  box-shadow: none;
}
body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card :is(h2, h3, strong) {
  color: #29232e !important;
}
body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card :is(p, small) {
  color: #514a5c !important;
}
body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card :is(.home-card-kicker, .home-price) {
  color: #795311 !important;
}
body.approved-design #servicios-eg .home-service {
  gap: 22px;
  border-color: #dfd6ca;
}
body.approved-design #servicios-eg .home-service > a {
  color: #653783 !important;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 44px;
}
body.approved-design :is(#servicios-eg, #libros-recursos) .home-actions,
body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin: 24px 0 0;
}
body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card .home-button,
body.approved-design .approved-panel .eg-hub-detail-content :is(.eg-v3-btn, .eg-v4-btn, .eg-collab-promo-button),
body.approved-design #formacion #chatgpt-experto-destacado a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #ad8b47;
  border-radius: 8px;
  background: #e8cf98 !important;
  color: #292115 !important;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card .home-button.secondary,
body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-btn.secondary {
  background: #fff !important;
  color: #653783 !important;
  border-color: #ac91bc;
}
body.approved-design .approved-panel .eg-hub-detail-content :is(.eg-v3-btn, .eg-v4-btn, .eg-collab-promo-button):focus-visible {
  outline: 3px solid #75469b;
  outline-offset: 4px;
}

/* Product and biography content retain their layout without dark-on-dark copy. */
body.approved-design .approved-panel .eg-hub-detail-content .eg-v5-product {
  background: #fff !important;
  border-color: #d8cdbb;
  color: #29232e !important;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v5-product :is(h3, strong) {
  color: #29232e !important;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v5-product :is(p, small) {
  color: #514a5c !important;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v5-product .eg-v5-product-kicker {
  color: #795311 !important;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v5-product a {
  color: #292115 !important;
  background: #e8cf98 !important;
  border-color: #ad8b47;
  min-height: 44px;
  font-size: 1rem;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid #d8cdbb;
  border-radius: 14px;
  background: #fff;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-trust-item {
  min-width: 0;
  padding: 0 0 0 16px;
  border-left: 2px solid #c6ab6f;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-trust-item strong {
  color: #3d294b !important;
  font-size: 1rem;
  line-height: 1.6;
}
body.approved-design .approved-panel .eg-hub-detail-content .eg-collab-promo {
  background: #f4eef8 !important;
  border-color: #cdbbd9;
}

/* Preserve the dark diploma artwork and course cards in their dedicated panel. */
body.approved-design #diplomas-eg #diplomas.eg-diplomas {
  background: linear-gradient(155deg, #11110f, #080808 65%, #14120d) !important;
  color: #f7f0e2 !important;
}
body.approved-design #diplomas-eg #diplomas :is(h2, h3, p, li, small) {
  color: #eee5d1 !important;
}
body.approved-design #diplomas-eg #diplomas :is(#eg-diplomas-title, .eg-diplomas__eyebrow) {
  color: #f3d895 !important;
}
body.approved-design #diplomas-eg #cursos-diploma .eg-diploma-courses__card {
  background: linear-gradient(155deg, #15130e, #090909 70%) !important;
  color: #f7f0e2 !important;
}
body.approved-design #diplomas-eg #cursos-diploma .eg-diploma-courses__card :is(h3, p, strong, small) {
  color: #f7f0e2 !important;
}
body.approved-design #diplomas-eg #cursos-diploma .eg-diploma-courses__card h3 {
  color: #f3d895 !important;
}

/* These two new navigation cards deliberately retain a dark treatment. */
body.approved-design #empleo-orientacion .eg-hub-card :is(h3, p) {
  color: #f5f1e8 !important;
}
body.approved-design #empleo-orientacion .eg-hub-card .eg-hub-card__action {
  color: #e5c26e !important;
}

@media (max-width: 920px) {
  body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-grid,
  body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-grid,
  body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-trust {
    grid-template-columns: minmax(0, 1fr);
  }
  body.approved-design .approved-panel :is(.eg-hub-detail-content, #eg-home-highlights) .eg-v3-card,
  body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card {
    padding: 22px;
  }
  body.approved-design .approved-panel .eg-hub-detail-content .eg-v3-accordion > details {
    padding-inline: 20px;
  }
  body.approved-design :is(#servicios-eg, #libros-recursos) .home-actions,
  body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.approved-design :is(#servicios-eg, #libros-recursos) .home-primary-card .home-button,
  body.approved-design .approved-panel .eg-hub-detail-content .eg-v4-btn {
    width: 100%;
  }
  body.approved-design #servicios-eg .home-service {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
