:root {
  color-scheme: light;
  --tp-ink: #10223f;
  --tp-muted: #59677b;
  --tp-line: #dbe2ea;
  --tp-paper: #ffffff;
  --tp-soft: #f3f6f9;
  --tp-green: #087764;
  --tp-green-dark: #075f52;
  --tp-blue: #2769a8;
  --tp-coral: #c85847;
  --tp-gold: #b47c08;
  --tp-focus: #155eef;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.teacher-pillar {
  margin: 0;
  overflow-x: hidden;
  background: var(--tp-soft);
  color: var(--tp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.teacher-pillar a {
  color: inherit;
}

.tp-nav {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  background: var(--tp-paper);
  border-bottom: 1px solid var(--tp-line);
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tp-ink);
  text-decoration: none;
}

.tp-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tp-ink);
  color: #fff;
  font-weight: 800;
}

.tp-brand strong {
  font-size: 1.02rem;
}

.tp-nav nav,
.tp-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tp-nav nav a,
.tp-footer nav a {
  color: var(--tp-muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.tp-nav nav a:hover,
.tp-footer nav a:hover {
  color: var(--tp-green);
}

.tp-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.tp-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 48px;
  align-items: end;
  padding: 52px 0 34px;
}

.tp-eyebrow {
  margin: 0 0 8px;
  color: var(--tp-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tp-intro h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.tp-answer {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--tp-muted);
  font-size: 1.06rem;
}

.tp-answer strong {
  color: var(--tp-ink);
}

.tp-facts {
  margin: 0;
  padding: 0 0 2px 22px;
  border-left: 3px solid var(--tp-coral);
}

.tp-facts dt {
  margin-top: 14px;
  color: var(--tp-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tp-facts dt:first-child {
  margin-top: 0;
}

.tp-facts dd {
  margin: 2px 0 0;
  font-weight: 750;
}

.tp-tool {
  margin-bottom: 38px;
  overflow: hidden;
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-top: 5px solid var(--tp-green);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16, 34, 63, 0.08);
}

.tp-tool-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--tp-line);
}

.tp-tool-head img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #c7ece4;
}

.tp-tool-head h2 {
  margin: 0;
  font-size: 1.38rem;
}

.tp-tool-head p {
  margin: 4px 0 0;
  color: var(--tp-muted);
}

.tp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-progress li {
  min-width: 62px;
  color: var(--tp-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.tp-progress span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  background: var(--tp-soft);
}

.tp-progress .is-active {
  color: var(--tp-green);
}

.tp-progress .is-active span {
  border-color: var(--tp-green);
  background: var(--tp-green);
  color: #fff;
}

.tp-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.tp-form {
  padding: 26px;
  background: #fafbfc;
  border-right: 1px solid var(--tp-line);
}

.tp-form fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.tp-form legend {
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.tp-segments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tp-segments label {
  min-width: 0;
  cursor: pointer;
}

.tp-segments input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tp-segments span {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--tp-line);
  border-radius: 6px;
  background: var(--tp-paper);
  color: var(--tp-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.tp-segments input:checked + span {
  border-color: var(--tp-green);
  background: #eaf7f3;
  color: var(--tp-green-dark);
  box-shadow: inset 3px 0 0 var(--tp-green);
}

.tp-segments input:focus-visible + span,
.tp-button:focus-visible,
.tp-link-button:focus-visible,
.tp-nav a:focus-visible,
.tp-footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tp-focus) 35%, transparent);
  outline-offset: 2px;
}

.tp-button,
.tp-link-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.tp-button-primary {
  background: var(--tp-green);
  color: #fff;
}

.teacher-pillar .tp-button-primary {
  color: #fff;
}

.tp-form > .tp-button-primary {
  width: 100%;
}

.tp-button-primary:hover {
  background: var(--tp-green-dark);
}

.tp-button-secondary,
.tp-link-button {
  background: var(--tp-paper);
  border-color: var(--tp-line);
  color: var(--tp-ink);
}

.tp-button-secondary:hover,
.tp-link-button:hover {
  border-color: var(--tp-green);
  color: var(--tp-green);
}

.tp-form-note {
  margin: 10px 0 0;
  color: var(--tp-muted);
  font-size: 0.77rem;
  text-align: center;
}

.tp-result {
  min-width: 0;
  padding: 26px;
}

.tp-result-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.tp-result-top h3 {
  margin: 2px 0 4px;
  font-size: 1.34rem;
}

.tp-result-top p {
  max-width: 650px;
  margin: 0;
  color: var(--tp-muted);
}

.tp-result-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff3df;
  color: #8a5a00;
  font-size: 0.74rem;
  font-weight: 800;
}

.tp-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-checklist li {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--tp-line);
  border-radius: 6px;
  background: var(--tp-soft);
}

.tp-checklist li::before {
  content: attr(data-index);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tp-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.tp-checklist strong,
.tp-checklist span {
  display: block;
  overflow-wrap: anywhere;
}

.tp-checklist strong {
  font-size: 0.88rem;
}

.tp-checklist span {
  margin-top: 2px;
  color: var(--tp-muted);
  font-size: 0.78rem;
}

.tp-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--tp-line);
}

.tp-result-disclaimer {
  margin: 12px 0 0;
  color: var(--tp-muted);
  font-size: 0.76rem;
}

.tp-band {
  padding: 48px 0;
}

.tp-band-white {
  background: var(--tp-paper);
  border-top: 1px solid var(--tp-line);
  border-bottom: 1px solid var(--tp-line);
}

.tp-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.tp-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.15;
}

.tp-heading p {
  margin: 10px 0 0;
  color: var(--tp-muted);
}

.tp-three,
.tp-source-grid,
.tp-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tp-info,
.tp-source,
.tp-faq {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--tp-line);
  border-radius: 8px;
  background: var(--tp-paper);
}

.tp-info {
  border-top: 4px solid var(--tp-blue);
}

.tp-info:nth-child(2) {
  border-top-color: var(--tp-gold);
}

.tp-info:nth-child(3) {
  border-top-color: var(--tp-coral);
}

.tp-info h3,
.tp-source h3,
.tp-faq h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.tp-info p,
.tp-source p,
.tp-faq p {
  margin: 0;
  color: var(--tp-muted);
  font-size: 0.9rem;
}

.tp-info ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--tp-muted);
  font-size: 0.86rem;
}

.tp-mutation {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.tp-mutation aside {
  padding: 22px;
  border-left: 4px solid var(--tp-coral);
  background: #fff6f3;
}

.tp-mutation aside strong {
  display: block;
  margin-bottom: 6px;
}

.tp-mutation aside p {
  margin: 0;
  color: var(--tp-muted);
}

.tp-mutation ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tp-mutation li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tp-mutation li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tp-line);
  border-radius: 50%;
  background: var(--tp-paper);
  color: var(--tp-green);
  font-weight: 850;
}

.tp-mutation li strong,
.tp-mutation li small {
  display: block;
}

.tp-mutation li small {
  margin-top: 2px;
  color: var(--tp-muted);
  font-size: 0.84rem;
}

.tp-source a {
  display: inline-block;
  margin-top: 12px;
  color: var(--tp-blue);
  font-size: 0.84rem;
  font-weight: 750;
}

.tp-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--tp-line);
  border-radius: 8px;
  background: var(--tp-ink);
  color: #fff;
}

.tp-author img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #9ed8cd;
}

.tp-author h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.tp-author p {
  max-width: 690px;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.tp-author .tp-link-button {
  border-color: #52647d;
  background: transparent;
  color: #fff;
}

.tp-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-final {
  padding: 34px 0;
  background: #dcefe9;
  border-top: 1px solid #b9ddd4;
}

.tp-final .tp-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tp-final h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tp-final p {
  margin: 4px 0 0;
  color: var(--tp-muted);
}

.tp-final-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.tp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px max(20px, calc((100vw - 1180px) / 2));
  background: var(--tp-paper);
  color: var(--tp-muted);
  border-top: 1px solid var(--tp-line);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .tp-intro,
  .tp-workspace,
  .tp-mutation {
    grid-template-columns: 1fr;
  }

  .tp-intro {
    gap: 22px;
  }

  .tp-form {
    border-right: 0;
    border-bottom: 1px solid var(--tp-line);
  }

  .tp-three,
  .tp-source-grid {
    grid-template-columns: 1fr;
  }

  .tp-author {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tp-author .tp-link-button {
    grid-column: 1 / -1;
  }

  .tp-final .tp-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .tp-nav {
    min-height: 58px;
  }

  .tp-nav nav {
    display: none;
  }

  .tp-shell {
    width: min(100% - 24px, 1180px);
  }

  .tp-intro {
    padding: 34px 0 24px;
  }

  .tp-intro h1 {
    font-size: 2.15rem;
  }

  .tp-tool-head {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .tp-progress {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .tp-form,
  .tp-result {
    padding: 18px;
  }

  .tp-result-top {
    flex-direction: column;
    gap: 10px;
  }

  .tp-checklist,
  .tp-faq-grid {
    grid-template-columns: 1fr;
  }

  .tp-result-actions,
  .tp-final-actions {
    width: 100%;
    flex-direction: column;
  }

  .tp-result-actions > *,
  .tp-final-actions > * {
    width: 100%;
  }

  .tp-band {
    padding: 36px 0;
  }

  .tp-author {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tp-author img {
    margin: 0 auto;
  }

  .tp-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tp-footer nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
