@font-face {
  font-family: "Directory heading";
  src: url("assets/heading.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Directory sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --blue: #006eb4;
  --hover: #004f82;
  --header-blue: #22a7f0;
  --line: #ccc;
  --soft: #f2f2f2;
  --muted: #4f4f4f;
  color: #101010;
  background: #fff;
  font: 100%/1.5 "Atlas Grotesk", "Directory sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a, .plain-link { color: var(--blue); text-decoration: underline; text-underline-offset: .16em; }
a:hover, .plain-link:hover { color: var(--hover); text-decoration-thickness: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
button { color: inherit; background: transparent; border: 0; }
:focus-visible { outline: 3px solid #0074bd; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(60rem, calc(100% - 3rem)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: absolute; z-index: 2; background: #fff; padding: .6rem 1rem; }
.icon { display: inline-block; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-flex; align-items: center; }
.mast { background: #000; border-top: 8px solid var(--header-blue); color: #fff; padding: 1.4rem 0 2.9rem; }
.mast-line { display: flex; justify-content: space-between; align-items: baseline; gap: .85rem; }
.parent-link { color: var(--header-blue); text-decoration: none; }
.parent-link::before { content: "‹"; margin-right: .45rem; font-size: 1.18em; }
.parent-link:hover { color: #fff; text-decoration: underline; }
.prototype { font-size: .875rem; color: #ccc; }
.mast h1 { margin: 2.1rem 0 .65rem; font: 900 clamp(2.4rem,4.6vw,4rem)/1.08 Acronym, "Directory heading", "Arial Black", sans-serif; text-transform: uppercase; letter-spacing: -.045em; text-wrap: balance; }
.mast p { font-size: 1.125rem; color: #f2f2f2; }
.directory { padding-bottom: 3.35rem; outline: none; }
.views { display: flex; align-items: stretch; gap: 1.75rem; border-bottom: 1px solid #aaa; }
.views button { display: flex; align-items: center; gap: .4rem; padding: 1.18rem .1rem .93rem; border-bottom: 4px solid transparent; font-size: 1rem; font-weight: 600; }
.views button:hover { color: var(--blue); }
.views button[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--hover); }
.views #shortlist { margin-left: auto; }
.views [id$="-count"] { font-size: .875rem; font-weight: 400; }
.views [id$="-count"]::before { content: "("; }
.views [id$="-count"]::after { content: ")"; }
#search { margin: 1.65rem 0 1.5rem; }
#search label, legend { display: block; color: #171717; font-weight: 650; font-size: 1rem; }
.search-line { display: flex; gap: .6rem; margin-top: .5rem; }
#query { min-width: 0; flex: 1; padding: .63rem .85rem; border: 1px solid #828282; border-radius: 0; background: #fff; color: #000; }
#query::placeholder { color: #676767; opacity: 1; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.85rem; font-weight: 650; text-decoration: none; padding: .6rem 1.3rem; border-radius: 0; }
.primary { background: var(--blue); border: 1px solid var(--blue); color: white; }
.primary:hover { background: var(--hover); color: #fff; }
.secondary { color: var(--blue); border: 1px solid var(--blue); }
.secondary:hover, .secondary[aria-expanded="true"] { background: #eaf5fc; color: var(--hover); }
.filters { padding-block: 0 1.35rem; border-bottom: 1px solid var(--line); margin-bottom: 1.15rem; }
#filter-help { font-size: .9rem; color: var(--muted); margin-bottom: .85rem; }
#filter-groups { display: grid; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 .45rem; }
.filter-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-option { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .45rem .75rem; border: 1px solid #999; background: #fff; text-align: left; font-size: .94rem; }
.filter-option:hover { border-color: var(--blue); background: #edf7fd; }
.filter-option[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-option[aria-pressed="true"]::before { content: "✓"; font-weight: 700; }
.filter-option[aria-pressed="true"] .option-count { color: #fff; }
.option-count { color: var(--muted); font-size: .85rem; }
.option-count::before { content: "("; }
.option-count::after { content: ")"; }
.selection, #active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.selection { margin: -.15rem 0 1.25rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: #e7f4fb; color: #004f82; padding: .3rem .55rem; font-size: .875rem; }
.plain-link { font-size: inherit; padding: .2rem 0; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.result-bar h2 { font-size: 1.3rem; font-weight: 650; }
.sorting { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; }
.sort-options { display: flex; flex-wrap: wrap; gap: .25rem; }
.sort-options button { min-height: 2.75rem; padding: .35rem .55rem; border-bottom: 2px solid transparent; color: var(--blue); }
.sort-options button:hover { background: #edf7fd; }
.sort-options button[aria-pressed="true"] { color: #171717; border-bottom-color: var(--blue); background: var(--soft); font-weight: 650; }
.course-row, #column-headings { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1.15fr) minmax(0, 1.1fr) minmax(0, .8fr) 4.6rem; align-items: start; column-gap: 1rem; padding-inline: .75rem; }
#column-headings { padding-block: .55rem; background: var(--soft); border-block: 1px solid #bbb; font-size: .89rem; font-weight: 650; }
.row { padding-block: 1.08rem; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 1.1rem; font-weight: 650; line-height: 1.4; }
.item-title { color: var(--blue); text-decoration: underline; }
.course-meta, .meta { font-size: .91rem; color: var(--muted); margin-top: .3rem; }
.meta-divider { margin: 0 .55rem; color: #828282; }
.provider-cell, .region-cell, .duration { font-size: .96rem; padding-top: .08rem; }
.byline { color: #2c2c2c; text-decoration-color: #999; }
.byline:hover { color: var(--blue); }
.save { display: inline-flex; justify-content: flex-start; align-items: center; gap: .35rem; color: var(--blue); padding: .3rem .25rem; font-size: .9rem; min-height: 2rem; }
.save:hover { text-decoration: underline; }
.save[aria-pressed="true"] .icon { fill: var(--blue); }
.provider-row { padding: 1.05rem .75rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.provider-row:first-child { border-top: 1px solid #bbb; }
.provider-row p { margin-top: .3rem; }
.empty { padding-block: 1.8rem; border-top: 1px solid #bbb; }
.empty p { margin: .4rem 0 1rem; }
footer { background: var(--soft); border-top: 1px solid var(--line); }
.foot { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem 2.25rem; padding-block: 1.45rem; font-size: .95rem; }
dialog { border: 0; border-top: 6px solid var(--header-blue); border-radius: 0; padding: 1.15rem 2rem 2rem; color: #141414; width: min(38rem, calc(100% - 2rem)); max-height: 87vh; }
dialog::backdrop { background: rgb(0 0 0 / .6); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; justify-content: flex-end; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; font-size: 1.2rem; }
.icon-button:hover { background: var(--soft); }
#panel-title { font-size: clamp(1.55rem,3vw,2rem); line-height: 1.15; margin: .35rem 0 .8rem; }
#panel-body p { margin: .3rem 0 1rem; }
#panel-body h3 { font-size: 1.08rem; margin-top: 1.2rem; }
.facts { display: grid; grid-template-columns: 7rem 1fr; gap: .4rem .75rem; border-block: 1px solid var(--line); padding-block: 1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.provider-courses { margin: .4rem 0 1rem; padding-left: 1.25rem; }
.provider-courses li { padding: .25rem 0; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 2rem); }
  .mast { border-top-width: 4px; padding: 1rem 0 1.75rem; }
  .mast-line { font-size: .875rem; }
  .prototype { font-size: .82rem; }
  .mast h1 { font-size: clamp(2rem,6.8vw,2.8rem); margin-top: 1.4rem; }
  .mast p { font-size: 1rem; }
  .views { gap: .85rem; }
  .views button { padding-block: .85rem .6rem; }
  #column-headings { display: none; }
  #items { border-top: 1px solid #999; }
  .course-row { grid-template-columns: 1fr auto; gap: .15rem .65rem; padding-inline: 0; }
  .course-main { grid-column: 1; }
  .provider-cell, .region-cell, .duration { grid-column: 1; font-size: .92rem; }
  .provider-cell::before { content: "Provider  "; color: var(--muted); }
  .region-cell::before { content: "Region  "; color: var(--muted); }
  .duration::before { content: "Duration  "; color: var(--muted); }
  .save { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .provider-row { padding-inline: 0; }
  .provider-row:first-child { border-top: 0; }
  .search-line { flex-wrap: wrap; }
  .result-bar { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .primary, .secondary { padding-inline: .9rem; }
}
@media (max-width: 460px) {
  .search-line { display: grid; grid-template-columns: 1fr auto; gap: .35rem; }
  .search-line .primary, .search-line .secondary { padding-inline: .65rem; }
  #query { width: 100%; padding-inline: .55rem; }
  .search-line .secondary [data-icon] { display: none; }
  .filter-option { padding-inline: .6rem; font-size: .9rem; }
  .views { gap: .75rem; }
  .views button { font-size: .93rem; gap: .25rem; }
  .views #shortlist [data-icon] { display: none; }
  .row .save span { display: none; }
  .row .save { width: 2.3rem; justify-content: center; }
  .foot { display: grid; justify-items: start; }
  dialog { padding-inline: 1.1rem; }
  .facts { grid-template-columns: 5.4rem 1fr; }
}
