/* article.css — split from styles.css on 2026-07-24 (Phase 4 Stage 2).
   Rules are verbatim, in original source order. Do not hand-merge sheets;
   the page -> stylesheet mapping lives in tools/build-site.js. */
.article-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 46px) 70px;
}
.article-dek {
  max-width: 60ch;
  margin: 18px 0 0;
  color: #31494a;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.62;
}
.article-body {
  max-width: 820px;
}
.article-body > p,
.article-body details p {
  color: #33494a;
  font-size: 18px;
  line-height: 1.78;
}
.article-body h2 {
  margin: 42px 0 12px;
  color: #0d2c2f;
  font-family: var(--display);
  font-size: clamp(29px, 3.4vw, 44px);
  font-weight: 650;
  line-height: 1.08;
}
.article-faq {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.article-faq p {
  margin: 12px 0 0;
}

/* Stage 3 mobile-first: phone tier is the base, min-681 restores the
   desktop winner. The .article-dek pair is inert in both tiers — the
   2026-07-13 article template re-declares both properties for the same
   selector, unconditionally, further down. */
.article-page {
  padding-left: 18px;
  padding-right: 18px;
}
.article-dek {
  font-size: 17px;
  line-height: 1.68;
}

@media (min-width: 681px) {
.article-page {
    padding-left: clamp(18px, 4vw, 46px);
    padding-right: clamp(18px, 4vw, 46px);
  }
}
/* --- Article template (2026-07-13) ---------------------------------
   Reading layout for inbound content; the comparison pages are the
   first tenants and every future article reuses these classes.
   Research: research/2026-07-13-article-template-research.md.
   Articles read, heroes sell: light surface, ~68ch measure, quiet
   title block, one inline CTA card, one end CTA band. */
.article-page {
  background: #fffdf8;
}
.article-shell {
  width: min(700px, 100% - 40px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}
.article-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(30px, 5vw, 48px);
}
.article-head h1 {
  margin: 0;
  color: #153234;
  font-family: var(--display);
  font-size: clamp(31px, 4.2vw, 46px);
  line-height: 1.12;
  overflow-wrap: break-word;
}
.article-dek {
  margin: 0;
  color: #3e5554;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(13, 82, 64, 0.14);
  color: #63706f;
  font-size: 14px;
  font-weight: 600;
}
.article-body {
  color: #23403a;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  line-height: 1.62;
}
.article-body p {
  margin: 0 0 1em;
  font-size: inherit;
  line-height: inherit;
}
.article-body h2 {
  margin: 1.9em 0 0.55em;
  color: #153234;
  font-family: var(--display);
  font-size: clamp(23px, 2.6vw, 29px);
  line-height: 1.18;
}
.article-body a {
  color: #0d5c53;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-table-wrap {
  overflow-x: auto;
  margin: 1.4em 0 1.8em;
}
.article-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.45;
}
.article-table caption {
  padding-bottom: 10px;
  color: #63706f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.article-table th,
.article-table td {
  padding: 12px 14px;
  border: 1px solid rgba(13, 82, 64, 0.16);
  text-align: left;
  vertical-align: top;
}
.article-table thead th {
  background: rgba(226, 232, 227, 0.55);
  color: #153234;
  font-weight: 800;
}
.article-table tbody th {
  width: 26%;
  background: rgba(255, 253, 248, 0.6);
  color: #3e5554;
  font-weight: 700;
}
.article-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 2em 0;
  padding: 22px 24px;
  border: 1px solid rgba(13, 82, 64, 0.18);
  border-left: 3px solid #c8952f;
  border-radius: 10px;
  background: rgba(226, 232, 227, 0.35);
}
.article-cta-card p {
  flex: 1 1 300px;
  margin: 0;
  color: #23403a;
  font-size: 16.5px;
}
.article-cta-card .primary-action {
  flex: 0 0 auto;
}
.article-faq {
  display: grid;
  gap: 18px;
  margin-top: 0.4em;
}
.article-faq article {
  padding: 18px 20px;
  border: 1px solid rgba(13, 82, 64, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}
.article-faq h3 {
  margin: 0 0 8px;
  color: #153234;
  font-size: 17.5px;
  line-height: 1.3;
}
.article-faq p {
  margin: 0;
  font-size: 16px;
}
.article-end {
  margin-top: clamp(36px, 6vw, 56px);
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(13, 82, 64, 0.18);
  border-radius: 14px;
  background: #10251b;
}
.article-end h2 {
  margin: 0 0 10px;
  color: #f7f3ea;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}
.article-end p {
  margin: 0 0 20px;
  color: rgba(247, 243, 234, 0.78);
  font-size: 17px;
  line-height: 1.55;
}
.article-footer {
  display: flex;
  justify-content: center;
  gap: 26px;
  padding: 26px 20px 40px;
  color: #63706f;
  font-size: 14px;
}
/* 22px tall before (2026-08-05 audit, FIX 3). Height only -- no inline
   padding, so the 26px flex gap and the centered rhythm are unchanged. */
.article-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
}
/* --- 2026-07-13 round 2 (Mario's phone review) -----------------------------
   Article buttons, phone-width table stacking, mobile chip alignment,
   kit bullets, and the count-band living strip. */

/* Buttons inside article prose keep their button colors; the prose
   link styling was painting teal-on-teal. These are anchors, so the
   core button rule gives them no box: without inline-flex + padding
   the pill collapses to the text (anchors get no UA button padding). */
.article-body a.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: white;
  text-decoration: none;
}

/* Articles never scroll sideways on phones: the comparison table
   restacks into labeled cards. data-label lives on each td. That
   restack is now the base; min-641 puts the real table back. */
.article-table {
  min-width: 0;
}
.article-table thead {
  display: none;
}
.article-table tbody tr {
  display: block;
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid rgba(13, 82, 64, 0.16);
  border-radius: 10px;
}
.article-table tbody th,
.article-table td {
  display: block;
  width: auto;
  border: 0;
}
.article-table tbody th {
  background: rgba(226, 232, 227, 0.55);
  color: #153234;
}
.article-table td {
  border-top: 1px solid rgba(13, 82, 64, 0.1);
}
.article-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: #63706f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Placed after every rule above so the td border restore out-orders the
   phone border-top. tbody th keeps its own (0,1,2) selector; the shared
   th/td border value is written into it explicitly because the phone
   tier zeroed the whole shorthand. */
@media (min-width: 641px) {
.article-table {
    min-width: 560px;
  }
.article-table thead {
    display: table-header-group;
  }
.article-table tbody tr {
    display: table-row;
    overflow: visible;
    margin: 0;
    border: none;
    border-radius: 0;
  }
.article-table td {
    display: table-cell;
    width: auto;
    border: 1px solid rgba(13, 82, 64, 0.16);
  }
.article-table tbody th {
    display: table-cell;
    width: 26%;
    border: 1px solid rgba(13, 82, 64, 0.16);
    background: rgba(255, 253, 248, 0.6);
    color: #3e5554;
  }
.article-table td::before {
    content: normal;
    display: inline;
    margin-bottom: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
  }
}
