/* Artists / Lore Hub — UI-first layout, scoped to body.page-template-template-artists */

.page-template-template-artists .site-footer { margin-top: 0; }

.rift-page {
  --rift-cyan: #7ecbff;
  --rift-gold: #e8c56b;
  --rift-crimson: #e35d6a;
  --rift-lavender: #c9b4ff;
  --rift-ember: #ff8a4c;
  --rift-jade: #5ee0b5;
  --hud: oklch(0.18 0.04 275 / 72%);
  --hud-border: oklch(0.72 0.14 230 / 28%);
}

.rift-page a:focus-visible,
.rift-page button:focus-visible,
.rift-page input:focus-visible,
.rift-page select:focus-visible,
.rift-page textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ── Sticky in-page nav ── */
.rift-subnav {
  position: sticky;
  top: 4rem;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: oklch(0.12 0.03 275 / 78%);
  border-bottom: 1px solid oklch(0.45 0.08 250 / 28%);
}
.rift-subnav__inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.55rem 0;
}
.rift-subnav__inner::-webkit-scrollbar { display: none; }
.rift-subnav a {
  flex: 0 0 auto;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.rift-subnav a:hover { color: var(--fg); }
.rift-subnav a.is-active {
  color: var(--fg);
  background: oklch(0.28 0.06 250 / 45%);
  border-color: oklch(0.72 0.14 230 / 35%);
}

/* ── Cinematic hero ── */
.rift-hero {
  position: relative;
  min-height: min(92vh, 56rem);
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.rift-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.rift-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.05) contrast(1.05);
}
.rift-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, oklch(0.12 0.03 275 / 88%) 0%, oklch(0.12 0.03 275 / 55%) 38%, oklch(0.12 0.03 275 / 18%) 62%, oklch(0.12 0.03 275 / 70%) 100%),
    linear-gradient(180deg, oklch(0.12 0.03 275 / 20%) 0%, transparent 28%, oklch(0.12 0.03 275 / 88%) 100%);
  pointer-events: none;
}
.rift-hero__copy {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 5.5rem 0 3.5rem;
}
.rift-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 16ch;
  text-shadow: 0 8px 40px oklch(0.1 0.04 275 / 70%);
}
.rift-hero .lead {
  max-width: 36rem;
  color: oklch(0.88 0.02 280);
  text-shadow: 0 2px 16px oklch(0.1 0.04 275 / 80%);
}
.rift-hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.rift-hero__meta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.rift-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: oklch(0.18 0.04 275 / 70%);
  border: 1px solid oklch(0.72 0.14 230 / 28%);
  backdrop-filter: blur(10px);
}
.rift-chip i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

@media (max-width: 900px) {
  .rift-hero { min-height: 78vh; }
  .rift-hero__bg { grid-template-columns: repeat(4, 1fr); }
  .rift-hero__bg img:nth-child(n+5) { display: none; }
}

/* ── Section chrome ── */
.rift-section { padding: 4.5rem 0; }
.rift-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
}
.rift-head { max-width: 40rem; margin-bottom: 2.25rem; }
.rift-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-top: 0.45rem; }
.rift-head p { margin-top: 0.75rem; color: var(--muted); }

.hud-panel {
  background: var(--hud);
  border: 1px solid var(--hud-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px oklch(0.08 0.03 275 / 45%);
}

/* ── Brief grid ── */
.brief-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .brief-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .brief-grid { grid-template-columns: repeat(4, 1fr); } }

.brief-card {
  padding: 1.35rem 1.35rem 1.2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.brief-card:hover {
  transform: translateY(-4px);
  border-color: oklch(0.82 0.16 210 / 45%);
  box-shadow: 0 12px 36px oklch(0.72 0.18 230 / 18%);
}
.brief-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, oklch(0.72 0.18 230 / 28%), oklch(0.6 0.2 300 / 22%));
  color: var(--cyan);
  font-size: 1.05rem;
}
.brief-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.brief-card p { font-size: 0.84rem; color: var(--muted); flex: 1; }
.brief-card ul {
  margin-top: 1rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: oklch(0.86 0.02 280);
}
.brief-card li::before {
  content: "▹ ";
  color: var(--cyan);
}

/* ── Roster ── */
.roster {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 980px) {
  .roster { grid-template-columns: 13.5rem 1fr; align-items: stretch; min-height: 36rem; }
}

.roster-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
@media (min-width: 980px) {
  .roster-rail {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 40rem;
  }
}

.roster-thumb {
  appearance: none;
  border: 1px solid oklch(0.4 0.06 275 / 50%);
  background: oklch(0.16 0.03 275);
  border-radius: 0.9rem;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  text-align: left;
  min-width: 11.5rem;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.roster-thumb img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.65rem;
  object-fit: cover;
  object-position: top center;
  flex: 0 0 auto;
}
.roster-thumb strong { display: block; font-size: 0.8rem; }
.roster-thumb span { display: block; font-size: 0.68rem; color: var(--muted); margin-top: 0.1rem; }
.roster-thumb:hover { border-color: oklch(0.7 0.12 230 / 50%); transform: translateY(-1px); }
.roster-thumb.is-active {
  border-color: var(--accent, var(--cyan));
  box-shadow: 0 0 0 1px var(--accent, var(--cyan)), 0 8px 22px color-mix(in oklab, var(--accent, var(--cyan)) 25%, transparent);
  background: oklch(0.2 0.04 275);
}
.roster-thumb[data-char="aetheria"],
.dossier[data-char="aetheria"] { --accent: #7ecbff; }
.roster-thumb[data-char="aurore"],
.dossier[data-char="aurore"] { --accent: #e8c56b; }
.roster-thumb[data-char="lise"],
.dossier[data-char="lise"],
.roster-thumb[data-char="onyx"],
.dossier[data-char="onyx"],
.roster-thumb[data-char="raala"],
.dossier[data-char="raala"] { --accent: #e35d6a; }
.roster-thumb[data-char="luna"],
.dossier[data-char="luna"] { --accent: #c9b4ff; }
.roster-thumb[data-char="akari"],
.dossier[data-char="akari"] { --accent: #ff8a4c; }

.dossier {
  --accent: #7ecbff;
  display: grid;
  overflow: hidden;
  min-height: 32rem;
}
@media (min-width: 760px) {
  .dossier { grid-template-columns: 46% 1fr; }
}

.dossier__art {
  position: relative;
  min-height: 22rem;
  height: 100%;
  background: #0b0b14;
}
.dossier__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.dossier__art img.is-on { opacity: 1; }
.dossier__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, oklch(0.16 0.03 275 / 55%)),
              linear-gradient(180deg, transparent 70%, oklch(0.16 0.03 275 / 75%));
  pointer-events: none;
}
@media (max-width: 759px) {
  .dossier__art { min-height: 26rem; }
  .dossier__art::after {
    background: linear-gradient(180deg, transparent 50%, oklch(0.16 0.03 275 / 92%));
  }
}

.dossier__body {
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
}
.dossier__lang {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent, var(--cyan));
}
.dossier__body h2 { font-size: 1.7rem; margin-top: 0.25rem; }
.dossier__title { font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

.dossier-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 1.15rem 0 0.9rem;
  flex-wrap: wrap;
}
.dossier-tabs button {
  appearance: none;
  border: 1px solid oklch(0.4 0.06 275 / 50%);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.dossier-tabs button.is-active {
  color: var(--fg);
  border-color: var(--accent, var(--cyan));
  background: color-mix(in oklab, var(--accent, var(--cyan)) 16%, transparent);
}

.dossier-pane { display: none; font-size: 0.9rem; color: oklch(0.88 0.02 280); line-height: 1.65; }
.dossier-pane.is-on { display: block; }
.dossier-pane p + p { margin-top: 0.7rem; }
.dossier-facts {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}
.dossier-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.dossier-facts dd { font-size: 0.86rem; margin-top: 0.15rem; }
.dossier-quote {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent, var(--cyan));
  background: oklch(0.22 0.04 275 / 50%);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: oklch(0.92 0.02 280);
}
.dossier__cta { margin-top: auto; padding-top: 1.2rem; }

/* ── World ── */
.goddess-row {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 700px) { .goddess-row { grid-template-columns: repeat(5, 1fr); } }
.goddess {
  padding: 1.1rem;
  min-height: 11.5rem;
  position: relative;
  overflow: hidden;
}
.goddess::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: var(--g, var(--cyan));
  opacity: 0.18;
  filter: blur(8px);
}
.goddess .n { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--g, var(--cyan)); font-weight: 700; }
.goddess h3 { font-size: 1rem; margin: 0.35rem 0 0.4rem; }
.goddess p { font-size: 0.75rem; color: var(--muted); }
.goddess--wood { --g: #6fd08c; }
.goddess--fire { --g: #ff8a4c; }
.goddess--earth { --g: #e8c56b; }
.goddess--metal { --g: #c9d4e0; }
.goddess--water { --g: #7ecbff; }
.world-lede { margin-bottom: 1rem; max-width: 40rem; }

.lore-acc { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.5rem; }
.lore-acc details {
  border-radius: 1rem;
  border: 1px solid var(--hud-border);
  background: var(--hud);
  overflow: hidden;
}
.lore-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.lore-acc summary::-webkit-details-marker { display: none; }
.lore-acc summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.2rem;
  line-height: 1;
}
.lore-acc details[open] summary::after { content: "–"; }
.lore-acc .body { padding: 0 1.2rem 1.2rem; color: var(--muted); font-size: 0.9rem; line-height: 1.65; }
.lore-acc .body p + p { margin-top: 0.7rem; }

.species-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
@media (min-width: 700px) { .species-grid { grid-template-columns: 1fr 1fr 1fr; } }
.species-tile { padding: 1rem 1.1rem; }
.species-tile h4 { font-size: 0.92rem; margin-bottom: 0.3rem; }
.species-tile p { font-size: 0.78rem; color: var(--muted); }

.names-row {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}
@media (min-width: 700px) { .names-row { grid-template-columns: repeat(4, 1fr); } }
.names-row div { text-align: center; padding: 0.85rem 0.5rem; }
.names-row small { display: block; color: var(--muted); font-size: 0.68rem; margin-bottom: 0.25rem; }

/* ── Apply ── */
.apply-wrap {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 980px) { .apply-wrap { grid-template-columns: 1fr 1.15fr; align-items: start; } }

.apply-visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--hud-border);
}
.apply-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}
.apply-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, oklch(0.12 0.03 275 / 88%));
}
.apply-visual .cap {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
}
.apply-visual .cap p { color: oklch(0.9 0.02 280); font-size: 0.9rem; margin-top: 0.35rem; }

.steps {
  display: grid;
  gap: 0.6rem;
  margin: 1.2rem 0 1.5rem;
}
.step {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.step b {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
}
.step p { font-size: 0.84rem; color: var(--muted); }
.step strong { color: var(--fg); display: block; font-size: 0.9rem; margin-bottom: 0.1rem; }

.pick-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.55rem; }
.pick {
  appearance: none;
  border: 1px solid oklch(0.4 0.06 275 / 55%);
  background: oklch(0.18 0.03 275);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.pick.is-on {
  color: var(--fg);
  border-color: var(--cyan);
  background: oklch(0.28 0.07 230 / 40%);
}

.apply-form { padding: 1.5rem; }
.apply-form .form-grid + .field,
.apply-form .field + .field { margin-top: 1rem; }
.apply-form .btn-neon { margin-top: 1.25rem; }
.apply-note { font-size: 0.72rem; color: var(--muted); margin-top: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .brief-card, .roster-thumb, .dossier__art img { transition: none; }
}
