.study-notice {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border: 1px solid #edb9a8;
  border-radius: .65rem;
  background: #fff2ed;
  color: #802e1a;
}
.study-notice:empty { display: none; }
.study { margin-top: 1.3rem; }
.study-card {
  padding: clamp(1rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.study-heading {
  font-size: clamp(1.35rem, 2.65vw, 2.05rem);
  line-height: 1.18;
  scroll-margin-top: 1rem;
}
.study-heading:focus { outline: 0; }
.study-intro { margin-top: .55rem; color: var(--muted); line-height: 1.6; }
.study-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.8rem;
  padding: .58rem 1rem;
  border: 1px solid var(--accent);
  border-radius: .56rem;
  color: var(--white);
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.study-button:hover { background: #094d6a; }
.study-button:disabled { opacity: .65; cursor: wait; }
.study-button-subtle { color: var(--accent); background: var(--white); }
.study-button-subtle:hover { background: var(--blue-wash); }
.study-login {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem;
  margin-top: 1.2rem;
}
.study-login label { display: grid; gap: .4rem; width: min(100%, 21rem); font-weight: 700; }
.study-login input {
  width: 100%;
  min-height: 2.8rem;
  padding: .55rem .7rem;
  border: 1px solid #88acbe;
  border-radius: .55rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}
.study-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.study-bar .study-button { min-height: 2.4rem; font-size: .9rem; }
.study-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.65rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.study-steps li {
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
}
.study-steps li.step-complete { background: var(--wash); color: var(--ink); }
.study-steps li[aria-current="step"] { border-color: var(--accent); background: var(--accent); color: var(--white); }

.consent-copy {
  max-width: 62rem;
  margin: 1rem 0;
  line-height: 1.65;
}
.consent-copy p + p { margin-top: .7rem; }
.check-label {
  display: flex;
  align-items: start;
  gap: .6rem;
  cursor: pointer;
  line-height: 1.45;
}
.check-label input {
  appearance: auto;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: .13rem 0 0;
  accent-color: var(--accent);
}
.consent-form .check-label {
  max-width: 62rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--wash);
}
.consent-form button { margin-top: 1rem; }
.question-group { margin: 1.45rem 0; }
.question-group h4, .episode-panel-heading h4 { margin: 0; }
.question-group h4 { color: var(--accent); font-size: 1.15rem; }
.question {
  min-width: 0;
  margin: 1rem 0 0;
  padding: .65rem .9rem .9rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
}
.question legend { padding: 0 .27rem; font-weight: 650; line-height: 1.4; }
.question-choices { display: flex; flex-wrap: wrap; gap: .4rem .8rem; }
.question-choices .check-label { padding: .28rem .38rem; }
.question-choices .check-label:has(input:checked) { border-radius: .3rem; background: var(--blue-wash); }
.followup-date { margin: 1rem 0; color: var(--accent); font-size: 1.1rem; font-weight: 750; }
.study-card > a.study-button { margin: .95rem .65rem 0 0; }

.study .series-layout { margin-top: 1.15rem; }
.episode-button:disabled { cursor: not-allowed; opacity: .64; }
.episode-button:disabled:hover { background: var(--wash); }
.episode-button[data-completed] .episode-number { background: #dcf2e8; color: #144d39; }
.lesson-video { scroll-margin-top: .65rem; }

.topics-section #topics { margin-top: 1rem; }
@media (max-width: 39rem) {
  .study-card { padding: 1rem .8rem; }
  .question-choices { align-items: start; flex-direction: column; }
}
