:root {
  --ink: #17212f;
  --muted: #667085;
  --soft: #eef2f6;
  --line: #d9e1ea;
  --paper: #ffffff;
  --wash: #f7f9fb;
  --brand: #116149;
  --brand-strong: #073f33;
  --accent: #e2553f;
  --blue: #2455a6;
  --amber: #b66a00;
  --green-soft: #e8f5ef;
  --red-soft: #fff0ec;
  --shadow: 0 18px 50px rgba(23, 33, 47, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overscroll-behavior-y: contain;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--wash);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body.drawer-open,
body.modal-open,
body.filters-open {
  overflow: hidden;
}

body.searching .compare-tray {
  display: none;
}

body.searching .hero {
  z-index: 40;
  overflow: visible;
}

body.has-compare-tray {
  padding-bottom: 112px;
}

button,
input,
select {
  font: inherit;
  max-width: 100%;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 225, 234, 0.85);
  backdrop-filter: blur(16px);
}

.site-header > *,
.workspace > *,
.workspace-head > *,
.head-primary-filters > *,
.filters > *,
.program-list > *,
.site-footer > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  white-space: nowrap;
}

.brand-mobile-en {
  display: none;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.top-nav a,
.nav-button,
.secondary-button,
.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.top-nav a {
  padding: 0 12px;
  color: var(--muted);
}

.top-nav a:hover,
.nav-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  color: var(--ink);
  background: var(--soft);
}

.nav-button {
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
}

.nav-button strong {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
}

.nav-button.primary {
  color: white;
  background: var(--brand);
}

.nav-button.primary:hover,
.primary-button:hover {
  background: var(--brand-strong);
  color: white;
}

.nav-button.primary strong {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

[data-lucide] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

main#top {
  scroll-margin-top: 68px;
}

.hero {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #182235;
}

.hero-media,
.hero-overlay,
.hero-campus-names {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
  overflow: hidden;
  filter: saturate(0.92) contrast(1.04);
}

.hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-campus-scroll 28s cubic-bezier(0.76, 0, 0.2, 1) infinite;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slide-hku {
  background-image: url("assets/hku-main-entrance-gate.jpg");
  background-position: center 42%;
}

.hero-slide-cuhk {
  background-image: url("assets/hero-cuhk.jpg");
  background-position: center 48%;
}

.hero-slide-hkust {
  background-image: url("assets/hero-hkust.jpg");
  background-position: center 46%;
}

.hero-slide-cityu {
  background-image: url("assets/hero-cityu.jpg");
  background-position: center 45%;
}

.hero-slide-polyu {
  background-image: url("assets/hero-polyu.jpg");
  background-position: center 44%;
}

.hero-slide-hkbu {
  background-image: url("assets/hero-hkbu.jpg");
  background-position: center 38%;
}

.hero-slide-eduhk {
  background-image: url("assets/hero-eduhk.jpg");
  background-position: center 45%;
}

.hero-slide-lingnan {
  background-image: url("assets/hero-lingnan.jpg");
  background-position: center 48%;
}

@keyframes hero-campus-scroll {
  0%,
  10.714% {
    transform: translateX(0);
  }

  12.5%,
  23.214% {
    transform: translateX(-100vw);
  }

  25%,
  35.714% {
    transform: translateX(-200vw);
  }

  37.5%,
  48.214% {
    transform: translateX(-300vw);
  }

  50%,
  60.714% {
    transform: translateX(-400vw);
  }

  62.5%,
  73.214% {
    transform: translateX(-500vw);
  }

  75%,
  85.714% {
    transform: translateX(-600vw);
  }

  87.5%,
  98.214% {
    transform: translateX(-700vw);
  }

  100% {
    transform: translateX(-800vw);
  }
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 17, 28, 0.92), rgba(7, 17, 28, 0.68) 50%, rgba(7, 17, 28, 0.3)),
    linear-gradient(0deg, rgba(7, 17, 28, 0.44), rgba(7, 17, 28, 0.1));
}

.hero-campus-names {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero-name-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-campus-scroll 28s cubic-bezier(0.76, 0, 0.2, 1) infinite;
  will-change: transform;
}

.hero-name-track > span {
  display: flex;
  flex: 0 0 100vw;
  justify-content: flex-end;
  align-items: flex-end;
  width: 100vw;
  height: 100%;
  padding: 0 max(24px, calc((100vw - 1180px) / 2)) 24px 24px;
}

.campus-name-card {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: min(25vw, 280px);
  max-width: calc(100vw - 48px);
  padding: 10px 0 11px;
  border: 0;
  border-radius: 0;
  color: white;
  background: transparent;
  text-align: right;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.62);
}

.campus-name-card strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.campus-name-card small {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 600;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  min-height: 320px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 32px 0;
}

.hero-copy {
  max-width: 780px;
}

.hero-brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  width: fit-content;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid #e5bd61;
  color: white;
}

.hero-brand-lockup strong {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 850;
}

.hero-brand-domain {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-brand-descriptor {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 650;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #c9d8d2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: white;
  font-size: 52px;
  line-height: 1.08;
  font-weight: 850;
}

.hero-tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-lede {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
}

.hero-lede strong,
.hero-lede span {
  display: block;
}

.hero-lede strong {
  color: white;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
}

.hero-lede span {
  max-width: 620px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.search-surface {
  position: relative;
  width: min(860px, 100%);
}

.search-combobox {
  position: relative;
}

.search-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
}

.search-box {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 12px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
}

.search-box input::placeholder {
  color: #8a97a6;
}

.search-suggestions {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 4px;
  max-height: min(420px, calc(100vh - 160px));
  max-height: min(420px, calc(100dvh - 160px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 8px;
  border: 1px solid rgba(217, 225, 234, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(17, 28, 45, 0.24);
}

.suggestion-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.suggestion-button:hover,
.suggestion-button:focus-visible,
.suggestion-button.is-active {
  background: var(--soft);
}

.suggestion-button.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.suggestion-button strong,
.suggestion-button small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-button small,
.suggestion-kind {
  color: var(--muted);
  font-size: 12px;
}

.suggestion-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--soft);
  font-weight: 750;
  white-space: nowrap;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-searches button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.quick-searches button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.workspace {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 64px;
  scroll-margin-top: 78px;
}

.workspace-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
}

.workspace-head h2,
.compare-modal h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.workspace .section-kicker,
.compare-modal .section-kicker {
  color: var(--brand);
}

.workspace-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 112px;
  width: 100%;
}

.workspace-heading-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.workspace-heading .section-kicker {
  margin: 0;
}

.workspace-updated {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.head-primary-filters {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 720px);
}

.head-primary-filters label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding-left: 9px;
}

.head-primary-filters label select,
.head-primary-filters #languageFilter,
.head-primary-filters #backgroundFilter {
  width: 100%;
  min-width: 0;
}

.head-primary-filters select {
  min-height: 36px;
}

.head-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters .mobile-sort-control,
.storage-note-compact {
  display: none;
}

select,
.filters input[type="search"] {
  min-height: 42px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
}

select:focus,
input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(36, 85, 166, 0.24);
  outline-offset: 2px;
}

.secondary-button,
.primary-button,
.ghost-button {
  padding: 0 14px;
}

.secondary-button {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  font-weight: 750;
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.icon-button {
  width: 40px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.icon-button:hover {
  background: var(--soft);
  color: var(--ink);
}

.app-grid {
  display: grid;
  gap: 16px;
}

.filters {
  position: sticky;
  top: 78px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(23, 33, 47, 0.08);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.filters-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 4px;
  color: var(--brand);
}

.filters-extra-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex: 0 0 auto;
}

.filters-extra-toggle:hover {
  background: var(--green-soft);
}

.filters-extra-toggle [data-lucide] {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.filters-extra-toggle[aria-expanded="true"] [data-lucide] {
  transform: rotate(180deg);
}

.filters-extra {
  display: contents;
}

.filters-extra[hidden] {
  display: contents !important;
}

.filters-extra-toggle[hidden] {
  display: none !important;
}

.filters label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.filters label select {
  min-height: 36px;
  width: 110px;
  padding: 0 9px;
  font-size: 13px;
}

#languageFilter {
  width: 130px;
}

#backgroundFilter {
  width: 145px;
}

.check-row {
  grid-template-columns: 18px max-content;
  align-items: center;
  align-self: end;
  flex: 0 0 auto !important;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink) !important;
  font-weight: 650 !important;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.filters .ghost-button {
  min-height: 36px;
  padding: 0 8px;
}

#resetFilters {
  flex: 0 0 36px;
  width: 36px;
  padding: 0;
  white-space: nowrap;
}

#resetFilters span {
  display: none;
}

.results {
  min-width: 0;
}

.results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

.results-summary p {
  margin: 0;
}

.storage-note {
  text-align: right;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 14px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #cfe0d9;
  border-radius: 999px;
  color: var(--brand);
  background: #eef8f3;
  font-size: 13px;
  font-weight: 750;
}

.filter-chip button {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: inherit;
  background: rgba(17, 97, 73, 0.08);
}

.filter-chip button:hover {
  background: rgba(17, 97, 73, 0.16);
}

.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 14px;
}

.program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.program-card:hover {
  border-color: rgba(17, 97, 73, 0.38);
  box-shadow: 0 14px 30px rgba(23, 33, 47, 0.08);
  transform: translateY(-1px);
}

.card-top,
.card-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-top {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}

.school-code {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eaf0fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.status-pill,
.tag,
.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status-open {
  color: var(--brand);
  background: var(--green-soft);
}

.status-closing {
  color: var(--amber);
  background: #fff4df;
}

.status-closed {
  color: #a23a2b;
  background: var(--red-soft);
}

.tag {
  color: #435266;
  background: var(--soft);
}

.intake-tag {
  font-weight: 800;
}

.intake-fall {
  color: #8a5a05;
  background: #fff3d7;
}

.intake-spring {
  color: #185b85;
  background: #e8f4fb;
}

.intake-both {
  color: #6b4f0b;
  background: #f7edc9;
}

.intake-other {
  color: #596678;
  background: #eef1f4;
}

.card-official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  color: white;
  background: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.card-official-link:hover {
  border-color: #084c3b;
  color: white;
  background: #084c3b;
}

.card-official-link [data-lucide] {
  width: 12px;
  height: 12px;
}

.source-pill {
  color: var(--brand);
  background: #edf8f1;
}

.program-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.28;
  height: 2.56em;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.program-title button {
  display: -webkit-box;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.program-title button:hover {
  color: var(--brand);
}

.program-en {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  min-height: 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.compact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
}

.meta-item {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  padding: 7px 8px;
  border: 1px solid #edf1f4;
  border-radius: 6px;
  background: #f8faf9;
}

.meta-label {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: #69778a;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-item strong {
  min-width: 0;
  color: #1d2938;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-label [data-lucide] {
  width: 14px;
  height: 14px;
  color: var(--brand);
  stroke-width: 2;
}

.card-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  margin-top: 0;
}

.card-actions button,
.card-actions a {
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.card-actions [data-lucide] {
  width: 13px;
  height: 13px;
}

.card-actions button:hover,
.card-actions a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.card-actions .is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.card-actions .is-favorite {
  border-color: #e8b5ac;
  background: #fff4f1;
  color: var(--accent);
}

.secondary-button.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.secondary-button.is-favorite {
  border-color: #e8b5ac;
  background: #fff4f1;
  color: var(--accent);
}

.empty-state {
  display: grid;
  place-items: center;
  padding: 70px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: white;
  text-align: center;
}

.empty-state [data-lucide] {
  width: 42px;
  height: 42px;
  color: var(--muted);
}

.empty-state h3 {
  margin: 14px 0 4px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.load-more {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 22px 0 6px;
  color: var(--muted);
  text-align: center;
}

.load-more p {
  margin: 0;
  font-size: 13px;
}

.compare-tray {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 225, 234, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.compare-tray p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.compare-tray > div:first-child {
  min-width: 0;
  flex: 1 1 280px;
}

.tray-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(11, 18, 28, 0.48);
}

.detail-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  padding: 26px;
  overflow-y: auto;
  overflow-x: hidden;
  background: white;
  box-shadow: -24px 0 70px rgba(11, 18, 28, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
  transform-origin: right center;
  transition:
    transform 0.2s ease,
    opacity 0.16s ease,
    visibility 0s linear 0.2s;
}

.detail-drawer.is-open {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

#drawerContent,
.drawer-actions > *,
.detail-list > div {
  min-width: 0;
}

.drawer-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  background: white;
  z-index: 2;
}

.drawer-school {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.drawer-title {
  margin: 8px 0 6px;
  font-size: 28px;
  line-height: 1.22;
}

.drawer-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.detail-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.detail-section p,
.detail-section li {
  color: #3a495b;
}

.detail-section p {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-official-button {
  margin-bottom: 10px;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.detail-list div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-list dd {
  margin: 4px 0 0;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.source-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfcfe;
}

.source-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 800;
}

.source-details h4 {
  margin: 14px 0 6px;
  font-size: 13px;
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 24px;
}

.compare-modal {
  width: min(1120px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

#compareContent {
  overflow: auto;
}

.compare-empty {
  padding: 64px 24px;
  text-align: center;
}

.compare-empty p {
  color: var(--muted);
}

.compare-table {
  min-width: 820px;
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 140px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compare-table thead th {
  background: white;
}

.compare-table .compare-name {
  min-width: 210px;
}

.compare-table .best {
  background: #edf8f1;
}

.compare-table .warn {
  background: #fff6ed;
}

.compare-card {
  display: none;
}

.remove-compare {
  margin-top: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
}

.remove-compare:hover {
  color: var(--accent);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: var(--radius);
  color: white;
  background: #17212f;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.compare-tray:not([hidden]) ~ .toast {
  bottom: 110px;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 34;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(217, 225, 234, 0.96);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 28px rgba(23, 33, 47, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  color: white;
  background: var(--brand);
  transform: translateY(-2px);
}

.back-to-top [data-lucide] {
  width: 19px;
  height: 19px;
}

body.has-compare-tray .back-to-top {
  bottom: 110px;
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: white;
  font-size: 13px;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer a {
  color: var(--brand);
  font-weight: 700;
}

.image-credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 10px;
  max-width: 620px;
  text-align: right;
}

.image-credits a {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .site-header {
    padding: 10px 18px;
  }

  .top-nav a {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 320px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .workspace-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .head-primary-filters {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .head-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .filters {
    position: static;
    top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .filters > * {
    width: 100%;
  }

  .filters label {
    display: grid;
    align-items: initial;
    gap: 4px;
    white-space: normal;
  }

  .filters label select,
  #languageFilter,
  #backgroundFilter {
    width: 100%;
  }

  .filters-extra-toggle {
    display: inline-flex;
  }

  .filters-extra[hidden] {
    display: none !important;
  }

  .filters-extra:not([hidden]) {
    display: contents;
  }

  #resetFilters {
    width: 100%;
    flex: none;
  }

  #resetFilters span {
    display: inline;
  }

  .compare-tray {
    flex-wrap: wrap;
  }

  .tray-actions {
    margin-left: auto;
  }

  .site-footer {
    display: grid;
  }

  .image-credits {
    justify-content: flex-start;
    max-width: none;
    text-align: left;
  }

  .program-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .modal-backdrop {
    padding: 14px;
  }

  .compare-modal {
    max-height: calc(100dvh - 28px);
  }

  .compare-table {
    min-width: 0;
    display: block;
    font-size: 13px;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .compare-card-list {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .compare-card {
    display: block;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    overflow: hidden;
  }

  .compare-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
  }

  .compare-card-head strong,
  .compare-card-head small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .compare-card-head .school-code {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
  }

  .compare-card-head strong {
    color: var(--ink);
    font-size: 14px;
  }

  .compare-card-head small {
    grid-column: 1 / -1;
    grid-row: 2;
    color: var(--muted);
    font-size: 11px;
  }

  .compare-card-head .remove-compare {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
  }

  .compare-card-fields {
    margin: 0;
    padding: 0;
  }

  .compare-card-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
  }

  .compare-card-field:last-child {
    border-bottom: 0;
  }

  .compare-card-field dt {
    flex: 0 0 auto;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }

  .compare-card-field dd {
    min-width: 0;
    max-width: 68%;
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    text-align: right;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 72px;
  }

  body.has-compare-tray {
    padding-bottom: 240px;
  }

  main#top {
    scroll-margin-top: 62px;
  }

  .site-header {
    min-height: 62px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
  }

  .brand small {
    display: none;
  }

  .brand-mobile-en {
    display: inline;
    margin-left: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.02em;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .top-nav {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .top-nav .nav-button {
    min-height: 46px;
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    width: 42px;
    height: 42px;
  }

  body.has-compare-tray .back-to-top {
    bottom: calc(238px + env(safe-area-inset-bottom));
  }

  .hero,
  .hero-inner {
    min-height: 240px;
  }

  .hero-inner,
  .workspace {
    width: min(100% - 28px, 1180px);
  }

  .hero-inner {
    align-content: start;
    gap: 42px;
    padding: 14px 0 5px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-brand-lockup {
    gap: 3px 9px;
    margin-bottom: 10px;
    padding-left: 9px;
  }

  .hero-brand-lockup strong {
    font-size: 21px;
  }

  .hero-brand-domain {
    font-size: 11px;
  }

  .hero-brand-descriptor {
    font-size: 11px;
  }

  .hero-name-track > span {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 132px 14px 0;
  }

  .campus-name-card {
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 28px);
    gap: 1px;
    padding: 1px 0 2px;
  }

  .campus-name-card strong {
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.08;
  }

  .campus-name-card small {
    font-size: 7px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-lede strong {
    font-size: 18px;
  }

  .search-box {
    grid-template-columns: 22px minmax(0, 1fr) 38px;
    min-height: 58px;
    padding-left: 14px;
  }

  .search-box input {
    font-size: 16px;
  }

  .workspace {
    margin-top: 32px;
    scroll-margin-top: 70px;
  }

  .workspace-head {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 2px;
  }

  .head-primary-filters {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 6px;
    width: 100%;
  }

  .head-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .head-primary-filters label {
    gap: 3px;
    padding-left: 0;
    font-size: 10px;
  }

  .head-primary-filters select {
    min-height: 42px;
    padding: 0 18px 0 5px;
    font-size: 11px;
  }

  .head-actions {
    align-items: stretch;
  }

  .head-actions:empty {
    display: none;
  }

  .head-actions select {
    flex: 1 1 0;
    min-width: 0;
  }

  .filters {
    position: static;
    top: auto;
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
    margin: 2px 0 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .filters:has(.filters-extra[hidden]) {
    display: none;
  }

  .filters > * {
    width: 100%;
  }

  .filters-head {
    display: none;
  }

  .filters label {
    display: grid;
    align-items: initial;
    gap: 4px;
    flex: none;
    font-size: 11px;
    white-space: normal;
  }

  .filters label select,
  #languageFilter,
  #backgroundFilter {
    width: 100%;
  }

  .filters-extra {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    box-shadow: 0 4px 14px rgba(23, 33, 47, 0.05);
  }

  .filters-extra[hidden] {
    display: none !important;
  }

  .filters-extra-toggle {
    grid-column: 4;
    grid-row: auto;
    align-self: end;
    margin-top: 0;
    min-height: 42px;
    gap: 3px;
    padding: 0 7px;
    font-size: 11px;
    white-space: nowrap;
  }

  .filters-extra-toggle [data-lucide] {
    width: 14px;
    height: 14px;
  }

  .check-row,
  .filters .ghost-button {
    grid-column: auto;
  }

  #resetFilters {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    flex: none;
  }

  #resetFilters span {
    display: inline;
  }

  .filters select,
  .filters .ghost-button,
  .check-row {
    min-height: 38px;
  }

  .filters-extra-toggle {
    display: inline-flex;
    align-self: end;
    margin-top: 0;
  }

  .check-row {
    grid-column: auto !important;
    grid-row: auto;
    grid-template-columns: 14px max-content !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 34px !important;
    padding: 0 6px;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .check-row input {
    width: 14px;
    height: 14px;
  }

  .filters-extra[hidden] {
    display: none !important;
  }

  .filters-extra:not([hidden]) {
    display: grid;
  }

  .filters .mobile-sort-control {
    display: grid;
  }

  .results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }

  .results-summary p {
    min-width: 0;
    white-space: nowrap;
  }

  #resultSummary {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .storage-note {
    flex: 0 0 auto;
    text-align: right;
    font-size: 11px;
  }

  .storage-note-full {
    display: none;
  }

  .storage-note-compact {
    display: inline;
  }

  .quick-searches {
    display: none;
  }

  .program-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .program-card {
    aspect-ratio: auto;
    min-height: 232px;
    padding: 8px;
  }

  .card-badges {
    gap: 4px;
  }

  .program-title {
    font-size: 13px;
  }

  .program-en {
    display: -webkit-box;
    min-height: 22px;
    margin: 3px 0 5px;
    font-size: 9px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .school-code,
  .status-pill,
  .tag {
    min-height: 20px;
    padding: 0 6px;
    font-size: 10px;
  }

  .card-top,
  .pill-row {
    gap: 5px;
    margin-bottom: 6px;
  }

  .pill-row > .tag:not(.intake-tag) {
    display: none;
  }

  .card-official-link {
    min-height: 20px;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 9px;
    gap: 3px;
  }

  .card-official-link [data-lucide] {
    width: 10px;
    height: 10px;
  }

  .compact-meta {
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
  }

  .meta-item {
    min-height: 43px;
    padding: 4px 5px;
    gap: 2px;
  }

  .meta-label {
    gap: 3px;
    font-size: 9px;
  }

  .meta-item strong {
    font-size: 11px;
  }

  .meta-label [data-lucide] {
    width: 10px;
    height: 10px;
  }

  .card-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
  }

  .card-actions button,
  .card-actions a {
    min-height: 24px;
    padding: 0 4px;
    font-size: 10px;
    gap: 3px;
  }

  .card-actions [data-lucide] {
    width: 11px;
    height: 11px;
  }

  .compare-tray {
    bottom: 78px;
    align-items: stretch;
    flex-direction: column;
  }

  .compare-tray > div:first-child {
    flex: 0 1 auto;
  }

  .tray-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .compare-tray:not([hidden]) ~ .toast {
    bottom: 230px;
  }

  .detail-drawer {
    padding: 18px;
  }

  .drawer-title {
    font-size: 24px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .compare-modal {
    max-height: calc(100dvh - 20px);
  }

  .modal-head {
    padding: 16px;
  }

  .compare-table {
    min-width: 0;
    display: block;
    font-size: 13px;
  }

  .compare-table thead {
    display: none;
  }

  .compare-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .compare-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    overflow: hidden;
  }

  .compare-card-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
  }

  .compare-card-head .school-code {
    color: var(--brand);
    font-weight: 700;
    font-size: 12px;
  }

  .compare-card-head strong {
    font-size: 14px;
    color: var(--ink);
  }

  .compare-card-head small {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11px;
  }

  .compare-card-head .remove-compare {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
  }

  .compare-card-head .remove-compare:hover {
    background: var(--red-soft);
    color: #b3261e;
  }

  .compare-card-fields {
    margin: 0;
    padding: 0;
  }

  .compare-card-field {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
  }

  .compare-card-field:last-child {
    border-bottom: 0;
  }

  .compare-card-field dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    margin: 0;
  }

  .compare-card-field dd {
    margin: 0;
    font-size: 13px;
    color: var(--ink);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
  }

  .site-footer {
    display: grid;
    padding: 22px 18px 96px;
  }

  .image-credits {
    justify-content: flex-start;
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 31px;
  }

  .top-nav .nav-button span {
    display: inline;
  }

  .quick-searches button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 28px;
  }

  .workspace-heading {
    gap: 8px;
  }

  .workspace-heading-title {
    gap: 6px;
  }

  .workspace-head h2 {
    font-size: 24px;
  }

  .workspace-heading .section-kicker,
  .workspace-updated {
    font-size: 10px;
  }

  .program-list {
    grid-template-columns: 1fr;
  }

  .program-card {
    min-height: 250px;
    padding: 12px;
  }

  .program-title {
    font-size: 15px;
  }

  .drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .drawer-actions .primary-button {
    grid-column: 1 / -1;
  }
}
