/* ==========================================================================
   Blog post components — shared across all Tallykins blog articles
   ========================================================================== */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #40A0B5;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Article meta line (date · read time · category) */
.article-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
}

/* Callout — left-accent info box */
.callout {
  background: var(--card-bg);
  border-left: 4px solid #40A0B5;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Tip box — highlighted aside */
.tip-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.tip-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* Scenario box — worked example */
.scenario-box {
  background: #f9f9f9;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.scenario-box h4 {
  margin-top: 0;
  color: #40A0B5;
  font-size: 1rem;
}

.scenario-box p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

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

/* How it works — numbered step block */
.how-it-works {
  background: var(--card-bg);
  border: 1px solid var(--border-blue);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.how-it-works h3 {
  margin-top: 0;
  color: #40A0B5;
}

.how-it-works ol {
  padding-left: 1.5rem;
  margin: 0;
}

.how-it-works li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.how-it-works li:last-child {
  margin-bottom: 0;
}

/* Pullquote */
.pullquote {
  border-top: 2px solid #40A0B5;
  border-bottom: 2px solid #40A0B5;
  margin: 2rem 0;
  padding: 1.25rem 0;
  text-align: center;
}

.pullquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.comparison-table th {
  background: #40A0B5;
  color: #fff;
  padding: 0.6rem 0.9rem;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table tr:nth-child(even) td {
  background: #f5fbfd;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .tick {
  color: #4caf50;
  font-weight: bold;
}

.comparison-table .cross {
  color: #e53935;
  font-weight: bold;
}

/* Architecture list — labelled list items */
.architecture-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.architecture-list li {
  padding: 0.75rem 1rem;
  border-left: 3px solid #40A0B5;
  margin-bottom: 0.75rem;
  background: #f5fbfd;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.architecture-list li strong {
  display: block;
  color: #1a1a1a;
  margin-bottom: 0.2rem;
}

/* FAQ section */
.faq-section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border-blue);
  padding-top: 1.5rem;
}

.faq-section h2 {
  font-size: 1.3rem;
  color: #1a1a1a;
  margin-bottom: 1.25rem;
}

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.65;
  margin: 0;
}

/* Related reading nav */
.related-reading {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-blue);
}

.related-reading p {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.related-reading ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-reading li {
  margin-bottom: 0.5rem;
}

.related-reading a {
  color: #40A0B5;
  text-decoration: none;
}

/* CTA box */
.cta-box {
  background: #40A0B5;
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 {
  color: #fff;
  margin-top: 0;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.cta-links,
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-links a img,
.cta-buttons a img {
  height: 40px;
  width: auto;
  display: block;
}

/* Back to blog link */
.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: #40A0B5;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .pullquote p {
    font-size: 1rem;
  }

  .comparison-table {
    font-size: 0.82rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.6rem;
  }
}