:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --ink: #1a2233;
  --muted: #5b6575;
  --line: #e3e7ee;
  --accent: #0f62d6;
  --accent-ink: #ffffff;
  --vhigh: #0e7a3b;
  --high: #2e9e57;
  --mod: #b47d0e;
  --border-r: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header { background: var(--card); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.3px; }
.brand span { color: var(--accent); }
nav a { margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }

.hero { padding: 34px 0 10px; }
.hero h1 { font-size: clamp(24px, 4.5vw, 34px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.5px; }
.sub { color: var(--muted); max-width: 640px; margin: 0; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--border-r);
  padding: 20px; margin: 22px 0;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: end; }
label { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
input[type=number], select {
  width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input[type=number]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.check-inline { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
fieldset { border: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
legend { font-size: 14px; color: var(--muted); font-weight: 500; padding: 0 0 8px; }
fieldset label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
button {
  margin-top: 18px; width: 100%; padding: 13px; font-size: 17px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent); border: none; border-radius: 8px; cursor: pointer;
}
button:hover { filter: brightness(1.08); }

#summary { font-size: 15px; color: var(--muted); margin: 6px 0 10px; }
.opt { font-weight: 400; font-size: 12.5px; }
#share { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.share-wa, .share-copy {
  display: inline-block; padding: 8px 14px; font-size: 14px; font-weight: 600;
  border-radius: 8px; text-decoration: none; cursor: pointer; width: auto; margin: 0;
}
.share-wa { background: #1fa855; color: #fff; }
.share-copy { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
button.show-all {
  width: auto; margin: 10px 0 0; padding: 8px 14px; font-size: 14px;
  background: #fff; color: var(--accent); border: 1px solid var(--line);
}
.next-steps { margin-top: 6px; }
.next-steps h2 { margin: 0 0 8px; font-size: 18px; }
.next-steps ol { margin: 0; padding-left: 20px; }
.next-steps li { margin-bottom: 8px; }
.band { margin-bottom: 26px; }
.band h2 { font-size: 18px; margin: 0 0 2px; display: flex; align-items: center; gap: 10px; }
.band p.bandnote { margin: 2px 0 10px; font-size: 13.5px; color: var(--muted); }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; }
.chip.vhigh { background: var(--vhigh); } .chip.high { background: var(--high); }
.chip.mod { background: var(--mod); } .chip.border { background: #8a5a9e; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--border-r); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.college { white-space: normal; min-width: 220px; }
th { background: #f0f3f8; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
td a { color: var(--accent); text-decoration: none; }
td a:hover { text-decoration: underline; }
.quota-tag { font-size: 12px; color: var(--muted); }
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 18px; }
.content { margin: 30px 0 10px; }
.content h2 { font-size: 20px; margin: 26px 0 8px; }
.content p { color: var(--ink); max-width: 760px; }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 0 30px; color: var(--muted); font-size: 13.5px; background: var(--card); }
footer a { color: var(--muted); }

/* college pages */
.college-head h1 { margin-bottom: 2px; }
.college-head .meta { color: var(--muted); margin-top: 0; }
h3.qhead { margin: 26px 0 8px; font-size: 17px; }
.backlink { display: inline-block; margin: 14px 0 0; color: var(--accent); text-decoration: none; }

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid label:first-child { grid-column: 1 / -1; }
}
