:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dbe4ee;
  --brand: #0d6b54;
  --brand-2: #0b7f6b;
  --brand-soft: #e6f4f0;
  --warning-bg: #fff7df;
  --warning-line: #f4df9f;
  --warning-text: #745115;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
}

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 800;
  min-width: 172px;
}

.brand strong {
  color: var(--brand);
}

.brand strong {
  margin-left: 0;
}

.brand small {
  flex-basis: 100%;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
}

.site-nav a,
.nav-contact {
  padding: 10px 12px;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a.active,
.site-nav a:hover,
.nav-contact:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

.nav-contact {
  border: 1px solid #a6d5ca;
  color: var(--brand);
}

.main-shell {
  padding: 42px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: 0;
}

.lede {
  max-width: 760px;
  margin: 14px 0 0;
  color: #475569;
  font-size: 18px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trust-strip span {
  display: block;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.predictor-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.input-panel,
.results-panel,
.content-panel {
  padding: 24px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.segmented button,
.quick-chip-row button,
.campus-card,
.primary-action {
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
}

.segmented button {
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 750;
  color: #334155;
}

.segmented button.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field span {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(13, 107, 84, 0.18);
  border-color: var(--brand);
}

.quick-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 18px;
}

.quick-chip-row button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  font-size: 13px;
}

.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.campus-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
}

.campus-card span {
  color: var(--ink);
  font-weight: 800;
}

.campus-card small {
  color: var(--muted);
}

.campus-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.hidden {
  display: none !important;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.primary-action {
  width: 100%;
  margin-top: 4px;
  border: 0;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff;
  font-weight: 850;
}

.privacy-note {
  margin: 13px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.results-header h2 {
  margin-bottom: 0;
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #a6d5ca;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.result-summary {
  margin: 0 0 14px;
  color: #475569;
}

.branch-list {
  display: grid;
  gap: 8px;
}

.branch-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.branch-row summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  cursor: pointer;
}

.branch-row strong,
.branch-row small {
  display: block;
}

.branch-row strong {
  color: var(--ink);
}

.branch-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.branch-row p {
  margin: 0;
  padding: 0 14px 14px;
  color: #475569;
  font-size: 14px;
}

mark {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

mark.high {
  background: #dcfce7;
  color: #166534;
}

mark.moderate {
  background: #eef9d6;
  color: #3f6212;
}

mark.low {
  background: #fef3c7;
  color: #92400e;
}

mark.very-low {
  background: #fee2e2;
  color: #991b1b;
}

.disclaimer-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--warning-line);
  border-radius: 7px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 22px;
  margin-top: 24px;
}

.info-grid .panel {
  padding: 22px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.steps span {
  color: var(--muted);
  font-size: 14px;
}

.source-panel a {
  display: block;
  margin-top: 10px;
  color: var(--brand);
  font-weight: 750;
}

.content-shell {
  max-width: 840px;
}

.content-panel {
  display: grid;
  gap: 14px;
}

.content-panel h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.content-panel p {
  margin: 0;
  font-size: 17px;
  color: #475569;
}

.contact-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.contact-box a {
  color: var(--brand);
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-grid a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .nav-contact {
    order: 2;
  }

  .hero-grid,
  .predictor-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .main-shell {
    padding-top: 28px;
  }

  h1 {
    font-size: 36px;
  }

  .input-panel,
  .results-panel,
  .content-panel {
    padding: 18px;
  }

  .campus-grid,
  .input-row {
    grid-template-columns: 1fr;
  }

  .results-header,
  .footer-grid,
  .contact-box {
    display: grid;
  }

  .branch-row summary {
    grid-template-columns: 1fr;
  }
}
