:root {
  --ink: #1a2437;
  --paper: #f6f2e8;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(26, 36, 55, 0.12);
  --shadow: 0 18px 50px rgba(26, 36, 55, 0.12);
  --phi: #8f7445;
  --phi-soft: rgba(143, 116, 69, 0.12);
  --tke: #cb5d3d;
  --tke-soft: rgba(203, 93, 61, 0.12);
  --pkt: #0f766e;
  --pkt-soft: rgba(15, 118, 110, 0.12);
  --pgd: #4750b6;
  --pgd-soft: rgba(71, 80, 182, 0.12);
  --sigep: #8b1e3f;
  --sigep-soft: rgba(139, 30, 63, 0.12);
  --sx: #1f4b99;
  --sx-soft: rgba(31, 75, 153, 0.12);
  --sae: #6b4b8b;
  --sae-soft: rgba(107, 75, 139, 0.12);
  --pike: #255f4a;
  --pike-soft: rgba(37, 95, 74, 0.12);
  --lxa: #7a5a26;
  --lxa-soft: rgba(122, 90, 38, 0.12);
  --signu: #5b1f26;
  --signu-soft: rgba(91, 31, 38, 0.12);
  --ato: #2f5d7c;
  --ato-soft: rgba(47, 93, 124, 0.12);
  --thetachi: #7c2439;
  --thetachi-soft: rgba(124, 36, 57, 0.12);
  --btp: #345b8c;
  --btp-soft: rgba(52, 91, 140, 0.12);
  --dtd: #5f4a88;
  --dtd-soft: rgba(95, 74, 136, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(71, 80, 182, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(203, 93, 61, 0.16), transparent 28%),
    radial-gradient(circle at bottom left, rgba(15, 118, 110, 0.14), transparent 24%),
    linear-gradient(180deg, #fffdf7 0%, var(--paper) 48%, #efe5d6 100%);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.page-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 42px;
}

.unlock-page {
  display: grid;
  place-items: center;
}

.unlock-shell {
  width: min(520px, calc(100vw - 32px));
}

.unlock-card {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 32px;
  display: grid;
  gap: 16px;
}

.unlock-card h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  max-width: none;
}

.unlock-copy {
  margin: 0;
  line-height: 1.7;
}

.unlock-form {
  display: grid;
  gap: 16px;
}

.hero,
.top-nav,
.filter-bar,
.panel,
.stat-card {
  backdrop-filter: blur(14px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.95fr);
  gap: 24px;
  border-radius: 30px;
  padding: 0;
  overflow: hidden;
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phi);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Baskerville", "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
  max-width: 13ch;
}

.hero-text,
.compare-copy {
  margin: 18px 0 0;
  line-height: 1.7;
  max-width: 62ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #27324a, var(--phi));
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.action-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.action-button-secondary {
  background: rgba(26, 36, 55, 0.08);
  color: var(--ink);
}

.status-text {
  margin: 0;
  color: rgba(26, 36, 55, 0.72);
}

.crest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  place-items: stretch;
  background: #b9ddf5;
}

.crest {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0;
  min-height: 210px;
  padding: 24px;
  color: white;
  background: transparent;
}

.crest svg {
  width: 120px;
  height: auto;
}

.crest-icon-image {
  width: 120px;
  height: auto;
  object-fit: contain;
}

.crest-home {
  padding: 18px;
  background: #b9ddf5;
}

.crest-home .crest-icon-image {
  width: auto;
  max-height: 320px;
  max-width: 100%;
  object-fit: initial;
}

.crest path:first-child {
  fill: none;
  stroke-width: 6;
}

.crest text {
  font-size: 20px;
  font-weight: 800;
  text-anchor: middle;
  letter-spacing: 0.12em;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.crest-line,
.crest-ring {
  fill: none;
  stroke-width: 6;
}

.crest-phi path:first-child,
.crest-phi .crest-line,
.crest-phi .crest-ring,
.crest-phi text {
  stroke: #f0d58a;
  fill: #f0d58a;
}

.crest-tke path:first-child,
.crest-tke .crest-line,
.crest-tke .crest-ring,
.crest-tke text {
  stroke: #ffb59f;
  fill: #ffb59f;
}

.crest-pkt path:first-child,
.crest-pkt .crest-line,
.crest-pkt .crest-ring,
.crest-pkt text {
  stroke: #83ddd1;
  fill: #83ddd1;
}

.crest-pgd path:first-child,
.crest-pgd .crest-line,
.crest-pgd .crest-ring,
.crest-pgd text {
  stroke: #bec4ff;
  fill: #bec4ff;
}

.crest-sigep path:first-child,
.crest-sigep .crest-line,
.crest-sigep .crest-ring,
.crest-sigep text {
  stroke: #ffb4c7;
  fill: #ffb4c7;
}

.crest-sx path:first-child,
.crest-sx .crest-line,
.crest-sx .crest-ring,
.crest-sx text {
  stroke: #b7d2ff;
  fill: #b7d2ff;
}

.crest-sae path:first-child,
.crest-sae .crest-line,
.crest-sae .crest-ring,
.crest-sae text {
  stroke: #dbc7ff;
  fill: #dbc7ff;
}

.crest-pike path:first-child,
.crest-pike .crest-line,
.crest-pike .crest-ring,
.crest-pike text {
  stroke: #adddc7;
  fill: #adddc7;
}

.crest-lxa path:first-child,
.crest-lxa .crest-line,
.crest-lxa .crest-ring,
.crest-lxa text {
  stroke: #ead49c;
  fill: #ead49c;
}

.crest-signu path:first-child,
.crest-signu .crest-line,
.crest-signu .crest-ring,
.crest-signu text {
  stroke: #f0b4bb;
  fill: #f0b4bb;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  border-radius: 22px;
  padding: 14px;
}

.nav-chip {
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: rgba(26, 36, 55, 0.06);
}

.nav-chip-active {
  background: rgba(26, 36, 55, 0.14);
}

.filter-bar {
  border-radius: 22px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.panel-launch {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.launch-copy {
  max-width: 72ch;
}

.launch-text {
  margin: 10px 0 0;
  color: rgba(26, 36, 55, 0.72);
  line-height: 1.7;
}

.filter-bar label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.filter-bar input {
  width: 100%;
  border: 1px solid rgba(26, 36, 55, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  border-radius: 22px;
  padding: 18px 20px;
}

.stat-label,
.stat-value {
  margin: 0;
}

.stat-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 36, 55, 0.62);
}

.stat-value {
  margin-top: 8px;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  font-weight: 800;
}

.panel {
  border-radius: 28px;
  padding: 22px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(26, 36, 55, 0.08);
  font-weight: 700;
}

.fraternity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fraternity-card {
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(26, 36, 55, 0.1);
}

.fraternity-card-phi {
  background: linear-gradient(180deg, var(--phi-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-tke {
  background: linear-gradient(180deg, var(--tke-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-pkt {
  background: linear-gradient(180deg, var(--pkt-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-pgd {
  background: linear-gradient(180deg, var(--pgd-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-sigep {
  background: linear-gradient(180deg, var(--sigep-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-sx {
  background: linear-gradient(180deg, var(--sx-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-sae {
  background: linear-gradient(180deg, var(--sae-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-pike {
  background: linear-gradient(180deg, var(--pike-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-lxa {
  background: linear-gradient(180deg, var(--lxa-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-signu {
  background: linear-gradient(180deg, var(--signu-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-ato {
  background: linear-gradient(180deg, var(--ato-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-thetachi {
  background: linear-gradient(180deg, var(--thetachi-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-btp {
  background: linear-gradient(180deg, var(--btp-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-dtd {
  background: linear-gradient(180deg, var(--dtd-soft), rgba(255, 255, 255, 0.82));
}

.fraternity-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fraternity-card-copy {
  margin: 12px 0 0;
  color: rgba(26, 36, 55, 0.72);
  line-height: 1.6;
}

.panel-builder {
  margin-top: 22px;
}

.builder-copy {
  margin: 0;
  color: rgba(26, 36, 55, 0.72);
  line-height: 1.7;
}

.builder-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 18px;
}

.builder-field span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.builder-field select {
  width: 100%;
  border: 1px solid rgba(26, 36, 55, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
}

.builder-button {
  min-height: 52px;
}

.fraternity-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fraternity-card-stats div {
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.fraternity-card-stats span,
.card-link-muted {
  display: block;
  color: rgba(26, 36, 55, 0.62);
}

.fraternity-card-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.fraternity-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.card-link {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.card-link.secondary {
  opacity: 0.76;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-badge-phi,
.chapter-column-phi {
  background: linear-gradient(180deg, rgba(143, 116, 69, 0.14), rgba(143, 116, 69, 0.05));
}

.mini-badge-phi .mini-badge-mark {
  background: var(--phi);
}

.mini-badge-tke,
.chapter-column-tke {
  background: linear-gradient(180deg, rgba(203, 93, 61, 0.14), rgba(203, 93, 61, 0.05));
}

.mini-badge-tke .mini-badge-mark {
  background: var(--tke);
}

.mini-badge-pkt,
.chapter-column-pkt {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.05));
}

.mini-badge-pkt .mini-badge-mark {
  background: var(--pkt);
}

.mini-badge-pgd,
.chapter-column-pgd {
  background: linear-gradient(180deg, rgba(71, 80, 182, 0.14), rgba(71, 80, 182, 0.05));
}

.mini-badge-pgd .mini-badge-mark {
  background: var(--pgd);
}

.mini-badge-sigep,
.chapter-column-sigep {
  background: linear-gradient(180deg, rgba(139, 30, 63, 0.14), rgba(139, 30, 63, 0.05));
}

.mini-badge-sigep .mini-badge-mark {
  background: var(--sigep);
}

.mini-badge-sx,
.chapter-column-sx {
  background: linear-gradient(180deg, rgba(31, 75, 153, 0.14), rgba(31, 75, 153, 0.05));
}

.mini-badge-sx .mini-badge-mark {
  background: var(--sx);
}

.mini-badge-sae,
.chapter-column-sae {
  background: linear-gradient(180deg, rgba(107, 75, 139, 0.14), rgba(107, 75, 139, 0.05));
}

.mini-badge-sae .mini-badge-mark {
  background: var(--sae);
}

.mini-badge-pike,
.chapter-column-pike {
  background: linear-gradient(180deg, rgba(37, 95, 74, 0.14), rgba(37, 95, 74, 0.05));
}

.mini-badge-pike .mini-badge-mark {
  background: var(--pike);
}

.mini-badge-lxa,
.chapter-column-lxa {
  background: linear-gradient(180deg, rgba(122, 90, 38, 0.14), rgba(122, 90, 38, 0.05));
}

.mini-badge-lxa .mini-badge-mark {
  background: var(--lxa);
}

.mini-badge-signu,
.chapter-column-signu {
  background: linear-gradient(180deg, rgba(91, 31, 38, 0.14), rgba(91, 31, 38, 0.05));
}

.mini-badge-signu .mini-badge-mark {
  background: var(--signu);
}

.mini-badge-ato,
.chapter-column-ato {
  background: linear-gradient(180deg, rgba(47, 93, 124, 0.14), rgba(47, 93, 124, 0.05));
}

.mini-badge-ato .mini-badge-mark {
  background: var(--ato);
}

.mini-badge-thetachi,
.chapter-column-thetachi {
  background: linear-gradient(180deg, rgba(124, 36, 57, 0.14), rgba(124, 36, 57, 0.05));
}

.mini-badge-thetachi .mini-badge-mark {
  background: var(--thetachi);
}

.mini-badge-btp,
.chapter-column-btp {
  background: linear-gradient(180deg, rgba(52, 91, 140, 0.14), rgba(52, 91, 140, 0.05));
}

.mini-badge-btp .mini-badge-mark {
  background: var(--btp);
}

.mini-badge-dtd,
.chapter-column-dtd {
  background: linear-gradient(180deg, rgba(95, 74, 136, 0.14), rgba(95, 74, 136, 0.05));
}

.mini-badge-dtd .mini-badge-mark {
  background: var(--dtd);
}

.mini-badge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
}

.mini-badge-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.compare-hero {
  margin-bottom: 22px;
}

.panel-map {
  margin-bottom: 22px;
}

.comparison-map {
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(26, 36, 55, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.map-status {
  margin: 0 0 14px;
  color: rgba(26, 36, 55, 0.72);
  line-height: 1.6;
}

.map-popup h3,
.map-popup p {
  margin: 0;
}

.map-popup p {
  margin-top: 8px;
  line-height: 1.5;
}

.compare-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.compare-connector {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.82fr);
  gap: 22px;
}

.panel-stack {
  display: grid;
  gap: 22px;
}

.comparison-list {
  display: grid;
  gap: 16px;
}

.school-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(26, 36, 55, 0.1);
}

.school-card-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.school-score-card {
  min-width: 280px;
  max-width: 360px;
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(116, 169, 232, 0.12);
  border: 1px solid rgba(26, 36, 55, 0.08);
}

.school-score-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 36, 55, 0.62);
}

.school-score-value {
  font-size: 1.9rem;
  line-height: 1;
}

.school-score-breakdown {
  display: grid;
  gap: 8px;
}

.school-score-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(26, 36, 55, 0.82);
}

.school-score-metric strong {
  font-size: 1rem;
}

.school-score-subtitle {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 36, 55, 0.62);
}

.school-score-reasons {
  display: grid;
  gap: 6px;
}

.school-score-reason-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(26, 36, 55, 0.76);
  font-size: 0.88rem;
}

.school-score-reason-list li + li {
  margin-top: 4px;
}

.school-score-empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(26, 36, 55, 0.62);
}

.school-card-header p {
  margin: 8px 0 0;
  color: rgba(26, 36, 55, 0.7);
}

.chapter-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.chapter-column {
  border-radius: 18px;
  padding: 14px;
}

.chapter-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(26, 36, 55, 0.08);
}

.chapter-entry:first-of-type {
  border-top: none;
  margin-top: 10px;
  padding-top: 0;
}

.chapter-name,
.chapter-meta,
.chapter-address,
.chapter-links {
  margin: 0;
}

.chapter-name {
  font-weight: 800;
}

.chapter-meta,
.chapter-address {
  margin-top: 6px;
  color: rgba(26, 36, 55, 0.75);
  line-height: 1.5;
}

.chapter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.chapter-links a,
.chapter-address a {
  color: inherit;
}

.chapter-detail {
  margin-top: 10px;
}

.chapter-detail summary {
  cursor: pointer;
  font-weight: 700;
}

.chapter-detail ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(26, 36, 55, 0.78);
}

.chapter-detail li + li {
  margin-top: 6px;
}

.special-fraternity {
  font-weight: 400;
}

.special-fraternity-purple {
  color: #6b46c1;
}

.empty-state {
  border-radius: 18px;
  padding: 18px;
  background: rgba(26, 36, 55, 0.04);
  color: rgba(26, 36, 55, 0.66);
}

@media (max-width: 1100px) {
  .hero,
  .grid,
  .stats,
  .fraternity-grid,
  .chapter-columns {
    grid-template-columns: 1fr;
  }

  .builder-controls {
    grid-template-columns: 1fr;
  }

  .school-card-topline {
    flex-direction: column;
  }

  .school-score-card {
    min-width: 0;
    width: 100%;
  }

  .crest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100vw - 20px, 1440px);
    padding: 18px 0 28px;
  }

  .hero,
  .panel,
  .top-nav,
  .filter-bar {
    border-radius: 22px;
  }

  .hero-copy,
  .panel,
  .filter-bar {
    padding: 18px;
  }

  .crest {
    min-height: 170px;
  }

  .comparison-map {
    min-height: 320px;
  }

  h1 {
    max-width: none;
  }

  .compare-heading {
    flex-wrap: wrap;
  }

  .panel-launch {
    flex-direction: column;
    align-items: flex-start;
  }
}
