/* /study — indigo/violet atlas. Scoped to body.study / .stu-* only.
 * Reuses job.css cards, hero, grid, pills, quiz, curve-wrap. */

body.study {
  --accent: #4f46e5;
  --accent2: #312e81;
  --stu-ink: #1e1b4b;
  --stu-wash: #eef2ff;
  --stu-violet: #7c3aed;
  background:
    radial-gradient(1100px 520px at 10% -8%, color-mix(in srgb, #4f46e5 14%, transparent), transparent 58%),
    radial-gradient(800px 400px at 92% 8%, color-mix(in srgb, #7c3aed 10%, transparent), transparent 50%),
    var(--bg);
}

body.study.lang-ko,
body.study.lang-ja,
body.study.lang-zh {
  line-height: 1.85;
}
body.study.lang-ru { line-height: 1.75; }

body.study .stu-meters { display: grid; gap: .65rem; margin: 1rem 0 1.5rem; }
body.study .stu-meter {
  display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr 2.5rem;
  gap: .5rem; align-items: center; font-size: .92rem;
}
body.study .stu-meter .bar {
  height: .55rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px; overflow: hidden;
}
body.study .stu-meter .bar i {
  display: block; height: 100%; background: var(--accent); border-radius: inherit;
}
body.study .stu-meter b { text-align: right; font-variant-numeric: tabular-nums; }

body.study .stu-list { margin: 0 0 1.5rem; padding-left: 1.15rem; }
body.study .stu-list li { margin: .45rem 0; }
body.study .stu-steps { margin: 0 0 1.5rem; padding-left: 1.2rem; }
body.study .stu-steps .hint { color: var(--muted, #64748b); font-size: .9rem; }

body.study .stu-week {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 1.5rem;
}
@media (max-width: 720px) {
  body.study .stu-week { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  body.study .stu-week { grid-template-columns: 1fr; }
}
body.study .stu-week-day {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .85rem 1rem;
  border-top: 3px solid var(--accent);
}
body.study .stu-week-day .d { font-weight: 800; color: var(--accent2); }
body.study .stu-week-day .h { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--muted); }
body.study .stu-week-day h3 { margin: .25rem 0 .35rem; font-size: 1rem; }

body.study .stu-timeline { list-style: none; margin: 0 0 1.5rem; padding: 0; }
body.study .stu-timeline li {
  position: relative; padding: .6rem 0 .6rem 1.4rem;
  border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
body.study .stu-timeline li::before {
  content: ''; position: absolute; left: -5px; top: 1rem;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
body.study .stu-timeline time { font-weight: 800; color: var(--accent2); font-size: .82rem; }

body.study .stu-exam {
  background: linear-gradient(160deg, #eef2ff, #fff);
  border: 1px solid color-mix(in srgb, #4f46e5 28%, var(--line));
  border-radius: 16px; padding: 1.15rem 1.25rem; margin: 0 0 1.4rem;
  box-shadow: 0 14px 34px -22px rgba(49, 46, 129, .45);
}
body.study .stu-exam h2 { margin: 0 0 .35rem; }
body.study .stu-exam .stu-exam-meta {
  display: grid; gap: .45rem; margin: .75rem 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) {
  body.study .stu-exam .stu-exam-meta { grid-template-columns: 1fr; }
}
body.study .stu-exam dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
body.study .stu-exam dd { margin: 0; font-weight: 700; }

body.study .stu-mnemon {
  display: grid; gap: .8rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  margin: 0 0 1.5rem;
}
body.study .stu-mnemon article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem 1rem;
}
body.study .stu-mnemon .cue {
  display: block; font-weight: 800; color: var(--accent2);
}
body.study .stu-mnemon .payload {
  display: block; font-size: .92rem; color: var(--accent);
  margin: .15rem 0 .4rem;
}

body.study .stu-palace {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px; margin: 0 0 1.4rem;
}
body.study .stu-palace i {
  display: block; min-height: 72px; border-radius: 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, #7c3aed 18%, #fff), #eef2ff);
  border: 1px solid color-mix(in srgb, #4f46e5 22%, var(--line));
  position: relative;
}
body.study .stu-palace i::after {
  content: attr(data-n);
  position: absolute; left: 8px; bottom: 6px;
  font-size: .72rem; font-weight: 800; color: #312e81;
}
@media (max-width: 560px) {
  body.study .stu-palace { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body.study .stu-planner { overflow-x: auto; margin: 0 0 1.4rem; }
body.study .stu-planner table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
}
body.study .stu-planner th,
body.study .stu-planner td {
  border: 1px solid var(--line); padding: .45rem .55rem; text-align: left;
}
body.study .stu-planner th { background: #eef2ff; color: #312e81; }
body.study .stu-planner .on { background: color-mix(in srgb, #4f46e5 16%, #fff); font-weight: 700; }
body.study .stu-form {
  display: grid; gap: .75rem; max-width: 28rem;
  padding: 1rem; border-radius: 12px;
  background: color-mix(in srgb, #4f46e5 7%, transparent);
}
body.study .stu-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
body.study .stu-form input {
  font: inherit; padding: .55rem .7rem; border-radius: 8px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: #fff;
}
body.study .stu-out { margin-top: 1rem; }
body.study .stu-out ul { margin: .4rem 0 0; padding-left: 1.1rem; }

body.study .stu-lab { margin: .4rem 0 1.2rem; }
body.study .stu-people {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
body.study .stu-people article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: .9rem 1rem;
}
body.study .stu-people .stats {
  display: flex; flex-wrap: wrap; gap: .5rem .85rem;
  margin: .5rem 0 0; font-size: .82rem;
}

body.study .stu-duel-head {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 14px; align-items: center; margin: 6px 0 24px;
}
body.study .stu-duel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
body.study .stu-duel-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(90px, auto) 1fr auto;
  gap: 8px; align-items: center; margin: .45rem 0;
}
body.study .stu-duel-row .dlabel {
  text-align: center; font-size: .8rem; color: var(--muted); font-weight: 700;
}
body.study .stu-duel-row .dv { font-variant-numeric: tabular-nums; font-weight: 600; }
body.study .stu-duel-row .dv.win { font-weight: 900; color: var(--ink); }
body.study .stu-duel-row .dbar {
  background: var(--track); border-radius: 999px; height: 11px; overflow: hidden;
}
body.study .stu-duel-row .dbar.a { transform: scaleX(-1); }
body.study .stu-duel-row .dfill {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
@media (max-width: 700px) {
  body.study .stu-duel-head,
  body.study .stu-duel-row { grid-template-columns: 1fr; }
  body.study .stu-duel-row .dbar.a { transform: none; }
}

body.study .stu-filter {
  width: min(100%, 22rem); font: inherit; padding: .55rem .75rem;
  border-radius: 10px; border: 1px solid var(--line); margin: 0 0 1rem;
}
body.study .stu-disclaimer {
  font-size: .88rem; color: var(--muted); max-width: 48em;
}

@media (prefers-reduced-motion: reduce) {
  body.study .stu-meter .bar i,
  body.study .stu-duel-row .dfill,
  body.study .qz-opts button,
  body.study .qz-hit {
    transition: none !important;
    transform: none !important;
  }
}
