:root {
  --obsidian: #05070B;
  --obsidian-elevated: #0D1117;
  --obsidian-card: #11161F;
  --obsidian-border: rgba(255, 255, 255, 0.09);
  --sheet: #FFFFFF;
  --sheet-muted: #F5F5F7;
  --sheet-border: #E5E7EB;
  --ink-light: #F5F5F7;
  --ink-light-muted: #9CA3AF;
  --ink-dark: #0A0D12;
  --ink-dark-muted: #4B5563;
  --accent: #10B981;
  --accent-hover: #34D399;
  --accent-dark: #047857;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --warn: #F59E0B;
  --warn-bg: #FFFBEB;
  --warn-border: #FDE68A;
  --warn-ink: #78350F;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--sheet-muted);
  color: var(--ink-dark);
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.tabular { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Crisis Bar */
.crisis-bar {
  background: #0B1219;
  border-bottom: 1px solid var(--obsidian-border);
  padding: 9px 16px;
  text-align: center;
  font-size: 13px;
  color: #CBD5E1;
}
.crisis-bar a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Global Header */
.site-header {
  background: rgba(5, 7, 11, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--obsidian-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-light);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--obsidian-elevated);
  border: 1px solid var(--obsidian-border);
  display: grid;
  place-items: center;
  position: relative;
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
}
.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: 4px;
  right: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-link {
  color: #D1D5DB;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}
.binder-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.binder-pill:hover { background: rgba(16, 185, 129, 0.22); }
.binder-count {
  background: var(--accent);
  color: #04130D;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Dark Stage */
.stage-dark {
  background: radial-gradient(960px 460px at 50% -10%, rgba(16, 185, 129, 0.15), transparent 68%), var(--obsidian);
  color: var(--ink-light);
  padding: 64px 0 60px;
}
.stage-light {
  background: var(--sheet-muted);
  color: var(--ink-dark);
  padding: 64px 0;
}
.stage-white {
  background: var(--sheet);
  color: var(--ink-dark);
  padding: 64px 0;
  border-top: 1px solid var(--sheet-border);
  border-bottom: 1px solid var(--sheet-border);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--accent-dark); }

h1 {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
}
.lead-dark {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-light-muted);
  max-width: 720px;
  line-height: 1.6;
}
.lead-light {
  font-size: 16px;
  color: var(--ink-dark-muted);
  max-width: 700px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #10B981 0%, #059669 100%);
  color: #04130D;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.36);
}
.btn-dark { background: var(--obsidian); color: #FFFFFF; }
.btn-dark:hover { background: #18202C; }
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #F5F5F7;
  border-color: var(--obsidian-border);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline {
  background: #FFFFFF;
  color: var(--ink-dark);
  border-color: var(--sheet-border);
}
.btn-outline:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.btn-outline.saved {
  background: #ECFDF5;
  border-color: var(--accent);
  color: var(--accent-dark);
}
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* Search Hero Box */
.search-shell {
  margin-top: 28px;
  background: var(--obsidian-elevated);
  border: 1px solid var(--obsidian-border);
  border-radius: 16px;
  padding: 16px;
  max-width: 880px;
}
.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-input {
  flex: 1 1 280px;
  background: #05070B;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-select {
  flex: 0 1 180px;
  background: #05070B;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E5E7EB;
  padding: 13px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.q-pill {
  font-size: 12px;
  font-weight: 500;
  color: #D1D5DB;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--obsidian-border);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.q-pill:hover { border-color: var(--accent); color: #6EE7B7; }

/* Metrics Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--obsidian-border);
}
.kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--obsidian-border);
  border-radius: 12px;
  padding: 16px;
}
.kpi-v { font-size: 24px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.025em; }
.kpi-l { font-size: 12px; color: var(--ink-light-muted); margin-top: 4px; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.panel {
  background: var(--sheet);
  border: 1px solid var(--sheet-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

/* Facility Card */
.fac-card {
  background: var(--sheet);
  border: 1px solid var(--sheet-border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fac-card:hover {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 10px 28px rgba(5, 7, 11, 0.06);
}
.fac-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.fac-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  text-decoration: none;
  line-height: 1.25;
}
.fac-title:hover { color: var(--accent-dark); }
.fac-loc { font-size: 13px; color: var(--ink-dark-muted); margin-top: 4px; }
.score-badge {
  flex-shrink: 0;
  background: var(--obsidian);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 6px 10px;
  text-align: center;
  min-width: 60px;
}
.score-badge .sv { font-size: 18px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.score-badge .sl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #9CA3AF; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--sheet-muted);
  color: #1F2937;
  border: 1px solid #E5E7EB;
  font-weight: 500;
}
.chip.em {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
  color: #065F46;
}
.chip.dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--obsidian-border);
  color: #E5E7EB;
}
.chip.dark-em {
  background: var(--accent-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.fac-meta {
  font-size: 13px;
  color: var(--ink-dark-muted);
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid #F3F4F6;
}
.fac-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* Directory Layout */
.dir-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.filter-sidebar {
  background: var(--sheet);
  border: 1px solid var(--sheet-border);
  border-radius: 16px;
  padding: 20px;
  position: sticky;
  top: 76px;
}
.filter-group { margin-bottom: 18px; }
.filter-group label.fg-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-dark-muted);
  margin-bottom: 8px;
}
.filter-input, .filter-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  font-family: inherit;
  background: #FFFFFF;
  color: var(--ink-dark);
}
.filter-checks { display: grid; gap: 7px; font-size: 13px; color: #1F2937; }
.filter-checks label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-checks input { accent-color: var(--accent-dark); width: 15px; height: 15px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-dark-muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--sheet-border);
  background: #FAFAFB;
}
td { padding: 13px 14px; border-bottom: 1px solid #F3F4F6; vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* Callout */
.callout-warn {
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  font-size: 13px;
  color: var(--warn-ink);
}

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  padding: 9px 15px;
  border-radius: 9px;
  border: 1px solid var(--sheet-border);
  background: var(--sheet-muted);
  color: var(--ink-dark-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.tab-btn.active { background: var(--obsidian); color: #FFFFFF; border-color: var(--obsidian); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Floating Compare Bar */
.compare-tray {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--obsidian);
  color: #FFFFFF;
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  display: none;
  align-items: center;
  gap: 14px;
  z-index: 50;
  font-size: 13px;
}
.compare-tray.show { display: inline-flex; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 60;
}
.modal-backdrop.open { display: grid; }
.modal-box {
  background: #FFFFFF;
  color: var(--ink-dark);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 28px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.form-field { display: grid; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink-dark); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  font-family: inherit;
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: var(--ink-light-muted);
  padding: 48px 0;
  border-top: 1px solid var(--obsidian-border);
  font-size: 13px;
}
.site-footer a { color: #E5E7EB; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-col h4 { color: #FFFFFF; font-size: 13px; margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a { text-decoration: none; color: var(--ink-light-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--obsidian-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 26px;
  align-items: start;
}
.score-card-dark {
  background: var(--obsidian-card);
  border: 1px solid var(--obsidian-border);
  border-radius: 18px;
  padding: 22px;
}
.score-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--obsidian-border);
  margin-bottom: 14px;
}
.score-bars-list { display: grid; gap: 9px; font-size: 12px; color: #D1D5DB; margin-bottom: 14px; }
.score-bar-meta { display: flex; justify-content: space-between; }
.score-bar-track { height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; margin-top: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--accent); border-radius: 99px; }
.score-bar-fill.warn { background: var(--warn); }
.sec-head-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.kv-stack { display: grid; gap: 11px; font-size: 14px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #F3F4F6; }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-label { color: var(--ink-dark-muted); }
.kv-val { text-align: right; font-weight: 600; }
.rubric-box { background: var(--sheet-muted); padding: 14px; border-radius: 10px; }
.rubric-box strong { font-size: 13px; }
.rubric-box p { font-size: 12px; color: var(--ink-dark-muted); margin-top: 3px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--sheet-border);
  border-radius: 12px; background: #FFFFFF; cursor: pointer;
}
.check-item input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--accent-dark); }
.check-q { font-weight: 600; font-size: 14px; color: var(--ink-dark); margin-bottom: 2px; }
.check-why { font-size: 13px; color: var(--ink-dark-muted); }
.claim-banner {
  background: var(--obsidian); color: #FFFFFF; border-radius: 18px; padding: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
}

/* Google Places Campus Photo Gallery */
.photo-bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 12px;
}
.photo-main {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0D1117;
  min-height: 320px;
  max-height: 380px;
}
.photo-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.photo-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0D1117;
  min-height: 154px;
  max-height: 184px;
}
.photo-main img, .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-attr {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(5, 7, 11, 0.68);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  text-decoration: none;
}
.g-rating-pill.low {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD34D;
}
.g-rating-pill.high {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6EE7B7;
}
.card-thumb {
  width: 100%;
  height: 155px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  background: #0D1117;
}
/* Trustpilot-style Independent Verdict & Real-Deal Review */
.verdict-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.verdict-pill.strong { background: rgba(16,185,129,0.16); color: #6EE7B7; border: 1px solid rgba(16,185,129,0.4); }
.verdict-pill.good { background: rgba(20,184,166,0.16); color: #5EEAD4; border: 1px solid rgba(20,184,166,0.4); }
.verdict-pill.mixed { background: rgba(245,158,11,0.16); color: #FCD34D; border: 1px solid rgba(245,158,11,0.45); }
.verdict-pill.caution { background: rgba(239,68,68,0.18); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.45); }

.real-deal-card {
  background: #FFFFFF;
  border: 1px solid var(--sheet-border);
  border-top: 4px solid var(--obsidian);
  border-radius: 18px;
  padding: 28px;
}
.real-deal-card.band-strong { border-top-color: #10B981; }
.real-deal-card.band-good { border-top-color: #0D9488; }
.real-deal-card.band-mixed { border-top-color: #F59E0B; }
.real-deal-card.band-caution { border-top-color: #EF4444; }

.pw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0; }
.pw-box { border-radius: 14px; padding: 18px 20px; }
.pw-box.praise { background: #F0FDF4; border: 1px solid #BBF7D0; }
.pw-box.warn { background: #FFFBEB; border: 1px solid #FDE68A; }
.pw-box h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.pw-box.praise h4 { color: #065F46; }
.pw-box.warn h4 { color: #92400E; }
.pw-box ul { list-style: none; display: grid; gap: 8px; font-size: 14px; color: #1F2937; }
.pw-box li { padding-left: 18px; position: relative; }
.pw-box.praise li::before { content: "✓"; position: absolute; left: 0; color: #059669; font-weight: 700; }
.pw-box.warn li::before { content: "!"; position: absolute; left: 3px; color: #D97706; font-weight: 700; }

.pub-rev-card {
  border: 1px solid var(--sheet-border);
  border-radius: 12px;
  padding: 16px 18px;
  background: #FAFAFB;
}
@media (max-width: 820px) {
  .photo-bento, .pw-grid { grid-template-columns: 1fr; }
  .photo-main { min-height: 220px; max-height: 260px; }
}

@media (max-width: 960px) {
  .dir-layout, .grid-3, .footer-grid, .hero-dossier-grid { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { position: static; }
  .nav-row { padding: 10px 0; gap: 10px; }
  .nav-link { padding: 6px 9px; font-size: 13px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stage-dark, .stage-light, .stage-white { padding: 44px 0; }
}
