/* MAGICO Stage 2 — Adventure portals
   2026-10-09 approved split-panel concept implementation.
   Presentation only: retains exact original Dino/Christmas panorama, card copy
   and data-theme buttons. No book model, hero, navigation or reader changes.
   All selectors are scoped to the homepage adventure section. */

#homeAdventures {
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 66px clamp(28px, 4vw, 72px) 108px;
}
#homeAdventures .home-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 40px;
  text-align: center;
}
#homeAdventures .home-section-heading h2 {
  margin: 0;
  color: #102b50;
  font: 400 clamp(35px, 4vw, 60px)/1.13 Georgia, serif;
  letter-spacing: -.037em;
}
#homeAdventures .home-section-heading p {
  margin: 0;
  color: #61738a;
  font: 17px/1.5 Arial, sans-serif;
  letter-spacing: 0;
}
#homeAdventures .home-adventure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  align-items: stretch;
}
#homeAdventures .home-adventure {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 62%);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  height: clamp(465px, 38vw, 610px);
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fcf9f3;
  color: #0e2c42;
  text-align: left;
  font-family: Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(24, 37, 48, .16);
  transition: transform .22s ease, box-shadow .22s ease;
}
#homeAdventures .home-adventure-christmas {
  grid-template-columns: minmax(0, 56%) minmax(0, 44%);
  background: #eaf3ff;
}
#homeAdventures .home-adventure:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(24, 37, 48, .24);
}
#homeAdventures .home-adventure:focus-visible {
  outline: 4px solid #7251bf;
  outline-offset: 5px;
}

/* Artwork is a landscape window into the already-approved MAGICO panorama.
   Preserve its native proportions, anchoring left for Dino and right for Christmas. */
#homeAdventures .home-card-art,
#homeAdventures .home-adventure-christmas .home-card-art {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #8db7b8;
  pointer-events: none;
}
#homeAdventures .home-adventure-christmas .home-card-art {
  grid-column: 1;
  background: #9fbee3;
}
#homeAdventures .home-card-art .home-card-scene {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: auto;
  display: block;
  width: auto;
  min-width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: none;
  transform: none;
  transition: transform .28s ease;
}
#homeAdventures .home-adventure-christmas .home-card-art .home-card-scene {
  left: auto;
  right: 0;
  width: auto;
  object-position: right center;
  filter: none;
}
#homeAdventures .home-card-art::after {
  content: none;
}
#homeAdventures .home-adventure:hover .home-card-art .home-card-scene {
  transform: scale(1.035);
}

/* Editorial text panes: light Dino left, icy Christmas right. */
#homeAdventures .home-card-copy,
#homeAdventures .home-adventure-christmas .home-card-copy {
  position: relative;
  z-index: 1;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  padding: clamp(26px, 3.1vw, 51px) clamp(22px, 2.5vw, 43px);
  background: #fcfaf6;
  color: #102d46;
  text-align: left;
  box-shadow: none;
  pointer-events: none;
}
#homeAdventures .home-adventure-christmas .home-card-copy {
  grid-column: 2;
  background: #eaf3ff;
}
#homeAdventures .home-card-label,
#homeAdventures .home-adventure-christmas .home-card-label {
  display: block;
  margin: 0 0 25px;
  color: #d7aa65;
  font: 700 11px/1.45 Arial, sans-serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}
#homeAdventures .home-adventure-christmas .home-card-label {
  color: #648cbf;
}
#homeAdventures .home-card-copy strong {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 23px;
  color: #102d46;
  font: 500 clamp(31px, 2.85vw, 49px)/1.08 Georgia, serif;
  letter-spacing: -.033em;
  overflow-wrap: normal;
}
#homeAdventures .home-card-description {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 0 24px;
  color: #4f657a;
  font: 16px/1.65 Arial, sans-serif;
}
/* Two explicit CTA lines guarantee both arrows sit alongside the BOTTOM line. */
#homeAdventures .home-card-action,
#homeAdventures .home-adventure-christmas .home-card-action {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  height: auto;
  margin: auto 0 0;
  padding: 15px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #102f4a;
  font: 700 15px/1.55 Arial, sans-serif;
  letter-spacing: 0;
  box-shadow: none;
}
/* Suppress the retired homepage CTA arrow from home-entry.css; only the second line owns an arrow. */
#homeAdventures .home-card-action::before,
#homeAdventures .home-card-action::after {
  content: none;
}
#homeAdventures .home-card-action-first,
#homeAdventures .home-card-action-last {
  display: block;
}
#homeAdventures .home-card-action-last {
  white-space: nowrap;
}
#homeAdventures .home-adventure-dino .home-card-action-last::after,
#homeAdventures .home-adventure-christmas .home-card-action-last::before {
  display: inline-block;
  position: static;
  color: inherit;
  font: inherit;
  transform: translateX(0);
  transition: transform .2s ease;
  white-space: nowrap;
}
#homeAdventures .home-adventure-dino .home-card-action-last::after {
  content: "→";
  margin-left: 8px;
}
/* Keep both CTA text lines left-aligned. The left arrow lives in the
   text panel's existing left gutter, outside the second line's text flow. */
#homeAdventures .home-adventure-christmas .home-card-action-last {
  position: relative;
}
#homeAdventures .home-adventure-christmas .home-card-action-last::before {
  content: "←";
  position: absolute;
  right: calc(100% + 8px);
  top: 0;
  margin-right: 0;
}
#homeAdventures .home-adventure-dino:hover .home-card-action-last::after {
  transform: translateX(4px);
}
#homeAdventures .home-adventure-christmas:hover .home-card-action-last::before {
  transform: translateX(-4px);
}

/* Stack full-width split cards on medium screens, retaining art on opposite sides. */
@media (max-width: 1120px) {
  #homeAdventures .home-adventure-grid { grid-template-columns: 1fr; }
  #homeAdventures .home-adventure { height: 485px; grid-template-columns: minmax(0, 38%) minmax(0, 62%); }
  #homeAdventures .home-adventure-christmas { grid-template-columns: minmax(0, 56%) minmax(0, 44%); }
  #homeAdventures .home-card-copy strong { font-size: clamp(33px, 4.2vw, 49px); }
}
/* Mobile: generous scene above a readable call-to-action, no narrow columns. */
@media (max-width: 620px) {
  #homeAdventures { padding: 54px 17px 72px; }
  #homeAdventures .home-section-heading { margin-bottom: 30px; }
  #homeAdventures .home-section-heading h2 { font-size: clamp(32px, 8vw, 43px); }
  #homeAdventures .home-section-heading p { font-size: 15px; }
  #homeAdventures .home-adventure-grid { gap: 22px; }
  #homeAdventures .home-adventure,
  #homeAdventures .home-adventure-christmas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 260px auto;
    height: auto;
    min-height: 0;
  }
  #homeAdventures .home-card-art,
  #homeAdventures .home-adventure-christmas .home-card-art {
    grid-column: 1;
    grid-row: 1;
    height: 260px;
  }
  #homeAdventures .home-card-copy,
  #homeAdventures .home-adventure-christmas .home-card-copy {
    grid-column: 1;
    grid-row: 2;
    min-height: 278px;
    padding: 29px 28px 31px;
  }
  #homeAdventures .home-card-label { margin-bottom: 12px; }
  #homeAdventures .home-card-copy strong { margin-bottom: 12px; font-size: 34px; }
  #homeAdventures .home-card-description { margin-bottom: 14px; font-size: 15px; }
  #homeAdventures .home-card-action { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #homeAdventures .home-adventure,
  #homeAdventures .home-card-art .home-card-scene,
  #homeAdventures .home-card-action-last::after,
  #homeAdventures .home-card-action-last::before { transition: none; }
}
