.hero-copy { max-width: 39rem; }
.hero h1 { max-width: 13ch; }
.role-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.role-path { background: #eff2e5; border: 1px solid var(--line); border-top: 3px solid #7a875b; border-radius: 0.4rem; padding: clamp(1.1rem, 3vw, 1.65rem); }
.role-path:nth-child(2) { background: #f2e9ef; border-top-color: #916e87; }
.role-path h3, .workflow-card h3, .repro-panel h3 { margin: 0; font-size: 1.25rem; }
.role-path p, .workflow-card p, .repro-panel p { color: var(--muted); line-height: 1.62; }
.role-path ol { margin: 0.8rem 0 0; padding-inline-start: 1.4rem; }
.role-path li { margin-top: 0.46rem; line-height: 1.52; }
.project-heading { margin: 1.85rem 0 0.9rem; font-size: 1.3rem; }

.academy-hub { background: linear-gradient(120deg, #392034, #4c3146 76%); color: #fff; }
.academy-hub > .section { padding-block: clamp(2.3rem, 5vw, 3.6rem); }
.academy-hub .section-heading p { color: #eee5ec; }
.academy-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.academy-links a { display: flex; flex-direction: column; gap: 0.65rem; color: #fff; background: #4b3046; padding: clamp(1rem, 2.2vw, 1.4rem); border: 1px solid #846b7f; border-top: 2px solid #a3ae7f; border-radius: 0.35rem; text-decoration: none; line-height: 1.45; }
.academy-links a:hover { background: #61425a; }
.academy-links a strong { color: #d5f38c; text-decoration: underline; text-underline-offset: 0.18em; }
.academy-links a span { color: #f3edf1; }
.academy-hub :focus-visible { outline-color: #d5f38c; }

.workflow-section { background: #f3f0e9; border-block: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.workflow-card, .repro-panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 0.5rem; padding: clamp(1rem, 2.6vw, 1.6rem); }
.workflow-card h4 { margin: 1rem 0 0.42rem; font-size: 1.05rem; }
.workflow-card p, .repro-panel p { margin: 0.45rem 0 0.75rem; }
.workflow-card .workflow-action { margin-top: 0.6rem; }
.workflow-card ol, .repro-panel ol { padding-inline-start: 1.45rem; line-height: 1.55; }
.workflow-card li + li, .repro-panel li + li { margin-top: 0.4rem; }
.sequence-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 0.65rem; }
.workflow-status { min-height: 1.6rem; margin-top: 0.55rem; line-height: 1.5; }
.workflow-status pre, .tree-readout, .repro-panel pre { max-width: 100%; overflow-x: auto; background: #28222b; color: #faf6f0; border-radius: 0.38rem; padding: 0.8rem; font-size: 0.92rem; line-height: 1.5; }
.tree-readout:empty { display: none; }
.workflow-card .result-table { min-width: 28rem; }
.workflow-card .guide-table th, .workflow-card .guide-table td { padding: 0.55rem 0.65rem; }
.workflow-card .guide-table tbody th { width: auto; }
.workflow-card .guide-table td:last-child { width: auto; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.7rem; }
.repro-panel { margin-top: 1rem; border-inline-start: 0.25rem solid #9ba980; background: #f6f7f0; }
.lesson-discussion-link { display: inline-block; margin-top: 0.9rem; font-weight: 660; }

.reference-search { max-width: 44rem; margin-top: 1rem; }
.reference-search label { display: block; font-weight: 650; margin-bottom: 0.38rem; }
.reference-search input { width: 100%; min-height: 2.95rem; border: 1px solid #948c93; border-radius: 0.44rem; padding: 0.63rem 0.8rem 0.63rem 2.15rem; color: var(--ink); background: var(--white); }
.reference-search p { margin-block: 0.55rem 0; color: var(--muted); min-height: 1.45rem; }
.database-grid { margin-bottom: 1rem; }

@media (max-width: 62rem) {
  .academy-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .workflow-grid { grid-template-columns: 1fr; }
}
@media (max-width: 39rem) {
  .role-paths, .academy-links { grid-template-columns: 1fr; }
}
