[data-study-view="guided"] {
  --navy: #17283e;
  --navy-deep: #101d2e;
  --ivory: #f7f3ea;
  --paper: #fffcf6;
  --gold: #bd9a61;
  --gold-light: #dcc394;
  --ink: #1b2b3f;
  --muted: #596677;
  --line: #dfd9cc;
  --study-link: #79562c;
  --study-serif: "Noto Serif SC", "SimSun", serif;
}

[data-study-home] .shell { max-width: 1160px; padding-top: 9px; }
[data-study-home] :is([data-topic-entry], #study-directory, .hero, .layout) {
  display: none;
}

[data-study-view="guided"] .back-row {
  align-items: center;
  min-height: 44px;
  padding: 3px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
[data-study-view="guided"] .site-header { background: var(--paper); }
[data-study-view="guided"] .site-header nav a:hover { color: var(--study-link); }
[data-study-view="guided"] .study-view-links { margin-left: auto; }
[data-study-view="guided"] #draft-label { display: none; }
[data-study-view="guided"] #study-view-switch { color: var(--muted); font-size: 13px; font-weight: 500; }

#study-start {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--paper);
}
#study-start h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font: 500 clamp(28px, 4vw, 44px)/1.3 var(--study-serif);
}
.study-start-choices, .study-start-units { display: grid; gap: 14px; }
.study-start-units { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.study-choice {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 48px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: #fbf7ef;
  color: var(--navy);
  font-size: 16px;
  text-align: left;
  text-decoration: none;
}
.study-choice:hover, .study-choice:focus-visible { border-color: var(--gold); background: #f5eddf; }
.study-choice strong { color: var(--navy); font: 600 20px/1.4 var(--study-serif); }
.study-choice span { color: var(--muted); font-size: 14px; line-height: 1.6; }
.study-start-lead { margin: -8px 0 20px; color: var(--muted); line-height: 1.65; }
.study-start-subheading { margin: 25px 0 11px; color: var(--navy); font: 600 19px/1.3 var(--study-serif); }
.study-switch-subject, .study-whole-diagnostic { display: inline-block; padding-block: 8px; color: var(--study-link); }
.study-switch-subject { margin-top: 20px; }
[data-study-home] .resume-learning { margin-top: 2px; background: var(--paper); }

#study-start.study-start-home {
  padding: 0;
  border: 0;
  background: none;
}
.study-start-banner {
  display: grid;
  align-items: center;
  min-height: clamp(182px, 20vw, 281px);
  padding: clamp(22px, 4.5vw, 58px);
  background-color: var(--navy-deep);
  background-image: linear-gradient(90deg, #101d2e 4%, #101d2ef5 26%, #101d2e96 45%, #101d2e14 69%),
    url("/assets/campus/study-window.jpg");
  background-position: center, right 54%;
  background-repeat: no-repeat;
  background-size: cover, 74% auto;
}
.study-start-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .09em;
}
.study-start-kicker::before { content: ""; width: 27px; height: 1px; background: currentColor; }
#study-start .study-start-heading h1 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(33px, 4.8vw, 66px);
  letter-spacing: -.035em;
}
.study-start-choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 19px;
}
.study-start-choices .study-choice {
  align-content: stretch;
  grid-template-rows: auto 1fr auto;
  min-height: 154px;
  padding: 20px clamp(15px, 2vw, 26px);
  border-top: 2px solid var(--gold);
  background: var(--paper);
}
.study-start-choices .study-choice:hover, .study-start-choices .study-choice:focus-visible {
  background: #f9f1e3;
}
.study-start-choices .study-choice strong { font-size: clamp(19px, 2vw, 25px); }
.study-choice .study-choice-action {
  width: fit-content;
  margin-top: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid #c7a776;
  color: var(--study-link);
  font-weight: 600;
}

[data-study-view="guided"] .peony-topic-entry-learning {
  background: var(--ivory);
}
[data-study-view="guided"] .peony-topic-search-entry {
  border-color: #c9bca6;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

#study-directory > summary { display: none; }
[data-study-view="guided"] #study-directory { margin: 0 0 12px; }
[data-study-view="guided"] #study-directory > summary {
  display: list-item;
  width: fit-content;
  margin-bottom: 8px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--study-link);
}
[data-study-view="guided"] .layout { grid-template-columns: minmax(0, 1fr); }
[data-study-view="guided"] .guide-panel { display: none; }
[data-study-view="guided"] .hero {
  padding: 18px 23px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--ivory);
}
[data-study-view="guided"] .hero .eyebrow { margin-bottom: 6px; color: var(--gold-light); font-size: 13px; letter-spacing: .04em; }
[data-study-view="guided"] .hero h1 { margin: 0 0 6px; font-size: clamp(27px, 4vw, 38px); }
[data-study-view="guided"] .hero > p:not(.eyebrow) { color: #e0e5eb; line-height: 1.6; }
[data-study-view="guided"] .hero-pills { display: none; }
[data-study-view="guided"] .shell:has(#lesson-panel:not([hidden])) > :is(.hero, #study-directory) { display: none; }
[data-study-view="guided"] .lesson-panel { width: min(890px, 100%); margin-inline: auto; }
[data-study-view="guided"] .path-note { margin-top: 15px; }
[data-study-view="guided"] #unit-status:empty { display: none; }
[data-study-view="guided"] #next-unit { margin-top: 16px; }
.guided-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 20px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid #dcc9a9;
  border-left: 3px solid var(--gold);
  background: #f6ecdb;
}
.guided-next strong { color: var(--navy); font-size: 17px; }
.guided-next p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.guided-next button { flex: none; }

[data-study-view="guided"] .course-row {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 61px;
  padding: 9px 11px;
  background: #fffdf8;
}
[data-study-view="guided"] .course-row:disabled { opacity: 1; }
[data-study-view="guided"] .course-number {
  width: 26px;
  height: 26px;
  color: #5c6570;
  background: #eeeae2;
  border: 0;
  font-size: 13px;
}
[data-study-view="guided"] .course-row[data-study-progress="done"] .course-number { color: #24563e; background: #deeee4; }
[data-study-view="guided"] .course-row[data-study-progress="started"] .course-number { color: #714a1e; background: #faecd1; }
[data-study-view="guided"] .course-copy strong { font-size: 16px; line-height: 1.4; }
[data-study-view="guided"] .course-copy small { font-size: 12px; }
[data-study-view="guided"] .course-state {
  display: grid;
  justify-items: end;
  grid-column: auto;
  max-width: 112px;
  color: var(--muted);
}
[data-study-view="guided"] .study-status { font-size: 13px; font-weight: 700; }
[data-study-view="guided"] [data-study-progress="done"] .study-status { color: #24563e; }
[data-study-view="guided"] [data-study-progress="started"] .study-status { color: #714a1e; }
[data-study-view="guided"] .study-status-detail { font-size: 11px; line-height: 1.4; }
[data-study-view="guided"] .lesson-panel h2 { font-family: var(--study-serif); }
[data-study-view="guided"] .lesson-tabs button[aria-pressed="true"] { color: var(--navy); border-bottom-color: var(--gold); }
[data-study-view="guided"] :is(.textbook-section > p, .textbook-section ul, .worked-example) { font-size: 16px; }
[data-study-view="guided"] :is(a, button, summary):focus-visible { outline: 2px solid #9b7441; outline-offset: 2px; }

@media (max-width: 690px) {
  [data-study-home] .shell { width: calc(100% - 24px); }
  .study-start-banner {
    min-height: 162px;
    background-image: linear-gradient(90deg, #101d2efc 0%, #101d2ecb 37%, #101d2e30 100%),
      url("/assets/campus/study-window.jpg");
    background-size: cover;
    background-position: center, 59% 56%;
  }
  .study-start-choices { grid-template-columns: 1fr; gap: 9px; margin-top: 13px; }
  .study-start-units { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .study-start-choices .study-choice {
    grid-template: "title action" auto "detail detail" auto / minmax(0, 1fr) auto;
    gap: 3px 9px;
    min-height: 79px;
    padding: 10px 12px;
  }
  .study-start-choices .study-choice > strong { grid-area: title; }
  .study-start-choices .study-choice > span:not(.study-choice-action) { grid-area: detail; }
  .study-choice .study-choice-action { grid-area: action; align-self: center; margin-top: 0; font-size: 13px; }
}
@media (max-width: 420px) {
  [data-study-view="guided"] .shell { width: calc(100% - 24px); }
  [data-study-view="guided"] :is(.path-panel, .lesson-panel) { padding: 15px; }
  .guided-next { align-items: flex-start; flex-direction: column; }
}
