/* ====== LINKS: noticeable purple (page-local) ====== */

.ma-hero a,
.ma-hero a:visited {
  color: rgba(190, 140, 255, 0.95) !important;
  text-decoration: underline;
  text-decoration-color: rgba(190, 140, 255, 0.55);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 800;
}

.ma-hero a:hover {
  color: rgba(215, 175, 255, 1) !important;
  text-decoration-color: rgba(215, 175, 255, 0.9);
  text-shadow: 0 0 14px rgba(190, 140, 255, 0.25);
}

.ma-hero a:focus-visible {
  outline: 2px solid rgba(190, 140, 255, 0.6);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ====== BASE ====== */

.ma-hero {
  overflow: visible !important;
}

.ma-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.ma-box {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  padding: 18px;
}

.sep {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 24px 0;
}

.lead {
  font-size: 1.06rem;
  line-height: 1.85;
}

.muted {
  opacity: .88;
}

.ma-clear {
  clear: both;
}

/* ====== SINGLE SPREAD HERO ====== */

.ma-singleHero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
  margin: 16px 0 18px;
}

.ma-singleHero.no-image {
  grid-template-columns: 1fr;
}

.ma-singleHeroText,
.ma-singleHeroMedia {
  min-width: 0;
}

.ma-singleHeroImg {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  margin: 0 auto;
}

/* ====== HUB HERO CARDS ====== */

.ma-heroCards {
  float: right;
  width: 240px;
  max-width: 34vw;
  margin: 6px 0 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ma-heroCard {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.20);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  transform: translateY(0);
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

.ma-heroCard:before {
  content: "";
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(circle at 30% 25%, rgba(190, 140, 255, 0.16), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(215, 175, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.ma-heroCard:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 140, 255, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.ma-heroCard img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.22);
}

.ma-heroCap {
  font-size: 12px;
  opacity: .85;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

/* ====== TAROT MEANINGS HUB / SINGLE ====== */

.tm-note {
  font-size: 14px;
  opacity: .82;
}

.tm-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.tm-backLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.tm-jump a,
.tm-backLinks a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

.tm-jump a:hover,
.tm-backLinks a:hover {
  background: rgba(255,255,255,.08);
}

.tm-accordion {
  display: grid;
  gap: 12px;
}

.tm-card {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.tm-card summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tm-card summary::-webkit-details-marker {
  display: none;
}

.tm-card summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  opacity: .8;
}

.tm-card[open] summary::after {
  content: "−";
}

.tm-cardBody {
  padding: 0 16px 16px;
}

.tm-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-links li a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
}

.tm-links li a:hover {
  background: rgba(255,255,255,.08);
}

.tm-suitWrap {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

/* ====== SINGLE MEANING HERO FIX ====== */

.tm-singleHero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 320px;
  gap: 24px;
  align-items: start;
  margin: 16px 0 22px;
}

.tm-singleHero.no-image {
  grid-template-columns: 1fr;
}

.tm-singleHero > .ma-box {
  min-width: 0;
}

.tm-singleHero > .ma-box:first-child {
  padding: 22px 24px;
}

.tm-singleHero > .ma-box:last-child {
  padding: 14px;
  align-self: start;
}

.tm-singleHeroImg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 1100px) {
  .tm-singleHero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }

  .tm-singleHeroImg {
    max-width: 240px;
  }
}

@media (max-width: 980px) {
  .ma-grid2 {
    grid-template-columns: 1fr;
  }

  .ma-singleHero {
    grid-template-columns: 1fr;
  }

  .ma-singleHeroImg {
    max-height: none;
  }

  .ma-heroCards {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .ma-heroCard {
    width: 170px;
  }

  .ma-heroCard img {
    height: 240px;
  }
}

@media (max-width: 860px) {
  .tm-singleHero {
    grid-template-columns: 1fr;
  }

  .tm-singleHero > .ma-box:last-child {
    padding: 16px;
  }

  .tm-singleHeroImg {
    max-width: 260px;
  }
}

@media (max-width: 640px) {
  .tm-links {
    grid-template-columns: 1fr;
  }
}

.tm-contentHero{
  display:grid;
  grid-template-columns:minmax(0, 1.55fr) 320px;
  gap:24px;
  align-items:start;
}

.tm-contentHero.no-image{
  grid-template-columns:1fr;
}

.tm-contentHero > .ma-box{
  min-width:0;
}

.tm-contentHeroMedia{
  align-self:start;
  padding:14px;
}

.tm-contentHeroImg{
  width:100%;
  max-width:280px;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:18px;
}

@media (max-width: 1100px){
  .tm-contentHero{
    grid-template-columns:minmax(0, 1fr) 280px;
    gap:18px;
  }

  .tm-contentHeroImg{
    max-width:240px;
  }
}

@media (max-width: 860px){
  .tm-contentHero{
    grid-template-columns:1fr;
  }

  .tm-contentHeroImg{
    max-width:260px;
  }
}

.tm-aff-link,
.tm-aff-link:link,
.tm-aff-link:visited {
  color: #9fe3d6 !important; /* Arvethis teal */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tm-aff-link:hover,
.tm-aff-link:focus,
.tm-aff-link:active {
  color: #7dd3c7 !important;
}

/* ====== SOFT CTA / INLINE READING SUGGESTION ====== */

.combo-soft-cta {
  position: relative;
  margin: 18px 0;
  padding: 20px 22px;
  border-radius: 20px;
  border: 1px solid rgba(212, 184, 122, 0.18);
  background:
    linear-gradient(180deg, rgba(10,16,34,0.90), rgba(7,11,24,0.96));
  box-shadow:
    0 18px 44px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
}

.combo-soft-cta::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -40px;
  width: 220px;
  height: 220px;
  background:
    radial-gradient(circle, rgba(168, 118, 255, 0.12) 0%, rgba(168, 118, 255, 0.03) 45%, transparent 72%);
  pointer-events: none;
}

.combo-soft-cta::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -110px;
  width: 240px;
  height: 240px;
  background:
    radial-gradient(circle, rgba(255, 215, 140, 0.08) 0%, rgba(255, 215, 140, 0.02) 42%, transparent 72%);
  pointer-events: none;
}

.combo-soft-cta-title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: rgba(255, 244, 220, 0.97);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.combo-soft-cta-text {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 1.8;
  color: rgba(233, 236, 247, 0.88);
}

.combo-soft-cta-links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.combo-soft-cta-links a,
.combo-soft-cta-links a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  color: rgba(242, 233, 255, 0.96) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.combo-soft-cta-links a:hover,
.combo-soft-cta-links a:focus {
  transform: translateY(-1px);
  color: rgba(255, 246, 225, 1) !important;
  border-color: rgba(190,140,255,0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .combo-soft-cta {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .combo-soft-cta-title {
    font-size: 0.98rem;
  }

  .combo-soft-cta-links {
    gap: 8px;
  }

  .combo-soft-cta-links a,
  .combo-soft-cta-links a:visited {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }
}

/* ====== GUIDES PAGE ADDITIONS ====== */

.tm-backLinks span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.92);
  font-weight: 700;
}

.ma-notfound {
  padding: 8px 0 20px;
}

.ma-notfound-box {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  padding: 24px;
}

.ma-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .82;
}

.ma-notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ma-btn,
.ma-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}

.ma-btn:hover {
  background: rgba(255,255,255,.09);
}

.ma-btn-primary,
.ma-btn-primary:visited {
  background: rgba(190,140,255,.14);
  border-color: rgba(190,140,255,.28);
}

.ma-btn-primary:hover {
  background: rgba(190,140,255,.20);
}

.ma-btn-secondary,
.ma-btn-secondary:visited {
  background: rgba(255,255,255,.04);
}

.ma-hero h1 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.ma-hero h2 {
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.ma-hero h3 {
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.ma-box p:last-child,
.ma-box ul:last-child,
.ma-box ol:last-child {
  margin-bottom: 0;
}

.ma-box > .muted > :first-child,
.ma-box > :first-child {
  margin-top: 0;
}

.ma-box > .muted > :last-child,
.ma-box > :last-child {
  margin-bottom: 0;
}

.ma-hero .ma-box .muted p,
.ma-hero .ma-box .muted li,
.ma-hero .ma-box .muted blockquote {
  line-height: 1.85;
}

.ma-hero .ma-box .muted h2,
.ma-hero .ma-box .muted h3,
.ma-hero .ma-box .muted h4 {
  margin-top: 1.4em;
  margin-bottom: .6em;
  line-height: 1.2;
}

.ma-hero .ma-box .muted ul,
.ma-hero .ma-box .muted ol {
  padding-left: 20px;
}

.ma-hero .ma-box .muted li + li {
  margin-top: 8px;
}

.ma-hero .ma-box .muted strong {
  color: rgba(255,255,255,.96);
}

.ma-hero .ma-box .muted em {
  color: rgba(255,255,255,.92);
}

.ma-grid2 > .ma-box h3 a,
.ma-grid2 > .ma-box h3 a:visited {
  text-decoration: none;
}

.ma-grid2 > .ma-box h3 a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(215, 175, 255, 0.85);
}

.ma-grid2 > .ma-box article,
.ma-grid2 article.ma-box {
  height: 100%;
}

.ma-grid2 article.ma-box p {
  margin-bottom: 0;
}

.bm-box {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
  padding: 18px;
  margin: 16px 0;
}

.bm-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bm-chip,
.bm-chip:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-weight: 700;
}

.bm-chip:hover {
  background: rgba(255,255,255,.09);
}

@media (max-width: 860px) {
  .ma-notfound-box {
    padding: 18px;
  }

  .tm-backLinks {
    gap: 8px;
  }

  .tm-backLinks a,
  .tm-backLinks span {
    padding: 7px 10px;
    font-size: 14px;
  }

  .ma-hero h1 {
    font-size: clamp(2rem, 7vw, 3rem);
  }
}

@media (max-width: 640px) {
  .ma-btn,
  .ma-btn:visited,
  .bm-chip,
  .bm-chip:visited {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .ma-notfound-actions,
  .bm-chiprow {
    gap: 8px;
  }

  .ma-box,
  .bm-box {
    padding: 16px;
  }
}