/*
  Shared stylesheet for the SparkCubs blog (blog.html + every blog/*.html post).
  Loaded from a real file (not embedded as base64) so every post shares one
  cached copy of the fonts instead of each page carrying its own ~400KB of
  embedded font data like index.html does.
*/

@font-face{
  font-family:'Poppins';
  src:url('../brand/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:'Open Sans';
  src:url('../brand/fonts/OpenSans-Regular.ttf') format('truetype');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

:root{
  --spark-blue:#065ED4;
  --cub-yellow:#FDCF15;
  --ink:#0B1B33;
  --sky-tint:#EAF1FC;
  --white:#FFFFFF;
  --ink-muted:#5A6B85;
}

*{box-sizing:border-box; margin:0; padding:0;}

.skip-link{
  position:absolute;
  left:-999px;
  top:0;
  z-index:2000;
  background:var(--spark-blue);
  color:var(--white);
  padding:12px 20px;
  font-weight:700;
  border-radius:0 0 8px 0;
}
.skip-link:focus{left:0;}
html{scroll-behavior:smooth;}
body{
  font-family:'Open Sans', -apple-system, 'Segoe UI', sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}
h1,h2,h3{
  font-family:'Poppins', -apple-system, 'Segoe UI', sans-serif;
  font-weight:700;
  line-height:1.3;
}
img{max-width:100%; display:block;}
a{color:var(--spark-blue); text-decoration:none;}
a:hover{text-decoration:underline;}
ul{list-style:none;}

/* No max-width here on purpose — the header/footer shell always runs
   edge-to-edge with the viewport (logo and nav land near the actual
   browser corners on any screen size), padding is the only margin. */
.container{width:100%; padding:0 24px;}

@media (min-width:768px){
  .container{padding:0 48px;}
}

/* Reading-width content — capped and left-aligned (not centered), so
   its left edge lines up with the logo/heading above it instead of
   floating in an offset column. */
.blog-intro, .blog-list, .post-header, .post-body{
  max-width:720px;
}

/* ---------- Site header (shared by blog.html + every post) ---------- */
.site-header{
  border-bottom:1px solid var(--sky-tint);
  padding:20px 0;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.site-header .logo-link{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Poppins', sans-serif;
  font-weight:700;
  color:var(--ink);
}
.site-header .logo-link:hover{text-decoration:none;}
.site-header .logo-link img{width:36px; height:36px; border-radius:50%;}
.site-header .logo-link,
.site-header .back-link{padding:10px 0;}
.site-header .back-link{font-size:14px; font-weight:700;}

.site-nav{display:flex; align-items:center; gap:20px; flex-wrap:wrap;}
.site-nav a{font-size:14px; font-weight:700; color:var(--ink);}
.site-nav a:hover{color:var(--spark-blue); text-decoration:none;}
.site-nav a.active{color:var(--spark-blue);}

/* ---------- Blog index ---------- */
.blog-intro{padding:40px 0 8px;}
.blog-intro h1{font-size:30px; color:var(--spark-blue); margin-bottom:8px;}
.blog-intro p{color:var(--ink-muted); font-size:16px;}

.blog-list{padding:24px 0 64px;}
.post-card{
  padding:28px 0;
  border-bottom:1px solid var(--sky-tint);
}
.post-card:first-child{padding-top:0;}
.post-date{
  font-size:13px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--spark-blue);
  margin-bottom:8px;
  display:block;
}
.post-card h2{font-size:22px; margin-bottom:8px;}
.post-card h2 a{color:var(--ink);}
.post-card h2 a:hover{color:var(--spark-blue); text-decoration:none;}
.post-excerpt{color:var(--ink-muted); font-size:15px; margin-bottom:10px;}
.read-more{font-size:14px; font-weight:700;}

.empty-state{
  padding:32px 0 64px;
  color:var(--ink-muted);
  font-size:15px;
}

/* ---------- Single post ---------- */
.post-header{padding:40px 0 8px;}
.post-header h1{font-size:30px; color:var(--ink); margin-bottom:10px;}
.post-meta{font-size:14px; color:var(--ink-muted);}

.post-body{padding:24px 0 16px; font-size:17px; line-height:1.8;}
.post-body p{margin-bottom:20px;}
.post-body h2{font-size:22px; margin:32px 0 14px; color:var(--ink);}
.post-body h3{font-size:18px; margin:28px 0 12px; color:var(--ink);}
.post-body ul, .post-body ol{margin:0 0 20px 22px; list-style:revert;}
.post-body li{margin-bottom:8px;}
.post-body blockquote{
  border-left:4px solid var(--cub-yellow);
  padding-left:18px;
  margin:24px 0;
  color:var(--ink-muted);
  font-style:italic;
}
.post-body img{border-radius:12px; margin:24px 0;}

/* ---------- Static page intro (About, FAQ) ---------- */
.page-intro{padding:40px 0 8px; max-width:720px;}
.page-intro h1{font-size:30px; color:var(--spark-blue); margin-bottom:8px;}
.page-intro p{color:var(--ink-muted); font-size:16px;}

/* ---------- Static page body (About, FAQ) ---------- */
.page-body{padding:24px 0 16px; max-width:720px;}
.page-body p{margin-bottom:20px; font-size:17px; line-height:1.8;}
.page-body h2{font-size:22px; margin:36px 0 14px; color:var(--ink);}
.page-body h2:first-child{margin-top:0;}

/* ---------- Two/three-up cards (About: who we teach, our values) ---------- */
.card-grid{display:grid; gap:16px; margin:0 0 20px; grid-template-columns:1fr;}
.card-grid.cols-3{grid-template-columns:1fr;}
@media (min-width:640px){
  .card-grid{grid-template-columns:1fr 1fr;}
  .card-grid.cols-3{grid-template-columns:1fr 1fr 1fr;}
}
.info-card{
  background:var(--sky-tint);
  border-radius:12px;
  padding:20px;
}
.info-card h3{font-family:'Poppins', sans-serif; font-size:17px; margin-bottom:8px; color:var(--spark-blue);}
.info-card p{font-size:15px; color:var(--ink-muted); margin-bottom:0;}

/* ---------- FAQ accordion ---------- */
.faq-section{max-width:720px; padding:8px 0 16px;}
.faq-section h2{font-size:20px; margin:32px 0 14px; color:var(--spark-blue);}
.faq-section h2:first-child{margin-top:0;}
.faq-item{
  border-bottom:1px solid var(--sky-tint);
}
.faq-item summary{
  padding:16px 28px 16px 0;
  font-family:'Poppins', sans-serif;
  font-weight:700;
  font-size:16px;
  cursor:pointer;
  list-style:none;
  position:relative;
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{
  content:'+';
  position:absolute;
  right:4px;
  top:14px;
  font-size:22px;
  color:var(--spark-blue);
  font-weight:400;
}
.faq-item[open] summary::after{content:'\2212';}
.faq-item p{
  padding:0 28px 18px 0;
  color:var(--ink-muted);
  font-size:15px;
  line-height:1.7;
}

/* ---------- Shared CTA footer ---------- */
.cta-footer{
  background:var(--sky-tint);
  padding:40px 0 48px;
  text-align:center;
  margin-top:24px;
}
.cta-footer p{font-size:16px; font-weight:700; margin-bottom:18px; color:var(--ink);}
.btn{
  display:inline-block;
  font-family:'Poppins', sans-serif;
  font-weight:700;
  font-size:16px;
  padding:15px 34px;
  border-radius:999px;
  background:var(--cub-yellow);
  color:var(--ink);
}
.btn:hover{text-decoration:none; opacity:.92;}
.cta-footer .btn-row{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
}
.cta-footer .btn-outline{
  background:transparent;
  border:2px solid var(--spark-blue);
  color:var(--spark-blue);
  padding:13px 32px;
}
.cta-footer .home-link{
  display:block;
  margin-top:18px;
  font-size:14px;
  font-weight:700;
}

@media (min-width:640px){
  .blog-intro{padding:56px 0 8px;}
  .blog-intro h1{font-size:36px;}
  .post-header{padding:56px 0 8px;}
  .post-header h1{font-size:38px;}
}
