/* 2026 refresh: Explore page (src/pages/explore-programs.astro). Spec 3.1 (desktop, E1-E6) and 3.2 (phone, M1-M10).
   Tablet (768-991px) is derived: the phone's control bar and in-flow filter panel, with the cards in two columns.
   Markup: src/webflow/explore-*.html + the Explore renderers in src/lib/webflow.ts. Behaviour: public/webflow/listing.js.
   Cards (D6) and the Learn More band (P8) are shared components styled in /refresh.css. */

/* E1 Hero: Dark Blue band with the Outset symbol bars (Mid Blue 66%) */
.section_explore-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20rem;
  margin-top: var(--nav-h);
  padding: 3.5rem 1.5rem 0; /* the frame sets the text block 28px below the band's centre */
  overflow: hidden;
  background-color: var(--_style-guide-2-0---outset-dark-blue);
  color: var(--_style-guide-2-0---outset-off-white);
  text-align: center;
}
.explore-hero_pattern {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 1440 / 320;
  transform: translateX(-50%);
  pointer-events: none;
}
/* bar ends outside the drawing are cut by the band, not by the svg box (normalize's svg:not(:root) is 0-1-1) */
.section_explore-hero .explore-hero_pattern { overflow: visible; }
.explore-hero_content { position: relative; max-width: 56rem; }
.explore-hero_heading { color: inherit; }
.explore-hero_text {
  max-width: 32rem;
  margin: 1.875rem auto 0;
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5556;
  letter-spacing: -.01em;
}

/* E2 Layout: filter column 336px with its divider, results beside it; full bleed with 24px insets */
.section_explore { padding: 3.5rem 1.5rem 7.5rem; }
.explore_layout {
  display: grid;
  grid-template-columns: 21rem minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "filters head sort"
    "filters results results";
}
.explore_bar { display: none; }

.explore_title {
  margin: 0;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Caslonionic Web, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2857;
  letter-spacing: -.03em;
}
.explore_title.is-results { color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_title:focus { outline: none; } /* focus lands here after the last chip is removed */

.explore_label,
.explore_clear,
.explore_showing,
.explore_link.is-price-reset {
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.explore_label { display: block; margin: 0; color: rgba(18, 18, 22, .5); } /* Soft Black 50%: no token */
.explore_clear,
.explore_link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(18, 18, 22, .5);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.explore_link { color: var(--_style-guide-2-0---outset-mid-blue); font: inherit; }
.explore_clear:hover { color: var(--_style-guide-2-0---outset-soft-black); }
.explore_clear:focus-visible,
.explore_link:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }

/* E3 Filter panel */
.explore_filters {
  grid-area: filters;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  max-height: calc(100vh - var(--nav-h) - 3rem);
  margin: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  border-right: 1px solid var(--_style-guide-2-0---outset-soft-black-tint);
}
.explore_filters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0 1rem; }

.explore_block { padding: 2.125rem 1rem; border-bottom: 1px solid var(--_style-guide-2-0---outset-grey); }
.explore_field + .explore_field { margin-top: 2.125rem; }
.explore_field > .explore_label { margin-bottom: .75rem; }
.explore_field + .explore_field.is-price { margin-top: 1.625rem; } /* the frame measures 34px to the label, which is centred on the taller value */
.explore_control-wrap { position: relative; color: var(--_style-guide-2-0---outset-soft-black); }
.explore_control {
  display: block;
  width: 100%;
  height: 3rem;
  margin: 0;
  padding: 0 3rem 0 1.25rem;
  border: 1px solid var(--_style-guide-2-0---outset-soft-black-tint);
  border-radius: 4px;
  background-color: transparent;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.explore_control:hover { border-color: var(--_style-guide-2-0---outset-soft-black); }
.explore_control:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }
.explore_control.is-search { padding: 0 1rem 0 2.875rem; font-weight: 500; cursor: text; }
.explore_control.is-search::placeholder { color: #787880; opacity: 1; }
.explore_search-icon { position: absolute; top: 50%; left: 1rem; width: 1.125rem; height: 1.125rem; transform: translateY(-50%); pointer-events: none; }
.explore_tri { flex: none; width: 0; height: 0; border-top: .5rem solid currentColor; border-right: .5rem solid transparent; border-left: .5rem solid transparent; }
.explore_control-wrap > .explore_tri { position: absolute; top: 50%; right: 1.25rem; margin-top: -.25rem; pointer-events: none; }

/* PRICE: one handle, the highest price shown; the blue part of the track is what the filter keeps */
.explore_price-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.explore_price-value {
  display: flex;
  gap: .875rem;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2857;
  letter-spacing: -.03em;
}
.explore_range {
  --fill: 100%;
  display: block;
  width: 100%;
  height: 1.5625rem;
  margin: .75rem 0 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.explore_range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--_style-guide-2-0---outset-mid-blue) var(--fill), var(--_style-guide-2-0---outset-soft-black-tint) var(--fill));
}
.explore_range::-webkit-slider-thumb {
  width: 1.5625rem;
  height: 1.5625rem;
  margin-top: calc(3px - .78125rem);
  border: 0;
  border-radius: 50%;
  background-color: var(--_style-guide-2-0---outset-mid-blue);
  -webkit-appearance: none;
  appearance: none;
}
.explore_range::-moz-range-track { height: 6px; border-radius: 3px; background-color: var(--_style-guide-2-0---outset-soft-black-tint); }
.explore_range::-moz-range-progress { height: 6px; border-radius: 3px; background-color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_range::-moz-range-thumb { width: 1.5625rem; height: 1.5625rem; border: 0; border-radius: 50%; background-color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_range:focus { outline: none; }
.explore_range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--_style-guide-2-0---outset-off-white), 0 0 0 4px var(--_style-guide-2-0---outset-dark-blue); }
.explore_range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--_style-guide-2-0---outset-off-white), 0 0 0 4px var(--_style-guide-2-0---outset-dark-blue); }
.explore_link.is-price-reset { display: block; margin: .875rem 0 0 auto; }
.explore_link.is-price-reset.is-inactive { visibility: hidden; } /* keeps its line, so the panel does not jump */

/* PROGRAM, AVAILABILITY, GRADE, U.S. OR GLOBAL: collapsible checkbox lists */
.explore_group { border-bottom: 1px solid var(--_style-guide-2-0---outset-grey); }
.explore_group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 2.125rem 1rem 1rem;
  border: 0;
  background: none;
  color: var(--_style-guide-2-0---outset-soft-black);
  text-align: left;
  cursor: pointer;
}
.explore_group-toggle[aria-expanded="false"] { padding-bottom: 2.125rem; }
.explore_group-toggle .explore_tri { margin-right: 1rem; transition: transform .2s; }
.explore_group-toggle[aria-expanded="true"] .explore_tri { transform: rotate(180deg); }
.explore_group-toggle:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: -2px; }
.explore_group-list { display: flex; flex-direction: column; padding: 0 1rem 1.875rem; }
.explore_check {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: .625rem 0;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  cursor: pointer;
}
.explore_check-input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1.5px solid var(--_style-guide-2-0---outset-soft-black);
  border-radius: 0;
  background: transparent center / .75rem no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.explore_check:hover .explore_check-input { border-color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_check-input:checked {
  border-color: var(--_style-guide-2-0---outset-mid-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m1.75 6.25 2.75 2.75 5.75-6.25' fill='none' stroke='%230073F5' stroke-width='1.75'/%3E%3C/svg%3E");
}
.explore_check-input:checked + .explore_check-label { color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_check-input:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }
.explore_check-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* E4 Results header: title + count, Sort by on the right, active-filter chips below */
.explore_head { grid-area: head; align-self: start; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding-left: 1rem; }
.explore_showing { margin: 0; color: var(--_style-guide-2-0---outset-soft-black); }
.explore_sort { grid-area: sort; align-self: start; position: relative; margin-top: -.25rem; } /* its 44px target centred on the 36px titles */
.explore_results { grid-area: results; min-width: 0; padding-left: 1rem; }

.explore_sort-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
}
.explore_sort-toggle svg { width: .75rem; height: .75rem; transition: transform .2s; }
.explore_sort-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.explore_sort-toggle:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }
/* M7 Sort menu */
.explore_sort-options {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  min-width: 11.8125rem;
  margin: .25rem 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid rgba(230, 230, 230, .5);
  border-radius: 4px;
  background-color: var(--_style-guide-2-0---white);
  box-shadow: 0 0 12px rgba(18, 18, 22, .1);
}
.explore_sort-options > li { margin: 0; }
.explore_sort-options > li + li { border-top: 1px solid var(--_style-guide-2-0---outset-grey); }
.explore_sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  min-height: 3rem; /* 59px rows on phones (M7); shorter on desktop, where the menu opens mid-screen */
  margin: 0;
  padding: 0 1.25rem 0 1.5rem;
  border: 0;
  background: none;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.explore_sort-option svg { flex: none; width: 1rem; height: 1rem; visibility: hidden; }
.explore_sort-option[aria-pressed="true"] { background-color: var(--_style-guide-2-0---outset-sand-tint-light); }
.explore_sort-option[aria-pressed="true"] svg { visibility: visible; }
.explore_sort-option:hover { color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_sort-option:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: -2px; }

.explore_chips { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.explore_chips > li { display: flex; margin: 0; } /* Webflow's li line-height would add a line box around the chip */
.explore_chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 1.5rem;
  margin: 0;
  padding: .25rem .625rem .25rem .75rem;
  border: 1px solid var(--_style-guide-2-0---outset-grey);
  border-radius: 10rem;
  background-color: var(--_style-guide-2-0---white);
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Marrsans Web, Arial, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
}
.explore_chip svg { flex: none; width: .5625rem; height: .5625rem; }
.explore_chip:hover { border-color: var(--_style-guide-2-0---outset-soft-black-tint); }
.explore_chip:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }

/* E5 Cards: three 336px columns with 16px gaps at 1440px */
.explore_list-wrapper { margin-top: 2rem; }
.explore_chips:not([hidden]) + .explore_list-wrapper { margin-top: 3rem; }
.explore_list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(18.5rem, 100%), 1fr)); gap: 1rem; }

/* M6 Load More (Finsweet shows and hides it) and the empty state */
.explore_more {
  display: block;
  margin: 2.375rem auto 0;
  padding: .25rem .5rem;
  border: 0;
  background: none;
  color: var(--_style-guide-2-0---outset-soft-black);
  font-family: Caslonionic Web, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.03em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3125rem;
  cursor: pointer;
}
.explore_more:hover { color: var(--_style-guide-2-0---outset-mid-blue); }
.explore_more:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }
.explore_empty {
  padding: 3rem 1.5rem;
  border: 1px solid rgba(230, 230, 230, .5);
  border-radius: 4px;
  background-color: var(--_style-guide-2-0---white);
  box-shadow: 0 0 12px rgba(18, 18, 22, .1);
  text-align: center;
}
.explore_empty-title { margin: 0; font-family: Caslonionic Web, Arial, sans-serif; font-size: 1.5rem; font-weight: 400; line-height: 1.5; letter-spacing: -.03em; }
.explore_empty-text { margin: .5rem 0 0; font-size: 1rem; line-height: 1.5; }

/* Until Finsweet has taken over the list there is no Load More or empty state, and phones and tablets see the first
   page only (6 = data-explore-page-size on the list). is-static: Finsweet never loaded, the full list stays. */
.w-mod-js:not(.explore-ready) .explore_more,
.w-mod-js:not(.explore-ready) .explore_empty,
.is-static .explore_more,
.is-static .explore_empty { display: none; }

@media screen and (min-width: 992px) and (max-width: 1439px) {
  .explore_layout { grid-template-columns: 18rem minmax(0, 1fr) auto; }
}

/* Tablet and phone: control bar (Filters toggle + Sort by), filter panel in the page flow, then the results */
@media screen and (max-width: 991px) {
  .w-mod-js:not(.explore-ready) .explore_list > :nth-child(n + 7) { display: none; }

  .section_explore-hero { min-height: 14.375rem; padding: 2.5rem 1.5rem; } /* 230px: the pattern's edge bars show as bars, not slivers, from 768 to 991px */
  .section_explore { padding: 0 0 4rem; }
  .explore_layout {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: none;
    grid-template-areas:
      "bar sort"
      "filters filters"
      "head head"
      "results results";
  }
  /* M3 bar: spans the row under the Sort by menu, so its rule runs the full width */
  .explore_bar {
    grid-area: 1 / 1 / 2 / 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding: .5rem 1rem;
    border-bottom: 1px solid var(--_style-guide-2-0---outset-soft-black-tint);
  }
  .explore_sort { grid-area: 1 / 2 / 2 / 3; align-self: center; margin-top: 0; margin-right: 1rem; }
  .explore_sort-option { min-height: 3.6875rem; }
  .explore_bar .explore_clear { display: none; margin-right: .25rem; }
  .is-filters-open .explore_bar .explore_clear { display: block; }
  .is-filters-open .explore_sort { display: none; }
  .explore_toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-width: 7.5rem;
    height: 3rem;
    margin: 0;
    padding: 0 .875rem;
    border: 1px solid var(--_style-guide-2-0---outset-grey);
    border-radius: 4px;
    background-color: var(--_style-guide-2-0---white);
    color: var(--_style-guide-2-0---outset-soft-black);
    font-family: Marrsans Web, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    cursor: pointer;
  }
  .explore_toggle:focus-visible { outline: 2px solid var(--_style-guide-2-0---outset-mid-blue); outline-offset: 2px; }
  .explore_toggle-icon { flex: none; width: 1.125rem; height: 1.125rem; }
  .is-filters-open .explore_toggle-icon { transform: scaleY(-1); }
  .explore_count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .375rem;
    border-radius: 10rem;
    background-color: var(--_style-guide-2-0---outset-grey);
    font-size: .875rem;
    font-weight: 500;
  }

  /* M8 filter panel, open in the flow; no Apply button, filters apply as they change */
  .explore_filters { display: none; position: static; max-height: none; overflow: visible; border-right: 0; }
  .is-filters-open .explore_filters { display: block; }
  .explore_filters-head { padding: 1rem 1.5rem 0; }
  .explore_filters-head .explore_clear { display: none; }
  .explore_filters .explore_title { color: var(--_style-guide-2-0---outset-mid-blue); font-size: 1.5rem; line-height: 1.5; }
  .explore_block { padding: 1.5rem 1.5rem 2.125rem; }
  .explore_group-toggle { padding-right: 1.5rem; padding-left: 1.5rem; }
  .explore_group-list { padding-right: 1.5rem; padding-left: 1.5rem; }

  /* M4 results line */
  .explore_head { align-self: auto; justify-content: space-between; padding: 1rem 1.5rem 0; }
  .explore_head .explore_title { font-size: 1.5rem; line-height: 1.5; }
  .explore_results { padding: 0 1.5rem; }
  .explore_list-wrapper,
  .explore_chips:not([hidden]) + .explore_list-wrapper,
  .explore_chips { margin-top: 1rem; }
}

/* Tablet: the open panel uses the width - controls and checkbox lists in two columns */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .explore_block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.125rem 2rem; align-items: start; }
  .explore_field + .explore_field,
  .explore_field + .explore_field.is-price { margin-top: 0; }
  .explore_group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}

/* Phone: 164px hero, title only */
@media screen and (max-width: 767px) {
  .section_explore-hero { min-height: 10.25rem; padding: 1.5rem 1rem; }
  .explore-hero_pattern { top: 1.625rem; height: 9.125rem; transform: translateX(calc(-50% + .6875rem)); } /* M2: the same bars at 46%, set lower */
  .explore-hero_heading.heading-style-display { font-size: 1.875rem; line-height: 1.1; }
  .explore-hero_text { display: none; }
}
