/*
 * EOTLS 071 / Review 05 — editorial, navigation and contrast adjustments.
 * Candidate only. Review 04 remains available for rollback.
 * No cart calculations, checkout handling, pricing or payment scripts changed.
 */

/* Property rail stays visible at the top while scrolling down.
   Older 070-r2 deliberately hid it with translateY(-100%); undo only that
   behavior for JAZS and New Moreland, not the global site header. */
body.eotls-071.e062-property .e062-property-nav.e063-property-sticky {
  position: sticky !important;
  z-index: 1300 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  will-change: auto;
}
body.eotls-071.e062-property.e070r2-scroll-down:not(.e070r2-menu-open) .e062-property-nav.e063-property-sticky {
  top: 0 !important;
  transform: translateY(0) !important;
}
body.eotls-071.e062-property .e062-property-nav.e063-property-sticky .e063-property-links {
  min-width: 0;
}
body.eotls-071.e062-property :is(#overview,#chapter-one,#watch,#preorder,#art,#world,#characters,#updates) {
  scroll-margin-top: calc(var(--e070r2-header-height, 0px) + 88px);
}

/* Removing decorative section indices leaves the titles as the visual anchor. */
body.eotls-071 .e062-feature-strip a {
  gap: .25rem;
}
body.eotls-071 .e062-feature-strip strong {
  color: #f1f5f5;
}
body.eotls-071 .e062-contact-grid .e062-editorial-columns h3 {
  color: #7631a0 !important;
  text-shadow: none !important;
}

/* The New Moreland line is property-owned, not a new EOTLS slogan. */
body.eotls-071.e062-newmoreland .e062-property-copy .e071-nm-punchline {
  display: block;
  max-width: 21ch;
  margin: clamp(1rem, 2.8vw, 2rem) 0 0;
  padding: .5rem 0 .35rem;
  border-top: 2px solid rgba(241,245,245,.75);
  color: #f1f5f5 !important;
  font-family: "New Moreland", var(--e071-display) !important;
  font-size: clamp(2.5rem, 5.3vw, 5.5rem) !important;
  line-height: .97 !important;
  letter-spacing: normal !important;
  text-transform: none;
  text-shadow: 0 3px 8px rgba(0,0,0,.4);
}

/* Home cover rail: price is the eyebrow, edition name is the headline. */
body.eotls-071 .e062-cover-rail > a > p {
  color: #7631a0 !important;
  opacity: 1 !important;
  font-weight: 800;
}
body.eotls-071 .e062-cover-rail:not(.dark) > a > h3 {
  overflow-wrap: normal;
  hyphens: auto;
  color: #101313 !important;
}

/* Cart cards: dark background demands light names and supporting text. */
body.eotls-071 .cart-list .cart-item {
  background: #17191f !important;
  color: #f1f5f5 !important;
  border-color: #555b63 !important;
}
body.eotls-071 .cart-list .cart-item :is(h3,strong) {
  color: #f1f5f5 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body.eotls-071 .cart-list .cart-item :is(p,span,.muted) {
  color: #d4dede !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body.eotls-071 .cart-list .cart-item :is(button,.qty-controls button) {
  color: #fff !important;
}

/* Checkout uses a light summary card holding a dark order-items panel.
   Scope ink colors to the panel rather than forcing them across the entire aside. */
body.eotls-071.checkout-page [data-checkout-summary] .checkout-items {
  background: #080a10 !important;
  color: #f1f5f5 !important;
  border-color: rgba(241,245,245,.3) !important;
  min-width: 0;
  overflow: hidden;
}
body.eotls-071.checkout-page [data-checkout-summary] .checkout-items > h3 {
  color: #f1f5f5 !important;
  background: #080a10 !important;
  opacity: 1 !important;
}
body.eotls-071.checkout-page [data-checkout-summary] .checkout-item :is(strong,span,p),
body.eotls-071.checkout-page [data-checkout-summary] .summary-lines :is(p,span,strong),
body.eotls-071.checkout-page [data-checkout-summary] > h2 {
  color: #f1f5f5 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
body.eotls-071.checkout-page [data-checkout-summary] .summary-lines,
body.eotls-071.checkout-page [data-checkout-summary] > h2 {
  background: #080a10 !important;
}
body.eotls-071.checkout-page [data-checkout-summary] > h2 {
  margin: 0;
  padding: .35rem .5rem .75rem;
  box-sizing: border-box;
  font-size: clamp(2.1rem, 3.8vw, 4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: .025em !important;
  overflow-wrap: anywhere;
  max-width: 100%;
}
body.eotls-071.checkout-page .checkout-international-note {
  background: #27333d !important;
  color: #f1f5f5 !important;
  opacity: 1 !important;
}
body.eotls-071.checkout-page .terms-checkout,
body.eotls-071.checkout-page .terms-checkout span {
  color: #f1f5f5 !important;
  opacity: 1 !important;
}
body.eotls-071.checkout-page .terms-checkout a {
  color: #f6d849 !important;
  opacity: 1 !important;
  text-decoration: underline;
}
body.eotls-071.checkout-page .payment-choice-divider {
  color: #303535 !important;
}

/* Ensure small screens can still read long product names and totals. */
@media (max-width: 850px) {
  body.eotls-071.checkout-page [data-checkout-summary] .checkout-item {
    grid-template-columns: 4rem minmax(0,1fr) minmax(4.5rem,auto) !important;
  }
}
@media (max-width: 560px) {
  body.eotls-071.checkout-page [data-checkout-summary] .checkout-item {
    grid-template-columns: 3.5rem minmax(0,1fr) !important;
  }
  body.eotls-071.checkout-page [data-checkout-summary] .checkout-item__price {
    grid-column: 2;
    text-align: left;
  }
}
