/* ─────────────────────────────────────────────────────────────
   Graphene Edu — shared blog post stylesheet
   Loaded by all blog posts. Bundle accent overrides live inline
   in each post's <style> block (only non-default bundles).
   ───────────────────────────────────────────────────────────── */

html { font-size: 20px; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2a35;
  background: #E8ECF0;
  line-height: 1.6;
}

/* ── Top bar ── */
.topbar {
  background: #2D4A5A;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar a { color: rgba(255,255,255,0.7); text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ── Hero ── */
.hero {
  background: #2D4A5A;
  color: #fff;
  padding: 48px 24px 44px;
  text-align: center;
}
.hero h1 {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  max-width: 900px;
  margin: 0 auto 14px;
  line-height: 1.25;
}
.hero .meta { font-size: 0.7rem; opacity: 0.55; }

/* ── Two-column layout ── */
.page-body {
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

/* ── Article ── */
.article { display: flex; flex-direction: column; gap: 36px; }

.section h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent, #2D4A5A);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.section p { font-size: 0.88rem; color: #2a3a45; line-height: 1.9; text-wrap: pretty; }
.section p + p { margin-top: 14px; }
.section a { color: var(--accent, #2D4A5A); font-weight: 700; text-decoration: underline; }
.section a:hover { color: #1a2a35; }

/* ── Inline glance table ── */
.glance-inline {
  background: #E6ECF0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.glance-inline table { border-collapse: collapse; font-size: 0.74rem; width: 100%; }
.glance-inline td { padding: 5px 16px 5px 0; color: #3a4a55; vertical-align: top; }
.glance-inline td:first-child { font-weight: 700; color: #2D4A5A; white-space: nowrap; width: 110px; }

/* ── CTA box ── */
.cta-box { background: #E6ECF0; border-radius: 16px; padding: 28px 26px; }
.cta-box h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  color: #2D4A5A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.cta-box p { font-size: 0.84rem; color: #3a4a55; line-height: 1.85; margin-bottom: 18px; }
.cta-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-btn {
  display: inline-block;
  background: #2D4A5A;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
}
.cta-btn:hover { background: #1a2a35; }
.cta-btn.secondary {
  background: transparent;
  color: #2D4A5A;
  border: 2px solid #2D4A5A;
}
.cta-btn.secondary:hover { background: #d0d8df; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 20px; }

/* ── Blog nav ── */
.blog-nav { border: 1px solid #d0d8df; border-radius: 16px; padding: 20px 22px; background: #fff; }
.blog-nav .nav-label {
  font-size: 0.52rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: #2D4A5A; opacity: 0.6; margin-bottom: 12px;
}
.blog-nav .nav-month {
  font-size: 0.55rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #2D4A5A; margin-bottom: 8px;
}
.blog-nav ul { list-style: none; display: flex; flex-direction: column; }
.blog-nav ul li { border-bottom: 1px solid #e4eaee; padding: 8px 0; }
.blog-nav ul li:last-child { border-bottom: none; padding-bottom: 0; }
.blog-nav ul li a { font-size: 0.72rem; color: #3a4a55; text-decoration: none; line-height: 1.4; display: block; }
.blog-nav ul li a:hover { color: #2D4A5A; text-decoration: underline; }
.blog-nav ul li a.current { font-weight: 700; color: #2D4A5A; }

/* ── Email box ── */
.email-box {
  background: #2D4A5A; color: #fff; border-radius: 16px; padding: 28px 24px; text-align: center;
}
.email-box p.label {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; opacity: 0.6; margin-bottom: 10px;
}
.email-box h3 { font-family: 'Nunito', sans-serif; font-size: 0.88rem; font-weight: 800; line-height: 1.35; margin-bottom: 18px; }
.email-box a.box-btn {
  display: block; background: #fff; color: #2D4A5A; text-decoration: none;
  padding: 12px 16px; border-radius: 10px; font-size: 0.74rem; font-weight: 800;
}
.email-box a.box-btn:hover { background: #E6ECF0; }

/* ── Footer ── */
footer {
  background: #1a2a35; color: rgba(255,255,255,0.45);
  text-align: center; padding: 24px 20px; font-size: 0.68rem;
}
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 720px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { position: static; order: -1; }
}

/* ── Article image + caption ── */
.article-img { width: 100%; border-radius: 12px; display: block; }
.article-img-wrap { margin: 4px 0 0; }
.img-caption { font-size: 0.65rem; color: #7a8a95; line-height: 1.6; margin-top: 8px; }
.img-caption a { color: #7a8a95; font-weight: 400; text-decoration: underline; }
