/* Article layout — supplements styles.css */

.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
  margin-bottom: 40px;
}

.article-nav a {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.article-nav a:hover {
  text-decoration: underline;
}

.article-nav .nav-brand {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}

.article-shell {
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.article-meta span::before {
  content: "· ";
}

.article-meta span:first-child::before {
  content: "";
}

/* Article heading overrides */
.article-shell h1 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 16px;
  max-width: 100%;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}

.article-body h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}

.article-body ul,
.article-body ol {
  display: block;
  padding-left: 22px;
  margin: 0 0 18px;
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  display: list-item;
  border: none;
  border-radius: 0;
  background: none;
  padding: 4px 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.article-body strong {
  color: var(--text);
  font-weight: 800;
}

.article-body a {
  color: var(--accent);
  font-weight: 700;
}

.article-body a:hover {
  text-decoration: none;
}

/* CTA block mid-article */
.article-cta {
  background: var(--accent-dark);
  border-radius: 10px;
  padding: 28px 24px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
}

.article-cta strong {
  display: block;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.article-cta .cta-btn {
  min-height: 44px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0 22px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.article-cta .cta-btn:hover {
  background: var(--accent-soft);
}

/* FAQ section */
.faq-section {
  margin-top: 48px;
}

.faq-section h2 {
  font-size: 1.45rem;
  margin-bottom: 24px;
  color: var(--text);
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1rem;
  color: var(--text);
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.faq-item p {
  font-size: 0.97rem;
  margin: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

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

.breadcrumb span {
  color: var(--muted);
}

/* Article index grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.article-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 18px rgba(29, 42, 36, 0.07);
  transition: box-shadow 0.15s;
}

.article-card:hover {
  box-shadow: 0 8px 30px rgba(29, 42, 36, 0.13);
}

.article-card .card-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

.article-card h2 {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 8px;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Article footer */
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.article-footer h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 600px) {
  .article-shell {
    padding: 0 16px 48px;
  }

  .article-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}
