/* Shared styles for the static site pages (explained, faqs, schools, team).
   Palette matches css/app.css. */
:root{
  --top:#4f6a72;
  --top2:#3e545b;
  --bg:#e9eef2;
  --panel:#ffffff;
  --border:#cfd8df;
  --accent:#f0a23a;
  --accentDark:#c98322;
  --text:#1b1b1b;
  --muted:#5b5b5b;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}

.topbar{
  height:46px;
  background: linear-gradient(180deg, var(--top), var(--top2));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 14px;
  position:sticky;
  top:0;
  z-index:50;
  border-bottom:1px solid rgba(0,0,0,0.15);
  gap:10px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:0.2px;
  user-select:none;
}
.brand .logo{ font-size:20px; line-height:1; }
.brand .logo a{ color:inherit; text-decoration:none; }
.brand .logo .onator{ color:var(--accent); }
.brand .tag{ font-size:12px; font-weight:600; opacity:0.9; }

.topnav{ display:flex; align-items:center; gap:4px; font-size:12px; flex-wrap:wrap; }
.topnav a{
  color:#fff;
  text-decoration:none;
  padding:6px 8px;
  border-radius:3px;
}
.topnav a:hover{ background:rgba(255,255,255,0.12); }
.topnav a.active{ background:rgba(255,255,255,0.22); font-weight:700; }
.topnav a.cta{
  background:var(--accent);
  color:#1b1b1b;
  font-weight:700;
}
.topnav a.cta:hover{ background:var(--accentDark); color:#fff; }

.page{
  max-width:900px;
  margin:0 auto;
  padding:24px 16px 40px;
}
.page h1{ font-size:26px; margin:10px 0 18px; }
.page h2{ font-size:19px; margin:26px 0 10px; }
.page h3{ font-size:15px; margin:18px 0 8px; }
.page img{ max-width:100%; height:auto; }
.page a{ color:#3f5d82; }

.card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:6px;
  padding:18px 22px;
  margin-bottom:18px;
}

details{
  background:#f4f7f9;
  border:1px solid var(--border);
  border-radius:5px;
  padding:10px 14px;
  margin:12px 0;
}
details summary{
  cursor:pointer;
  font-weight:700;
  color:#3f5d82;
}
details[open] summary{ margin-bottom:8px; }

.note{
  background:#fdf3e3;
  border:1px solid #ecd3a8;
  border-radius:5px;
  padding:10px 14px;
  font-size:13px;
  color:#6b5220;
  margin:14px 0;
}

.team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:18px;
}
.team-card{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:6px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.team-card img{ width:100%; height:auto; display:block; }
.team-card .body{ padding:14px 16px; font-size:13px; }
.team-card h3{ margin:0 0 6px; font-size:15px; }
.team-card .links{ padding:0 16px 14px; }
.team-card .links a{ font-size:13px; }

.site-footer{
  border-top:1px solid var(--border);
  background:var(--panel);
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}
.site-footer .thanks{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}
.site-footer img{ height:34px; width:auto; display:block; }

.brand .logo{ display:flex; align-items:center; gap:5px; }
.brand .logo a{ display:flex; align-items:center; gap:5px; text-decoration:none; }
.brand .logo-img{ height:39px; width:auto; display:block; }
.brand .logo-2{ color:var(--accent); font-weight:800; font-size:30px; line-height:1; }

/* Rendered equations (no external maths library needed) */
.eq{
  display:block;
  margin:14px auto;
  text-align:center;
  font-family:"Georgia","Times New Roman",serif;
  font-style:italic;
  font-size:17px;
  color:#1b1b1b;
  line-height:1.9;
}
.eq .rm{ font-style:normal; }
.frac{
  display:inline-block;
  vertical-align:middle;
  text-align:center;
  margin:0 3px;
  line-height:1.15;
}
.frac > span{ display:block; padding:0 5px; }
.frac > span:first-child{ border-bottom:1px solid #1b1b1b; }
.eq sub, .eq sup{ font-size:70%; }
