/* /exploreprograms (inc/explore-programs.php), on top of cti-program.css + gofurther.css (the Degree Pathways look):
   hero with counts, a frosted filter bar (search, level switch, subject chips), program cards on grey grouped by level,
   "Keep exploring", the red "Talk to an advisor", and a sheet per program (the Degree Pathways <dialog>). */

/* ---- hero: Degree Pathways' hero, with the counts as a stat row (Apple's "at a glance" numbers) ------------------- */
.ep .ep-hero { padding-bottom: clamp(44px, 7vh, 80px); }
.ep-stats { display: flex; justify-content: center; gap: 0; margin: 46px auto 0 !important; max-width: 720px; }
.ep-stats li { flex: 1 1 0; min-width: 0; }
.ep-stats li + li { border-left: 1px solid var(--line); }
.ep-stats a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 12px; color: inherit; text-decoration: none !important; }
.ep-stat-n { font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--red); }
.ep-stat-l { font-size: 15px; font-weight: 600; color: var(--muted); }
.ep-stats a:hover .ep-stat-l { color: var(--ink); }

/* ---- the browse area on grey --------------------------------------------------------------------------------------- */
.ep-browse { background: var(--gray); padding: 0 0 110px; }

/* filter bar: frosted, sticks under the site header (--ctip-top, measured by cti-program.js) */
.ep-bar { position: sticky; top: var(--ctip-top, 138px); z-index: 20; padding: 16px 0 12px; background: rgba(245,245,247,.82);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  transition: box-shadow .3s; }
.ep-bar.is-stuck { box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.ep-bar-in { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }

.ep-search { position: relative; display: flex; align-items: center; flex: 1 1 320px; max-width: 520px; margin: 0; font-weight: 400; }
.ep-search-icon { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.ep .ep-search input { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; padding: 0 44px 0 44px; border: 0;
  border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); color: var(--ink);
  font: 400 17px/1.2 var(--font); letter-spacing: -.01em; transition: box-shadow .2s; }
.ep .ep-search input::placeholder { color: #86868b; }
.ep .ep-search input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 4px rgba(162,38,49,.18); }
.ep-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ep-clear { position: absolute; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0;
  border-radius: 50%; background: none; color: #86868b; cursor: pointer; }
.ep-clear[hidden] { display: none; }
.ep-clear:hover { color: var(--ink); }
.ep-clear-icon { width: 20px; height: 20px; fill: currentColor; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.ep-clear-icon circle { stroke: none; }

/* segmented control (Apple's): a white thumb on grey */
.ep-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: rgba(118,118,128,.12); }
.ep .ep-seg-btn { min-height: 34px; margin: 0; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font: 500 15px/1 var(--font); letter-spacing: -.01em; white-space: nowrap; cursor: pointer; transition: background .2s, box-shadow .2s; }
.ep .ep-seg-btn:hover { background: rgba(255,255,255,.5); }
.ep .ep-seg-btn[aria-pressed="true"], .ep .ep-seg-btn[aria-selected="true"] { background: #fff; font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04); }
.ep .ep-seg-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }

/* subject chips: one row, scrolls sideways when it does not fit */
.ep-chips-scroll { --pad: max(22px, calc((100% - 1080px) / 2)); overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding: 2px var(--pad); }
.ep-chips-scroll::-webkit-scrollbar { display: none; }
.ep-chips { display: flex; gap: 8px; width: max-content; }
.ep .ep-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; margin: 0; padding: 0 14px; border: 0; border-radius: 980px;
  background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); color: var(--ink); font: 500 14px/1 var(--font); white-space: nowrap;
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.ep .ep-chip:hover { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.ep .ep-chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.ep .ep-chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.ep-chip-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.ep .ep-count { margin: 28px 0 0; font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---- groups and cards -------------------------------------------------------------------------------------------- */
.ep-group { padding-top: 48px; }
.ep-group[hidden] { display: none; }
.ep-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; margin: 0 0 24px; }
.ep-group-h { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: var(--ink); }
.ep .ep-group-line { margin: 0; font-size: 17px; color: var(--muted); }

.ep-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 !important; }
.ep-cell { display: flex; min-width: 0; margin: 0; }
.ep-cell[hidden] { display: none; }
.ep .ep-card { display: flex; flex-direction: column; width: 100%; padding: 30px 28px 26px; border-radius: 28px; background: #fff; color: var(--ink);
  text-decoration: none !important; transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1); }
.ep .ep-card:hover { transform: scale(1.015); box-shadow: 0 8px 34px rgba(0,0,0,.09); }
.ep .ep-card:active { transform: scale(.995); }
.ep .ep-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ep-card-badge { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 0 20px; border-radius: 50%; background: var(--tint); }
.ep-card-icon { width: 26px; height: 26px; fill: none; stroke: var(--red); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ep-feather { stroke-width: 1.8; }
.ep-card-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--red); margin: 0 0 6px; }
.ep-card-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.18; color: var(--ink); margin: 0 0 10px; text-wrap: balance; }
.ep-card-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 22px;
  font-size: 15px; line-height: 1.45; color: var(--muted); }
.ep-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: nowrap; margin-top: auto; }
.ep-card-meta { font-size: 13px; color: #86868b; }
.ep-card-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; color: var(--red); white-space: nowrap; }
.ep .ep-card:hover .ep-card-more .ctip-chev { transform: translateX(2px); }
.ep-card-more .ctip-chev { transition: transform .25s; }

.ep-empty { padding: 80px 0 20px; text-align: center; }
.ep-empty[hidden] { display: none; }
.ep .ep-empty-h { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.ep .ep-empty-t { font-size: 17px; color: var(--muted); margin: 0; }
.ep .ep-reset { margin: 0; padding: 0; border: 0; background: none; color: var(--red); font: inherit; cursor: pointer; }
.ep .ep-reset:hover { text-decoration: underline; }

/* ---- Keep exploring ------------------------------------------------------------------------------------------------- */
.ep .ep-more { padding: 110px 0 120px; }
.ep-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 40px 0 0 !important; }
.ep-more-grid li { display: flex; margin: 0; }
.ep .ep-more-card { display: flex; flex-direction: column; width: 100%; padding: 32px 30px 28px; border-radius: 28px; background: var(--gray);
  color: var(--ink); text-decoration: none !important; transition: transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s; }
.ep .ep-more-card:hover { transform: scale(1.015); box-shadow: 0 8px 34px rgba(0,0,0,.08); }
.ep-more-icon { width: 40px; height: 40px; margin: 0 0 18px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ep-more-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 0 0 8px; }
.ep-more-text { font-size: 17px; line-height: 1.45; color: var(--muted); margin: 0 0 22px; }
.ep-more-card .ep-card-more { margin-top: auto; }

.ep .ep-help .ctip-cta-btns { margin: 34px 0 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ep .ep-fine { max-width: 820px; margin: 28px auto 64px; text-align: center; }
.ep .ep-fine a { color: var(--red); }

/* ---- the sheet: one program ---------------------------------------------------------------------------------------- */
.ep-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0 !important; }
.ep-pills .gof-pill { margin: 0 !important; }
.ep .ep-sheet-h { margin: 40px 0 18px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 24px; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.ep-mission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 !important; }
.ep-mission li { display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 18px 18px; border-radius: 18px; background: var(--gray);
  font-size: 16px; line-height: 1.42; color: var(--ink); }
.ep-mission-badge { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.ep-mission-icon { width: 20px; height: 20px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ep-seg--sheet { display: flex; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; }
.ep-seg--sheet::-webkit-scrollbar { display: none; }
.ep-paths[hidden] { display: none; }
.ep-path-list { margin: 0 !important; border-radius: 18px; background: var(--gray); overflow: hidden; }
.ep-path { margin: 0; padding: 16px 20px; }
.ep-path + .ep-path { border-top: 1px solid rgba(0,0,0,.07); }
.ep .ep-path-name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.ep .ep-path-detail { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
.ep-tag { display: inline-flex; align-items: center; min-height: 20px; margin-left: 6px; padding: 0 8px; border-radius: 980px; background: var(--tint);
  color: var(--red); font-size: 12px; font-weight: 600; vertical-align: 2px; }
.ep .ep-contacts { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ep-sheet-cta { display: flex; align-items: center; gap: 8px 26px; flex-wrap: wrap; margin: 40px 0 0 !important; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---- smaller screens ----------------------------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .ep-stats { margin-top: 36px !important; }
  .ep-stat-l { font-size: 13px; }
  .ep-bar { position: static; padding-top: 20px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ep-search { flex-basis: 100%; max-width: none; }
  .ep-seg--level { display: flex; width: 100%; }
  .ep-seg--level .ep-seg-btn { flex: 1 1 auto; padding: 0 8px; font-size: 14px; }
  .ep-group { padding-top: 36px; }
  .ep-grid, .ep-more-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ep .ep-card { padding: 24px 22px 22px; border-radius: 22px; }
  .ep-card-desc { -webkit-line-clamp: 2; }
  .ep-mission { grid-template-columns: minmax(0, 1fr); }
  .ep .ep-more { padding: 80px 0 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .ep .ep-card, .ep .ep-more-card, .ep-card-more .ctip-chev { transition: none; }
  .ep .ep-card:hover, .ep .ep-more-card:hover { transform: none; }
}

/* Advising (data/advising.json, a copy of /registerhelp/ "See Your Advisor") */
.ep-adv-lede { font-size: 16px; line-height: 1.45; color: var(--muted); margin: 0 0 14px; }
.ep-adv { padding: 22px 22px 16px; }
.ep-adv-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 22px; margin-top: 4px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); }
.ep-adv-name { font-size: 16px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.ep-adv .ep-adv-people .dp-office-list { margin: 0 !important; }
.ep-adv-more { margin: 14px 0 0; font-size: 15px; }
