.ux-study {
  --study-ink: #262039;
  --study-muted: #615674;
  --study-violet: #57338d;
  --study-lilac: #eee5f5;
  --study-line: #ded5e5;
  --study-paper: #faf5ed;
  max-width: 1240px;
  margin-inline: auto;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 3rem;
  color: var(--study-ink);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ux-study--reader {
  max-width: 1700px;
  padding-block-start: .5rem;
  padding-inline: 0;
}

.ux-study [hidden] { display: none !important; }
.ux-study :focus-visible { outline: 3px solid var(--study-violet); outline-offset: 3px; }
.ux-study :is(a, button, input, summary, h2[id]) { scroll-margin-block: 8rem 5rem; }
.ux-study ::selection { color: var(--study-ink); background: #e1d0f4; }
.ux-study a:not(.ux-study__button) { text-underline-offset: .2em; }
.ux-study :is(h1, h2, h3, p, figure) { margin: 0; }
.ux-study :is(h1, h2, h3) { line-height: 1.28; }

.ux-study__trail,
.ux-study__pagination,
.ux-study__search {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.ux-study__trail { color: var(--study-muted); padding: 0 0 1rem; font-weight: 650; }
.ux-study__trail a,
.ux-study__back { color: var(--study-violet); font-weight: 750; }
.ux-study__trail > span:nth-child(2) { border-inline-start: 1px solid var(--study-line); padding-inline-start: .75rem; }
.ux-study__position { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

.ux-study__spread,
.ux-study__cover {
  display: grid;
  grid-template-columns: 57fr 43fr;
  border: 1px solid var(--study-line);
  border-radius: 12px;
}

.ux-study__scene,
.ux-study__explanation {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 3.2rem);
}

.ux-study__scene { background: var(--study-paper); border-radius: 11px 0 0 11px; }
.ux-study #ux-study-title {
  /* The common workspace skin names ordinary page headings at 18px. */
  font-size: clamp(2rem, 4.05vw, 4.25rem) !important;
  line-height: 1.13 !important;
  text-wrap: balance;
}
.ux-study__english { color: var(--study-violet); font-size: clamp(1rem, 1.7vw, 1.42rem); }
.ux-study .ux-study__definition { margin: 1.45rem 0 1.35rem; max-width: 28em; font-size: clamp(1.04rem, 1.9vw, 1.38rem); font-weight: 650; text-wrap: pretty; }
.ux-study__scene figure { max-width: 27rem; margin-inline: auto; }
.ux-study__scene .ux-study__wide-art { max-width: none; }
.ux-study__scene img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ux-study__scene figcaption { color: var(--study-muted); font-size: .94rem; padding-top: .65rem; }

.ux-study__explanation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.3rem, 3vw, 2.4rem);
  background: #fffdfa;
  border-inline-start: 1px solid var(--study-line);
  border-radius: 0 11px 11px 0;
}

.ux-study__explanation h2 {
  width: fit-content;
  padding: .38rem .8rem;
  margin-bottom: .55rem;
  color: var(--study-violet);
  background: var(--study-lilac);
  border-radius: 7px;
  font-size: clamp(1.12rem, 2vw, 1.43rem);
}

.ux-study__explanation h2 i { margin-inline-end: .25em; }
.ux-study__checks { margin: 0; padding: .65rem .85rem .65rem 1.95rem; border: 1px solid var(--study-line); border-radius: 8px; list-style: disc outside; }
.ux-study__checks li + li { margin-top: .32rem; }
.ux-study__checks li::marker { color: var(--study-violet); }

.ux-study__pagination { justify-content: space-between; padding: .85rem 0 1.25rem; }
.ux-study__pagination > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.ux-study__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48em;
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid #c8bad7;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--study-violet);
  font: inherit;
  font-weight: 740;
  text-decoration: none;
  cursor: pointer;
}
.ux-study__button:hover { background: #f4edf9; color: var(--study-violet); }
.ux-study__button--primary { background: var(--study-violet); border-color: var(--study-violet); color: #fff; }
.ux-study__button--primary:hover { background: #462871; color: #fff; }
.ux-study__button[aria-disabled="true"] { cursor: wait; }

.ux-study__work { border-top: 1px solid var(--study-line); }
.ux-study__continue { display: flex; justify-content: flex-end; max-width: 52rem; margin-inline: auto; }
.ux-study__exercise { max-width: 52rem; margin: 1.6rem auto; }
.ux-study__exercise h2 { font-size: 1.36rem; margin-bottom: .6rem; }
.ux-study__exercise fieldset { min-inline-size: 0; margin: 0 0 .65rem; padding: 0; border: 0; }
.ux-study__exercise legend { margin-bottom: .55rem; font-weight: 650; }
.ux-study__exercise label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: .65rem;
  padding: .42rem .7rem;
  border: 1px solid var(--study-line);
  border-radius: 8px;
  margin-bottom: .4rem;
  background: #fff;
  cursor: pointer;
}
.ux-study__exercise label:has(:checked) { background: #f3ebf7; border-color: #8d74ae; }
.ux-study__exercise input { accent-color: var(--study-violet); flex: none; }
.ux-study .ux-study__status { min-height: 1.6em; margin-top: .4rem; color: var(--study-violet); font-weight: 650; }
.ux-study__status[data-correct="true"] { color: #2a634e; }
.ux-study__status[data-correct="false"] { color: #85472e; }
.ux-study .ux-study__prompt { background: #f2ebf7; padding: .8rem 1rem; border-radius: 8px; margin-bottom: .6rem; }
.ux-study__sources summary { cursor: pointer; color: var(--study-violet); width: fit-content; min-height: 44px; padding-block: .5rem; }
.ux-study__sources ul { margin-block: .35rem; }
.ux-study__demo { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: .9rem; }
.ux-study__demo > div { padding: .85rem; background: #fff; border: 1px solid var(--study-line); border-radius: 8px; }
.ux-study__demo p { margin-block: .35rem .6rem; }

.ux-study__back { display: inline-block; margin-bottom: .75rem; }
.ux-study__cover { align-items: stretch; background: var(--study-paper); overflow: hidden; }
.ux-study__cover > div { align-self: center; padding: clamp(1.2rem, 4vw, 4rem); }
.ux-study__cover p { color: var(--study-muted); margin-top: .85rem; font-size: 1.08rem; }
.ux-study__cover img { display: block; width: 100%; height: 100%; max-height: 21rem; object-fit: cover; object-position: center; }
.ux-study__search { margin-block: 1.35rem; }
.ux-study__search label { font-weight: 750; }
.ux-study__search input { flex: 1; min-width: min(9rem, 100%); min-height: 44px; border: 1px solid #88759e; border-radius: 8px; padding: .45rem .75rem; color: var(--study-ink); font: inherit; }
.ux-study__search input::placeholder { color: var(--study-muted); }
.ux-study__index { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 4vw, 3rem); }
.ux-study__index section { min-width: 0; }
.ux-study__index h2 { font-size: 1.45rem; padding-bottom: .5rem; border-bottom: 2px solid var(--study-violet); }
.ux-study__index h3 { color: var(--study-muted); font-size: .98rem; margin-block: 1.05rem .15rem; }
.ux-study__index ul { list-style: none; padding: 0; margin: 0; }
.ux-study__index li { border-bottom: 1px solid var(--study-line); }
.ux-study__index a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--study-ink); min-height: 54px; padding: .5rem .2rem; text-decoration: none; }
.ux-study__index a:hover strong { color: var(--study-violet); text-decoration: underline; }
.ux-study__index strong { display: block; }
.ux-study__index strong + span { display: block; color: var(--study-muted); font-size: .94rem; }
.ux-study__index i { color: var(--study-violet); }
.ux-study__empty { padding: 1.5rem 0; border-block: 1px solid var(--study-line); }

@media (min-width: 1280px) {
  .service-left-rail-shell:has(.ux-study--reader) { max-width: 1680px; padding-inline: 1rem; }
  .service-left-rail-host:has(.ux-study--reader) { max-width: none; }
  .ux-study__explanation {
    justify-content: flex-start;
    gap: 2.15rem;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
  }
}

@media (max-width: 820px) {
  .ux-study__spread { grid-template-columns: 1fr; }
  .ux-study__scene { border-radius: 11px 11px 0 0; }
  .ux-study__explanation { border-inline-start: 0; border-top: 1px solid var(--study-line); border-radius: 0 0 11px 11px; }
}

@media (max-width: 580px) {
  .ux-study__index,
  .ux-study__cover { grid-template-columns: 1fr; }
  .ux-study__cover img { max-height: 13rem; }
  .ux-study__search label { flex-basis: 100%; }
  .ux-study__trail a { width: 100%; }
  .ux-study__trail > span:nth-child(2) { border: 0; padding: 0; }
}
