/* A single type hierarchy for page, section, card and dialog titles.
   Finished Pricedown artwork supplies display lettering; Outfit supports prose.
   No rules target the approved home or X-Files hero scenes. */
:root {
  --atlas-title-page: clamp(38px, 4.7vw, 64px);
  --atlas-title-section: clamp(28px, 3vw, 42px);
  --atlas-title-card: clamp(22px, 1.85vw, 27px);
  --atlas-title-dialog: clamp(27px, 3.3vw, 40px);
  --atlas-title-subsection: clamp(20px, 1.8vw, 25px);
  --atlas-title-compact: clamp(17px, 1.35vw, 22px);
}
.atlas-title[data-title-role][data-title-role] {
  font-family: Outfit, Arial, sans-serif !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  overflow-wrap: anywhere;
  min-width: 0;
}
.atlas-title[data-title-role="page"][data-title-role] { font-size: var(--atlas-title-page) !important; }
.atlas-title[data-title-role="section"][data-title-role] { font-size: var(--atlas-title-section) !important; }
.atlas-title[data-title-role="card"][data-title-role] { font-size: var(--atlas-title-card) !important; }
.atlas-title[data-title-role="dialog"][data-title-role] { font-size: var(--atlas-title-dialog) !important; }
.atlas-title[data-title-role="subsection"][data-title-role] { font-size: var(--atlas-title-subsection) !important; }
.atlas-title[data-title-role="compact"][data-title-role] { font-size: var(--atlas-title-compact) !important; }
.atlas-title[data-title-mode="art"] { line-height: 1.18 !important; }
.atlas-title > .title-words {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .08em .17em;
  max-width: 100%;
  font-size: inherit !important;
  line-height: inherit;
}
.atlas-title > .title-words > img {
  display: block;
  height: 1.19em !important;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  flex: 0 1 auto;
}
.atlas-title .title-separator { font: 500 .85em/1 Outfit, Arial, sans-serif; }
.atlas-title[data-title-role="page"] .heading-art {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(64px, 8vw, 112px);
}
/* Long translated names wrap inside their own card, rather than widening grids. */
.card-info .atlas-title,
.detail-title-row .atlas-title,
.finish-copy .atlas-title { max-width: 100%; }
:lang(ru) .atlas-title[data-title-role][data-title-role] {
  font-family: AtlasRusso, Arial, sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}
:lang(ru) .atlas-title[data-title-role="subsection"],
:lang(ru) .atlas-title[data-title-role="compact"] {
  font-family: Outfit, Arial, sans-serif !important;
  font-weight: 600 !important;
}
@media (max-width: 700px) {
  :root {
    --atlas-title-page: clamp(32px, 8vw, 44px);
    --atlas-title-section: clamp(26px, 6.3vw, 34px);
    --atlas-title-card: clamp(21px, 5.2vw, 26px);
    --atlas-title-dialog: clamp(25px, 6.4vw, 32px);
    --atlas-title-subsection: 21px;
    --atlas-title-compact: 18px;
  }
  .people-grid .atlas-title[data-title-role="card"][data-title-role] { font-size: 20px !important; }
}

.quick-nav .atlas-title[data-title-role="card"],
.region-explorer > .atlas-title[data-title-role="card"][data-title-role] { font-size: 23px !important; }
@media (max-width: 700px) {
  .quick-nav .atlas-title[data-title-role="card"],
  .region-explorer > .atlas-title[data-title-role="card"][data-title-role] { font-size: 19px !important; }
}
