/* Quiet post-reveal pathways: consult bento, extended cards, closing card.
   Selectors inside .tarot-entry-path__section carry one extra class so they
   outrank the flow-mode rules in tarot-motion.css without touching them. */
.tarot-entry-path {
  color: var(--indigo);
  overflow: clip;
}

.tarot-entry-path__section {
  position: relative;
  padding-block: clamp(3.5rem, 6.5vw, 6rem);
}

.tarot-entry-path__booking {
  padding-block: clamp(4rem, 7vw, 6.5rem) clamp(3rem, 5vw, 4.5rem);
}

.tarot-entry-path__booking-inner {
  position: relative;
  max-width: 760px;
  padding-top: 1rem;
}

.tarot-entry-path__booking[data-entry="booking"] .tarot-entry-path__booking-inner {
  max-width: none;
}

.tarot-entry-path__anchor {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: block;
  width: 12px;
  height: 12px;
  opacity: 0;
  pointer-events: none;
}

.tarot-entry-path .tarot-entry-path__section .tarot-entry-path__title {
  margin: 0.8rem 0 1.25rem;
  color: var(--navy-deep, var(--indigo-deep));
  font-family: var(--font-heading, var(--font-display));
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 400;
  line-height: 1.5;
}

.tarot-entry-path .tarot-entry-path__section .tarot-entry-path__copy {
  max-width: 39rem;
  margin: 0;
  color: rgba(30, 58, 95, 0.9);
  font-size: 0.95rem;
  line-height: 1.9;
}

.tarot-entry-path .tarot-entry-path__section .tarot-entry-path__lead {
  max-width: 39rem;
  margin: 0 0 0.8rem;
  color: var(--indigo);
  font-family: var(--font-heading, var(--font-display));
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.tarot-entry-path__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--navy-15, rgba(30, 58, 95, 0.15));
  color: var(--indigo);
  font-size: 0.94rem;
  line-height: 1.6;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.tarot-entry-path .tarot-entry-path__section .tarot-entry-path__link {
  font-size: 0.94rem;
}

.tarot-entry-path__link:hover {
  border-color: var(--rose);
  color: var(--navy-deep, var(--indigo-deep));
}

.tarot-entry-path__link:focus-visible,
.tarot-entry-path__image-link:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 5px;
}

/* Shared bento cell: paper, hairline indigo edge, soft radius, no shadow. */
.tarot-entry-path__cell {
  position: relative;
  min-width: 0;
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.2vw, 2rem);
}

/* Consult bento: three steps, then principles (about 58%) and photo (about 42%). */
.tarot-entry-path__bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.tarot-entry-path__cell--step {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}

.tarot-entry-path__num {
  margin-bottom: 1rem;
  color: var(--navy-42, rgba(30, 58, 95, 0.42));
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.tarot-entry-path .tarot-entry-path__cell h3 {
  margin: 0 0 0.6rem;
  color: var(--navy-deep, var(--indigo-deep));
  font-family: var(--font-heading, var(--font-display));
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
}

.tarot-entry-path .tarot-entry-path__cell .tarot-entry-path__copy {
  font-size: 14px;
  line-height: 1.9;
  max-width: none;
}

.tarot-entry-path__cell--principles {
  grid-column: span 7;
}

.tarot-entry-path__principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarot-entry-path__principle-list li {
  position: relative;
  padding-left: 1rem;
  color: rgba(30, 58, 95, 0.88);
  font-size: 14px;
  line-height: 1.8;
}

.tarot-entry-path__principle-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-drop);
  background: var(--rose);
}

.tarot-entry-path__principle-list strong {
  color: var(--navy-deep, var(--indigo-deep));
  font-weight: 500;
}

.tarot-entry-path__cell--photo {
  grid-column: span 5;
  padding: 0;
  overflow: hidden;
  min-height: 260px;
}

.tarot-entry-path__cell--photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.72);
  -webkit-mask: url('../img/photo-wash-edge-b.svg') center / 100% 100% no-repeat;
  mask: url('../img/photo-wash-edge-b.svg') center / 100% 100% no-repeat;
}

/* Extended exploration: three equal cards. */
.tarot-entry-path__group-head {
  padding-top: clamp(3rem, 5.5vw, 5rem);
}

.tarot-entry-path__group-label {
  margin: 0;
  color: var(--navy-42, rgba(30, 58, 95, 0.42));
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.tarot-entry-path__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
}

.tarot-entry-path .tarot-entry-path__cards .tarot-entry-path__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(0.9rem, 1.4vw, 1.2rem);
}

.tarot-entry-path .tarot-entry-path__card .tarot-entry-path__image-link {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  justify-self: stretch;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  -webkit-mask: url('../img/photo-wash-edge-b.svg') center / 100% 100% no-repeat;
  mask: url('../img/photo-wash-edge-b.svg') center / 100% 100% no-repeat;
}

.tarot-entry-path .tarot-entry-path__card .tarot-entry-path__image-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72);
}

.tarot-entry-path .tarot-entry-path__card--draw .tarot-entry-path__image-link img {
  object-position: 50% 62%;
}

.tarot-entry-path__card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 1.25rem 0.35rem 0.25rem;
}

.tarot-entry-path .tarot-entry-path__card .tarot-entry-path__title {
  margin: 0.6rem 0 0.7rem;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
}

.tarot-entry-path .tarot-entry-path__card .tarot-entry-path__copy {
  font-size: 14px;
  line-height: 1.85;
}

.tarot-entry-path .tarot-entry-path__card .tarot-entry-path__link {
  margin-top: auto;
  padding-top: 1.25rem;
  font-size: var(--text-base);
}

.tarot-entry-path .tarot-entry-path__card .tarot-entry-path__link {
  align-self: flex-start;
}

/* Closing card: full width, text left, link right. */
.tarot-entry-path__final .tarot-entry-path__cell--wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3.5vw, 3rem);
}

.tarot-entry-path__wide-text {
  max-width: 40rem;
}

.tarot-entry-path__final .tarot-entry-path__cell--wide .tarot-entry-path__link {
  margin-top: 0;
  padding-top: 0;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .tarot-entry-path__section {
    padding-block: 3.25rem;
  }

  .tarot-entry-path__booking {
    padding-block: 3.5rem 3rem;
  }

  .tarot-entry-path__bento {
    gap: 10px;
    margin-top: 1.75rem;
  }

  /* Steps become three compact stacked cells, one per row. */
  .tarot-entry-path__cell--step {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: baseline;
    padding: 1rem 1.1rem;
  }

  .tarot-entry-path__cell--step .tarot-entry-path__num {
    grid-row: span 2;
    margin: 0;
  }

  .tarot-entry-path .tarot-entry-path__cell--step .tarot-entry-path__copy {
    grid-column: 2;
    font-size: 14px;
    line-height: 1.8;
  }

  /* Principles and photo side by side; the photo is the smaller cell. */
  .tarot-entry-path__cell--principles {
    grid-column: span 8;
    padding: 1.1rem 1rem;
  }

  .tarot-entry-path__cell--photo {
    grid-column: span 4;
    min-height: 0;
  }

  .tarot-entry-path__cell--photo img {
    min-height: 100%;
  }

  .tarot-entry-path__principle-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
  }

  .tarot-entry-path__principle-list li {
    font-size: 13px;
    line-height: 1.7;
  }

  .tarot-entry-path__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tarot-entry-path .tarot-entry-path__cards .tarot-entry-path__card--articles {
    grid-column: 1 / -1;
  }

  .tarot-entry-path .tarot-entry-path__card .tarot-entry-path__title {
    font-size: 1.1rem;
  }

  .tarot-entry-path__final .tarot-entry-path__cell--wide {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarot-entry-path__link {
    transition: none;
  }
}

/* Step cells: a 1px mist divider under the number row separates the steps. */
.tarot-entry-path__cell--step h3 { padding-top: .75rem; border-top: 1px solid rgba(175, 196, 211, .7); }
@media (max-width: 768px) {
  .tarot-landing { --shell: calc(100vw - 48px); }   /* 24px side margins */
  .tarot-entry-path__cell--step h3 { padding-top: 0; border-top: 0; }
  .tarot-entry-path__cell--step + .tarot-entry-path__cell--step { border-top-color: rgba(175, 196, 211, .7); }
  /* Principles stay a full-width list; the photograph becomes a 140px strip below it. */
  .tarot-entry-path__cell--principles { grid-column: 1 / -1; }
  .tarot-entry-path__cell--photo { grid-column: 1 / -1; height: 140px; min-height: 140px; }
  .tarot-entry-path__cell--photo img { height: 140px; min-height: 140px; }
}
