/*
 * CREST / PROJECT DETAIL — v1.0
 * All component styles are scoped to .crest-project. No framework, no font CDN.
 * Keep this stylesheet after the host application's legacy public styles.
 * Override the custom properties on .crest-project to reuse the existing tokens.
 */
.crest-project {
  --crest-blue: #245df4;
  --crest-blue-hover: #164bd7;
  --crest-blue-ink: #174edc;
  --crest-blue-soft: #edf3ff;
  --crest-text: #152641;
  --crest-muted: #526887;
  --crest-subtle: #637690;
  --crest-line: #dce6f5;
  --crest-line-strong: #c9d9f7;
  --crest-surface: #ffffff;
  --crest-background: #f5f8fd;
  --crest-green: #177343;
  --crest-green-soft: #e6f8ed;
  --crest-font: var(--font-sans, "Segoe UI", Arial, sans-serif);
  --crest-radius: 18px;
  --crest-radius-sm: 11px;
  --crest-shadow: 0 5px 24px rgb(27 55 105 / 3%);
  --crest-header-offset: 0px;
  --crest-nav-height: 68px;
  --crest-anchor-offset: calc(var(--crest-header-offset) + var(--crest-nav-height) + 20px);
  --crest-gutter: clamp(20px, 3vw, 48px);
  width: min(100%, 1536px);
  margin-inline: auto;
  padding: 24px var(--crest-gutter) 56px;
  color: var(--crest-text);
  font-family: var(--crest-font);
  font-size: 15px;
  line-height: 1.6;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}
.crest-project, .crest-project *, .crest-project *::before, .crest-project *::after { box-sizing: border-box; }
.crest-project :where(h1,h2,h3,p,ol,ul,dl,dd) { margin: 0; }
.crest-project :where(ol,ul) { padding: 0; list-style: none; }
.crest-project :where(a) { color: inherit; text-decoration: none; }
.crest-project :where(button,input,select) { font: inherit; }
.crest-project :where(button) { cursor: pointer; }
.crest-project :where(button,a,input,select,summary):focus-visible {
  outline: 3px solid var(--crest-blue);
  outline-offset: 4px;
}
.crest-project [tabindex="-1"]:focus { outline: none; }
.crest-project [hidden] { display: none !important; }
.crest-project .crest-icon { flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.crest-project .crest-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* Breadcrumb and hero ------------------------------------------------------ */
.crest-project .project-breadcrumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; min-height: 22px; font-size: 12px; line-height: 1.5; color: var(--crest-muted); }
.crest-project .project-breadcrumbs > span { min-width: 0; overflow-wrap: anywhere; }
.crest-project .project-breadcrumbs > a { flex-shrink: 0; }
.crest-project .project-breadcrumbs > a:hover { color: var(--crest-blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.crest-project .project-breadcrumbs .crest-icon { width: 13px; height: 13px; color: #8396af; }
.crest-project .project-overview {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 330px; padding: 32px 38px 34px;
  border: 1px solid var(--crest-line-strong); border-radius: 20px;
  background: var(--crest-surface); box-shadow: var(--crest-shadow);
}
.crest-project .project-overview::before { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 4px; background: var(--crest-blue); }
.crest-project .project-overview__copy { position: relative; z-index: 2; width: 64%; max-width: 770px; }
.crest-project .project-overview.project-overview--plain .project-overview__copy { width: 100%; max-width: none; }
.crest-project .project-logo { display: flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; min-height: 74px; margin: 14px 0 0; padding: 12px 18px; border: 1px solid var(--crest-line); border-radius: 12px; background: #fff; }
.crest-project .project-logo img { display: block; max-width: min(100%, 240px); max-height: 90px; width: auto; height: auto; object-fit: contain; }
.crest-project .project-overview__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-bottom: 15px; }
.crest-project .public-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--crest-blue-ink); font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.crest-project .project-overview__eyebrow .public-kicker .crest-icon { width: 23px; height: 23px; }
.crest-project .public-status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; min-height: 29px; border-radius: 7px; font-size: 12px; line-height: 1.5; font-weight: 600; }
.crest-project .public-status-badge--open { background: var(--crest-green-soft); color: var(--crest-green); }
.crest-project .public-status-badge--closed { background: #f0f2f5; color: #556276; }
.crest-project .public-status-badge--soon { background: #fff5de; color: #89620c; }
.crest-project .public-status-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.crest-project .project-overview h1 { color: var(--crest-text); font-size: clamp(30px, 3.05vw, 43px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; margin: 0 0 15px; overflow-wrap: anywhere; text-wrap: balance; }
.crest-project .project-overview__heading { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 16px; margin-bottom: 18px; }
.crest-project .project-overview__heading h1 { min-width: 0; margin: 0; }
.crest-project .project-overview__heading > .public-button { width: 100%; }
.crest-project .project-overview__copy > p { max-width: 645px; color: var(--crest-muted); font-size: 16px; line-height: 1.65; margin-bottom: 18px; }
.crest-project .project-overview__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; margin-bottom: 24px; font-size: 13px; color: var(--crest-muted); }
.crest-project .project-overview__meta > span { display: inline-flex; align-items: center; gap: 10px; }
.crest-project .project-overview__meta > span + span { padding-left: 20px; margin-left: 20px; border-left: 1px solid var(--crest-line-strong); }
.crest-project .project-overview__meta .crest-icon { color: var(--crest-blue); }
.crest-project .project-overview__meta strong { color: var(--crest-text); font-weight: 600; white-space: nowrap; }
.crest-project .project-overview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.crest-project .public-button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 47px; max-width: 100%; border: 1px solid transparent; border-radius: var(--crest-radius-sm); padding: 11px 21px; font-size: 13px; font-weight: 600; line-height: 1.6; text-align: center; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.crest-project .public-button .crest-icon { width: 17px; height: 17px; }
.crest-project .public-button--primary { color: #fff; background: var(--crest-blue); box-shadow: 0 4px 10px rgb(36 93 244 / 13%); }
.crest-project .public-button--primary:hover { background: var(--crest-blue-hover); box-shadow: 0 6px 14px rgb(36 93 244 / 18%); }
.crest-project .public-button--secondary { color: var(--crest-blue-ink); background: #fff; border-color: var(--crest-line-strong); }
.crest-project .public-button--secondary:hover { background: var(--crest-blue-soft); border-color: #a9c2f6; }
.crest-project .public-button[aria-disabled="true"] { background: #edf0f5; color: #60718b; box-shadow: none; cursor: not-allowed; }
.crest-project .project-overview__art { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 58%; pointer-events: none; background: #f3f8ff; }
.crest-project .project-overview__art picture { display: block; width: 100%; height: 100%; }
.crest-project .project-overview__art img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 76% 12%; }
.crest-project .project-overview__art-fade { position: absolute; inset: 0; background: linear-gradient(90deg,#fff 0%,rgb(255 255 255 / 94%) 9%,rgb(255 255 255 / 72%) 23%,rgb(255 255 255 / 12%) 46%,transparent 68%); }
.crest-project .project-overview__art-label { position: absolute; right: 18px; top: 17px; display: flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border: 1px solid rgb(255 255 255 / 90%); border-radius: 12px; background: rgb(255 255 255 / 94%); box-shadow: 0 4px 18px rgb(25 52 104 / 5%); }
.crest-project .project-overview__art-label > span:last-child { display: grid; gap: 0; color: #385775; font-size: 10px; line-height: 1.4; }
.crest-project .project-overview__art-label strong { color: var(--crest-text); font-weight: 600; }
.crest-project .project-overview__art-icon { display: grid; place-items: center; width: 31px; height: 31px; background: var(--crest-blue-soft); color: var(--crest-blue); border-radius: 10px; }
/* Section links. These are anchor links, not ARIA tabs. -------------------- */
.crest-project .project-section-nav {
  display: flex; align-items: stretch; gap: 28px; position: sticky;
  z-index: 15; top: var(--crest-header-offset); min-height: 66px;
  padding-top: 6px; margin: 10px 0 20px; border-bottom: 1px solid var(--crest-line);
  background: var(--crest-background);
}
.crest-project .project-section-nav > a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 9px; position: relative; min-height: 54px; padding: 8px 5px 10px; color: var(--crest-muted); font-size: 13px; font-weight: 600; line-height: 1.5; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .18s, border-color .18s; }
.crest-project .project-section-nav > a:hover { color: var(--crest-blue-ink); }
.crest-project .project-section-nav > a[aria-current="location"] { color: var(--crest-blue-ink); border-bottom-color: var(--crest-blue); }
.crest-project .project-section-nav > a:focus-visible { outline-offset: -4px; border-radius: 5px; }
.crest-project .project-nav-count { display: inline-grid; place-items: center; min-width: 23px; height: 22px; border-radius: 7px; padding-inline: 5px; font-size: 11px; font-weight: 600; color: var(--crest-blue-ink); background: #eaf1ff; }
.crest-project :where(#project-about,#project-courses,#project-enrollment) { scroll-margin-top: var(--crest-anchor-offset); }
/* Content / sidebar ------------------------------------------------------- */
.crest-project .project-detail-layout { display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(330px, 1fr); grid-template-rows: min-content 1fr; gap: 20px; align-items: start; }
.crest-project .project-about { grid-column: 1; grid-row: 1; }
.crest-project .project-courses-section { grid-column: 1; grid-row: 2; }
.crest-project .project-detail-sidebar { grid-column: 2; grid-row: 1 / span 2; }
.crest-project .project-detail-layout.project-detail-layout--sidebar-only { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.crest-project .project-detail-layout--sidebar-only .project-detail-sidebar { grid-column: 1; grid-row: 1; }
.crest-project .project-detail-layout--no-about { grid-template-rows: auto; }
.crest-project .project-detail-layout--no-about .project-courses-section { grid-row: 1; }
.crest-project .project-detail-layout--no-about .project-detail-sidebar { grid-row: 1; }
.crest-project .project-detail-layout--no-courses { grid-template-rows: auto; }
.crest-project .project-detail-layout--no-courses .project-detail-sidebar { grid-row: 1; }
.crest-project .project-content-section,
.crest-project .project-enrollment-panel,
.crest-project .project-documents-panel { min-width: 0; border: 1px solid var(--crest-line); background: var(--crest-surface); border-radius: var(--crest-radius); box-shadow: var(--crest-shadow); }
.crest-project .project-content-section { padding: 25px 27px 27px; }
.crest-project .project-section-heading h2 { margin: 7px 0 0; color: var(--crest-text); font-size: clamp(22px, 1.85vw, 27px); line-height: 1.27; letter-spacing: -.032em; font-weight: 700; overflow-wrap: anywhere; }
.crest-project .project-description { margin-top: 11px; color: var(--crest-muted); font-size: 15px; line-height: 1.7; }
.crest-project .project-objectives { border: 1px solid var(--crest-line); border-radius: 13px; background: linear-gradient(135deg,#f9fbff,#fcfdff); padding: 19px 21px 20px; margin-top: 22px; }
.crest-project .project-objectives h3 { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.crest-project .project-objectives h3 .crest-icon { width: 23px; height: 23px; color: var(--crest-blue); }
.crest-project .project-objectives ol { display: grid; gap: 15px; margin-top: 18px; }
.crest-project .project-objectives li { display: flex; gap: 17px; align-items: center; font-size: 13px; line-height: 1.65; color: var(--crest-muted); }
.crest-project .project-objectives__number { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 8px; color: var(--crest-blue-ink); background: #eaf1ff; font-size: 12px; font-weight: 600; }
.crest-project .project-detail-sidebar { min-width: 0; display: grid; gap: 16px; align-self: start; }
.crest-project .project-detail-sidebar.is-sticky { position: sticky; top: var(--crest-anchor-offset); }
.crest-project .project-enrollment-panel,
.crest-project .project-documents-panel { padding: 21px 23px; }
.crest-project .project-panel-heading { display: flex; align-items: center; gap: 13px; }
.crest-project .project-panel-heading h2 { color: var(--crest-text); font-size: 17px; line-height: 1.4; letter-spacing: -.02em; font-weight: 600; }
.crest-project .project-panel-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; color: var(--crest-blue); border-radius: 11px; background: linear-gradient(135deg,#eaf2ff,#f1f6ff); }
.crest-project .project-panel-icon .crest-icon { width: 23px; height: 23px; }
.crest-project .project-facts { margin-top: 14px; }
.crest-project .project-facts > div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; column-gap: 12px; row-gap: 5px; padding: 14px 0; border-bottom: 1px solid #e9eff8; }
.crest-project .project-facts > div:last-child { border-bottom: 0; padding-bottom: 1px; }
.crest-project .project-facts dt { display: inline-flex; align-items: center; gap: 9px; color: var(--crest-muted); font-size: 12px; }
.crest-project .project-facts dt .crest-icon { width: 16px; height: 16px; color: #7389a6; }
.crest-project .project-facts dd { color: var(--crest-text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.crest-project .project-facts time { white-space: nowrap; }
.crest-project .project-documents { display: grid; gap: 15px; margin-top: 21px; }
.crest-project .project-documents > li { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.6; color: var(--crest-muted); }
.crest-project .project-documents > li .crest-icon { width: 17px; height: 17px; color: #7286a2; }
.crest-project .project-documents a { color: var(--crest-blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.crest-project .project-documents-panel__action { border-top: 1px solid #e9eff8; margin-top: 21px; padding-top: 18px; }
.crest-project .project-enrollment-panel__action { width: 100%; }
.crest-project .project-help-panel { min-width: 0; background: linear-gradient(125deg,#edf3ff,#f6f9ff); border: 1px solid #d5e3ff; border-radius: var(--crest-radius); padding: 22px 23px; }
.crest-project .project-help-panel .project-panel-heading { gap: 10px; }
.crest-project .project-help-panel .project-panel-heading > .crest-icon { color: var(--crest-blue); width: 21px; height: 21px; }
.crest-project .project-help-panel h2 { font-size: 15px; }
.crest-project .project-help-panel p { margin-top: 11px; color: var(--crest-muted); font-size: 13px; line-height: 1.8; }
.crest-project .project-help-panel__link { display: flex; align-items: center; gap: 10px; margin-top: 17px; min-height: 43px; padding: 9px 13px; background: #fff; border: 1px solid var(--crest-line-strong); border-radius: 9px; font-size: 13px; color: var(--crest-blue-ink); font-weight: 600; }
.crest-project .project-help-panel__link:hover { border-color: var(--crest-blue); }
.crest-project .project-help-panel__link span { min-width: 0; overflow-wrap: anywhere; }
.crest-project .project-help-panel__link .crest-icon { width: 17px; height: 17px; }
.crest-project .project-help-panel__link .crest-icon:last-child { margin-left: auto; }
/* Searchable, sortable course catalogue ----------------------------------- */
.crest-project .project-section-heading--count { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.crest-project .project-count { flex-shrink: 0; padding: 5px 9px; border-radius: 9px; border: 1px solid var(--crest-line); font-size: 11px; color: var(--crest-muted); background: #fcfdff; }
.crest-project .project-course-tools { margin-top: 24px; }
.crest-project .project-course-tools__fields { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
.crest-project .project-search { display: flex; align-items: center; position: relative; min-width: 0; min-height: 45px; border: 1px solid var(--crest-line); background: #fbfcff; border-radius: 10px; }
.crest-project .project-search:focus-within { border-color: var(--crest-blue); box-shadow: 0 0 0 3px rgb(36 93 244 / 12%); }
.crest-project .project-search > .crest-icon { width: 18px; height: 18px; position: absolute; left: 13px; color: #687e9a; pointer-events: none; }
.crest-project .project-search input { appearance: none; width: 100%; min-width: 0; min-height: 43px; border: 0; border-radius: 10px; outline: none; padding: 10px 43px 10px 40px; background: transparent; color: var(--crest-text); font-size: 13px; }
.crest-project .project-search input:focus-visible { outline: 0; }
.crest-project .project-search input::placeholder { color: #607490; opacity: 1; }
.crest-project .project-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.crest-project .project-search__clear { display: grid; place-items: center; position: absolute; right: 4px; width: 36px; height: 36px; background: transparent; border: 0; border-radius: 7px; color: var(--crest-muted); }
.crest-project .project-search__clear:hover { background: #eaf1fc; }
.crest-project .project-search__clear .crest-icon { width: 16px; height: 16px; }
.crest-project .project-sort { position: relative; }
.crest-project .project-sort select { appearance: none; width: 100%; min-height: 45px; border: 1px solid var(--crest-line); border-radius: 10px; padding: 10px 37px 10px 13px; background: #fff; font-size: 12px; color: var(--crest-muted); cursor: pointer; }
.crest-project .project-sort > .crest-icon { width: 15px; height: 15px; pointer-events: none; position: absolute; right: 12px; top: 15px; color: var(--crest-muted); }
.crest-project .project-course-tools__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; font-size: 11px; color: var(--crest-muted); }
.crest-project .project-text-button { display: inline-flex; gap: 6px; align-items: center; min-height: 42px; padding: 5px 0 5px 10px; font-size: 11px; line-height: 1.5; font-weight: 600; color: var(--crest-blue-ink); border: 0; background: transparent; }
.crest-project .project-text-button .crest-icon { width: 14px; height: 14px; }
.crest-project .project-text-button[aria-expanded="true"] .crest-icon { transform: rotate(180deg); }
.crest-project .project-text-button:disabled { opacity: .5; cursor: default; }
.crest-project .project-course-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-top: 22px; }
.crest-project .project-course-tools:not([hidden]) + .project-course-list { margin-top: 0; }
.crest-project .project-course-card { min-width: 0; border: 1px solid var(--crest-line); border-radius: 12px; overflow: clip; background: #fff; transition: border-color .18s, box-shadow .18s; }
.crest-project .project-course-card:hover { border-color: #afc6f6; box-shadow: 0 5px 15px rgb(28 61 118 / 4%); }
.crest-project .project-course { height: 100%; }
.crest-project .project-course__summary { display: flex; flex-direction: column; min-height: 183px; padding: 17px 17px 14px; list-style: none; cursor: pointer; }
.crest-project .project-course__summary::-webkit-details-marker { display: none; }
.crest-project .project-course__summary::marker { content: ""; }
.crest-project .project-course__summary:focus-visible { outline-offset: -4px; border-radius: 11px; }
.crest-project .project-course__top { display: flex; gap: 10px; align-items: center; margin-bottom: 13px; }
.crest-project .project-course__number { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: var(--crest-blue-soft); color: var(--crest-blue-ink); font-weight: 600; font-size: 11px; }
.crest-project .project-course__code { font-size: 10px; color: var(--crest-subtle); letter-spacing: .07em; font-weight: 600; }
.crest-project .project-course__chevron { margin-left: auto; width: 16px; height: 16px; color: var(--crest-subtle); transition: transform .18s; }
.crest-project .project-course[open] .project-course__chevron { transform: rotate(180deg); color: var(--crest-blue); }
.crest-project .project-course[open] .project-course__summary { background: #f8faff; }
.crest-project .project-course__title { margin: 0 0 18px; font-size: 15px; line-height: 1.45; letter-spacing: -.014em; font-weight: 600; overflow-wrap: anywhere; color: var(--crest-text); }
.crest-project .project-course__bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: 11px; color: var(--crest-muted); }
.crest-project .project-course__duration { display: inline-flex; align-items: center; gap: 6px; }
.crest-project .project-course__duration .crest-icon { width: 14px; height: 14px; }
.crest-project .project-course__hint { color: var(--crest-blue-ink); font-weight: 500; }
.crest-project .project-course__body { border-top: 1px solid #e7eef9; padding: 15px 17px 19px; color: var(--crest-muted); font-size: 13px; line-height: 1.75; }
.crest-project .project-empty { text-align: center; padding: 32px 10px 14px; }
.crest-project .project-empty .project-panel-icon { margin: 0 auto 12px; }
.crest-project .project-empty h3 { font-size: 18px; letter-spacing: -.02em; }
.crest-project .project-empty p { margin: 7px 0 18px; color: var(--crest-muted); font-size: 13px; }
.crest-project .project-bottom-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 26px 29px; margin-top: 24px; background: #edf3ff; border: 1px solid #d6e3fc; border-radius: var(--crest-radius); }
.crest-project .project-bottom-cta h2 { margin-top: 5px; font-weight: 600; font-size: 22px; line-height: 1.4; letter-spacing: -.025em; }
.crest-project .project-bottom-cta > .public-button { flex-shrink: 0; }
/* Responsiveness ---------------------------------------------------------- */
@media (min-width: 1000px) {
  .crest-project .project-overview__heading { grid-template-columns: minmax(0,1fr) auto; gap: 20px; }
  .crest-project .project-overview__heading > .public-button { width: auto; max-width: 250px; }
}
@media (min-width: 1450px) {
  .crest-project .project-overview { padding-block: 36px; }
  .crest-project .project-overview__copy { width: 62%; }
}
@media (max-width: 1150px) {
  .crest-project .project-detail-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 18px; }
  .crest-project .project-content-section { padding: 23px; }
  .crest-project .project-overview { padding-inline: 29px; }
  .crest-project .project-overview__copy { width: 66%; }
  .crest-project .project-overview__art { width: 57%; }
  .crest-project .project-facts > div:nth-child(-n+2) { display: grid; gap: 5px; }
  .crest-project .project-facts > div:nth-child(-n+2) dd { padding-left: 25px; }
  .crest-project .project-course-tools__fields { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .crest-project .project-sort select { min-height: 41px; }
  .crest-project .project-sort > .crest-icon { top: 13px; }
  .crest-project .project-course__summary { padding: 15px; min-height: 200px; }
  .crest-project .project-course__title { font-size: 14px; }
}
@media (max-width: 999px) {
  .crest-project { padding-top: 22px; }
  .crest-project .project-overview { min-height: 0; }
  .crest-project .project-overview__copy { width: 74%; }
  .crest-project .project-overview__art { width: 67%; opacity: .7; }
  .crest-project .project-overview__art-fade { background: linear-gradient(90deg,#fff 0%,rgb(255 255 255 / 96%) 15%,rgb(255 255 255 / 78%) 44%,rgb(255 255 255 / 5%) 100%); }
  .crest-project .project-overview__art-label { display: none; }
  .crest-project .project-detail-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; }
  .crest-project .project-about, .crest-project .project-courses-section, .crest-project .project-detail-sidebar { grid-column: auto; grid-row: auto; }
  .crest-project .project-about { order: 1; }
  .crest-project .project-detail-sidebar { order: 2; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .crest-project .project-detail-sidebar.is-sticky { position: static; }
  .crest-project .project-help-panel { grid-column: 1 / -1; }
  .crest-project .project-courses-section { order: 3; }
  .crest-project .project-facts > div:nth-child(-n+2) { display: grid; }
  .crest-project .project-facts > div:nth-child(-n+2) dd { padding-left: 25px; }
  .crest-project .project-course-tools__fields { grid-template-columns: minmax(0,1fr) auto; }
  .crest-project .project-sort select { min-height: 45px; }
  .crest-project .project-sort > .crest-icon { top: 15px; }
  .crest-project .project-course__summary { min-height: 190px; }
  .crest-project .project-course__title { font-size: 15px; }
  .crest-project .project-section-nav { gap: 23px; }
  .crest-project .project-section-heading h2 { font-size: 25px; }
}
@media (max-width: 699px) {
  .crest-project { --crest-radius: 15px; --crest-gutter: 18px; padding-top: 17px; padding-bottom: 30px; font-size: 14px; }
  .crest-project .project-breadcrumbs { margin-bottom: 15px; font-size: 11px; gap: 6px; }
  .crest-project .project-overview { padding: 24px 22px 0; border-radius: 17px; }
  .crest-project .project-overview__copy { width: 100%; }
  .crest-project .project-overview--plain { padding-bottom: 24px; }
  .crest-project .project-logo { width: 100%; margin-top: 12px; }
  .crest-project .project-overview__eyebrow { gap: 10px 12px; margin-bottom: 17px; }
  .crest-project .public-kicker { font-size: 10px; gap: 7px; }
  .crest-project .project-overview__eyebrow .public-kicker .crest-icon { width: 21px; height: 21px; }
  .crest-project .public-status-badge { font-size: 10px; min-height: 26px; padding: 4px 8px; }
  .crest-project .project-overview h1 { font-size: clamp(30px,7.8vw,40px); line-height: 1.12; text-wrap: initial; }
  .crest-project .project-overview__copy > p { font-size: 14px; line-height: 1.75; margin-bottom: 18px; }
  .crest-project .project-overview__meta { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; margin-bottom: 21px; }
  .crest-project .project-overview__meta > span + span { margin: 0; padding: 0; border: 0; }
  .crest-project .project-overview__meta .crest-icon { width: 17px; height: 17px; }
  .crest-project .project-overview__actions { display: grid; gap: 9px; }
  .crest-project .project-overview__actions .public-button { width: 100%; min-height: 47px; font-size: 12px; }
  .crest-project .project-overview__art { position: absolute; width: auto; height: 154px; opacity: 1; top: auto; left: 0; right: 0; bottom: 0; margin: 0; }
  .crest-project .project-overview { padding-bottom: 170px; }
  .crest-project .project-overview__art img { object-position: 80% 12%; }
  .crest-project .project-overview__art-fade { background: linear-gradient(180deg,#fff 0%,rgb(255 255 255 / 45%) 19%,transparent 52%); }
  .crest-project .project-section-nav { gap: 0; width: 100%; margin: 8px 0 16px; padding-top: 0; min-height: 69px; justify-content: space-between; }
  .crest-project .project-section-nav > a { flex: 1 1 0; min-width: 0; min-height: 68px; padding: 9px 2px 10px; flex-wrap: wrap; align-content: center; align-items: center; column-gap: 5px; row-gap: 4px; font-size: 10px; text-align: center; }
  .crest-project .project-section-nav > a > .crest-icon { width: 17px; height: 17px; }
  .crest-project .project-section-nav > a > span:first-of-type { width: 100%; order: 3; }
  .crest-project .project-nav-count { min-width: 18px; height: 17px; font-size: 9px; border-radius: 5px; padding-inline: 4px; }
  .crest-project .project-detail-layout { gap: 16px; }
  .crest-project .project-content-section { padding: 22px 19px; }
  .crest-project .project-section-heading h2 { font-size: 23px; line-height: 1.3; margin-top: 8px; }
  .crest-project .project-description { font-size: 13px; line-height: 1.75; }
  .crest-project .project-objectives { padding: 17px 14px; margin-top: 18px; border-radius: 11px; }
  .crest-project .project-objectives h3 { font-size: 14px; gap: 9px; }
  .crest-project .project-objectives h3 .crest-icon { width: 21px; height: 21px; }
  .crest-project .project-objectives ol { gap: 16px; margin-top: 18px; }
  .crest-project .project-objectives li { align-items: flex-start; font-size: 12px; gap: 12px; }
  .crest-project .project-objectives__number { flex-basis: 27px; height: 27px; }
  .crest-project .project-objectives p { padding-top: 2px; }
  .crest-project .project-detail-sidebar { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .crest-project .project-enrollment-panel, .crest-project .project-documents-panel { padding: 19px; }
  .crest-project .project-facts > div:nth-child(-n+2) { display: flex; }
  .crest-project .project-facts > div:nth-child(-n+2) dd { padding-left: 0; }
  .crest-project .project-facts > div { gap: 6px 10px; padding: 15px 0; }
  .crest-project .project-facts dt { font-size: 12px; }
  .crest-project .project-facts dd { font-size: 12px; }
  .crest-project .project-panel-heading h2 { font-size: 16px; }
  .crest-project .project-panel-heading { gap: 11px; }
  .crest-project .project-panel-icon { width: 37px; height: 37px; flex-basis: 37px; }
  .crest-project .project-documents > li { font-size: 13px; }
  .crest-project .project-help-panel { padding: 20px; }
  .crest-project .project-help-panel h2 { font-size: 14px; }
  .crest-project .project-course-tools { margin-top: 20px; }
  .crest-project .project-course-tools__fields { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .crest-project .project-course-tools__meta { min-height: 53px; font-size: 10px; }
  .crest-project .project-text-button { font-size: 10px; gap: 4px; }
  .crest-project .project-section-heading--count { align-items: flex-start; gap: 10px; }
  .crest-project .project-count { font-size: 10px; white-space: nowrap; margin-top: 1px; padding: 4px 6px; }
  .crest-project .project-course-list { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .crest-project .project-course__summary { min-height: 157px; padding: 16px; }
  .crest-project .project-course__title { font-size: 15px; margin-bottom: 18px; }
  .crest-project .project-course__body { padding: 15px 16px 17px; }
  .crest-project .project-bottom-cta { flex-direction: column; align-items: stretch; margin-top: 17px; padding: 23px 21px; gap: 20px; }
  .crest-project .project-bottom-cta h2 { font-size: 21px; }
}
@media (max-width: 359px) {
  .crest-project { --crest-gutter: 12px; }
  .crest-project .project-overview { padding-inline: 18px; }
  .crest-project .project-overview h1 { font-size: 30px; }
  .crest-project .project-content-section { padding: 20px 16px; }
  .crest-project .project-facts > div:nth-child(-n+2) { display: grid; }
  .crest-project .project-facts > div:nth-child(-n+2) dd { padding-left: 25px; }
  .crest-project .project-section-nav > a { font-size: 9px; }
  .crest-project .project-section-heading h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .crest-project *, .crest-project *::before, .crest-project *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .crest-project .public-status-badge, .crest-project .project-panel-icon, .crest-project .project-objectives__number { border: 1px solid CanvasText; }
  .crest-project .project-overview__art { display: none; }
  .crest-project .project-overview { padding-bottom: 30px; }
  .crest-project .public-button { border: 1px solid ButtonText; }
}
@media print {
  .crest-project { width: 100%; padding: 0; --crest-shadow: none; font-size: 11pt; }
  .crest-project .project-overview__art, .crest-project .project-section-nav, .crest-project .project-course-tools, .crest-project .project-overview__actions, .crest-project .project-overview__heading > .public-button, .crest-project .project-documents-panel__action, .crest-project .project-bottom-cta { display: none !important; }
  .crest-project .project-overview { padding: 20px; min-height: 0; }
  .crest-project .project-overview__copy { width: 100%; }
  .crest-project .project-detail-layout, .crest-project .project-detail-content, .crest-project .project-detail-sidebar { display: block; }
  .crest-project .project-detail-sidebar.is-sticky { position: static; }
  .crest-project .project-content-section, .crest-project .project-enrollment-panel, .crest-project .project-documents-panel, .crest-project .project-help-panel { margin-top: 16px; }
  .crest-project .project-course-card { break-inside: avoid; }
  .crest-project .project-course__summary { min-height: 0; }
}
/* Optional host adapter. Add these classes only on the new project-detail view.
 * Do not replace global .public-main or header/footer styles across the app.
 */
.public-page.crest-project-view { background: #f5f8fd; }
.public-main.crest-project-host {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 0;
  margin: 0 auto;
}
/* The .crest-project wrapper owns its max-width and responsive gutters.
 * Override --crest-gutter on .crest-project if the host layout already owns them.
 */

.crest-project .project-description { white-space: pre-line; overflow-wrap: anywhere; }
.crest-project .project-description a { color: var(--crest-blue); text-decoration: underline; text-underline-offset: 3px; }

.project-external-navigation { display: flex; flex-wrap: wrap; margin-block-end: 16px; }
.project-external-navigation a { max-width: 100%; white-space: normal; }
