/* Search (/start), modeled on Jobspank's setup: one question per screen, then a short list of colleges.
   Builds on landing.css (nav, buttons, footer) and style.css (tokens, prices). */
.st-main { min-height: 70vh; padding: 32px 0 72px; }
.st-main .lp-wrap { max-width: 720px; }
.start [hidden] { display: none !important; }
.st-bar { height: 6px; border-radius: 999px; background: #eef0f6; overflow: hidden; }
.st-bar span { display: block; height: 100%; width: 33%; background: var(--red); border-radius: 999px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.st-count { margin: 12px 0 24px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.st-q { margin: 0 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); }
.st-q:focus { outline: none; }
.st-hint { margin: 0 0 28px; font-size: 18px; color: var(--ink-soft); }
.st-screen { animation: st-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes st-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-screen { animation: none; } .st-bar span { transition: none; } }

/* Answer cards: a radio button inside each, like Jobspank's setup. */
.st-choices { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.st-two { grid-template-columns: 1fr 1fr; }
.st-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Subject step: each group of choices sits under a small subheader. */
.st-subjects + .st-subjects { margin-top: 28px; }
.st-sub { padding: 0; margin: 0 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.st-choice { position: relative; display: block; cursor: pointer; }
.st-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.st-choice-body {
  position: relative; display: grid; gap: 2px; height: 100%;
  padding: 14px 16px 14px 46px; background: #fff;
  border: 1.5px solid #cfd3de; border-radius: 12px; transition: border-color .15s, background-color .15s;
}
.st-choice-body::before {
  content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9aa0b0; background: #fff; box-sizing: border-box;
}
.st-choice-body strong { font-size: 17px; line-height: 1.3; color: var(--navy); }
.st-choice-body > span { font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.st-choice:hover .st-choice-body { border-color: var(--navy); }
.st-choice input:checked + .st-choice-body { border-color: var(--red); background: #fdeef0; }
.st-choice input:checked + .st-choice-body::before { border: 5px solid var(--red); }
.st-choice input:focus-visible + .st-choice-body { outline: 3px dashed var(--red); outline-offset: 2px; }
.st-choice.off { cursor: default; opacity: .5; }
.st-choice.off .st-choice-body { border-color: #e3e5ec; }
.st-n { display: block; margin-top: 4px; font-style: normal; font-weight: 700; color: var(--navy); }
.st-guess { display: block; margin-top: 2px; font-style: normal; font-weight: 700; color: var(--red); }

.st-input {
  display: block; width: 100%; margin: 0 0 16px; font: inherit; font-size: 18px; padding: 13px 16px;
  border: 1.5px solid #cfd3de; border-radius: 12px; background: #fff; color: var(--ink);
}
.st-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px #e3e7f3; }
.st-link { font: inherit; font-weight: 700; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-link:hover { color: var(--red); }
.st-link:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }

/* Back, Continue and errors. */
.st-error { margin: 14px 0 0; color: var(--red); font-weight: 600; }
.st-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.st-spacer { flex: 1; }
.st-actions .lp-btn-ghost { padding: 13px 20px; }

/* Results: the answers as the explorer's sentence, each blank a button back to its question. */
.st-sentence { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; line-height: 1.5; color: var(--navy); }
.st-sentence .nw { white-space: nowrap; }
.st-edit {
  font: inherit; color: var(--ink); background: none; padding: 0; cursor: pointer;
  border: 0; border-bottom: 3px solid var(--red);
}
.st-edit:hover { color: var(--red); }
.st-edit:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
.st-loading { animation: st-pulse 1.2s ease-in-out infinite alternate; }
@keyframes st-pulse { from { opacity: .45; } to { opacity: 1; } }

.st-group { margin: 32px 0 12px; font-size: 20px; color: var(--navy); }
.st-matched { margin-top: 24px; padding: 20px; border: 2px solid var(--navy); border-radius: 16px; }
.st-matched > .st-group:first-child { margin-top: 0; }
.st-matched .st-group { margin-top: 24px; }
.st-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.st-card {
  display: grid; gap: 4px; padding: 18px 20px; border: 1.5px solid #e3e5ec; border-radius: 12px;
  background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s;
}
.st-card:hover { border-color: var(--navy); color: var(--ink); }
/* A stripe on each card's left edge: blue in-state, red out of state. */
.st-card.st-in { box-shadow: inset 5px 0 0 #2b4fbf; }
.st-card.st-out { box-shadow: inset 5px 0 0 #c8102e; }

.st-card:focus-visible { outline: 3px dashed var(--red); outline-offset: 3px; }
.st-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.st-card-head b { font-size: 20px; color: var(--navy); }
.st-deal { font-size: 13px; font-weight: 700; color: var(--red); border: 1.5px solid currentColor; border-radius: 999px; padding: 0 8px; line-height: 1.6; }
.st-where { font-size: 14px; color: var(--ink-soft); }
.st-price { font-size: 18px; margin-top: 4px; }
.st-price .unverified { white-space: normal; }
.st-price .muted { font-size: 15px; color: var(--ink-soft); }
.st-alt { display: block; font-size: 15px; color: var(--ink-soft); }
.st-alt .price { font-size: 15px; }
.st-progs { font-size: 15px; color: var(--ink-soft); }
/* Results filters: price and dorms, in one row above the colleges. */
.st-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.st-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 700;
  color: var(--navy); background: #eef0f6; border: 0; border-radius: 999px; cursor: pointer;
}
.st-pill:hover { background: #dfe3ee; }
.st-pill.on, .st-pill.on:hover { background: var(--navy); color: #fff; }
/* The price pill is a real select (so phones show their own list) dressed as a pill, with its own chevron. */
.st-pill-select { position: relative; padding: 0; }
.st-pill-select select {
  appearance: none; -webkit-appearance: none; field-sizing: content; height: 100%; padding: 0 36px 0 16px;
  font: inherit; color: inherit; background: transparent; border: 0; border-radius: 999px; cursor: pointer;
}
.st-pill-select svg { position: absolute; right: 15px; top: 50%; margin-top: -6px; pointer-events: none; }
.st-pill-select option { color: var(--ink); background: #fff; }
.st-pill-select select:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.st-pill:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.st-more { margin-top: 12px; font: inherit; font-weight: 700; color: var(--navy); background: #eef0f6; border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.st-more:hover { background: var(--navy); color: #fff; }
.st-next { margin-top: 40px; padding-top: 28px; border-top: 1px solid #e3e5ec; }
.st-next p { margin: 10px 0 0; color: var(--ink-soft); }

@media (max-width: 600px) {
  .st-filters { gap: 6px; }
  .st-pill { padding: 0 11px; font-size: 14px; }
  .st-pill-select { padding: 0; }
  .st-pill-select select { padding: 0 27px 0 11px; }
  .st-pill-select svg { right: 10px; }
  .st-matched { padding: 14px 12px; border-radius: 14px; }
  .st-main { padding-top: 20px; }
  .st-two { grid-template-columns: 1fr; }
  .st-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-three .st-choice-body { padding: 12px 12px 12px 40px; }
  .st-three .st-choice-body::before { left: 12px; }
  .st-three .st-choice-body strong { font-size: 16px; }
  .st-hint { font-size: 17px; }
}
@media (max-width: 380px) {
  .st-two { grid-template-columns: 1fr; }
}
.st-sugg { margin: -8px 0 16px; border: 1.5px solid #cfd3de; border-radius: 12px; background: #fff; overflow: hidden; }
.st-sugg-item {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%;
  padding: 11px 16px; border: 0; border-top: 1px solid #eceef3; background: none; font: inherit; color: var(--navy); text-align: left; cursor: pointer;
}
.st-sugg-item:first-child { border-top: 0; }
.st-sugg-item:hover, .st-sugg-item:focus-visible { background: #f2f4f9; outline: none; }
.st-sugg-name { font-weight: 700; }
.st-sugg-kind { flex: none; font-size: 14px; color: #5b6275; }
/* Desktop: the results page widens to the header's width, so their edges line up, and shows two college cards per row. */
.st-cards > li { display: flex; }
.st-cards .st-card { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr); align-content: start; }
@media (min-width: 900px) {
  .st-wide .st-main .lp-wrap { max-width: 1240px; }
  .st-wide .st-sentence, .st-wide .st-hint { max-width: 720px; }
  .st-wide .st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Saved colleges: a bookmark button in each card's top right corner, filled red once saved. */
.st-cards > li { position: relative; }
.st-card-head { padding-right: 36px; }
.st-save {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer;
}
.st-save:hover { background: #eef0f6; }
.st-save.on { color: var(--red); }
.st-save.on svg { fill: currentColor; }
.st-save:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; }
.st-pill svg { flex: none; }
