/* Program directory: overview, learning-area navigation, and grouped courses. */
.catalog-page { background: #f8f7f3; }
.catalog-hero { background: var(--navy-deep); color: #fff; overflow: hidden; }
.catalog-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); min-height: 440px; }
.catalog-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px clamp(30px, 5vw, 85px) 64px 0; min-width: 0; }
.catalog-hero .breadcrumbs { color: #b5c5cb; margin-bottom: 42px; }
.catalog-hero .breadcrumbs span { color: #78909a; }
.catalog-hero h1 { max-width: 12ch; margin: 16px 0 20px; }
.catalog-hero-copy > p { max-width: 560px; color: #d4dee1; font-size: 1.0625rem; line-height: 1.68; margin-bottom: 26px; }
.catalog-hero-link { display: inline-flex; align-items: center; gap: 22px; min-height: 44px; border-bottom: 1px solid #d6b478; color: #f1d49e; font-size: .875rem; font-weight: 700; }
.catalog-hero-link span { font-size: 1.15rem; }
.catalog-hero-visual { position: relative; min-height: 440px; margin-right: calc((min(100vw - 48px, var(--container)) - 100vw) / 2); overflow: hidden; }
.catalog-hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.catalog-hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,30,44,.24), transparent 40%); pointer-events: none; }
.catalog-hero-stat { position: absolute; z-index: 1; left: 26px; bottom: 28px; display: flex; align-items: center; gap: 17px; min-width: 205px; padding: 16px 20px; background: #f7f4ed; color: var(--navy); box-shadow: 0 15px 40px rgba(0,0,0,.15); }
.catalog-hero-stat strong { font-size: 2.75rem; line-height: 1; letter-spacing: -.06em; }
.catalog-hero-stat span { font-size: .8125rem; line-height: 1.4; font-weight: 650; }
.catalog-image-note { position: absolute; z-index: 1; right: 16px; bottom: 15px; color: #fff; padding: 5px 8px; background: rgba(7,23,36,.68); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; }

.catalog-explore { background: #fff; padding: 64px 0 68px; }
.catalog-explore-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.catalog-explore-heading h2 { margin: 10px 0 0; max-width: 650px; }
.catalog-explore-heading > p { max-width: 290px; margin: 0 0 5px; color: #5c6b72; font-size: .9375rem; line-height: 1.6; }
.catalog-track-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid #d6dcd9; border-left: 1px solid #d6dcd9; }
.catalog-track { position: relative; display: flex; flex-direction: column; min-height: 172px; padding: 22px 25px 18px; border-right: 1px solid #d6dcd9; border-bottom: 1px solid #d6dcd9; background: #fff; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.catalog-track:hover, .catalog-track:focus-visible { background: #f4f6f3; }
.catalog-track[aria-selected="true"], .catalog-track[aria-current="page"] { background: #eef2f0; box-shadow: inset 0 4px #b99155; }
.catalog-track[aria-selected="true"]::after { content: ''; position: absolute; right: 24px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: #956e38; }
.catalog-track-number { color: #956e38; font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
.catalog-track strong { display: block; margin: 19px 0 14px; max-width: 190px; font-size: 1.1875rem; line-height: 1.25; letter-spacing: -.03em; text-wrap: balance; }
.catalog-track-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; color: #536870; font-size: .8125rem; font-weight: 650; }
.catalog-track-meta span { color: #8b672e; font-size: 1.125rem; }

.catalog-results { padding: 72px 0 94px; scroll-margin-top: 20px; }
.catalog-mobile-switcher { display: none; }
.catalog-results-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 40px; }
.catalog-results-head h2 { margin: 10px 0 5px; }
.catalog-results-count { margin: 0; color: #5b6a70; font-size: .875rem; }
.catalog-search { display: block; width: min(100%, 340px); color: #384e59; font-size: .8125rem; font-weight: 700; }
.catalog-search input { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px 15px; border: 1px solid #bcc9c8; border-radius: 3px; background: #fff; color: var(--ink); font-size: 1rem; }
.catalog-search input:focus-visible { outline-offset: 2px; }
.catalog-all-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0 29px; color: #79592c; font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.catalog-group { scroll-margin-top: 30px; padding: 0; }
.catalog-group[hidden] { display: none; }
.catalog-group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 40px; min-height: 192px; margin-bottom: 25px; background: #e9eee9; overflow: hidden; }
.catalog-group:nth-of-type(even) .catalog-group-head { background: #eeeae1; }
.catalog-group-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 0 25px 31px; min-width: 0; }
.catalog-group-index { color: #83602e; font-size: .75rem; font-weight: 750; letter-spacing: .14em; }
.catalog-group-head h3 { margin: 9px 0 7px; font-size: clamp(1.5rem, 2vw, 1.875rem); line-height: 1.2; }
.catalog-group-head p { max-width: 590px; margin: 0 0 11px; color: #4d6169; font-size: .9375rem; line-height: 1.55; }
.catalog-group-count { margin-top: auto; color: #795a30; font-size: .8125rem; font-weight: 750; }
.catalog-group-head img { width: 100%; height: 100%; min-height: 192px; object-fit: cover; }
.catalog-page .catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.catalog-page .course-card { display: grid; grid-template-columns: minmax(130px, 30%) minmax(0, 1fr); align-items: stretch; min-height: 0; padding: 0; background: #fff; border-color: #dce1df; overflow: hidden; }
.catalog-page .course-card-media { position: relative; display: block; width: 100%; min-height: 100%; overflow: hidden; background: #e8ece9; }
.catalog-page .course-card-media::before { content: ''; position: absolute; inset: 0; background-image: var(--course-image); background-size: auto calc(var(--course-image-rows) * 100%); background-position: var(--course-image-x) var(--course-image-y); background-repeat: no-repeat; transition: transform .4s ease; }
.catalog-page .course-card:hover .course-card-media::before { transform: scale(1.055); }
.catalog-page .course-card-content { display: flex; flex-direction: column; align-self: stretch; min-width: 0; padding: 22px 24px 19px; }
.catalog-page .course-card h4 { margin: 13px 0 7px; font-size: clamp(1.2rem, 1.55vw, 1.4rem); font-weight: 650; line-height: 1.28; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: break-word; }
.catalog-page .course-card p { display: -webkit-box; max-width: 57ch; margin-bottom: 15px; overflow: hidden; color: #52636b; font-size: .875rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-page .course-card-bottom { font-size: .8125rem; }
.catalog-page .course-card-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.catalog-page .course-card-top .eyebrow { font-size: .6875rem; }
.catalog-page .empty-state { margin-top: 24px; background: #fff; }

@media (max-width: 980px) {
  .catalog-hero-grid { grid-template-columns: 1fr .85fr; }
  .catalog-track { padding: 21px 18px; }
  .catalog-track strong { font-size: 1.125rem; }
  .catalog-page .course-card { grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); }
  .catalog-page .course-card-content { padding: 19px 19px 16px; }
}
@media (max-width: 760px) {
  .catalog-hero-grid { display: flex; flex-direction: column; }
  .catalog-hero-copy { padding: 42px 0 48px; }
  .catalog-hero .breadcrumbs { margin-bottom: 28px; }
  .catalog-hero-visual { height: 270px; min-height: 0; margin: 0 -18px; }
  .catalog-hero-stat { bottom: 18px; left: 18px; }
  .catalog-explore { display: none; }
  .catalog-explore-heading, .catalog-results-head { display: block; }
  .catalog-explore-heading > p { max-width: 540px; margin-top: 13px; }
  .catalog-results { padding: 0 0 85px; }
  .catalog-mobile-switcher {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 -18px 32px;
    padding: 12px 18px;
    background: var(--navy-deep);
    color: #fff;
    box-shadow: 0 8px 22px rgba(8,29,44,.14);
  }
  .catalog-mobile-switcher > span:first-child { flex: 0 0 auto; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
  .catalog-mobile-select-wrap { position: relative; flex: 1; min-width: 0; }
  .catalog-mobile-select-wrap select {
    width: 100%;
    min-height: 48px;
    padding: 10px 42px 10px 13px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 3px;
    appearance: none;
    background: #fff;
    color: var(--navy);
    font: 650 1rem/1.3 Inter, Arial, sans-serif;
  }
  .catalog-mobile-select-wrap > span { position: absolute; top: 50%; right: 14px; transform: translateY(-55%); color: #86622f; font-size: 1.25rem; pointer-events: none; }
  .catalog-search { width: 100%; margin-top: 26px; }
  .catalog-page .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .catalog-hero-visual { height: 220px; }
  .catalog-hero-stat { min-width: 0; padding: 12px 15px; }
  .catalog-hero-stat strong { font-size: 2.25rem; }
  .catalog-image-note { display: none; }
  .catalog-mobile-switcher { align-items: stretch; flex-direction: column; gap: 6px; }
  .catalog-group-head { grid-template-columns: 1fr; gap: 0; }
  .catalog-group-copy { padding: 23px 23px 20px; }
  .catalog-group-head img { height: 150px; min-height: 0; }
  .catalog-page .course-card { grid-template-columns: minmax(105px, 31%) minmax(0, 1fr); }
  .catalog-page .course-card-media { min-height: 13.5rem; }
  .catalog-page .course-card-content { padding: 17px 16px 14px; }
  .catalog-page .course-card h4 { margin-top: 9px; font-size: 1.125rem; }
  .catalog-page .course-card p { margin-bottom: 10px; font-size: .8125rem; -webkit-line-clamp: 2; }
  .catalog-page .course-card-bottom { flex-wrap: wrap; padding-top: 10px; }
  .catalog-page .course-card-bottom > span { max-width: 100%; }
  .catalog-page .course-card-bottom a { min-height: 38px; }
  .catalog-page .course-card-top .eyebrow { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
