/* Period 3 only: a continuous worksheet, with reference material disclosed. */
body.week-two-period3 .week-two-hero h1 {
  line-height: 1.14;
  overflow-wrap: anywhere;
}

body.week-two-period3 .practice-scene-name {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

body.week-two-period3 .article mark {
  color: #171c1a;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body.week-two-period3 .article :is(h2, h3, label, dt, dd) {
  overflow-wrap: anywhere;
}

body.week-two-period3 .practice-objectives {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: objective;
}

body.week-two-period3 .practice-objectives li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  counter-increment: objective;
}

body.week-two-period3 .practice-objectives li::before {
  content: counter(objective, decimal-leading-zero);
  color: var(--accent-ink);
  font: 600 12px/2 var(--mono);
}

body.week-two-period3 .practice-structure {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  margin: 28px 0 22px;
  align-items: start;
}

body.week-two-period3 :is(.practice-structure > div, .practice-steps li, .practice-check-row > div, .practice-records dd, .practice-roles dd, .practice-menu-list dd) {
  min-width: 0;
}

body.week-two-period3 .article :is(.practice-structure, .practice-steps) h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
}

body.week-two-period3 .practice-structure .hierarchy-tree {
  margin: 0;
  padding: 20px;
  font-size: 14px;
  line-height: 1.9;
  overflow-x: auto;
}

body.week-two-period3 :is(.practice-roles, .practice-records, .practice-menu-list) {
  margin: 0;
}

body.week-two-period3 .practice-roles > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

body.week-two-period3 .practice-roles > div:first-child {
  padding-top: 0;
  border-top: 0;
}

body.week-two-period3 :is(.practice-roles, .practice-records, .practice-menu-list) dt {
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: 650;
}

body.week-two-period3 :is(.practice-roles, .practice-records, .practice-menu-list) dd {
  margin: 0;
}

body.week-two-period3 .practice-roles p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

body.week-two-period3 .practice-steps {
  margin: 26px 0 18px;
  padding: 0;
  list-style: none;
}

body.week-two-period3 .practice-steps li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

body.week-two-period3 .practice-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

body.week-two-period3 .article .practice-note {
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

body.week-two-period3 .checkpoint:has(.checkpoint-number) {
  padding: 16px 0 0;
  border: 0;
  border-top: 2px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

body.week-two-period3 .practice-sorting-table {
  min-width: 0;
  table-layout: fixed;
}

body.week-two-period3 .practice-sorting-table :is(th, td) {
  overflow-wrap: anywhere;
}

body.week-two-period3 .practice-records {
  margin: 24px 0;
}

body.week-two-period3 :is(.practice-records, .practice-menu-list) > div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

body.week-two-period3 .practice-records p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

body.week-two-period3 .mission-note > p {
  margin: 6px 0 12px;
  font-size: 14px;
}

body.week-two-period3 .practice-checklist .pass-board-header {
  padding: 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}

body.week-two-period3 .practice-checklist .pass-board-header h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
}

body.week-two-period3 .practice-checklist .pass-progress strong {
  color: var(--accent-ink);
}

body.week-two-period3 .practice-check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 24px;
  gap: 14px;
  padding: 20px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

body.week-two-period3 .practice-check-row:last-child {
  border-bottom: 0;
}

body.week-two-period3 .practice-check-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent-ink);
  cursor: pointer;
}

body.week-two-period3 .practice-check-row label {
  display: block;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

body.week-two-period3 .practice-check-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

body.week-two-period3 .practice-check-index {
  color: var(--muted);
  font: 600 12px/1.8 var(--mono);
  text-align: right;
}

body.week-two-period3 .practice-check-row:has(input:checked) .practice-check-index {
  color: var(--accent-ink);
}

body.week-two-period3 .hint-stack p + p {
  margin-top: 14px;
}

body.week-two-period3 .practice-menu-list dd {
  font-size: 14px;
  line-height: 1.7;
}

body.week-two-period3 :is(.practice-check-row input, .practice-check-row label, .reset-checks, .hint-stack summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body.week-two-period3 .practice-structure {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  body.week-two-period3 :is(.practice-records, .practice-menu-list) > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.week-two-period3 .practice-checklist :is(.pass-board-header, .pass-board-footer) {
    padding: 18px 16px;
  }

  body.week-two-period3 .practice-checklist .pass-checks {
    padding: 0 16px;
  }

  body.week-two-period3 .practice-check-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
  }

  body.week-two-period3 .practice-check-index {
    display: none;
  }

  body.week-two-period3 .checkpoint:has(.checkpoint-number) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
