/* A task-first study space using the Union's existing visual system. */
.study-heading{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:48px;align-items:center;padding-block:36px 32px}
.study-heading .eyebrow{margin-bottom:14px}
.study-heading h1{font-size:48px;line-height:1.08}
.study-heading p{max-width:65ch;font-size:16px;margin-top:18px}
.study-heading figure{margin:0}
.study-heading img{width:240px;height:160px;object-fit:cover}
.study-heading figcaption{font-size:11px;color:var(--muted);margin-top:10px}
.study-workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);gap:48px;padding-block:24px 40px}
.study-workspace h2,.study-help h2{font-size:28px;line-height:1.2;letter-spacing:-.035em}
.study-find,.study-tools{min-width:0}
.study-find>.eyebrow{margin-bottom:12px}
.study-access-note{font-size:14px;line-height:1.6;margin-top:16px;max-width:65ch}
.study-access-note a,.study-questions a{text-decoration:underline;text-underline-offset:3px}
.study-search{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px;margin-top:24px}
.study-search label{display:flex;flex-direction:column;gap:7px;font-size:13px}
.study-search input,.study-search select{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);padding:10px 12px;font:inherit;font-size:16px}
.study-search button{grid-column:1/-1;justify-self:start;min-height:48px;white-space:normal}
.study-search .button:hover,.study-access .button:hover{transform:none;box-shadow:none}
.study-browse{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:22px}
.study-browse>span{font-size:11px;color:var(--muted)}
.study-guidance{font-size:12px;line-height:1.6;max-width:65ch;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}
.study-tools h2{font-size:21px;margin-bottom:14px}
.study-tool{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid var(--line);min-height:64px}
.study-tool strong{display:block;font-size:16px;font-weight:500}
.study-tool span span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.study-tool svg{width:18px;height:18px;flex-shrink:0}
.study-tool:hover strong{text-decoration:underline;text-underline-offset:4px}
.study-access{margin-top:20px;padding:20px;background:oklch(94% .008 100)}
.study-access strong{font-size:16px}
.study-access p{font-size:14px;margin:10px 0 18px}
.study-access .text-link{display:flex;margin-top:16px;width:fit-content}
.study-help{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:48px;padding-block:32px 48px;border-top:1px solid var(--line)}
.study-help .eyebrow{margin-bottom:12px}
.study-help>div>p{font-size:14px;margin-top:12px}
.study-questions details{border-bottom:1px solid var(--line)}
.study-questions summary{cursor:pointer;font-size:15px;padding:17px 4px;min-height:48px;font-weight:500}
.study-questions details p{font-size:14px;line-height:1.7;max-width:65ch;padding:0 4px 18px}
.study-hub-page .button svg{width:18px;height:18px;flex-shrink:0}
.study-hub-page main{overflow-wrap:anywhere}
.study-library-page .filter-bar{align-items:end}
.study-library-page .filter-bar label:not(.checkbox){display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}
.study-library-page .filter-bar input:not([type="checkbox"]),.study-library-page .filter-bar select{font-size:16px;min-height:48px;width:100%;max-width:100%}
.study-library-page .filter-bar .checkbox{min-height:48px;white-space:normal}
.study-library-page .resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.study-library-page .resource-card{min-width:0;overflow-wrap:anywhere}
.study-library-page .resource-card h2{font-size:25px;line-height:1.2}
.study-library-page .resource-actions{gap:16px;flex-wrap:wrap}
.study-library-page .save-button{min-width:44px;min-height:44px}
@media(max-width:900px){
 .study-heading{grid-template-columns:minmax(0,1fr) 160px;gap:24px}
 .study-heading img{width:160px;height:120px}
 .study-heading h1{font-size:40px}
 .study-workspace{grid-template-columns:1fr;gap:32px}
 .study-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
 .study-tools h2{grid-column:1/-1}
 .study-help{grid-template-columns:1fr;gap:20px}
}
@media(max-width:640px){
 .study-heading{grid-template-columns:1fr;padding-block:28px 20px;gap:18px}
 .study-heading h1{font-size:34px}
 .study-heading p{font-size:15px;margin-top:14px}
 .study-heading figure{display:flex;align-items:center;gap:14px}
 .study-heading img{width:88px;height:60px}
 .study-heading figcaption{margin:0}
 .study-workspace{padding-block:20px 28px}
 .study-workspace h2,.study-help h2{font-size:25px}
 .study-search{grid-template-columns:1fr;gap:14px}
 .study-search button{justify-self:stretch}
 .study-tools{grid-template-columns:1fr}
 .study-tools h2{font-size:21px}
 .study-help{padding-block:24px 32px}
 .study-library-page .resource-grid{grid-template-columns:1fr}
 .study-library-page .filter-bar label:not(.checkbox){flex-basis:100%}
 .study-library-page .filter-bar .button{width:100%}
}
/* Library filters remain readable at tablet widths and under text zoom. */
.study-library-page .reveal{opacity:1;transform:none;animation:none;transition:none}
@media(min-width:641px) and (max-width:1000px){
 .study-library-page .filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .study-library-page .filter-bar .search-field{grid-column:1/-1}
 .study-library-page .filter-bar label,.study-library-page .filter-bar .button{width:100%;min-width:0}
}

/* Semester and course browsing */
.study-search .study-query { grid-column: 1 / -1; }
.study-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-context { margin-bottom: 28px; line-height: 1.8; }
.course-directory { margin: 36px 0; }
.course-level { margin-bottom: 48px; }
.course-level > h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.course-semester { margin-bottom: 32px; }
.course-semester > h3 { font-size: 18px; border-bottom: 1px solid #d8d4cb; padding-bottom: 12px; margin-bottom: 16px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.course-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: #f2f0e9; border: 1px solid #dedbd2; text-decoration: none; overflow-wrap: anywhere; }
.course-card:hover { background: #e9e6dc; }
.course-card:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.course-card h4 { font-size: 24px; line-height: 1.25; margin: 0; }
.course-card > span:last-child { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.course-material-link { display: block; font-size: 14px; margin: 12px 0; text-decoration: underline; }
.unassigned-heading { margin-top: 36px; }
.study-library-page .filter-bar { flex-wrap: wrap; }
@media (max-width: 900px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .course-grid, .study-search { grid-template-columns: minmax(0, 1fr); } .study-search .button { grid-column: auto; } }
