/* ================================================================
   TITLE HQ — Blog Article Single Page Styles
   Matches /reference/blog_article.html. Uses warm-white header
   with teal left border (not the standardized image hero).
   ================================================================ */

/* ── ARTICLE HEADER ── */
.article-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--stone);
  padding: 44px 0 48px;
  position: relative;
}
.article-header::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--teal);
}
.article-header-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.article-header-inner .breadcrumb { justify-content: center; }
.article-header-inner .article-tag { margin-left: auto; margin-right: auto; }
.article-header-inner .article-meta { justify-content: center; }

.article-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--mid-gray);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.article-header .breadcrumb a { color: var(--teal); transition: color 0.2s; }
.article-header .breadcrumb a:hover { color: var(--teal-dark); }
.article-header .breadcrumb svg { opacity: 0.4; flex-shrink: 0; }

.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}
.article-tag.tag-getting-started { background: var(--teal-light); color: var(--teal); }
.article-tag.tag-how-it-works    { background: var(--teal-light); color: var(--teal); }
.article-tag.tag-buying          { background: #e8f0fe; color: #1a56db; }
.article-tag.tag-ms-market       { background: #e8f0fe; color: #1a56db; }
.article-tag.tag-industry        { background: #fef3cd; color: #92620a; }

.article-header h1 {
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--mid-gray);
}
.meta-item svg { color: var(--teal); flex-shrink: 0; }
.meta-divider { width: 1px; height: 16px; background: var(--stone); }

/* ── FEATURE IMAGE ── */
.feature-image-wrap {
  padding: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--stone);
}
.feature-image-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.feature-image-inner {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.feature-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.feature-image-caption {
  max-width: 760px;
  margin: 10px auto 0;
  font-size: 0.72rem;
  color: var(--mid-gray);
  font-style: italic;
  text-align: center;
}

/* ── ARTICLE BODY ── */
.article-body-wrap { padding: 60px 0 80px; }
.article-body-inner { max-width: 760px; margin: 0 auto; }

/* ── PROSE ── */
.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--text-dark);
  margin: 52px 0 16px;
  padding-top: 4px;
  line-height: 1.25;
}
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 10px;
  line-height: 1.3;
}
.prose p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.88;
  margin-bottom: 22px;
}
.prose p:last-child { margin-bottom: 0; }
.prose a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: rgba(24,121,128,0.3);
  transition: text-decoration-color 0.2s;
}
.prose a:hover { text-decoration-color: var(--teal); }
.prose strong { color: var(--text-dark); font-weight: 600; }
.prose em { font-style: italic; }

.prose ul, .prose ol {
  margin: 6px 0 22px 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prose li { font-size: 1.05rem; color: var(--text-body); line-height: 1.75; }
.prose ul li::marker { color: var(--teal); }
.prose ol li::marker { color: var(--teal); font-weight: 600; font-size: 0.95rem; }

/* Pull quote */
.prose .pull-quote {
  border-left: 4px solid var(--teal);
  margin: 36px 0;
  padding: 4px 0 4px 28px;
}
.prose .pull-quote p {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 0;
}

/* Callout */
.prose .callout {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px;
  margin: 32px 0;
}
.prose .callout p {
  font-size: 0.97rem;
  color: var(--teal-dark);
  line-height: 1.72;
  margin-bottom: 0;
}
.prose .callout p + p { margin-top: 12px; }

/* Definition / key term */
.prose .definition-box {
  background: var(--sand);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin: 32px 0;
}
.prose .definition-box .def-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 7px;
}
.prose .definition-box p {
  font-size: 0.97rem;
  color: var(--text-body);
  margin-bottom: 0;
  line-height: 1.72;
}

/* Comparison table */
.prose .compare-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stone);
  margin: 28px 0 32px;
  box-shadow: var(--shadow-sm);
}
.prose .compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}
.prose .compare-table th {
  background: var(--teal);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  text-align: left;
}
.prose .compare-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--stone);
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.65;
}
.prose .compare-table tr:last-child td { border-bottom: none; }
.prose .compare-table tr:nth-child(even) td { background: var(--warm-white); }
.prose .compare-table tr:nth-child(odd) td { background: #fff; }
.prose .compare-table td:first-child {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--text-dark);
  width: 30%;
}

/* Inline image (figure) */
.prose .inline-image {
  margin: 36px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.prose .inline-image img {
  width: 100%;
  object-fit: cover;
  max-height: 380px;
  display: block;
}
.prose .inline-image figcaption {
  background: var(--sand);
  padding: 10px 18px;
  font-size: 0.72rem;
  color: var(--mid-gray);
  font-style: italic;
}

/* Horizontal rule */
.prose hr {
  border: none;
  border-top: 1px solid var(--stone);
  margin: 48px 0;
}

/* ── SOCIAL SHARE ── */
.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  margin: 48px 0 0;
  flex-wrap: wrap;
}
.social-share-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-right: 4px;
  flex-shrink: 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--stone);
  background: #fff;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
}
.share-btn:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.share-btn.share-btn-copied { border-color: var(--teal); color: var(--teal); }

/* ── AUTHOR BIO CARD ── */
.author-bio {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: flex-start;
  margin-top: 32px;
  padding: 24px;
  background: var(--warm-white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
}
.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-bio-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}
.author-bio-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.author-bio-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}

/* ── INLINE CTA ── */
.article-cta {
  background: var(--teal);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 52px 0 0;
  flex-wrap: wrap;
}
.article-cta-text h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 6px;
}
.article-cta-text p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  margin: 0;
}
.article-cta .btn-white {
  background: #fff;
  color: var(--teal);
  border-color: #fff;
  flex-shrink: 0;
}
.article-cta .btn-white:hover { background: var(--teal-light); transform: translateY(-1px); }

/* ── RELATED ARTICLES ── */
.related-section {
  background: var(--sand);
  border-top: 1px solid var(--stone);
  padding: 64px 0 72px;
}
.related-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.related-header h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.related-header a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
.related-header a:hover { gap: 9px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stone);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-light); }

.related-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--sand);
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.related-card:hover .related-card-image img { transform: scale(1.05); }
.related-card-placeholder { width: 100%; height: 100%; background: var(--sand); }

.read-time-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(35,42,48,0.72);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-card-meta {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.related-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  flex: 1;
}
.related-card p {
  font-size: 0.83rem;
  color: var(--text-body);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 4px;
  transition: gap 0.2s;
}
.related-card:hover .related-card-link { gap: 9px; }

/* ── NEWSLETTER ── */
.newsletter-strip {
  background: var(--sky-light);
  border-top: 1px solid var(--sky);
  border-bottom: 1px solid var(--sky);
  padding: 52px 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.newsletter-inner h2 { color: var(--text-dark); font-size: 1.4rem; margin-bottom: 6px; }
.newsletter-inner p { color: var(--text-body); font-size: 0.88rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
/* Turnstile widget on the newsletter form — wraps to its own line below
   the email input + Subscribe button. Full width forces the wrap; widget
   itself sizes to its own internal ~300px. */
.newsletter-turnstile { flex-basis: 100%; margin-top: 4px; }
.newsletter-input {
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--sky);
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: var(--mid-gray); }
.newsletter-input:focus { border-color: var(--teal); }

.newsletter-thanks {
  display: none;
  font-size: 0.88rem;
  color: var(--teal-dark);
  font-weight: 500;
  margin-top: 14px;
}
.newsletter-thanks.show { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .newsletter-form { flex-wrap: wrap; }
  .newsletter-input { width: 100%; }
  .article-cta { flex-direction: column; gap: 20px; padding: 28px 24px; }
  .article-cta .btn-white { width: 100%; justify-content: center; }
  .author-bio { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author-bio-avatar { margin: 0 auto; }
}

@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .social-share { gap: 8px; }
}
