/* NTQR — Atlas brand adjustments (OJS Services, 20 Nov 2026)
 * Scoped to body.atlas: no effect if the journal switches back to another theme.
 * Palette (NTQR implementation guide): Wine #50122B (primary) · Purple #904E8F (secondary)
 * Orange #D06739 (accent lines/icons only, never small text) · Charcoal #231F20 (body text)
 * Medium grey #6D6E71 (secondary text) · Light grey #939598 (borders only).
 */

/* Text colours */
body.atlas {
  --atlas-ink: #231F20;
  --atlas-ink-2: #231F20;
  --atlas-muted: #6D6E71;
}

/* Article titles in wine; purple on hover */
body.atlas .atlas-art-title a { color: #50122B; }
body.atlas .atlas-art-title a:hover,
body.atlas .atlas-art-title a:focus-visible { color: #904E8F; }

/* Article card art: brand gradient instead of per-section rainbow colours */
body.atlas .atlas-art-thumb svg linearGradient stop:first-child { stop-color: #904E8F !important; }
body.atlas .atlas-art-thumb svg linearGradient stop:last-child { stop-color: #50122B !important; }
body.atlas .atlas-art-thumb svg g { stroke: #ffffff !important; opacity: .28 !important; }
body.atlas .atlas-art-thumb svg text { fill: #ffffff !important; opacity: .85; }

/* Primary actions in wine (CTA button) */
body.atlas .atlas-cta .atlas-btn-accent {
  background: #50122B;
  border-color: #50122B;
  color: #ffffff;
}
body.atlas .atlas-cta .atlas-btn-accent:hover,
body.atlas .atlas-cta .atlas-btn-accent:focus-visible {
  background: #904E8F;
  border-color: #904E8F;
}

/* Journal figures: neutral secondary text (no green "trend" colour) */
body.atlas .atlas-met-delta,
body.atlas .atlas-met-delta.up { color: #6D6E71; }

/* Orange as a thin accent line only */
body.atlas .atlas-cur-eyebrow .atlas-sec-num::before { background: #D06739; }

/* ── Section filter chips: brand active state ── */
body.atlas .atlas-chip.active {
  background: #50122B;
  border-color: #50122B;
  color: #ffffff;
}

/* ── Card section badge must never cover the № badge ── */
body.atlas .atlas-art-thumb .atlas-badge {
  max-width: calc(100% - 104px);
  white-space: normal;
  line-height: 1.35;
  border-radius: 14px;
  text-align: left;
}
body.atlas .atlas-art-thumb .atlas-badge .atlas-swatch { flex: none; }

/* ── Journal figures: long values and notes stay inside their cell ── */
body.atlas .atlas-met-stat { min-width: 0; }
body.atlas .atlas-met-stat .atlas-met-v { overflow-wrap: anywhere; }
body.atlas .atlas-met-stat .atlas-met-delta { white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }

@media (max-width: 720px) {
  /* Top announcement bar: side gutter */
  body.atlas .atlas-utilbar .atlas-utilbar-row { padding-left: 16px; padding-right: 16px; }

  /* Section filter hidden on phones: long section names break the layout (Kerim 20 Nov) */
  body.atlas .atlas-art-toolbar { display: none; }

  /* Journal figures on phones */
  body.atlas .atlas-met-stat { padding: 18px; min-height: 120px; }
  body.atlas .atlas-met-stat .atlas-met-v { font-size: 26px; line-height: 1.1; }
}

/* ── Sidebar blocks (article pages): images keep their proportions ── */
body.atlas .atlas-aside-blocks .pkp_block img {
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
}
/* Block titles the journal marked as screen-reader-only (headerslider, bottomslider…) stay hidden */
body.atlas .atlas-aside-blocks .pkp_block .title.pkp_screen_reader {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
