/* Spring OJT form: keep controls within their rows at every screen size. */
.ojt-page, .ojt-page * { box-sizing: border-box; }
.ojt-content { max-width: 1050px; margin: 0 auto 4rem; }
.ojt-overview { padding: 0 0 2rem; border-bottom: 1px solid #cbd0d4; }
.ojt-content h2 { letter-spacing: normal; font-weight: 700; font-size: 1.5rem; line-height: 1.25; margin: 2rem 0 1rem; }
.ojt-overview li { margin: .7rem 0; }
.ojt-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.ojt-content a { text-underline-offset: .2em; }
.ojt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; align-items: start; }
.ojt-grid > *, .ojt-form, .ojt-form fieldset { min-width: 0; }
.ojt-wide, .ojt-course-picker { grid-column: 1 / -1; }
.ojt-form fieldset { width: 100%; border: 0; padding: 0; margin: 1.5rem 0; }
.ojt-form legend { font-size: 1.7rem; font-weight: 750; }
.ojt-form label { display: block; font-size: 1rem; line-height: 1.45; font-weight: 650; margin: .7rem 0; overflow-wrap: anywhere; }
.ojt-grid > label { margin: 0; }
.ojt-form input:not([type=checkbox]):not([type=hidden]), .ojt-form select, .ojt-form textarea { display: block; width: 100%; max-width: 100%; min-width: 0; margin-top: .35rem; padding: .7rem; font: inherit; font-weight: 400; font-size: 1rem; line-height: 1.4; color: #192b3c; background: #fff; border: 1px solid #7b8793; border-radius: 3px; }
.ojt-form select { min-height: 48px; appearance: none; padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23192b3c' stroke-width='2'/%3E%3C/svg%3E"); background-position: right .7rem center; background-repeat: no-repeat; }
.ojt-form .ojt-check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; margin: 1rem 0; }
.ojt-check input { flex: none; width: 1.2rem; height: 1.2rem; margin: .12rem 0 0; accent-color: #263849; }
.ojt-help { font-size: .94rem; line-height: 1.5; color: #415466; }
.ojt-page [hidden] { display: none !important; }
.ojt-content :focus-visible { outline: 3px solid #996d16; outline-offset: 3px; }
.ojt-honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#ojt-submit-status { font-weight: 700; white-space: pre-line; }
#ojt-receipt { padding: 1.5rem 0; border-top: 4px solid #c69b3a; margin-top: 2rem; overflow-wrap: anywhere; }
.ojt-content button { font: inherit; cursor: pointer; }
.ojt-content button:disabled { opacity: .65; cursor: wait; }
.ojt-field-label { font-size: 1rem; line-height: 1.45; font-weight: 650; margin: 0 0 .35rem; }
.ojt-course-picker { width: 100%; min-width: 0; }
.ojt-course-picker details { width: 100%; min-width: 0; background: #fff; border: 1px solid #7b8793; border-radius: 3px; }
.ojt-course-picker summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: .7rem; font-size: 1rem; font-weight: 400; line-height: 1.4; min-height: 48px; }
.ojt-course-picker summary::-webkit-details-marker { display: none; }
.ojt-course-picker summary::after { content: ''; flex: 0 0 .45rem; width: .45rem; height: .45rem; border-right: 2px solid #192b3c; border-bottom: 2px solid #192b3c; transform: rotate(45deg); margin: -.2rem .2rem 0 0; }
.ojt-course-picker details[open] summary { border-bottom: 1px solid #d9dfe5; }
.ojt-course-picker details[open] summary::after { transform: rotate(225deg); margin-top: .2rem; }
.ojt-course-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.4rem; padding: .5rem .8rem; max-height: 22rem; overflow-y: auto; overscroll-behavior: contain; }
.ojt-course-picker .ojt-check { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); align-items: start; min-height: 44px; padding: .55rem 0; margin: 0; font-size: 1rem; line-height: 1.4; }
.ojt-course-picker .ojt-check span { min-width: 0; overflow-wrap: anywhere; }
#summer-course-selected { overflow-wrap: anywhere; margin: .45rem 0 0; }
body.ojt-request-page #xmc-mobile-enroll-bar { display: none !important; }
@media (max-width: 650px) {
 .ojt-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
 .ojt-content { width: 100%; padding: 0 1.25rem; }
 .ojt-form legend { font-size: 1.5rem; }
 .ojt-course-options { grid-template-columns: minmax(0, 1fr); max-height: 18rem; }
 .ojt-content h2 { margin-top: 1.8rem; }
}
@media print {
 body:has(#ojt-receipt:not([hidden])) header, body:has(#ojt-receipt:not([hidden])) footer, body:has(#ojt-receipt:not([hidden])) .xmc-resource-intro, body:has(#ojt-receipt:not([hidden])) #ojt-request, body:has(#ojt-receipt:not([hidden])) #ojt-overview, body:has(#ojt-receipt:not([hidden])) button { display: none !important; }
 #ojt-receipt { color: #000; background: #fff; }
}
