.eju-track-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 11px 0;
}

.eju-track-control label { margin: 0; }
.eju-track-control input { position: absolute; opacity: 0; pointer-events: none; }

.eju-track-control span {
  display: grid;
  place-items: center;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #42516b;
  font-weight: 700;
  cursor: pointer;
}

.eju-track-control input:checked + span {
  border-color: var(--blue);
  background: var(--sky);
  color: var(--blue);
}

.eju-score-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 12px 0;
}

.eju-score-panel label { min-width: 0; margin: 0; }
.eju-score-panel label:first-child { grid-column: 1 / -1; }
.eju-score-panel span { display: block; margin-bottom: 5px; color: #52617b; font-size: 12px; font-weight: 700; }
.eju-score-panel input { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 5px; outline-color: var(--blue); }
.eju-sample-note { display: block; margin: 4px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.eju-sample-note + .eju-sample-note { margin-top: 0; }
.eju-match { color: var(--green) !important; font-weight: 700; }

.filters > .eju-track-filter,
.filters > .sgu-filter,
.filters > .english-filter {
  margin-top: 0;
}


.filters > .filter-title {
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.filters > fieldset:not(:first-of-type),
.filters > .select-field {
  padding-top: 14px;
}

.filters > .filter-title b {
  color: var(--ink);
  font-size: 16px;
}

.filters > .filter-title button {
  padding: 6px 12px;
  border: 1px solid #8db5ea;
  border-radius: 6px;
  background: var(--sky);
  color: #174f9e;
  font-weight: 700;
}

.filters > .filter-title button:hover,
.filters > .filter-title button:focus-visible {
  border-color: var(--blue);
  outline: 0;
  background: #dcecff;
}

.filters > fieldset:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.filters > fieldset:first-of-type legend {
  margin-bottom: 14px;
}

.filters > fieldset:first-of-type label:first-of-type {
  margin-top: 0;
}

.faculty-cell {
  background: #f8fbff;
  color: var(--ink);
  font-weight: 700;
  vertical-align: top;
}

.hero {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 76px;
}

.hero::before {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 43%;
  background-image: linear-gradient(to bottom, transparent 68%, #dfeeff 100%), url("assets/tokyo-spring-hero.webp?v=20260810-5");
  background-position: center, 56% center;
  background-size: cover;
  content: "";
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 35%) 18%, #000 43%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero,
.hero-grid {
  min-height: 500px;
}

.hero::before {
  inset-inline-start: 40%;
  background-image: linear-gradient(to bottom, transparent 76%, #e8f2ff 100%), url("assets/tokyo-spring-hero.webp?v=20260810-5");
  filter: saturate(1.08) contrast(1.03);
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 52%) 18%, #000 40%);
}

.hero h1 {
  font-size: 50px;
  white-space: nowrap;
}

.hero-copy {
  max-width: none;
  margin-block: 20px;
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

.hero-search,
.stats {
  max-width: 560px;
}

.stats {
  margin-top: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgb(31 78 150 / 8%);
}

.filters {
  border-color: #d7e2f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgb(32 69 119 / 7%);
}

.selection-filter { border-top: 1px solid var(--line); }

@media (max-width: 840px) {
  .hero::before { display: none; }
  .hero,
  .hero-grid { min-height: 520px; }
  .hero-grid { padding-top: 42px; padding-bottom: 36px; }
  .hero h1 { font-size: 38px; }
  .hero-copy { margin-block: 16px; font-size: 13px; line-height: 1.6; white-space: normal; }
  .stats { margin-top: 20px; }
  .filters > .select-field,
  .filters > .eju-track-filter,
  .filters > .sgu-filter,
  .filters > .english-filter { grid-column: 1 / -1; }
  .filters > .select-field { padding-right: 0; }
}
