/* Blog + guide styles. Loaded after styles.css. */
.article-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 26px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--green-800);
}

.breadcrumbs span {
  opacity: 0.55;
}

.article-hero {
  margin-bottom: 26px;
}

.article-kicker {
  margin: 0 0 10px;
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-hero h1 {
  margin: 0;
  max-width: 18ch;
  color: var(--green-900);
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.article-lede {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.article-meta span {
  opacity: 0.55;
  padding: 0 4px;
}

.answer-box {
  margin: 24px 0 30px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green-600);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 249, 244, 0.82);
  box-shadow: 0 12px 34px rgba(30, 91, 77, 0.07);
}

.answer-box strong {
  color: var(--green-900);
}

.answer-box p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.toc {
  margin: 0 0 34px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 249, 244, 0.66);
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 30px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.toc a {
  color: var(--green-800);
  text-decoration: underline;
  text-decoration-color: rgba(40, 111, 97, 0.28);
  text-underline-offset: 3px;
}

.article-body {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.78;
}

.article-body h2 {
  margin: 42px 0 14px;
  color: var(--green-900);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.article-body h3 {
  margin: 28px 0 8px;
  color: var(--green-900);
  font-size: 1.16rem;
  line-height: 1.3;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li {
  margin: 7px 0;
}

.article-body a {
  color: var(--green-800);
  text-decoration: underline;
  text-decoration-color: rgba(40, 111, 97, 0.35);
  text-underline-offset: 3px;
}

.article-body strong {
  color: var(--green-900);
}

.article-body table {
  width: 100%;
  margin: 22px 0 26px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  overflow: hidden;
}

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

.article-body th {
  color: var(--green-900);
  background: rgba(223, 242, 234, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-body tr:last-child td {
  border-bottom: 0;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--coral-500);
  background: rgba(255, 241, 234, 0.7);
  border-radius: 0 14px 14px 0;
  color: var(--green-900);
  font-style: italic;
}

.note {
  margin: 22px 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(242, 187, 82, 0.45);
  background: rgba(255, 249, 244, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cta-card {
  margin: 42px 0;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 155, 136, 0.28), transparent 18rem),
    linear-gradient(135deg, var(--green-900), #245d50);
  color: var(--cream-50);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.cta-card p {
  margin: 0 0 18px;
  color: rgba(255, 249, 244, 0.78);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-card .button.primary {
  background: var(--cream-50);
  color: var(--green-900);
}

.cta-card .button.secondary {
  border-color: rgba(255, 249, 244, 0.28);
  color: var(--cream-50);
}

.faq-block {
  margin: 46px 0 28px;
}

.faq-block h2 {
  margin: 0 0 18px;
  color: var(--green-900);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

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

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--green-900);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sources {
  margin: 34px 0 24px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 244, 0.6);
  font-size: 0.88rem;
  line-height: 1.65;
}

.sources h2 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-800);
}

.sources ol {
  margin: 0;
  padding-left: 18px;
}

.sources a {
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.blog-hero {
  padding: 36px 0 18px;
}

.blog-hero h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.blog-hero p {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0 60px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 249, 244, 0.78);
  box-shadow: 0 16px 40px rgba(30, 91, 77, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(30, 91, 77, 0.12);
}

.post-card .tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--green-800);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card :is(h2, h3) {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 1.34rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.post-card .read {
  margin-top: auto;
  color: var(--green-800);
  font-weight: 750;
  font-size: 0.92rem;
}

.blog-note {
  margin: 0 0 44px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 249, 244, 0.62);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .article-shell {
    width: min(100% - 32px, 820px);
    padding-top: 18px;
  }

  .toc ol {
    columns: 1;
  }

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

  .article-body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-body th,
  .article-body td {
    min-width: 120px;
  }
}

.print-button {
  margin: 6px 0 30px;
  cursor: pointer;
  border: 0;
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .toc,
  .cta-card,
  .sources,
  .disclaimer,
  .print-button,
  .answer-box .button {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .article-shell {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .article-hero h1 {
    font-size: 28pt !important;
    max-width: none !important;
  }

  .article-body {
    font-size: 10.5pt !important;
    line-height: 1.5 !important;
  }

  .article-body table {
    font-size: 8.5pt !important;
    page-break-inside: avoid;
  }

  .article-body th,
  .article-body td {
    padding: 6px 7px !important;
  }

  .article-body h2 {
    page-break-after: avoid;
  }

  a {
    color: #111 !important;
    text-decoration: none !important;
  }
}
