/* Keep the published catalogue and its programme links usable without a script. */
html:not(.course-tools-active) .catalogue-rail .filters,
html:not(.course-tools-active) .catalogue-rail .rail-head,
html:not(.course-tools-active) .catalogue-search,
html:not(.course-tools-active) .domain-shortcuts,
html:not(.course-tools-active) .view-controls {display:none}
.catalogue-section [hidden], .choice-dialog:not([open]) {display:none!important}
.catalogue-results {min-width:0}
.catalogue-section .course-card .course-actions {flex-wrap:wrap;gap:5px 14px}
.catalogue-section .course-card .course-actions .select-btn,
.catalogue-section .course-card .course-actions .textlink {
  border:0;border-radius:0;min-width:0;width:auto;height:auto;max-width:100%;background:none;
  color:#255246;font-family:inherit;font-weight:600;font-size:13px;line-height:1.45;
  min-height:44px;display:inline-flex;align-items:center;padding:0;white-space:normal;text-align:start
}
.catalogue-section .course-card .course-actions .select-btn {font-weight:500;text-decoration:underline;text-underline-offset:3px}
.choice-box,.choice-empty {border:1px solid #c9d8bd;background:#f4f7ed;padding:18px 20px;border-radius:8px;margin-block:12px 18px;color:#24463b}
.choice-intro h2,.choice-head h2 {font-family:inherit;font-weight:650;letter-spacing:-.025em;color:#183d32}
.choice-intro h2 {margin:0;font-size:19px;line-height:1.3}
.choice-intro p,.choice-empty p,.choice-limit {margin:5px 0 0;font-size:14px;line-height:1.5}
.choice-limit:empty {display:none}
#choice-selection, #choice-chips {display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
#choice-selection {margin-top:12px}
.choice-box button,.choice-empty button,.choice-dialog button,.choice-card-tools button {
  font:600 13px/1.45 'Segoe UI',Arial,sans-serif;letter-spacing:normal;cursor:pointer;
  min-height:44px;border:1px solid #a8bba2;background:white;color:#23483b;border-radius:5px;padding:8px 12px
}
.choice-box .choice-primary {background:#22503f;color:white;border-color:#22503f}
.choice-box button:disabled {cursor:default;background:#e3e9de;color:#54644d;border-color:#c9d2c2}
.choice-card-tools {margin-top:10px;padding-top:7px;border-top:1px solid #dee4d9;display:flex;align-items:center;justify-content:space-between;gap:4px 9px;flex-wrap:wrap}
.list-view .course-card .choice-card-tools {grid-column:1/-1}
.choice-card-tools label {min-height:44px;display:inline-flex;align-items:center;gap:8px;font:600 13px/1.5 'Segoe UI',Arial,sans-serif;cursor:pointer;color:#24463b}
.choice-card-tools input {width:18px;height:18px;accent-color:#255246;margin:0}
.choice-card-tools input:disabled {cursor:default}
.choice-card-tools .choice-inline,.choice-empty button {background:none;padding:4px 0;border:0;text-decoration:underline;text-underline-offset:3px}
.catalogue-section :focus-visible,.choice-dialog :focus-visible {outline:3px solid #8f661d;outline-offset:3px}
.choice-dialog {box-sizing:border-box;inset:0;width:calc(100% - 24px);max-width:880px;max-height:85vh;max-height:85dvh;overflow:auto;border:1px solid #b7c7af;border-radius:10px;background:#fffefb;color:#243d31;padding:0;box-shadow:0 12px 60px #18392c36;margin:auto}
.choice-dialog::backdrop {background:rgba(17,39,32,.6)}
.choice-head {position:sticky;top:0;z-index:1;background:#fffefb;border-bottom:1px solid #d8e2d3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 22px}
.choice-head h2 {font-size:22px;line-height:1.25;margin:0}
#choice-details {padding:16px 22px 22px}
.choice-titles,.choice-values {display:grid;grid-template-columns:repeat(var(--course-count),minmax(0,1fr));gap:8px 20px}
.choice-titles>div {display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.choice-titles a {font-size:15px;font-weight:650;color:#1c4c38;line-height:1.45;text-decoration:underline;text-underline-offset:3px}
.choice-code,.choice-reference {font:700 12px/1.5 'Segoe UI',Arial,sans-serif;color:#395b3b}
.choice-code {background:#edf2e4;padding:2px 7px;border-radius:4px}
.choice-criterion {padding:14px 0 0;margin:14px 0 0;border-top:1px solid #d8e2d3}
.choice-criterion h3 {font:700 14px/1.4 'Segoe UI',Arial,sans-serif;margin:0 0 8px;color:#183d32}
.choice-values p {margin:0;font:400 14px/1.55 'Segoe UI',Arial,sans-serif;color:#364f40;overflow-wrap:anywhere}
.choice-reference {display:none}
@media(max-width:580px){
  .choice-box {padding:15px}
  .choice-head {padding:10px 14px}
  .choice-head h2 {font-size:18px}
  #choice-details {padding:14px}
  .choice-titles,.choice-values {grid-template-columns:1fr;gap:9px}
  .choice-titles>div,.choice-values p {display:grid;grid-template-columns:3.3em minmax(0,1fr);gap:7px;align-items:baseline}
  .choice-titles .choice-code {text-align:center}
  .choice-reference {display:inline}
}
