/* article.css — styles for /slug/index.html article pages */

.article-page {
  width: min(780px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb span[aria-hidden] {
  color: var(--line-strong);
}

/* Article shell */
.article-shell {
  padding: 32px 0 0;
}

/* Article header */
.article-head {
  margin-bottom: 48px;
}

.article-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.article-lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--soft-ink);
  margin: 0 0 28px;
  max-width: 640px;
}

/* Store badges in article */
.article-head .store-row,
.article-section .store-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.store-badge img {
  height: 46px;
  width: auto;
  border-radius: 10px;
}

.store-badge:hover {
  transform: translateY(-2px);
  transition: transform 180ms ease;
}

/* Article sections */
.article-section {
  margin-bottom: 44px;
}

.article-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

.article-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 8px;
}

.article-section p {
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--ink);
  margin: 0 0 16px;
}

.article-section strong {
  font-weight: 700;
  color: var(--ink);
}

/* Prose lists */
.prose-list {
  margin: 12px 0 20px;
  padding-left: 24px;
}

.prose-list li {
  font-size: 1.02rem;
  line-height: 1.72;
  margin-bottom: 10px;
  color: var(--ink);
}

/* Ordered steps */
.steps-list {
  margin: 12px 0 20px;
  padding-left: 24px;
  counter-reset: step;
}

.steps-list li {
  font-size: 1.02rem;
  line-height: 1.72;
  margin-bottom: 12px;
  color: var(--ink);
}

/* Comparison tables */
.compare-wrap {
  overflow-x: auto;
  margin: 16px 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 246, 237, 0.82));
  box-shadow: var(--shadow-soft);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.55;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
  position: sticky;
  top: 0;
}

.compare-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tr.ours {
  background: rgba(179, 95, 62, 0.06);
}

.compare-table tr.ours th {
  color: var(--accent-deep);
}

.muted-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

/* FAQ section */
.faq-section details {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 246, 237, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-section summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-section summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--cream-2);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-deep);
  transition: transform 200ms ease;
}

.faq-section details[open] summary::before {
  content: "−";
  transform: rotate(0deg);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section details p {
  padding: 0 20px 18px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--soft-ink);
}

/* Related guides */
.related-grid {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-grid li a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 246, 237, 0.82));
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.related-grid li a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* Footer CTA for article pages */
.article-page .footer-cta {
  width: 100%;
  margin: 48px 0 0;
  padding: 56px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-content {
  max-width: 520px;
  margin: 0 auto;
}

.footer-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-content > p {
  color: var(--soft-ink);
  font-size: 1.05rem;
  margin: 0 0 28px;
}

.footer-content .store-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Site footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: flex;
  gap: 18px;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.site-footer a:hover {
  color: var(--ink);
}

/* Diff grid (for commercial pages) */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.diff-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(255, 246, 237, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.diff-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--soft-ink);
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .article-page {
    width: calc(100% - 32px);
  }

  .article-head h1 {
    font-size: 1.75rem;
  }

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

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .related-grid {
    flex-direction: column;
  }

  .related-grid li a {
    display: block;
    text-align: center;
  }
}
