:root {
  --navy: #111111;
  --navy-light: #222222;
  --orange: #ff5c00;
  --orange-light: #fff0e8;
  --green: #1a8a4a;
  --green-light: #edf7f2;
  --blue: #1a56a8;
  --blue-light: #edf3fc;
  --gray: #888888;
  --gray-light: #f0f0f0;
  --bg: #f7f7f7;
  --card: #ffffff;
  --text: #111111;
  --text-muted: #777777;
  --border: #e2e2e2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Helvetica Neue", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

/* Top nav */
.topbar {
  background: #111111;
  color: #fff;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--orange);
}

.topbar .logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.topbar .logo span { color: var(--orange); }

.topbar nav a {
  margin-left: 24px;
  color: #aaaaaa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.topbar nav a:hover { color: #fff; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Hero / mission */
.hero {
  background: #111111;
  color: #fff;
  padding: 40px 36px;
  border-radius: 12px;
  margin-bottom: 32px;
  border-left: 4px solid var(--orange);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.hero p {
  margin: 0;
  color: #aaaaaa;
  max-width: 640px;
  line-height: 1.7;
  font-size: 14px;
}

.hero .stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--orange);
}

.hero .stat-label {
  font-size: 12px;
  color: #888888;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Region section */
.region-block {
  margin-bottom: 36px;
}

.region-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.region-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.region-progress-wrap {
  background: var(--gray-light);
  border-radius: 999px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  margin: 8px 0 16px;
}

.region-progress-bar {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
}

.region-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* School grid */
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.school-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.school-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}

.school-card .name {
  font-weight: 700;
  font-size: 14px;
}

.school-card .meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Badges — keep functional color coding for venue status */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.badge.can-host   { background: #f0f0f0; color: #111; border: 1px solid #ccc; }
.badge.core       { background: #111; color: #fff; }
.badge.cannot-host{ background: var(--orange-light); color: var(--orange); }
.badge.tbd        { background: var(--gray-light); color: var(--gray); }

/* Legend */
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.dot.can-host   { background: #555; }
.dot.core       { background: #111; }
.dot.cannot-host{ background: var(--orange); }
.dot.tbd        { background: #ccc; }

/* School profile page */
.profile-header {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.profile-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
}

.profile-header .sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.profile-header .actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
  text-align: center;
}

.btn-primary   { background: var(--orange); color: #fff; }
.btn-secondary { background: #111; color: #fff; }
.btn-primary:hover  { background: #e04e00; }
.btn-secondary:hover{ background: #333; }

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}

.section .empty {
  color: var(--text-muted);
  font-size: 13px;
  background: var(--gray-light);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.info-grid .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.info-grid .value {
  font-size: 15px;
  font-weight: 700;
}

table.roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table.roster th, table.roster td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

table.roster th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-group .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #111;
}

.form-group textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.roster-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.roster-row input, .roster-row select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}

.remove-row {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
}

.add-row-btn {
  background: var(--gray-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.note-banner {
  background: var(--gray-light);
  color: var(--text-muted);
  border-left: 3px solid #111;
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--orange); font-weight: 600; }

/* Venue photos */
.photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.photo-thumb {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb .photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.photo-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}
