/* Massage Scribe — blog styles.
   Layered on css/style.css: same tokens, same nav and footer. Only the
   article-reading pieces live here. */

/* ---------- Shared header for blog pages ---------- */
.blog-shell {
  padding-top: 96px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--teal-dark);
}
.breadcrumb span {
  margin: 0 6px;
}

/* ---------- Blog index ---------- */
.blog-index-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.blog-index-head h1 {
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  margin: 0 0 14px;
}
.blog-index-head p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin-inline: auto;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.post-card .kicker {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 12px;
}
.post-card h2 {
  font-size: 1.32rem;
  line-height: 1.25;
  margin: 0 0 12px;
}
.post-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin: 0 0 18px;
  flex: 1;
}
.post-card .read {
  font-weight: 600;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

/* ---------- Article ---------- */
.post-header {
  max-width: 760px;
  margin: 0 auto 40px;
}
.post-header h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.post-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.post-standfirst {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 22px 0 0;
}

.post-body {
  max-width: 720px;
  margin-inline: auto;
  font-size: 1.06rem;
  line-height: 1.75;
}
.post-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  margin: 52px 0 16px;
  scroll-margin-top: 96px;
}
.post-body h3 {
  font-size: 1.22rem;
  margin: 34px 0 12px;
}
.post-body p {
  margin: 0 0 20px;
}
.post-body ul,
.post-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.post-body li {
  margin-bottom: 10px;
}
.post-body a {
  color: var(--teal-dark);
  font-weight: 600;
}
.post-body strong {
  color: var(--text);
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

/* Table of contents */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 0 0 40px;
}
.toc p {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 0 12px !important;
  font-size: 1rem;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc li {
  margin-bottom: 7px;
  font-size: 0.98rem;
}

/* Pull-out note */
.callout {
  background: #fff;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 0 0 26px;
  font-size: 1rem;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout .label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 6px;
}

/* Copy-paste template block */
.template {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 28px;
}
.template h4 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 16px;
  color: var(--teal-dark);
}
.template dl {
  margin: 0;
}
.template dt {
  font-weight: 700;
  margin-top: 16px;
  font-size: 0.98rem;
}
.template dt:first-child {
  margin-top: 0;
}
.template dd {
  margin: 4px 0 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* Worked example */
.example {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 0 0 28px;
}
.example h4 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  margin: 0 0 6px;
}
.example .context {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.example p {
  font-size: 1rem;
  margin-bottom: 14px;
}
.example p:last-child {
  margin-bottom: 0;
}
.example .sec {
  font-weight: 700;
  color: var(--teal-dark);
}

/* Comparison table */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  font-size: 0.98rem;
}
.post-body th,
.post-body td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.post-body th {
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--surface-alt);
}

/* In-article product card */
.promo {
  background: linear-gradient(135deg, #fff, var(--surface-alt));
  border: 1px solid var(--teal-light);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  margin: 40px 0;
  box-shadow: var(--shadow-sm);
}
.promo h3 {
  margin: 0 0 10px !important;
  font-size: 1.25rem;
}
.promo p {
  color: var(--text-secondary);
  margin-bottom: 18px !important;
  font-size: 1rem;
}
.promo .btn {
  font-size: 0.98rem;
}
.promo .fine {
  display: block;
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Related posts */
.post-footer {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.post-footer h3 {
  font-size: 1.15rem;
  margin: 0 0 18px;
}
.related {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related li {
  margin-bottom: 12px;
}
.related a {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}
.related a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .blog-shell {
    padding-top: 84px;
  }
  .post-body {
    font-size: 1.02rem;
  }
  .promo,
  .template,
  .example {
    padding: 22px 20px;
  }
}

/* Print: the template page should come off a printer looking like a form. */
@media print {
  .nav,
  .footer,
  .promo,
  .toc,
  .breadcrumb,
  .post-footer,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .blog-shell {
    padding-top: 0;
  }
  .post-body,
  .post-header {
    max-width: 100%;
  }
  .template {
    break-inside: avoid;
    border: 1px solid #999;
  }
  .template dd {
    color: #000;
    min-height: 44px;
    border-bottom: 1px dotted #bbb;
  }
  a {
    text-decoration: none;
    color: #000;
  }
}
