/* Ridgewell Insurance: article and Learn hub pages only (generated by scripts/build-articles.js). */

.article-col { max-width: 46rem; margin-left: auto; margin-right: auto; }

/* ============== Breadcrumb and byline ============== */
.article-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; font-size: 0.875rem; color: var(--ink-mute); }
.article-breadcrumb li { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.article-breadcrumb li + li::before { content: "/"; color: var(--rule); }
.article-breadcrumb a { color: var(--action); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-breadcrumb [aria-current] { color: var(--ink-soft); }

.article-title { font-size: 2.25rem; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: break-word; }
@media (min-width: 768px) { .article-title { font-size: 3.25rem; } }
.article-byline { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-mute); line-height: 1.6; }

/* ============== Table of contents ============== */
.article-toc { margin-top: 2rem; border: 1px solid var(--rule-soft); background: var(--surface); border-radius: 14px; padding: 1rem 1.25rem; }
.article-toc summary { cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink); list-style-position: inside; }
.article-toc ol { margin-top: 0.75rem; padding-left: 1.25rem; list-style: decimal; color: var(--ink-mute); }
.article-toc li { margin: 0.35rem 0; line-height: 1.45; }
.article-toc a { color: var(--action); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

/* ============== Body ============== */
.article-body { color: var(--ink-soft); overflow-wrap: break-word; }
.article-body h2 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-weight: 700; font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.01em; margin-top: 3rem; margin-bottom: 1rem; scroll-margin-top: 110px; }
.article-body h3 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-weight: 600; font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.5rem; }
.article-body p { line-height: 1.75; margin-bottom: 1.1rem; font-size: 1.0625rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.4rem; line-height: 1.7; font-size: 1.0625rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.6rem; }
.article-body a { color: var(--action); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body p.article-disclosure, .article-disclosure { font-size: 0.85rem; line-height: 1.6; color: var(--ink-mute); }

/* Tables scroll sideways inside their own box on small screens; the page never does. */
.article-table { margin: 1.5rem 0 1.75rem; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.article-table:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.article-table table { width: 100%; border-collapse: collapse; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.article-table th, .article-table td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule-soft); }
.article-table th { background: var(--surface-tint); color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-weight: 600; white-space: nowrap; }
.article-table td { color: var(--ink-soft); }
.article-table tr:last-child td { border-bottom: 0; }
@media (max-width: 639px) { .article-table table { min-width: 34rem; } }

/* ============== Inline CTA ([[cta]]) ============== */
.article-cta-inline {
  margin: 2rem 0; padding: 1.25rem 1.4rem; border-radius: 14px;
  background: var(--surface-tint); border: 1px solid var(--rule); border-left: 4px solid var(--action);
}
.article-body .article-cta-inline p { margin-bottom: 0.4rem; font-size: 1rem; line-height: 1.6; }
.article-body .article-cta-inline .article-cta-inline-title { color: var(--ink); font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; }
.article-cta-inline-actions { margin-top: 0.9rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.article-body .article-cta-inline .btn { color: #ffffff; text-decoration: none; white-space: normal; text-align: center; }
@media (max-width: 479px) {
  .article-cta-inline-actions .btn { width: 100%; }
}

/* ============== FAQ, end CTA, author, related ============== */
.article-faq h3 { font-size: 1.1rem; }
.article-cta-end { margin-top: 3rem; padding: 2rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule-soft); box-shadow: 0 28px 50px -34px var(--action-glow); text-align: center; }
.article-cta-end h3 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-weight: 700; font-size: 1.5rem; line-height: 1.25; }
.article-cta-end p { margin-top: 0.75rem; color: var(--ink-soft); line-height: 1.65; }
.article-cta-end .btn { margin-top: 1.4rem; white-space: normal; text-align: center; }

.article-author { margin-top: 2.5rem; display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.article-author img { width: 72px; height: 72px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.article-author-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--ink); }
.article-author p { color: var(--ink-soft); line-height: 1.55; font-size: 0.95rem; }
.article-author a { color: var(--action); font-weight: 600; text-decoration: none; }
.article-author a:hover { text-decoration: underline; }

.article-related { margin-top: 3rem; }
.article-related h2, .learn-group h2 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-weight: 700; font-size: 1.6rem; line-height: 1.2; }
.learn-cards { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .learn-cards { grid-template-columns: 1fr 1fr; } }
.learn-card { display: flex; flex-direction: column; text-decoration: none; padding: 1.5rem; }
.learn-card h3 { font-family: 'Space Grotesk', sans-serif; color: var(--ink); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.learn-card p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }
.learn-card .learn-card-meta { margin-top: auto; padding-top: 1rem; color: var(--ink-mute); font-size: 0.85rem; }

.article-end-disclosure { margin-top: 2.5rem; }

.learn-group + .learn-group { margin-top: 3.5rem; }
.learn-states { margin-top: 1.25rem; list-style: none; padding: 0; columns: 2; column-gap: 1.5rem; }
@media (min-width: 768px) { .learn-states { columns: 4; } }
.learn-states li { break-inside: avoid; padding: 0.3rem 0; }
.learn-states a { color: var(--action); text-decoration: none; font-weight: 500; }
.learn-states a:hover { text-decoration: underline; text-underline-offset: 2px; }
