.course-cost-stage { max-width: 57rem; }
.course-cost-form:not([hidden]) { display: grid; gap: 1.1rem; }
.course-cost-stage[hidden], .course-cost-stage [hidden] { display: none; }
.tool-public-page .course-cost-stage h2, .tool-public-page .course-cost-example h2 { max-width: none; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.16; letter-spacing: -.035em; }
.course-cost-stage p { max-width: 66ch; }
.course-cost-stage :is(h2, p), .course-cost-example table { margin: 0; }
.course-cost-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.course-cost-form label { display: grid; gap: .35rem; min-width: 0; font-weight: 650; }
.course-cost-form .tool-input { width: 100%; min-width: 0; box-sizing: border-box; }
.course-cost-form details { border-top: 1px solid #cbd4c7; border-bottom: 1px solid #cbd4c7; }
.course-cost-form summary { padding: .8rem 0; color: #174f37; font-weight: 650; cursor: pointer; }
.course-cost-form details p { margin-bottom: .8rem; }
.course-cost-form details .course-cost-fields { padding-bottom: 1rem; }
.course-cost-form button { justify-self: start; }
.course-cost-error { color: #862e26; }
.course-cost-error:empty { display: none; }
.course-cost-result { margin-top: 1rem; background: #edf4eb; }
.course-cost-result h2 { scroll-margin-top: 6rem; }
.course-cost-result [data-summary] { margin-top: .65rem; font-weight: 650; }
.course-cost-table { border-collapse: collapse; width: min(100%, 38rem); margin: 1rem 0; font-variant-numeric: tabular-nums; }
.course-cost-table :is(th, td) { padding: .58rem .3rem; text-align: left; border-bottom: 1px solid #bdccbd; }
.course-cost-table thead th:not(:first-child), .course-cost-table td { text-align: right; }
.course-cost-table thead { color: #3e5447; font-size: .9rem; }
.course-cost-example { max-width: 57rem; }
.tool-public-page .course-cost-example h2 { margin: 0 0 .7rem; }
.course-cost-example p { max-width: 70ch; }
@media (max-width: 38rem) { .course-cost-fields { grid-template-columns: 1fr; gap: .8rem; } }
