/* =====================================================
   Daily Dino Guy — Blog (index + single post)
   Companion to main.css. Loads after.
   ===================================================== */

/* ── BLOG INDEX: HERO ─────────────────────────────────── */
.blog-hero { padding: clamp(80px, 12vw, 140px) 0 clamp(40px, 6vw, 70px); }
.blog-hero .wrap { max-width: 900px; text-align: center; }
.blog-hero .s-label { margin-bottom: 1.25rem; }
.blog-hero .s-h1 { margin-bottom: 1.25rem; }
.blog-hero-sub {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 680px;
}
.blog-hero-entity {
  display: block;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}
.blog-hero-intro {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

/* ── BLOG INDEX: FEATURED ARTICLE ─────────────────────── */
.featured-article { padding: clamp(40px, 6vw, 70px) 0; }
.featured-article-head { margin-bottom: 2rem; }
.featured-article-head .s-label { margin-bottom: 1.25rem; }
.featured-article-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.featured-article-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 820px) {
  .featured-article-card { grid-template-columns: 1fr; gap: 0; }
}
.featured-article-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.featured-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.featured-article-card:hover .featured-article-image img { transform: scale(1.04); }
.featured-article-body { padding: 2.5rem; }
@media (max-width: 820px) {
  .featured-article-body { padding: 1.75rem; }
}
.featured-article-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.featured-article-title {
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.featured-article-lead {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.featured-article-byline {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.featured-article-byline strong { color: var(--ink); font-weight: 600; }
.featured-article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.2s;
}
.featured-article-link:hover { gap: 0.6rem; }

/* ── BLOG INDEX: BROWSE BY TOPIC ──────────────────────── */
.browse-topics { padding: clamp(40px, 6vw, 70px) 0; background: var(--white); }
.browse-topics-head { text-align: center; margin-bottom: 2.5rem; }
.browse-topics-head .s-label { margin-bottom: 1.25rem; }
.browse-topics-head .s-h2 em { font-style: italic; }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.topic-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s;
}
.topic-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 109, 170, 0.08);
}
.topic-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 109, 170, 0.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.topic-card-icon svg { width: 18px; height: 18px; }
.topic-card-h {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.topic-card-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.topic-card-arrow {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* ── BLOG INDEX: ALL ARTICLES ─────────────────────────── */
.all-articles { padding: clamp(50px, 8vw, 90px) 0; }
.all-articles-head { margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; }
.all-articles-head .s-label { margin-bottom: 1.25rem; }
.all-articles-head .s-h2 em { font-style: italic; }
.all-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.all-articles-card-byline {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.blog-placeholder-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ── BLOG INDEX: NEWSLETTER (reuses existing pattern) ─── */
.blog-newsletter {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(60px, 9vw, 100px) 0;
  text-align: center;
}
.blog-newsletter .wrap { max-width: 720px; }
.blog-newsletter .s-label { color: var(--sky); margin-bottom: 1.25rem; }
.blog-newsletter .s-h2 { color: var(--paper); margin-bottom: 1.25rem; }
.blog-newsletter .s-h2 em { color: var(--sky); font-style: italic; }
.blog-newsletter-body {
  color: var(--on-dark);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.blog-newsletter-fine {
  color: var(--on-dark-soft);
  font-size: 0.82rem;
  margin-top: 1rem;
}

/* =====================================================
   SINGLE POST TEMPLATE
   ===================================================== */

.post-layout {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
}
@media (min-width: 720px) {
  .post-layout { padding: 0 var(--gutter); }
}

/* ── BREADCRUMB ───────────────────────────────────────── */
.post-breadcrumb {
  padding: clamp(40px, 6vw, 60px) 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.post-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.post-breadcrumb li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--muted-soft);
}
.post-breadcrumb li:last-child::after { content: ""; }
.post-breadcrumb a { color: var(--accent); }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ── HEADER ───────────────────────────────────────────── */
.post-header { padding: clamp(20px, 3vw, 30px) 0 clamp(30px, 5vw, 50px); }
.post-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.post-h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.post-byline {
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}
.post-byline strong { color: var(--ink); font-weight: 600; }
.post-byline a { color: var(--accent); }
.post-byline a:hover { text-decoration: underline; }
.post-byline .sep { color: var(--muted-soft); }

/* ── FEATURED IMAGE ───────────────────────────────────── */
.post-featured-image { margin: 0 0 clamp(30px, 5vw, 50px); }
.post-featured-image figure { margin: 0; }
.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.post-featured-image figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.5;
  font-style: italic;
}
.post-featured-image figcaption strong { color: var(--ink); font-style: normal; font-weight: 500; }

/* ── LEAD PARAGRAPH ───────────────────────────────────── */
.post-lead {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink);
  border-left: 4px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.post-lead strong { color: var(--accent); font-weight: 600; }

/* ── KEY TAKEAWAYS BOX ────────────────────────────────── */
.post-takeaways {
  background: rgba(0, 109, 170, 0.04);
  border: 1px solid rgba(0, 109, 170, 0.15);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.post-takeaways h2 {
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.post-takeaways ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.post-takeaways li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.55;
  color: var(--ink);
  font-size: 0.98rem;
}
.post-takeaways li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ── TABLE OF CONTENTS ────────────────────────────────── */
.post-toc {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: clamp(30px, 5vw, 50px);
}
.post-toc-h {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.post-toc ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.post-toc a {
  color: var(--accent);
  font-size: 0.95rem;
}
.post-toc a:hover { text-decoration: underline; }

/* ── BODY TYPOGRAPHY ──────────────────────────────────── */
.post-body { font-size: 1.075rem; line-height: 1.75; color: var(--ink); }
.post-body h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
  font-weight: 700;
  color: var(--ink);
}
.post-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
.post-body p { margin-bottom: 1.25rem; }
.post-body p:last-child { margin-bottom: 0; }
.post-body a { color: var(--accent); border-bottom: 1px solid rgba(0, 109, 170, 0.3); }
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body em { font-style: italic; }
.post-body strong { font-weight: 600; color: var(--ink); }
.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.5rem;
  display: grid;
  gap: 0.5rem;
}
.post-body figure {
  margin: 2rem 0;
}
.post-body figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.post-body figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
  font-style: italic;
  text-align: center;
}
.post-body .prompt {
  display: block;
  background: rgba(255, 200, 0, 0.08);
  border-left: 3px dashed #c89500;
  padding: 0.85rem 1rem;
  margin: 0.5rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: #6a4e00;
  line-height: 1.55;
  border-radius: 4px;
}
.post-body .prompt strong { color: #6a4e00; }

/* ── PULL QUOTE ───────────────────────────────────────── */
.post-pullquote {
  margin: 2.5rem 0;
  padding: 1.75rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  text-align: center;
}
.post-pullquote p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 620px;
  margin: 0 auto;
}
.post-pullquote cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── INLINE CONVERSION CALLOUT ────────────────────────── */
.post-conversion-callout {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
}
.post-conversion-callout h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--paper);
}
.post-conversion-callout p {
  color: var(--on-dark);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.post-conversion-callout a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sky);
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
  text-decoration: underline;
}

/* ── AUTHOR BIO BLOCK ─────────────────────────────────── */
.post-author-bio {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: clamp(40px, 6vw, 60px) 0 0;
}
@media (max-width: 600px) {
  .post-author-bio { grid-template-columns: 1fr; text-align: left; }
}
.post-author-bio img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}
.post-author-bio h3 {
  font-family: var(--display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.post-author-bio p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.post-author-bio a { color: var(--accent); border-bottom: 1px solid rgba(0, 109, 170, 0.3); }

/* ── RELATED ARTICLES ─────────────────────────────────── */
.post-related {
  padding: clamp(50px, 8vw, 90px) 0 clamp(40px, 6vw, 60px);
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 6vw, 60px);
}
.post-related .wrap { max-width: var(--wrap); }
.post-related-head { margin-bottom: 2rem; text-align: center; }
.post-related-head .s-label { margin-bottom: 1.25rem; }
.post-related-head .s-h2 em { font-style: italic; }
.post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── CATEGORY PAGE: EMPTY STATE ──────────────────────── */
.category-empty {
  text-align: center;
  padding: clamp(50px, 8vw, 90px) 24px;
  background: var(--paper);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.category-empty p {
  color: var(--muted);
  margin: 0 auto 0.75rem;
  line-height: 1.6;
  max-width: 480px;
}
.category-empty p.category-empty-head {
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 1rem;
}
.category-empty-ctas {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
