/* ============================================
   refiresult — Article / Guide Page Styles
   ============================================ */

.article-main { padding: 56px 0 80px; }

.article-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- TOC SIDEBAR ---- */
.article-toc {
  position: sticky;
  top: 80px;
}
.toc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.article-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  margin-bottom: 28px;
}
.article-toc nav a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
  line-height: 1.4;
}
.article-toc nav a:hover { color: var(--accent); }
.toc-cta {
  background: var(--accent-light);
  border: 1px solid rgba(184,92,42,0.2);
  border-radius: var(--radius);
  padding: 16px;
}
.toc-cta p {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.toc-btn {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.toc-btn:hover { text-decoration: underline; }

/* ---- ARTICLE BODY ---- */
.article-body { max-width: 680px; }

.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 16px;
}
.article-intro {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.65;
}

.article-body h2 {
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}
.article-body p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
}
.article-body li {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.article-body strong { color: var(--ink); }

/* callout box */
.callout {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p { margin-bottom: 8px; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }
.formula {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px !important;
  color: var(--ink) !important;
  padding: 8px 0;
}

/* tables */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead { background: var(--paper-2); }
th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  line-height: 1.5;
}
tr:last-child td { border-bottom: none; }
tr.highlight td { background: var(--green-light); color: var(--green); font-weight: 500; }

/* checklists */
.check-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}
.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list.positive li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.check-list.negative li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* article CTA */
.article-cta {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 48px;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 10px;
}
.article-cta p {
  color: var(--paper-3);
  margin-bottom: 20px;
}
.article-cta .calc-btn {
  background: var(--accent);
  width: auto;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .article-main { padding: 36px 0 60px; }
  .article-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-toc {
    position: static;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--paper-2);
  }
  .article-body { max-width: 100%; }
  .article-header { margin-bottom: 32px; padding-bottom: 24px; }
}
@media (max-width: 600px) {
  .article-main { padding: 24px 0 48px; }
  .article-header h1 { font-size: clamp(24px, 6vw, 34px); }
  .article-intro { font-size: 16px; }
  .article-body h2 { font-size: 22px; margin-top: 36px; }
  .article-body p, .article-body li { font-size: 15px; }
  .callout { padding: 16px 18px; }
  .table-wrap { font-size: 13px; }
  th, td { padding: 10px 12px; }
  .article-cta { padding: 24px 20px; }
  .toc-cta { padding: 14px; }
}
