/* Inner-page refinement layer: editorial mastheads, restored About media, and quiet interactions. */

body:not(.home) .document-hero,
body:not(.home) .document-hero.is-compact,
body:not(.home) .document-hero.is-textual {
  position: relative;
  min-height: 0;
  padding-top: var(--lx-header-height, 72px);
  display: block;
  overflow: hidden;
  color: var(--lx-ink);
  background: var(--lx-paper-warm, #f4f0e7);
  border-bottom: 1px solid var(--lx-line);
}

body:not(.home) .document-hero.is-textual::before {
  position: absolute;
  top: calc(var(--lx-header-height, 72px) + 30px);
  right: max(var(--lx-gutter), calc((100vw - 1320px) / 2));
  left: max(var(--lx-gutter), calc((100vw - 1320px) / 2));
  height: 1px;
  content: "";
  background: var(--lx-line-strong);
}

body:not(.home) .document-hero__inner,
body:not(.home) .document-hero.is-compact .document-hero__inner {
  position: relative;
  width: min(100%, 1440px);
  min-height: 320px;
  margin: 0 auto;
  padding: 72px max(var(--lx-gutter), calc((100vw - 1320px) / 2)) 48px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  color: inherit;
}

/* Conversion pages expose their proof and action area within the first viewport. */
body:is(.page-id-25, .page-id-29, .page-id-212) .document-hero__inner,
body:is(.page-id-25, .page-id-29, .page-id-212) .document-hero.is-compact .document-hero__inner {
  min-height: 276px;
  padding-top: 58px;
  padding-bottom: 40px;
}

body:is(.page-id-25, .page-id-29, .page-id-212) .document-content {
  padding-top: clamp(36px, 4vw, 54px);
}

body:not(.home) .document-hero__copy {
  grid-column: 1 / span 9;
}

body:not(.home) .document-hero__kicker,
body:not(.home) .document-hero__inner > p {
  width: fit-content;
  margin: 0 0 20px;
  padding: 0;
  color: var(--lx-cinnabar);
  background: transparent;
  border: 0;
  font-family: var(--lx-font-sans);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

body:not(.home) .document-hero h1,
body:not(.home) .document-hero.is-compact h1 {
  max-width: 13ch;
  margin: 0;
  color: var(--lx-ink);
  font-family: var(--lx-font-display);
  font-size: clamp(54px, 7vw, 98px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

body:not(.home) .document-hero__intro {
  max-width: 55ch;
  margin-top: 24px;
  padding: 0;
  color: var(--lx-ink-muted);
  border: 0;
  font-family: var(--lx-font-reading);
  font-size: 16px;
  line-height: 1.7;
}

body:not(.home) .document-hero__intro > :first-child { margin-top: 0; }
body:not(.home) .document-hero__intro > :last-child { margin-bottom: 0; }

body:not(.home) .document-hero__folio {
  grid-column: 10 / -1;
  align-self: end;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  color: var(--lx-ink-muted);
  border-top: 1px solid var(--lx-line-strong);
  font-family: var(--lx-font-sans);
  font-size: 9px;
  font-weight: 760;
  text-transform: uppercase;
}

body:not(.home) .document-hero__folio strong {
  color: var(--lx-cinnabar);
  font-size: inherit;
}

/* The original About images are background layers; their parent needs real height. */
body.page-id-24 .wd-row {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.page-id-24 .wd-row .wd-img {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

body.page-id-24 .wd-row .wd-img-in {
  min-height: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

body.page-id-24 .wd-row:nth-of-type(even) .wd-img { order: 2; }
body.page-id-24 .wd-row:nth-of-type(even) .wd-txt { order: 1; }

/* About origin spread: keep the photograph intact and move every reading layer below it. */
body.page-id-24 .ab {
  min-height: 0 !important;
  padding: 0 0 clamp(42px, 5vw, 68px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
  grid-template-rows: clamp(440px, 48vw, 620px) auto auto !important;
  column-gap: clamp(34px, 6vw, 86px) !important;
  row-gap: 0 !important;
  align-items: start !important;
  overflow: hidden !important;
  background-position: center top !important;
  background-repeat: no-repeat !important;
  background-size: 100% clamp(440px, 48vw, 620px) !important;
  border-bottom: 1px solid var(--lx-line) !important;
}

body.page-id-24 .ab::after {
  position: relative;
  z-index: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: stretch;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 25, 20, 0.03) 52%, rgba(17, 25, 20, 0.42) 100%);
}

body.page-id-24 .ab::before {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
  width: auto !important;
  height: auto !important;
  margin: 0 0 22px 22px;
  padding: 9px 12px;
  content: "01 / ORIGIN" !important;
  color: var(--lx-paper) !important;
  background: var(--lx-cinnabar) !important;
  font-family: var(--lx-font-sans);
  font-size: 9px !important;
  font-weight: 820 !important;
  line-height: 1;
}

body.page-id-24 .ab .ab-p {
  grid-column: 1 !important;
  grid-row: 2 !important;
  align-self: start;
  width: auto;
  margin: clamp(30px, 4vw, 52px) 0 10px !important;
  padding: 0 !important;
  color: var(--lx-cinnabar) !important;
  font-size: 10px !important;
  font-weight: 820 !important;
  line-height: 1.2;
  text-align: left !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  animation: none !important;
}

body.page-id-24 .ab .ab-h1 {
  grid-column: 1 !important;
  grid-row: 3 !important;
  max-width: 8ch !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--lx-ink) !important;
  font-family: var(--lx-font-display) !important;
  font-size: clamp(52px, 6vw, 84px) !important;
  font-weight: 500 !important;
  line-height: 0.96 !important;
  text-align: left !important;
  letter-spacing: 0 !important;
}

body.page-id-24 .ab .nb-in {
  grid-column: 2 !important;
  grid-row: 2 / 4 !important;
  align-self: stretch;
  width: 100% !important;
  max-width: none !important;
  margin: clamp(30px, 4vw, 52px) 0 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 !important;
  color: var(--lx-ink) !important;
  border-top: 1px solid var(--lx-line-strong);
}

body.page-id-24 .ab .ns {
  min-width: 0;
  padding: 20px 18px 22px 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: baseline;
  text-align: left !important;
  border-bottom: 1px solid var(--lx-line);
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

body.page-id-24 .ab .ns:nth-child(odd) {
  border-right: 1px solid var(--lx-line);
}

body.page-id-24 .ab .ns:nth-child(even) {
  padding-right: 0;
  padding-left: 18px;
}

body.page-id-24 .ab .nsn {
  grid-row: 1 / 3;
  color: var(--lx-ink) !important;
  font-family: var(--lx-font-display) !important;
  font-size: clamp(34px, 3.2vw, 48px) !important;
  font-weight: 500 !important;
  line-height: 0.92 !important;
}

body.page-id-24 .ab .nsn .plus {
  color: var(--lx-cinnabar) !important;
  font-size: 0.55em !important;
}

body.page-id-24 .ab .nsl {
  align-self: end;
  margin: 0 !important;
  color: var(--lx-ink-muted) !important;
  font-size: 9px !important;
  font-weight: 760 !important;
  line-height: 1.35;
  letter-spacing: 0 !important;
}

body.page-id-24 .ab .ns .bar {
  grid-column: 2;
  width: 28px !important;
  height: 2px;
  margin: 8px 0 0 !important;
  background: var(--lx-cinnabar) !important;
}

body.page-id-24 .ab .ns:hover,
body.page-id-24 .ab .ns:hover .bar {
  transform: none !important;
}

/* Reviews keep their deep field, with a restrained route-line hover instead of a white wipe. */
.story-directory .story-directory__entry {
  isolation: isolate;
  z-index: 0;
  color: var(--lx-paper);
  transition: background-color 360ms ease, padding 360ms var(--lx-ease-out);
}

.story-directory .story-directory__entry::after {
  inset: auto 0 0;
  z-index: 1;
  height: 2px;
  background: var(--lx-cinnabar);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 440ms var(--lx-ease-out);
}

.story-directory .story-directory__entry:hover,
.story-directory .story-directory__entry:focus-visible {
  padding-right: 18px;
  padding-left: 18px;
  color: var(--lx-paper);
  background: rgba(255, 253, 248, 0.045);
  outline: none;
}

.story-directory .story-directory__entry:hover::after,
.story-directory .story-directory__entry:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.story-directory .story-directory__entry:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(217, 170, 89, 0.7);
}

.story-directory .story-directory__route,
.story-directory .story-directory__action,
.story-directory .story-directory__entry:hover .story-directory__route,
.story-directory .story-directory__entry:hover .story-directory__action,
.story-directory .story-directory__entry:focus-visible .story-directory__route,
.story-directory .story-directory__entry:focus-visible .story-directory__action {
  color: rgba(255, 253, 248, 0.6);
  transition: color 260ms ease, transform 360ms var(--lx-ease-out);
}

.story-directory .story-directory__entry:hover .story-directory__action,
.story-directory .story-directory__entry:focus-visible .story-directory__action {
  color: var(--lx-gold-soft);
  transform: translateX(5px);
}

.story-directory .story-directory__media img {
  transition: transform 900ms var(--lx-ease-out), filter 600ms ease;
}

.story-directory .story-directory__entry:hover .story-directory__media img,
.story-directory .story-directory__entry:focus-visible .story-directory__media img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.03);
}

@media (max-width: 760px) {
  body:not(.home) .document-hero.is-textual::before {
    top: calc(var(--lx-header-height, 64px) + 22px);
    right: 22px;
    left: 22px;
  }

  body:not(.home) .document-hero__inner,
  body:not(.home) .document-hero.is-compact .document-hero__inner {
    min-height: 292px;
    padding: 56px 22px 34px;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body:is(.page-id-25, .page-id-29, .page-id-212) .document-hero__inner,
  body:is(.page-id-25, .page-id-29, .page-id-212) .document-hero.is-compact .document-hero__inner {
    min-height: 258px;
    padding-top: 48px;
    padding-bottom: 30px;
  }

  body:is(.page-id-25, .page-id-29, .page-id-212) .document-content {
    padding-top: 32px;
  }

  body:not(.home) .document-hero__copy,
  body:not(.home) .document-hero__folio {
    grid-column: 1;
  }

  body:not(.home) .document-hero h1,
  body:not(.home) .document-hero.is-compact h1 {
    max-width: 11ch;
    font-size: clamp(44px, 15vw, 66px);
  }

  body:not(.home) .document-hero__intro {
    font-size: 15px;
  }

  body.page-id-24 .wd-row {
    grid-template-columns: 1fr !important;
  }

  body.page-id-24 .wd-row .wd-img {
    min-height: 300px;
  }

  body.page-id-24 .wd-row:nth-of-type(even) .wd-img,
  body.page-id-24 .wd-row:nth-of-type(even) .wd-txt {
    order: initial;
  }

  body.page-id-24 .ab {
    grid-template-columns: 1fr !important;
    grid-template-rows: clamp(300px, 88vw, 430px) auto auto auto !important;
    background-size: 100% clamp(300px, 88vw, 430px) !important;
  }

  body.page-id-24 .ab::after,
  body.page-id-24 .ab::before {
    grid-column: 1;
    grid-row: 1;
  }

  body.page-id-24 .ab .ab-p {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin-top: 28px !important;
  }

  body.page-id-24 .ab .ab-h1 {
    grid-column: 1 !important;
    grid-row: 3 !important;
    max-width: 10ch !important;
    font-size: clamp(46px, 14vw, 64px) !important;
  }

  body.page-id-24 .ab .nb-in {
    grid-column: 1 !important;
    grid-row: 4 !important;
    margin-top: 30px !important;
  }

  body.page-id-24 .ab .ns {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 6px;
  }

  body.page-id-24 .ab .nsn {
    grid-row: auto;
  }

  body.page-id-24 .ab .ns .bar {
    grid-column: 1;
  }

  .story-directory .story-directory__entry:hover,
  .story-directory .story-directory__entry:focus-visible {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-directory .story-directory__entry,
  .story-directory .story-directory__entry::after,
  .story-directory .story-directory__media img,
  .story-directory .story-directory__route,
  .story-directory .story-directory__action {
    transition: none;
  }
}
/* About origin: the complete photograph leads; the story reads below it. */
body.page-id-24 .to {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: visible;
  background: var(--lx-paper);
}

body.page-id-24 .to > img {
  width: 100%;
  height: clamp(460px, 54vw, 720px);
  display: block;
  object-fit: cover;
  object-position: center 46%;
}

body.page-id-24 .to-overlay {
  display: none;
}

body.page-id-24 .to-content {
  position: relative;
  inset: auto;
  max-width: none;
  padding: clamp(42px, 6vw, 82px) clamp(24px, 7vw, 104px);
  display: grid;
  grid-template-columns: minmax(210px, 0.56fr) minmax(0, 1.44fr);
  gap: 18px clamp(44px, 7vw, 104px);
  color: var(--lx-ink);
  background: var(--lx-paper);
  border-top: 1px solid var(--lx-line-strong);
}

body.page-id-24 .to-content h2 {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  color: var(--lx-ink);
  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.96;
}

body.page-id-24 .to-content .to-div {
  grid-column: 1;
  width: 54px;
  height: 2px;
  margin-top: 10px;
  background: var(--lx-cinnabar);
}

body.page-id-24 .to-content p {
  grid-column: 2;
  max-width: 72ch;
  margin: 0;
  color: var(--lx-ink-soft) !important;
  font-size: clamp(16px, 1.25vw, 19px) !important;
  line-height: 1.78;
  opacity: 1 !important;
  transform: none !important;
}

body.page-id-24 .to-content p:last-child {
  margin-top: 12px !important;
  color: var(--lx-cinnabar) !important;
  font-family: var(--lx-font-sans);
  font-size: 11px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

/* Sample itinerary: compact route tabs, without companion-driven whitespace. */
body.page-id-25 .dt-tabs {
  min-height: 66px;
  padding: 0 clamp(8px, 1.4vw, 18px);
  background: color-mix(in srgb, var(--lx-paper) 96%, transparent);
  border-top: 1px solid var(--lx-line-strong);
  box-shadow: 0 14px 34px rgba(31, 34, 29, 0.06);
}

body.page-id-25 .dt-tab {
  position: relative;
  min-height: 66px;
  padding: 10px clamp(8px, 1.5vw, 18px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  border-right: 1px solid var(--lx-line);
}

body.page-id-25 .dt-tab:last-child {
  border-right: 0;
}

body.page-id-25 .dt-tab::before {
  color: var(--lx-ink-muted);
  font-family: var(--lx-font-sans);
  font-size: 9px;
  font-weight: 760;
}

body.page-id-25 .dt-tab:nth-child(1)::before { content: '01'; }
body.page-id-25 .dt-tab:nth-child(2)::before { content: '02'; }
body.page-id-25 .dt-tab:nth-child(3)::before { content: '03'; }
body.page-id-25 .dt-tab:nth-child(4)::before { content: '04'; }
body.page-id-25 .dt-tab:nth-child(5)::before { content: '05'; }

body.page-id-25 .dt-tab.active {
  background: var(--lx-paper);
}

@media (max-width: 760px) {
  body.page-id-24 .to > img {
    height: clamp(340px, 92vw, 520px);
  }

  body.page-id-24 .to-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 36px 22px 44px;
  }

  body.page-id-24 .to-content h2,
  body.page-id-24 .to-content .to-div,
  body.page-id-24 .to-content p {
    grid-column: 1;
    grid-row: auto;
  }

  body.page-id-25 .dt-tabs {
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  body.page-id-25 .dt-tabs::-webkit-scrollbar { display: none; }

  body.page-id-25 .dt-tab {
    min-height: 62px;
  }
}

/* Empty checkout is a clear next step, not an inline sentence. */
body.loclyx-scene-secure-checkout .document-content #edd_checkout_wrap > .edd_empty_cart {
  display: grid;
  justify-items: start;
  gap: clamp(14px, 2vw, 22px);
  width: min(100%, 940px);
  margin-right: auto;
  margin-left: auto;
  padding: clamp(30px, 5vw, 58px);
  color: var(--lx-ink);
  background: var(--lx-paper);
  border-top: 3px solid var(--lx-cinnabar);
  border-radius: 2px;
  box-shadow: 0 24px 64px rgba(31, 34, 29, 0.12);
}

body.loclyx-scene-secure-checkout .edd-empty-cart__title {
  display: block;
  max-width: 18ch;
  margin: 0;
  font-family: var(--lx-font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 0.98;
}

body.loclyx-scene-secure-checkout .edd-empty-cart__copy {
  display: block;
  max-width: 58ch;
  color: var(--lx-ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
}

body.loclyx-scene-secure-checkout .document-content #edd_checkout_wrap .edd-empty-cart__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 4px;
  padding: 0 24px;
  color: #fff;
  background: #c43a31;
  border-color: #c43a31;
  text-decoration: none;
}

body.loclyx-scene-secure-checkout .document-content #edd_checkout_wrap .edd-empty-cart__action:hover,
body.loclyx-scene-secure-checkout .document-content #edd_checkout_wrap .edd-empty-cart__action:focus-visible {
  color: #fff;
  background: #c43a31;
  border-color: #c43a31;
  transform: none;
}

body.loclyx-scene-secure-checkout .document-content #edd_checkout_wrap .edd-empty-cart__action:focus-visible {
  outline: 3px solid rgba(196, 58, 49, 0.34);
  outline-offset: 3px;
}
