/* ════════════════════════════════════════════════════════════════
   SUPPLY CHAIN PROGRAM COMPARISON — scc- prefix
   Visual language matches supply-chain-quiz v2 (#e63329 / #1c2341)
   ════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

.scc-root {
  background: #f1f3f5;
  padding: 60px 24px 120px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: #1c2341;
}

/* Intro */
.scc-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
.scc-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #e63329;
  margin-bottom: 14px;
}
.scc-heading {
  font-size: 34px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #1c2341;
  margin: 0 0 16px;
  line-height: 1.15;
}
.scc-sub {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.65;
  margin: 0;
}

/* Toolbar */
.scc-toolbar {
  max-width: 1180px;
  margin: 0 auto 20px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 10px 40px -8px rgba(0,0,0,.12);
}
.scc-search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.scc-search {
  flex: 1;
  font: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
  outline: none;
  transition: border-color .15s;
}
.scc-search:focus { border-color: #e63329; }
.scc-reset {
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.scc-reset:hover { color: #1c2341; border-color: #1c2341; }

.scc-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.scc-filter-group { display: flex; flex-direction: column; gap: 4px; }
.scc-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
}
.scc-select {
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.scc-select:focus { border-color: #e63329; outline: none; }

.scc-tuition-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.scc-tuition-row input[type=range] { flex: 1; accent-color: #e63329; }
.scc-tuition-value { font-weight: 700; color: #1c2341; min-width: 70px; text-align: right; }

/* Result count */
.scc-meta {
  max-width: 1180px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}
.scc-count { font-size: 14px; color: #4a5568; }
.scc-count strong { color: #1c2341; }
.scc-sort {
  font-size: 13px;
  padding: 6px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

/* Cards grid */
.scc-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.scc-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,.06), 0 4px 12px -4px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
  position: relative;
}
.scc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px -2px rgba(0,0,0,.08), 0 10px 24px -6px rgba(0,0,0,.12);
}
.scc-card.scc-selected {
  outline: 2px solid #e63329;
  outline-offset: -2px;
}
.scc-card-degree {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #e63329;
}
.scc-card-school {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  color: #1c2341;
  margin: 0;
}
.scc-card-program {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.4;
  margin: 0;
}
.scc-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.scc-pill {
  display: inline-block;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  padding: 3px 10px;
}
.scc-pill.scc-pill-accent {
  background: #fff5f4;
  border-color: #fbcaca;
  color: #b3271f;
}
.scc-card-stats {
  border-top: 1px solid #f0f1f3;
  padding-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12.5px;
}
.scc-stat-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9ca3af;
}
.scc-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: #1c2341;
}
.scc-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.scc-btn-add {
  flex: 1;
  background: #1c2341;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.scc-btn-add:hover { background: #2d3656; }
.scc-btn-add.scc-btn-added { background: #6b7280; }
.scc-btn-link {
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 9999px;
  color: #1c2341;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.scc-btn-link:hover { border-color: #1c2341; }

.scc-empty {
  max-width: 720px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 36px 24px;
  color: #6b7280;
}
.scc-empty strong { color: #1c2341; }

/* Compare tray */
.scc-tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #1c2341;
  color: #fff;
  padding: 14px 24px;
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,.18);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.scc-tray.scc-tray-open { transform: translateY(0); }
.scc-tray-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.scc-tray-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f4a3a0;
}
.scc-tray-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.scc-tray-chip {
  background: rgba(255,255,255,.12);
  border-radius: 9999px;
  padding: 6px 12px 6px 14px;
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
}
.scc-tray-chip-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.scc-tray-chip-x {
  background: rgba(255,255,255,.25);
  color: #fff;
  border: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.scc-tray-actions { display: flex; gap: 8px; }
.scc-btn-compare {
  background: #e63329;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 10px 22px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}
.scc-btn-compare:hover { background: #ce2a21; }
.scc-btn-compare:disabled {
  background: #6b7280;
  cursor: not-allowed;
  opacity: .8;
}
.scc-btn-clear {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.4);
  border-radius: 9999px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
.scc-btn-clear:hover { border-color: #fff; }

/* Compare modal */
.scc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,35,65,.75);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 200;
  overflow-y: auto;
  padding: 40px 16px;
}
.scc-modal-backdrop.scc-open { display: flex; }
.scc-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 1080px;
  padding: 28px 28px 36px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.scc-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f3f5;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #4a5568;
}
.scc-modal-close:hover { background: #e5e7eb; color: #1c2341; }
.scc-modal h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.scc-modal-sub {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 22px;
}
.scc-compare-grid {
  display: grid;
  gap: 16px;
}
.scc-compare-row {
  display: grid;
  grid-template-columns: 180px repeat(var(--cols, 3), 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f1f3;
}
.scc-compare-row:last-child { border-bottom: none; }
.scc-compare-row.scc-compare-header {
  border-bottom: 2px solid #1c2341;
}
.scc-compare-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7280;
  padding-top: 4px;
}
.scc-compare-value {
  font-size: 14px;
  color: #1c2341;
  line-height: 1.45;
}
.scc-compare-value.scc-compare-program-name {
  font-weight: 800;
  font-size: 16px;
  line-height: 1.3;
}
.scc-compare-value small {
  display: block;
  color: #6b7280;
  font-weight: 500;
  font-size: 12px;
  margin-top: 2px;
}
.scc-source-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
}
.scc-source-researched {
  background: #ecfdf5;
  color: #047857;
}
.scc-source-estimated {
  background: #fef3c7;
  color: #92400e;
}

/* Methodology */
.scc-method {
  max-width: 1180px;
  margin: 40px auto 0;
  background: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  font-size: 13px;
  color: #4a5568;
  line-height: 1.65;
}
.scc-method h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #1c2341;
}
.scc-method p { margin: 0 0 8px; }
.scc-method p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 720px) {
  .scc-root { padding: 40px 14px 140px; }
  .scc-heading { font-size: 24px; }
  .scc-filters { grid-template-columns: 1fr 1fr; }
  .scc-search-row { flex-direction: column; }
  .scc-grid { grid-template-columns: 1fr; }
  .scc-compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .scc-compare-label {
    padding-top: 0;
    font-size: 10.5px;
  }
  .scc-modal { padding: 24px 18px 32px; }
  .scc-tray-inner { gap: 8px; }
  .scc-tray-chip { max-width: 100%; }
}
