/* Shared styling for the blog: article typography, index cards, library items.
   Loaded after wowchemy.css on every /blog/ page. */

.blog-page {
  padding-top: 90px;
  padding-bottom: 60px;
}

/* ---------- article ---------- */

.blog-article {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.75;
  color: #2b2b2b;
}

.blog-article h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}

.blog-article h2 {
  font-size: 1.45rem;
  margin-top: 2.6rem;
  margin-bottom: 0.9rem;
}

.blog-article h3 {
  font-size: 1.15rem;
  margin-top: 1.9rem;
  margin-bottom: 0.6rem;
}

.post-meta {
  color: #767574;
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.post-meta a { color: #1565c0; }

.post-lede {
  font-size: 1.16rem;
  color: #444;
}

.blog-article figure {
  margin: 2rem 0;
}

.blog-article figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e6e5e2;
  border-radius: 4px;
}

.blog-article figcaption {
  font-size: 0.88rem;
  color: #767574;
  margin-top: 0.6rem;
  line-height: 1.5;
}

.blog-article code {
  font-family: "Roboto Mono", monospace;
  font-size: 0.88em;
  background: #f4f4f2;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  color: #333;
}

.blog-article blockquote {
  border-left: 3px solid #c9d8ec;
  margin: 1.5rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  color: #555;
}

/* practical aside */
.note-box {
  border-left: 4px solid #1565c0;
  background: #f5f8fc;
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.3rem;
  margin: 1.8rem 0;
  font-size: 0.98rem;
}

.note-box p:last-child { margin-bottom: 0; }

/* table of contents */
.toc-box {
  background: #f8f8f6;
  border: 1px solid #e8e7e4;
  border-radius: 4px;
  padding: 1rem 1.4rem;
  margin: 1.8rem 0 2.2rem;
  font-size: 0.95rem;
}

.toc-box strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #767574;
}

.toc-box ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc-box li { margin: 0.15rem 0; }

/* notebook links strip */
.nb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.6rem 0;
}

.nb-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #1565c0;
  border-radius: 4px;
  color: #1565c0;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nb-links a:hover {
  background: #1565c0;
  color: #fff;
}

/* references */
.ref-list {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #444;
  padding-left: 1.4rem;
}

.ref-list li {
  margin-bottom: 0.55rem;
}

/* ---------- index pages ---------- */

.blog-hero {
  max-width: 780px;
  margin: 0 auto 2.5rem;
}

.blog-hero h1 { margin-bottom: 0.5rem; }

.blog-hero p {
  color: #555;
  font-size: 1.08rem;
}

.track-card {
  border: 1px solid #e6e5e2;
  border-left: 4px solid #1565c0;
  border-radius: 4px;
  transition: box-shadow 0.15s;
  height: 100%;
}

.track-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,0.09); }

.track-card .card-body { padding: 1.4rem; }

.track-card.edtech { border-left-color: #1baf7a; }

.post-list-item {
  border-bottom: 1px solid #eceae7;
  padding: 1.4rem 0;
}

.post-list-item:last-child { border-bottom: none; }

.post-list-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
}

.post-list-item h3 a { color: #2b2b2b; }

.post-list-item h3 a:hover { color: #1565c0; text-decoration: none; }

.post-list-item .meta {
  font-size: 0.88rem;
  color: #767574;
  margin-bottom: 0.5rem;
}

.post-list-item p.summary {
  color: #555;
  margin-bottom: 0;
}

/* ---------- edtech library ---------- */

.lib-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.6rem;
}

.lib-filters button {
  border: 1px solid #d5d4d0;
  background: #fff;
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.88rem;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.lib-filters button.active,
.lib-filters button:hover {
  border-color: #1baf7a;
  color: #0d7a53;
  background: #eefaf5;
}

.lib-item {
  border: 1px solid #e8e7e4;
  border-radius: 4px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
}

.lib-item h3 {
  font-size: 1.08rem;
  margin: 0 0 0.35rem;
}

.lib-item h3 a { color: #2b2b2b; }
.lib-item h3 a:hover { color: #1565c0; text-decoration: none; }

.lib-item.featured {
  border-color: #bfe5d6;
  border-left: 4px solid #1baf7a;
  background: #fbfefd;
}

.lib-latest {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0d7a53;
  margin-right: 0.6rem;
}

.lib-meta strong { color: #2b2b2b; font-weight: 600; }

.lib-image {
  display: block;
  margin: 0.8rem 0;
}

.lib-image img {
  max-width: min(100%, 420px);
  height: auto;
  border-radius: 4px;
  border: 1px solid #e6e5e2;
}

.lib-quote {
  border-left: 3px solid #cde9dd;
  margin: 0.7rem 0;
  padding: 0.15rem 0 0.15rem 1rem;
  color: #444;
  font-style: italic;
  font-size: 0.98rem;
}

.lib-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 0.8rem 0;
}

.lib-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 4px;
}

.lib-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 0.7rem;
  font-size: 0.88rem;
}

.lib-links a { font-weight: 600; }

.lib-item .lib-meta {
  font-size: 0.85rem;
  color: #767574;
  margin-bottom: 0.4rem;
}

.lib-item p.blurb {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* ---------- news feed (homepage) ---------- */

.news-feed-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid #eceae7;
}

.news-feed-item:last-child { border-bottom: none; }

.news-feed-item .nf-date {
  font-size: 0.85rem;
  color: #767574;
  white-space: nowrap;
}

.news-feed-item .nf-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.12rem 0.55rem;
  border-radius: 3px;
  background: #e8f0fb;
  color: #1a5296;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.news-feed-item h4 {
  font-size: 1.05rem;
  margin: 0.25rem 0 0.2rem;
}

.news-feed-item h4 a { color: #2b2b2b; }
.news-feed-item h4 a:hover { color: #1565c0; text-decoration: none; }

.news-feed-item p {
  font-size: 0.93rem;
  color: #555;
  margin: 0;
}

@media (max-width: 576px) {
  .blog-article { font-size: 1rem; }
  .blog-article h1 { font-size: 1.7rem; }
}
