/* Public, pre-rendered Tarot pages share the Library's original visual language. */
body.tarot-seo-page { background: #160d13; color: #f5eee8; }
.tarot-seo-page .card-modal { z-index: 1; background: #160d13; }
.tarot-seo-page .card-modal__inner { padding-bottom: 26px; }
.tarot-seo-page .seo-page-header { display: grid; gap: 11px; padding: 38px 42px 4px; text-align: center; }
.tarot-seo-page .seo-page-brand { color: #f1cb87; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.3; text-decoration: none; }
.tarot-seo-page .seo-page-brand:hover { color: #ffe0a4; }
.tarot-seo-page .seo-page-language { display: flex; gap: 16px; justify-content: center; align-items: center; }
.tarot-seo-page .seo-page-language a { color: rgba(245, 238, 232, .70); font-size: 13px; text-decoration: none; }
.tarot-seo-page .seo-page-language a[aria-current="page"] { color: #e8c47f; text-decoration: underline; text-underline-offset: 5px; }
.tarot-seo-page .seo-page-language a:hover, .tarot-seo-page .seo-page-language a:focus-visible { color: #ffe1a4; }
.tarot-seo-page .card-modal__image-frame { display: block; }
.tarot-seo-page .seo-deck-caption { display: block; margin: 8px 0 10px; color: #e4bb76; font-size: 12px; letter-spacing: .04em; text-align: center; }
.tarot-seo-page .seo-meaning-body[hidden] { display: none; }
.tarot-seo-page .seo-meaning-body > p { margin: 0 0 14px; }
.tarot-seo-page .seo-orientation-heading { margin: 16px 0 10px; color: #ead1a2; font-size: 16px; font-weight: 500; }
.tarot-seo-page .seo-meaning-short { color: #f1d4a8 !important; font-style: italic; }
.tarot-seo-page .seo-source-credit { margin: 16px 0 0; color: rgba(245, 238, 232, .6) !important; font-size: 12px !important; }
.tarot-seo-page .seo-page-footer { display: flex; justify-content: center; padding: 12px 0 32px; text-align: center; }
.tarot-seo-page .seo-page-footer a { color: #e8c47f; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.tarot-seo-page .card-modal__copy { min-width: 0; }
.tarot-seo-page a:focus-visible { outline: 2px solid #ffe1a4; outline-offset: 4px; }
@media (max-width: 480px) {
  .tarot-seo-page .seo-page-header { padding-top: 38px; }
  .tarot-seo-page .seo-page-brand { font-size: 15px; }
  .tarot-seo-page .card-modal__copy { padding: 20px 16px 22px; }
}

/* RWS uses the approved Library article typography and one scroll surface. */
.rws-seo-page .seo-page-brand { font-family: inherit; }
.rws-seo-page .rws-common-start { margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(224, 184, 115, .19); }
.rws-seo-page .card-modal__article [hidden] { display: none; }

/* Standalone pages return to the Library instead of imitating a modal close. */
.tarot-seo-page .seo-library-back { display: inline-flex; justify-self: start; align-items: center; min-height: 44px; gap: 8px; margin-top: 4px; padding: 6px 8px; color: #e4bb76; font-size: 14px; line-height: 1.4; text-decoration: none; border-radius: 4px; }
.tarot-seo-page .seo-library-back:hover { color: #ffe1a4; background: rgba(224,184,115,.08); }
.tarot-seo-page .seo-page-header { padding-top: 0; }
