/* Article template */
.article-layout {
  display: grid; gap: 32px;
}
@media (min-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}
.article-main { min-width: 0; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.article-meta .chip {
  display: inline-flex; padding: 3px 12px; border-radius: 999px;
  background: var(--teal-100); color: var(--teal-800); font-size: 12px; font-weight: 800;
}
.article-cover {
  border-radius: 20px; overflow: hidden; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.article-cover img { width: 100%; height: min(360px, 50vw); object-fit: cover; }

.toc {
  padding: 18px 20px; border-radius: 16px;
  background: var(--teal-50); border: 1px solid var(--line);
  margin-bottom: 28px;
}
.toc strong { display: block; margin-bottom: 10px; color: var(--teal-800); font-size: 14px; }
.toc ol { margin: 0; padding-right: 1.2rem; }
.toc li { margin-bottom: 6px; }
.toc a { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.toc a:hover { color: var(--teal-800); }

.prose {
  max-width: 42rem; font-size: 1.05rem; line-height: 1.85; color: var(--ink);
}
.prose h2 { margin: 2rem 0 .75rem; color: var(--teal-800); font-size: 1.35rem; line-height: 1.4; }
.prose h3 { margin: 1.5rem 0 .5rem; color: var(--teal-800); font-size: 1.1rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-right: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }

.inline-cta {
  margin: 28px 0; padding: 22px 24px; border-radius: 20px;
  background: var(--teal-50); border: 1px solid var(--line);
  display: grid; gap: 12px;
}
@media (min-width: 720px) {
  .inline-cta { grid-template-columns: 1fr auto; align-items: center; }
}
.inline-cta h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--teal-800); }
.inline-cta p { margin: 0; font-size: 14px; color: var(--muted); }

.article-sidebar {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: grid; gap: 16px;
}
.sidebar-card {
  padding: 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(6,53,58,.06);
}
.sidebar-card strong { display: block; margin-bottom: 10px; color: var(--teal-800); font-size: 14px; }
.sidebar-card a {
  display: block; padding: 8px 0; font-size: 13.5px; font-weight: 600;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.sidebar-card a:last-child { border: 0; }
.sidebar-card a:hover { color: var(--teal-600); }

/* Category archive */
.category-intro {
  padding: 24px; border-radius: 20px;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  margin-bottom: 24px; box-shadow: 0 10px 28px rgba(6,53,58,.06);
}
.category-intro p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 52ch; }

.search-bar {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.search-bar input {
  flex: 1; min-height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; background: #fff;
}
.search-bar input:focus {
  outline: none; border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(59, 184, 171, 0.35);
}
.search-bar button {
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: var(--teal-800); color: #fff; font-weight: 800; font-size: 14px;
}

.pagination {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 32px; padding-bottom: 16px;
}
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
}
.pagination a.is-current, .pagination [aria-current="page"] {
  background: var(--teal-800); color: #fff; border-color: var(--teal-800);
}

/* Checklist landing */
.checklist-layout {
  display: grid; gap: 28px;
}
@media (min-width: 900px) {
  .checklist-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.lead-card {
  padding: 28px 24px; border-radius: 24px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.lead-card h2 { margin: 0 0 8px; color: var(--teal-800); font-size: 1.35rem; }
.lead-card > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.field input {
  min-height: 48px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit;
}
.field input:focus {
  outline: none; border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(59, 184, 171, 0.35);
}
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-soft); margin-bottom: 18px;
}
.check-row input { margin-top: 4px; accent-color: var(--teal-600); }
.btn-submit {
  width: 100%; min-height: 50px; border-radius: 999px;
  background: linear-gradient(135deg, var(--peach), var(--peach-soft));
  color: var(--teal-950); font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 24px rgba(232,160,106,.3);
}
.trust-list {
  padding: 24px; border-radius: 20px;
  background: var(--teal-50); border: 1px solid var(--line);
}
.trust-list h3 { margin: 0 0 12px; color: var(--teal-800); font-size: 1.1rem; }
.trust-list ul { margin: 0; padding-right: 1.2rem; color: var(--ink-soft); font-size: 14px; }
.trust-list li { margin-bottom: 8px; }
.preview-box {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #fff;
}
.preview-box img { width: 100%; height: auto; }
.preview-box .cap {
  padding: 14px 16px; font-size: 13px; color: var(--muted); font-weight: 600;
}

@media (max-width: 959px) {
  .prose, .inline-cta p, .category-intro p, .lead-card > p, .trust-list li {
    color: var(--ink-soft); font-weight: 500;
  }
}
