/* Homepage + career quiz (mirror/home.py). Uses the theme tokens from theme.css; everything is prefixed hm-. */
.hm { --hm-shadow: 0 1px 2px rgba(14,31,58,.04), 0 10px 30px -18px rgba(26,102,209,.28); --hm-r: 18px; overflow-x: clip; }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm svg { width: 20px; height: 20px; flex: none; }
.hm h1, .hm h2, .hm h3 { font-family: var(--font-display, inherit); color: var(--color-text); }
.hm-h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em; margin: 18px 0 0; }
.hm-h1 span, .hm-h2 span { color: var(--color-accent); }
.hm-h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0; }
.hm-h3 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 0; }
.hm-lede { color: var(--color-muted); font-size: 17px; line-height: 1.6; margin-top: 14px; max-width: 34em; }
.hm-link { color: var(--color-accent); font-weight: 700; }
.hm-link:hover { text-decoration: underline; }
.hm-crumbs { font-size: 12px; color: var(--color-muted); margin-bottom: 14px; }
.hm-crumbs a:hover { color: var(--color-accent); }

/* buttons */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 15px; transition: background .2s, border-color .2s, color .2s, transform .2s; cursor: pointer; border: 1.5px solid transparent; }
.hm-btn svg { width: 16px; height: 16px; }
.hm-btn-solid { background: var(--color-accent); color: var(--color-on-accent); }
.hm-btn-solid:hover { background: var(--color-accent-hover); }
.hm-btn-line { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-surface); }
.hm-btn-line:hover { background: var(--color-accent-soft); }
.hm-btn-ghost { color: var(--color-text); padding: 0 10px; }
.hm-btn-ghost:hover { color: var(--color-accent); }
.hm-btn-white { background: #fff; color: var(--color-accent); flex: none; }
.hm-btn-white:hover { transform: translateY(-1px); }
.hm-btn-wide { width: 100%; }
.hm-btn:disabled { opacity: .6; cursor: wait; }

/* 1. hero: soft blue wash with a dotted texture, search card in front */
.hm-hero { position: relative; padding: 40px 0 28px; border-bottom: 1px solid var(--color-line);
  background:
    radial-gradient(circle at 1px 1px, rgba(26,102,209,.13) 1px, transparent 0) 0 0/22px 22px,
    radial-gradient(900px 420px at 85% -10%, rgba(26,102,209,.16), transparent 70%),
    linear-gradient(180deg, #eef4fd 0%, var(--color-page) 100%); }
.hm-hero-grid { display: grid; gap: 32px; align-items: center; }
.hm-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-line-strong); font-size: 13px; font-weight: 700; color: var(--color-text); }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-good); box-shadow: 0 0 0 4px var(--color-good-soft); }
.hm-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hm-search, .hm-form { position: relative; background: var(--color-surface); border: 1px solid var(--color-line); border-top: 4px solid var(--color-accent); border-radius: var(--hm-r); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 2px 4px rgba(14,31,58,.04), 0 28px 60px -30px rgba(26,102,209,.45); }
.hm-search-title, .hm-form-title { font-family: var(--font-display, inherit); font-size: 20px; font-weight: 800; color: var(--color-text); }
.hm-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--color-surface-2); }
.hm-tabs button { min-height: 40px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--color-muted); }
.hm-tabs button[aria-selected="true"] { background: var(--color-surface); color: var(--color-accent); box-shadow: 0 1px 3px rgba(14,31,58,.12); }
.hm-field { display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.hm-field > span:not(.hm-input-icon):not(.sr-only) { font-size: 13px; font-weight: 700; color: var(--color-text); }
.hm-field input, .hm-field select { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--color-line-strong); background: var(--color-surface); color: var(--color-text); padding: 0 14px; font-size: 16px; }
.hm-field input:focus, .hm-field select:focus { outline: 2px solid var(--color-accent-soft); border-color: var(--color-accent); }
.hm-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--color-muted); display: flex; }
.hm-input-icon + input { padding-left: 44px; }
.hm-field[hidden] { display: none; }
.hm-sugg { margin: -6px 0 0; padding: 4px; list-style: none; border: 1px solid var(--color-line); border-radius: 12px; max-height: 260px; overflow-y: auto; background: var(--color-surface); }
.hm-sugg a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.hm-sugg a:hover { background: var(--color-surface-2); color: var(--color-accent); }
.hm-sugg small { display: block; font-weight: 500; color: var(--color-muted); font-size: 12px; }
.hm-search-alt { display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; font-weight: 700; color: var(--color-accent); }
.hm-search-alt svg { width: 14px; height: 14px; }
.hm-stats { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--color-line); border-radius: 14px; background: color-mix(in srgb, var(--color-surface) 85%, transparent); }
.hm-stats li { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; flex-wrap: wrap; }
.hm-stats li:nth-child(odd) { border-right: 1px solid var(--color-line); }
.hm-stats li:nth-child(-n+2) { border-bottom: 1px solid var(--color-line); }
.hm-stats b { font-family: var(--font-display, inherit); font-size: 22px; font-weight: 800; color: var(--color-accent); }
.hm-stats span { font-size: 13px; color: var(--color-muted); font-weight: 600; }

/* 2. logos */
.hm-logos { padding: 26px 0; background: var(--color-surface); border-bottom: 1px solid var(--color-line); }
.hm-logos-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--color-muted); }
.hm-logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.hm-logo { display: flex; align-items: center; justify-content: center; height: 64px; width: 92px; padding: 8px; border-radius: 12px; border: 1px solid var(--color-line); background: #fff; transition: border-color .2s, transform .2s; }
.hm-logo:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.hm-logo img { max-height: 46px; max-width: 100%; object-fit: contain; }
.hm-logo-more { font-weight: 800; font-size: 14px; color: var(--color-accent); background: var(--color-accent-soft); border-color: transparent; }

/* sections */
.hm-sec { padding: 56px 0; }
.hm-sec-tint { background: linear-gradient(180deg, var(--color-surface-2) 0%, var(--color-page) 100%); }
.hm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.hm-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--color-accent); }
.hm-more svg { width: 16px; height: 16px; }
.hm-grid2, .hm-grid3 { display: grid; gap: 16px; }
.hm-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--color-accent-soft); color: var(--color-accent); }
.hm-ico svg { width: 22px; height: 22px; }

/* 3. steps: a numbered track */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.hm-step { position: relative; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--hm-r); padding: 22px; box-shadow: var(--hm-shadow); }
.hm-step-n { position: absolute; top: 18px; right: 20px; font-family: var(--font-display, inherit); font-size: 34px; font-weight: 800; color: var(--color-line-strong); line-height: 1; }
.hm-step h3 { font-size: 18px; font-weight: 800; margin-top: 14px; }
.hm-step p { color: var(--color-muted); font-size: 14px; line-height: 1.55; margin-top: 6px; }

/* 4/5/9. horizontal tiles */
.hm-tile, .hm-course, .hm-article { display: flex; align-items: center; gap: 14px; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--hm-r); padding: 16px 18px; box-shadow: var(--hm-shadow); transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
.hm-tile:hover, .hm-course:hover, .hm-article:hover, .hm-college:hover { border-color: color-mix(in srgb, var(--color-accent) 50%, transparent); transform: translateY(-2px); box-shadow: 0 2px 4px rgba(14,31,58,.05), 0 18px 36px -20px rgba(26,102,209,.4); }
.hm-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hm-tile-body b { font-size: 16px; font-weight: 800; color: var(--color-text); line-height: 1.3; }
.hm-tile-body > span { font-size: 14px; color: var(--color-muted); line-height: 1.45; }
.hm-tile-go { color: var(--color-accent); display: flex; opacity: .55; transition: opacity .2s, transform .2s; }
.hm-tile:hover .hm-tile-go, .hm-course:hover .hm-tile-go { opacity: 1; transform: translateX(3px); }
.hm-course-tag { display: flex; align-items: center; justify-content: center; min-width: 64px; height: 52px; padding: 0 10px; border-radius: 14px; background: linear-gradient(135deg, var(--color-accent), #4a8be6); color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .01em; }

/* 6. colleges: photo + details side by side */
.hm-college { display: grid; grid-template-columns: 1fr; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--hm-r); overflow: hidden; box-shadow: var(--hm-shadow); transition: border-color .2s, transform .2s, box-shadow .2s; }
.hm-college-img { width: 100%; height: 180px; object-fit: cover; background: var(--color-surface-2); }
.hm-college-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; min-width: 0; }
.hm-college-top { display: flex; align-items: center; gap: 10px; }
.hm-college-top b { font-size: 16px; font-weight: 800; line-height: 1.3; color: var(--color-text); }
.hm-college-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; border: 1px solid var(--color-line); background: #fff; padding: 3px; flex: none; }
.hm-college-place { font-size: 13px; color: var(--color-muted); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent); }
.hm-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--color-line-strong); }
.hm-facts > span { font-weight: 800; color: var(--color-text); font-size: 15px; display: flex; flex-direction: column; }
.hm-facts small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }

/* 7. banner */
.hm-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 30px; border-radius: 24px; color: #fff;
  background: radial-gradient(500px 200px at 100% 0, rgba(255,255,255,.18), transparent 70%), linear-gradient(120deg, #1557b5 0%, #1a66d1 55%, #3d85e6 100%); box-shadow: 0 24px 50px -28px rgba(21,87,181,.7); }
.hm-banner-k { font-size: 13px; font-weight: 700; opacity: .85; }
.hm-banner-h { color: #fff !important; font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-top: 6px; }
.hm-banner p { margin-top: 8px; opacity: .9; max-width: 34em; }

/* 8. chips panels */
.hm-panel { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--hm-r); padding: 24px; box-shadow: var(--hm-shadow); min-width: 0; }
.hm-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hm-pillink { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--color-line-strong); font-size: 14px; font-weight: 600; color: var(--color-text); background: var(--color-page); }
.hm-pillink:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-soft); }

/* 9. articles */
.hm-article { align-items: stretch; padding: 12px; }
.hm-article img { width: 128px; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; flex: none; background: var(--color-surface-2); }
.hm-article small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.hm-article .hm-tile-body b { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-article .hm-tile-body > span { font-size: 12px; margin-top: auto; }

/* 10. trust */
.hm-trust { padding: 36px 0; background: var(--color-surface); border-block: 1px solid var(--color-line); }
.hm-trust ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.hm-trust li { display: flex; gap: 14px; align-items: flex-start; }
.hm-trust li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hm-trust b { color: var(--color-text); font-weight: 800; }
.hm-trust li span span { color: var(--color-muted); font-size: 14px; line-height: 1.5; }

/* 11. advisor */
.hm-advisor { background: radial-gradient(700px 300px at 0 100%, rgba(26,102,209,.1), transparent 70%), var(--color-page); }
.hm-advisor-grid { display: grid; gap: 32px; align-items: start; }
.hm-ticks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.hm-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text); font-weight: 600; font-size: 15px; }
.hm-ticks svg { color: var(--color-good); }
.hm-row2 { display: grid; gap: 12px; }
.hm-consent { font-size: 12px; line-height: 1.5; color: var(--color-muted); }
.hm-consent a { color: var(--color-accent); font-weight: 700; }

@media (min-width: 768px) {
  .hm-stats { grid-template-columns: repeat(4, 1fr); }
  .hm-stats li { border: 0 !important; justify-content: center; }
  .hm-stats li + li { border-left: 1px solid var(--color-line) !important; }
  .hm-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-college { grid-template-columns: 42% 1fr; }
  .hm-college-img { height: 100%; min-height: 220px; }
  .hm-trust ul { grid-template-columns: repeat(3, 1fr); }
  .hm-row2 { grid-template-columns: 1fr 1fr; }
  .hm-banner { padding: 36px 44px; }
}
@media (min-width: 1024px) {
  .hm-hero { padding: 64px 0 36px; }
  .hm-hero-grid { grid-template-columns: minmax(0, 1fr) 440px; gap: 56px; }
  .hm-advisor-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; }
  .hm-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-trust .wrap { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 32px; }
  .hm-trust ul { margin: 0; }
}
@media (max-width: 420px) {
  .hm-cta .hm-btn { flex: 1 1 100%; }
  .hm-article img { width: 96px; }
  .hm-logo { width: 84px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) { .hm * { transition: none !important; } }
.hm-thumb { width: 128px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #1557b5, #4a8be6); min-height: 90px; }
.hm-thumb svg { width: 30px; height: 30px; opacity: .9; }
@media (max-width: 420px) { .hm-thumb { width: 84px; } }
