/* ============================================================
   article.css — Macon Resource Hub long-form styles
   Reuses the homepage tokens from style.css (:root). Matches the
   "Clean charcoal + amber, light" system. NO green anywhere.
   ============================================================ */

/* ---------- breadcrumb ---------- */
.breadcrumb { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.breadcrumb ol { max-width: 1140px; margin: 0 auto; padding: 12px 24px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--slate); }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: "›"; color: var(--line-2); font-weight: 900; }
.breadcrumb a { color: var(--safe); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- article shell ---------- */
.article-wrap { max-width: 800px; margin: 0 auto; padding: 40px 24px 20px; }
.article-hero { padding-bottom: 8px; }
.art-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 16px; }
.art-kicker::before { content: ""; width: 22px; height: 4px; background: var(--accent); border-radius: 2px; }
.article-wrap h1 { font-size: clamp(1.85rem, 4vw, 2.7rem); font-weight: 800; color: var(--ink); line-height: 1.12; margin-bottom: 16px; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 0.9rem; color: var(--slate); border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.art-meta .by { font-weight: 700; color: var(--ink); }
.art-meta .by b { color: var(--safe); }
.art-meta .dot { color: var(--line-2); }
.article-hero { margin: 4px 0 16px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-hero img { width: 100%; height: auto; display: block; }
.article-hero figcaption { font-size: 0.82rem; color: var(--slate); background: var(--paper-2); padding: 10px 16px; text-align: center; }

/* reading column */
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 800; color: var(--ink); line-height: 1.18; margin: 44px 0 14px; scroll-margin-top: 80px; }
.prose h3 { font-family: var(--font-display); font-size: 1.24rem; font-weight: 800; color: var(--ink); margin: 30px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--safe-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--safe); }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose h2 .kw, .prose mark { background: rgba(255,214,10,.35); padding: 0 3px; border-radius: 3px; }
.prose > *:first-child { margin-top: 0; }

/* ---------- Key Takeaways (TL;DR / AEO answer) ---------- */
.tldr { background: var(--ink); color: #fff; border-radius: 14px; padding: 24px 26px; margin: 0 0 30px; }
.tldr h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--accent-2); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.tldr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tldr li { position: relative; padding-left: 26px; font-size: 1.02rem; line-height: 1.6; color: rgba(255,255,255,.9); }
.tldr li::before { content: "→"; position: absolute; left: 0; color: var(--call); font-weight: 900; }
.tldr li b { color: #fff; }

/* ---------- Table of Contents ---------- */
.toc { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 0 0 34px; }
.toc h2 { font-family: var(--font-display); font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 8px; font-size: 0.95rem; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--safe-dark); text-decoration: underline; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* ---------- callouts ---------- */
.callout { background: rgba(255,214,10,.14); border: 1px solid rgba(224,145,42,.5); border-radius: 10px; padding: 16px 20px; margin: 0 0 24px; font-size: 1rem; }
.callout b:first-child, .callout strong:first-child { display: block; font-family: var(--font-display); }
.alert-box { background: var(--alert-bg); border-left: 4px solid var(--alert); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 24px; font-size: 1rem; }
.alert-box b, .alert-box strong { color: var(--alert); }

/* ---------- data table ---------- */
.data-table-wrap { overflow-x: auto; margin: 0 0 28px; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 520px; font-size: 0.95rem; table-layout: fixed; }
.data-table th, .data-table td { overflow-wrap: anywhere; word-break: normal; }
.data-table caption { text-align: left; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--ink); padding: 14px 16px 0; caption-side: top; }
.data-table thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.92rem; padding: 13px 15px; text-align: left; }
.data-table thead th:first-child { background: #14161c; }
.data-table tbody th { background: var(--paper-2); text-align: left; font-weight: 800; color: var(--ink); padding: 12px 15px; font-family: var(--font-display); white-space: normal; vertical-align: top; }
.data-table td { padding: 12px 15px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.data-table tbody tr:nth-child(even) td { background: #fafbfc; }
.viz-cap { font-size: 0.82rem; color: var(--slate); margin: -18px 0 26px; }

/* ---------- decision-tree / step-flow diagram ---------- */
.flow { margin: 0 0 28px; display: flex; flex-direction: column; gap: 0; }
.flow-title, .chart-title { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--ink); margin: 0 0 14px; }
.flow-step { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.flow-step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -2px; width: 2px; background: var(--line-2); }
.flow-num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--call); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 1rem; z-index: 1; }
.flow-body { padding-top: 4px; }
.flow-body b { color: var(--ink); }
.flow-body .q { font-family: var(--font-display); font-weight: 800; color: var(--ink); display: block; margin-bottom: 2px; }
/* branch chips */
.branch { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 0 0 28px; }
.branch-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); }
.branch-card.yes { border-top: 4px solid var(--call); }
.branch-card.no { border-top: 4px solid var(--alert); }
.branch-card h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 6px; color: var(--ink); }
.branch-card p { font-size: 0.94rem; color: var(--slate); margin: 0; }
@media (max-width: 560px){ .branch { grid-template-columns: 1fr; } }

/* ---------- bar chart (pure CSS) ---------- */
.chart { margin: 0 0 10px; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; background: #fff; box-shadow: var(--shadow); }
.bar-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); text-align: right; }
.bar-track { background: var(--paper-2); border-radius: 6px; height: 30px; position: relative; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-size: 0.82rem; font-weight: 800; color: #fff; white-space: nowrap; min-width: fit-content; }
.bar-fill.c-call { background: var(--call); color: var(--ink); }
.bar-fill.c-ink  { background: var(--ink); }
.bar-fill.c-alert{ background: var(--alert); }
.bar-fill.c-amber{ background: var(--accent-dark); color: var(--ink); }

/* ---------- CTA callout boxes ---------- */
.cta-box { background: var(--ink); color: #fff; border-radius: 16px; padding: 26px 28px; margin: 30px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.cta-box-copy { flex: 1 1 300px; }
.cta-box h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0 0 6px; }
.cta-box p { color: rgba(255,255,255,.82); font-size: 0.96rem; margin: 0; }
.cta-box .btn-call { flex: 0 0 auto; border: 3px solid var(--pop); }
.cta-box .btn-call:not(.btn-giant) { padding: 16px 30px; font-size: 1.08rem; }
.cta-box.big { flex-direction: column; text-align: center; padding: 34px 28px; gap: 22px; }
.cta-box.big .cta-box-copy { flex: none; }
.cta-box.big h3 { font-size: 1.6rem; }

/* ---------- author / E-E-A-T box ---------- */
.author-box { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; margin: 40px 0 24px; background: var(--paper-2); }
.author-box h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.author-box p { font-size: 0.96rem; color: var(--slate); line-height: 1.65; margin: 0 0 10px; }
.author-box .verified { font-weight: 700; color: var(--ink); }
.author-box ul { margin: 8px 0 0; padding-left: 20px; font-size: 0.9rem; color: var(--slate); }
.author-box a { color: var(--safe-dark); font-weight: 600; }

/* ---------- related guides ---------- */
.related { margin: 34px 0; }
.related h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.related-card { border: 1px solid var(--line); border-left: 4px solid var(--call); border-radius: 12px; padding: 18px 20px; background: #fff; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.related-card span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.3; }
.related-card small { display: block; margin-top: 8px; color: var(--safe-dark); font-weight: 700; font-size: 0.85rem; }

/* ---------- resource hub index ---------- */
.hub-head { max-width: 820px; margin: 0 auto; padding: 50px 24px 6px; }
.hub-head .art-kicker { margin-bottom: 14px; }
.hub-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: var(--ink); line-height: 1.12; }
.hub-head p { color: var(--slate); font-size: 1.14rem; margin-top: 14px; max-width: 46em; }
.hub-group { max-width: 1140px; margin: 0 auto; padding: 26px 24px; }
.hub-group h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; border-left: 4px solid var(--accent); padding-left: 12px; }
.related-card.card-soon { opacity: .6; border-left-color: var(--line-2); }
.related-card.card-soon small { color: var(--slate); }

/* ---------- article FAQ (reuse homepage .faq look) ---------- */
.article-wrap .faq { padding: 20px 0 0; }
.article-wrap .faq h2 { margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .article-wrap { padding-top: 28px; }
  .cta-box { flex-direction: column; text-align: center; }
  .cta-box .btn-call { width: 100%; justify-content: center; }
  .prose p, .prose li { font-size: 1.02rem; }
}
