/* Prevent horizontal overflow on mobile - Bootstrap row negative margins and layout can cause scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Footer padding on mobile */
@media (max-width: 767px) {
  footer.border-top.max {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Spread selection typography */
.new5-main-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.new5-choose-headline {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.new5-subtitle {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.new5-intro {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.new5-choose-sub {
  font-size: 1.1rem;
  color: #555;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Free tarot readings we offer */
.new5-readings-section {
  margin: 0 0 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}
.new5-section-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}
.new5-readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.new5-reading-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.35rem 0;
}
.new5-reading-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}

/* FAQ section */
.new5-faq-section {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}
.new5-faq-section .new5-section-heading {
  margin-bottom: 1rem;
}
.new5-faq-list {
  margin: 0;
}
.new5-faq-list dt {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}
.new5-faq-list dt:first-child {
  margin-top: 0;
}
.new5-faq-list dd {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 0 0;
  padding-bottom: 0.5rem;
}

.new5-spread-section {
  position: relative;
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, #ec4899, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6, #ec4899) border-box;
  border: 4px solid transparent;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
@media (max-width: 575px) {
  .new5-spread-section {
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
  }
  .new5-spread-heading {
    margin-bottom: 0.5rem;
  }
  .new5-spread-select-wrap {
    margin-bottom: 0.375rem;
  }
  .new5-reversed-controls {
    row-gap: 0.25rem;
    column-gap: 0.5rem;
  }
  .new5-reversed-options-toggle {
    top: 0.5rem;
    right: 0.75rem;
  }
  .new5-choose-headline {
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

.new5-spread-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.75rem 0;
  padding-right: 2.5rem;
  letter-spacing: 0.01em;
}

.new5-spread-select-wrap {
  margin-bottom: 1rem;
}

.new5-spread-select {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.new5-spread-select:hover,
.new5-spread-select:focus {
  border-color: #6c757d;
  outline: none;
  box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
}

.new5-spread-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #495057;
  margin: 0;
}

/* Reversed cards (inline in reading selection) */
.new5-reversed-inline.new5-reversed-disabled {
  opacity: 0.7;
  pointer-events: none;
}
.new5-reversed-inline.new5-reversed-disabled .new5-reversed-checkbox-wrap {
  cursor: not-allowed;
}
.new5-reversed-options-toggle {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: auto;
  height: auto;
  padding: 0.125rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #495057;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-variant-emoji: text;
  cursor: pointer;
  z-index: 2;
}
.new5-reversed-options-toggle:hover,
.new5-reversed-options-toggle:focus {
  color: #212529;
  outline: none;
}
.new5-reversed-inline.new5-reversed-options-open .new5-reversed-options-toggle {
  color: #1f2937;
}
.new5-reversed-inline .new5-reversed-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.new5-reversed-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.35rem;
  column-gap: 1rem;
}
.new5-reversed-desc {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.9rem;
  color: #6c757d;
}
.new5-reversed-inline.new5-reversed-disabled .new5-reversed-desc {
  color: #6c757d;
}
.new5-reversed-controls .new5-reversed-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.new5-reversed-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
}

.new5-reversed-checkbox-wrap input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.new5-reversed-slider-wrap {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  flex-basis: 100%;
  min-width: 0;
  max-width: 600px;
}

.new5-reversed-inline.new5-reversed-options-open .new5-reversed-slider-wrap {
  display: flex;
}

.new5-reversed-slider-label {
  margin: 0;
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

.new5-reversed-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

.new5-reversed-slider-wrap input[type="range"] {
  flex: 1;
  min-width: 80px;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0.5rem 0;
}

.new5-reversed-slider-wrap input[type="number"] {
  width: 4em;
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* Reversed card flip - selection page and reading result pages */
#classicarea img.reversed,
.tarot-card.reversed,
#cardarea .card.reversed {
  transform: rotate(180deg) !important;
  -webkit-transform: rotate(180deg) !important;
}

/* Match select-a-card layout exactly: grid + gap (overrides fold.css float) */
#classicarea {
  overflow: visible;
  touch-action: manipulation; /* Removes 300ms tap delay on mobile */
}
#classicarea .card-row ul {
  display: grid !important;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  overflow: visible;
  float: none !important;
  padding-bottom: 0 !important;
}

#classicarea .card-row ul li {
  position: relative;
  float: none !important;
  width: auto !important;
}

#classicarea .card-row ul li img {
  padding: 0 !important;
}
#classicarea .card-row ul li img.chosen {
  pointer-events: none;
}

/* Exclude last column (13n), last row (67-78), AND card 66 (bottom-right corner star) */
#classicarea .card-row ul li:nth-child(-n+66):not(:nth-child(13n)):not(:nth-child(66))::after {
  content: '';
  width: 8px;
  height: 8px;
  background-image: url('/img/Star10.svg');
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  bottom: -1px;
  right: -1px;
  transform: translate(50%, 50%);
  pointer-events: none;
}

@media (max-width: 575px) {
  #classicarea .card-row ul li:nth-child(-n+66):not(:nth-child(13n)):not(:nth-child(66))::after {
    width: 5px;
    height: 5px;
  }
}

/* Reading content typography - improved spacing on mobile */
.new5-card-content {
  font-size: 1rem;
  line-height: 1.6;
}
.new5-card-content p {
  margin-bottom: 1rem;
}
.new5-card-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .new5-card-content {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .new5-card-content p {
    margin-bottom: 1.35rem;
  }
  .new5-card-content p:last-child {
    margin-bottom: 1.35rem;
  }
  .new5-section-title {
    margin-top: 1.5rem;
  }
  .new5-three-cards + .new5-section-title,
  .new5-six-cards + .new5-section-title,
  .new5-single-card + .new5-section-title {
    margin-top: 1rem;
  }
}

/* 3-card spread: centered row, max 600px, responsive */
.new5-three-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  width: 100%;
}
.new5-three-cards img {
  width: 100%;
  height: auto;
  object-fit: contain;
  flex: 1;
  min-width: 0;
}

/* 6-card spread: centered row, max 900px, responsive */
.new5-six-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 900px;
  margin: 0 auto 2rem;
  width: 100%;
}
.new5-six-cards img {
  width: 100%;
  height: auto;
  object-fit: contain;
  flex: 1;
  min-width: 0;
}

/* Defer long lower-page rendering cost until scrolled into view */
.new5-below-fold-content {
  content-visibility: auto;
  contain-intrinsic-size: auto 2400px;
}

/* Quick reading answer section - add padding */
.new5-quick-answer .col-12 {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* 1-card spread: centered, max 200px */
.new5-single-card {
  text-align: center;
  margin: 0 auto 2rem;
}
.new5-single-card img {
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Live Reader Ad Unit Concepts */
.tt-adlab {
  margin: 36px auto 8px;
}

.tt-adlab,
.tt-adlab * {
  box-sizing: border-box;
}

.tt-adlab-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: #4b5366;
  text-align: center;
}

.tt-liveunit {
  position: relative;
  margin: 0 0 16px;
  border: 1px solid #d8d5df;
  border-radius: 16px;
  background: #f4f2f8;
  box-shadow: 0 3px 12px rgba(22, 28, 44, 0.12);
  overflow: hidden;
}

.tt-liveunit-photo-wrap {
  grid-area: photo;
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #e9eaf0;
}

.tt-liveunit-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.tt-liveunit-name {
  display: block;
  background: #d4d4d6;
  color: #555;
  font-size: 2.25rem;
  line-height: 1.08;
  text-align: center;
  padding: 8px 10px 10px;
}

.tt-liveunit-headline {
  margin: 0;
  color: #7a2e5d;
  font-size: 2rem;
  line-height: 1.06;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  text-shadow: 0 2px 4px rgba(39, 42, 52, 0.18);
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.tt-liveunit-headline-row {
  grid-area: headline;
  margin: 14px 20px 8px;
  align-self: center;
}

.tt-liveunit-copy {
  padding: 16px 20px;
}

.tt-liveunit-copy-full {
  grid-area: copy;
  padding: 8px 20px 4px;
}

.tt-liveunit-orbit {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  align-items: start;
  border-color: #253253;
  background: radial-gradient(circle at 15% 12%, #2f3f6a 0%, #1b2440 54%, #10172b 100%);
}

.tt-liveunit-orbit-photo-wrap {
  display: block;
  align-self: start;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  text-decoration: none;
}

.tt-liveunit-orbit-photo {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(8, 12, 24, 0.45);
}

.tt-liveunit-orbit-body {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tt-liveunit-orbit-kicker {
  margin: 0;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5c5ff;
  font-size: 0.84rem;
}

.tt-liveunit-headline-orbit {
  color: #f9df9d;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: none;
  font-size: 2rem;
}

.tt-liveunit-orbit .tt-liveunit-main {
  color: #e4ebff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.18rem;
}

.tt-liveunit-orbit .tt-liveunit-quote {
  color: #c7d7ff;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.06rem;
}

.tt-liveunit-orbit-cta {
  width: fit-content;
  min-width: 280px;
  margin-top: 4px;
  border-color: #2f7ae0;
  background: linear-gradient(135deg, #3f8cf4, #2f6fd4);
  color: #f5f9ff;
  text-shadow: none;
}

.tt-liveunit-main {
  margin: 0 0 10px;
  color: #30333e;
  font-size: 1.2rem;
  line-height: 1.26;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
}

.tt-liveunit-quote {
  margin: 0;
  color: #54555d;
  font-size: 1.08rem;
  line-height: 1.44;
  font-style: italic;
}

.tt-liveunit-cta {
  display: block;
  border-radius: 12px;
  border: 1px solid #aa9f72;
  background: #b9b082;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 1.2rem;
  line-height: 1.2;
  padding: 14px 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tt-liveunit-cta:hover,
.tt-liveunit-cta:focus {
  color: #fff;
  text-decoration: none;
}

.tt-liveunit-cta-bottom {
  grid-area: cta;
  justify-self: stretch;
  display: block;
  width: auto;
  max-width: none;
  margin: 8px 16px 16px;
  box-sizing: border-box;
}

.tt-liveunit-rainbow {
  display: grid;
  grid-template-columns: minmax(220px, 33%) minmax(0, 1fr);
  grid-template-areas:
    "photo headline"
    "copy copy"
    "cta cta";
  align-items: start;
}

.tt-liveunit-rainbow {
  background: linear-gradient(#f3efe3, #f3efe3) padding-box,
              linear-gradient(135deg, #ec4899, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6, #ec4899) border-box;
  border: 4px solid transparent;
}

.tt-liveunit-rainbow .tt-liveunit-name {
  background: #d7e2f1;
  color: #2a3f61;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

.tt-liveunit-rainbow .tt-liveunit-headline {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 800;
  color: #1c4f80;
  text-shadow: none;
  letter-spacing: -0.01em;
}

.tt-liveunit-rainbow .tt-liveunit-main {
  font-family: 'Inter', Arial, sans-serif;
  color: #253347;
}

.tt-liveunit-rainbow .tt-liveunit-quote {
  font-family: 'Inter', Arial, sans-serif;
  color: #4b5a70;
  font-style: italic;
}

.tt-liveunit-rainbow .tt-liveunit-cta-bottom {
  background: #0f8fa5;
  border-color: #0b7b8e;
  color: #f2fcff;
  text-shadow: none;
  box-shadow: 0 3px 10px rgba(15, 143, 165, 0.3);
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
}

.tt-liveunit-rainbow .tt-liveunit-cta-bottom:hover,
.tt-liveunit-rainbow .tt-liveunit-cta-bottom:focus {
  background: #0c7f93;
  border-color: #0a6d7e;
  color: #f2fcff;
}

.tt-liveunit-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 33%);
  align-items: start;
  background: #f3e6cd;
  border-color: #cab78d;
}

.tt-liveunit-signal-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tt-liveunit-signal-label {
  margin: 0 0 6px;
  color: #6c5731;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.tt-liveunit-headline-signal {
  margin-bottom: 10px;
  color: #1f4f80;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: none;
}

.tt-liveunit-signal .tt-liveunit-main {
  color: #2f3a4f;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.16rem;
  margin-bottom: 14px;
}

.tt-liveunit-signal-cta {
  width: 100%;
  margin-top: auto;
  border-color: #12748a;
  background: #158aa3;
  color: #eefbff;
  text-shadow: none;
}

.tt-liveunit-signal-photo-wrap {
  position: relative;
  display: block;
  text-decoration: none;
  background: #2a3650;
  border: 1px solid #d1be8f;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(44, 53, 73, 0.12);
  align-self: start;
  margin: 18px 18px 0 10px;
}

.tt-liveunit-signal-photo-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(20, 23, 35, 0) 0%, rgba(20, 23, 35, 0.44) 52%, rgba(20, 23, 35, 0.86) 100%);
  pointer-events: none;
  z-index: 1;
}

.tt-liveunit-signal-photo {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.tt-liveunit-signal-name {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: block;
  margin: 0;
  padding: 0;
  text-align: left;
  color: #fff;
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 2.15rem;
  line-height: 1.1;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.55);
}

.tt-liveunit-headline-tall {
  margin: 0 0 10px;
  font-size: 1.72rem;
}

.tt-liveunit-tall-blue .tt-liveunit-headline-tall {
  color: #335f9c;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: none;
}

.tt-liveunit-tall {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: #eef4fb;
}

.tt-liveunit-tall-top {
  position: relative;
}

.tt-liveunit-tall-top .tt-liveunit-photo {
  aspect-ratio: 16 / 9;
}

.tt-liveunit-tall-body {
  padding: 16px;
}

.tt-liveunit-tall-body .tt-liveunit-main {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.4;
}

.tt-liveunit-cta-solid {
  width: 100%;
  margin-top: 2px;
  background: #5f79e6;
  border-color: #5f79e6;
  text-shadow: none;
}

@media (max-width: 760px) {
  .tt-adlab {
    margin-top: 26px;
  }

  .tt-liveunit-rainbow {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "headline"
      "copy"
      "cta";
  }

  .tt-liveunit-headline-row {
    margin: 12px 14px 8px;
  }

  .tt-liveunit-copy-full {
    padding: 4px 14px 4px;
  }

  .tt-liveunit-cta-bottom {
    margin: 8px 14px 14px;
  }

  .tt-liveunit-main {
    font-size: 1.14rem;
  }

  .tt-liveunit-headline {
    font-size: 1.74rem;
  }

  .tt-liveunit-headline-orbit {
    font-size: 1.74rem;
  }

  .tt-liveunit-headline-signal {
    font-size: 1.7rem;
  }

  .tt-liveunit-name,
  .tt-liveunit-signal-name {
    font-size: 1.85rem;
  }

  .tt-liveunit-cta {
    font-size: 1.12rem;
  }

  .tt-liveunit-orbit {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }

  .tt-liveunit-orbit-photo {
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 16 / 9;
  }

  .tt-liveunit-orbit-cta {
    width: 100%;
    min-width: 0;
  }

  .tt-liveunit-orbit-photo-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(8, 12, 24, 0.45);
  }

  .tt-liveunit-signal {
    grid-template-columns: 1fr;
  }

  .tt-liveunit-signal-body {
    order: 2;
    min-height: 0;
    display: block;
  }

  .tt-liveunit-signal-photo-wrap {
    order: 1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
  }

  .tt-liveunit-signal-photo {
    aspect-ratio: 4 / 3;
  }

  .tt-liveunit-signal-cta {
    margin-top: 4px;
  }
}
