/* shared.css — rules used by 3+ pages (auto-deduplicated from per-page CSS).
   Added distinct shared utility classes to replace repeated inline styles without redesign. */

/* ============================================================
   Article Reading Column & Long Content Typography
   ============================================================ */
.article-reading-col {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.article-body {
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .article-body {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Clear spacing before h2 and h3 */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--nav-h, 72px) + 20px);
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.35;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: calc(var(--nav-h, 72px) + 20px);
}

.article-body p {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

/* Comfortable list spacing */
.article-body ul,
.article-body ol {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  padding-left: 1.6rem;
}

.article-body ul {
  list-style: disc;
}

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

.article-body li {
  margin-bottom: 0.65rem;
  line-height: 1.75;
}

.article-body li > ul,
.article-body li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

/* One shared callout style for key information boxes */
.article-body .info-box,
.article-body .warning-box,
.article-body .note,
.article-body .verdict-box,
.article-body blockquote,
.article-callout {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 1.75rem 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  box-sizing: border-box;
}

.article-body .warning-box {
  border-left-color: var(--cta);
}

.article-body blockquote {
  font-style: italic;
  color: var(--mut);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 15px;
}

.article-body th {
  background: var(--brand);
  color: var(--on-brand);
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: left;
}

.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* In-Article CTA boxes */
.article-cta-box {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 2.2rem 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.article-cta-intro {
  border-left: 4px solid var(--accent);
}

.article-cta-end {
  background: color-mix(in srgb, var(--brand-light) 65%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 25%, transparent);
  border-left: 4px solid var(--brand);
  padding: 28px 30px;
}

.article-cta-copy {
  flex: 1;
  min-width: 0;
}

.article-cta-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

.article-cta-intro .article-cta-tag {
  color: var(--accent);
}

.article-cta-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.35;
  margin: 0 0 6px 0;
}

.article-cta-desc {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--mut);
  line-height: 1.6;
  margin: 0;
}

.article-cta-action,
.article-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.article-cta-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  color: var(--brand);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.article-cta-btn-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .article-cta-box {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
  }
  .article-cta-action,
  .article-cta-actions {
    width: 100%;
  }
}
