/* ------------------------------------------------------------------
   Your Future Blueprint: Webflow CMS Demo
   Shared stylesheet. Colors per-school come from the CMS JSON and
   are injected as custom properties on the <body> element at render.
   ------------------------------------------------------------------ */

:root {
  --primary: #002855;
  --accent: #c8102e;
  --light: #f5f7fa;
  --border: #e5e7eb;
  --text: #1f2d3d;
  --muted: #64748b;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.04);
  --font-ui: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--primary); }
h2 { font-size: 20px; margin: 0 0 12px; font-weight: 700; }
@media (min-width: 640px) { h2 { font-size: 22px; } }
p { margin: 0 0 12px; }
ul { padding-left: 22px; margin: 0; }
ul li { margin-bottom: 6px; }

/* ---------- School page ---------- */

.school-header {
  background: var(--primary);
  color: white;
  padding: 32px 20px;
  text-align: center;
}
@media (min-width: 640px) { .school-header { padding: 40px 20px; } }

.school-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
@media (min-width: 640px) { .school-logo { font-size: 28px; letter-spacing: 1px; } }

.school-sub {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.9;
}
@media (min-width: 640px) { .school-sub { font-size: 16px; } }

.school-partner {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.8;
}

.container {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .container { margin: 40px auto; padding: 0 20px; } }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .card { padding: 20px; margin-bottom: 20px; } }

.card h2 .emoji { margin-right: 6px; }

.button {
  display: inline-block;
  padding: 10px 14px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  margin: 6px 6px 0 0;
  transition: opacity 0.15s ease;
}
.button:hover { opacity: 0.92; text-decoration: none; }

/* ---------- Collapsible month (native <details>) ---------- */

.month {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.month-summary {
  background: var(--primary);
  color: white;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.month-summary::-webkit-details-marker { display: none; }
.month-summary::after {
  content: "▼";
  font-size: 12px;
  transition: transform 0.2s ease;
}
.month[open] .month-summary::after {
  transform: rotate(180deg);
}

.month-content {
  padding: 16px 18px;
}
.month-content ul {
  padding-left: 22px;
  margin: 0;
}
.month-content li {
  margin-bottom: 6px;
}

/* ---------- Counselor message (optional, hides via conditional render) ---------- */

.counselor {
  background: white;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
  color: var(--text);
}

.counselor-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}

/* ---------- Section lede ---------- */

.section-lede {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 16px;
}

/* ---------- CTA ---------- */

.cta-row {
  margin-top: 16px;
}
.privacy-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 22px 16px;
  margin-top: 48px;
  font-size: 13px;
}
.footer .disclaimer {
  opacity: 0.75;
  margin-top: 4px;
  font-size: 12px;
}

/* ---------- Index page ---------- */

.index-hero {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 48px 20px;
  text-align: center;
}
.index-hero h1 {
  margin: 0 0 10px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
@media (min-width: 640px) { .index-hero h1 { font-size: 30px; } }
.index-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.55;
}

.proof-strip {
  background: #0b1220;
  color: #fde68a;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.school-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 1000px;
  margin: 28px auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .school-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 40px auto;
  }
}

.school-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.school-card .tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.school-card .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--light);
  color: var(--muted);
  font-weight: 700;
}
.school-card .tag.warn { background: #fef3c7; color: #92400e; }
.school-card .tag.good { background: #d1fae5; color: #065f46; }

.school-card .school-color-strip {
  display: flex;
  gap: 4px;
  margin: 2px 0 4px;
}
.school-card .swatch {
  width: 28px; height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}

.school-card-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}
.school-card-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.school-card .open-btn {
  margin-top: auto;
  display: inline-block;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.school-card .open-btn:hover { opacity: 0.92; text-decoration: none; }

.architecture-note {
  max-width: 1000px;
  margin: 12px auto 40px;
  padding: 18px 20px;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--muted);
}
.architecture-note code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #0f172a;
  font-size: 12px;
}

/* ---------- Proof banner visible on each school page (removable) ---------- */

.proof-banner {
  background: #0b1220;
  color: #fde68a;
  font-size: 12px;
  text-align: center;
  padding: 6px 10px;
  font-weight: 600;
}
.proof-banner a { color: #fde68a; text-decoration: underline; }
