/* ================================================================
   McKinney Realty — Article Treatment
   Shared by long-form content pages (consolidation-math,
   the-50000-problem). Extends mckinney-system.css tokens.
   Includes print rules for headless-Chrome PDF renders of the
   gated pieces (Letter, flowed, no bleed).
   ================================================================ */

.article-hero {
  background: radial-gradient(ellipse at 30% 20%, var(--navy-light), var(--navy) 65%);
  color: var(--white);
  padding: calc(4.5rem + var(--s-7)) 0 var(--s-7);
}
.article-hero .label { margin-bottom: var(--s-3); }
.article-title {
  font-family: var(--font-d); font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 300;
  line-height: 1.15; max-width: 820px;
}
.article-standfirst {
  font-size: var(--b-lg); font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.65); max-width: 640px; margin-top: var(--s-3);
}

.article-body { padding: var(--s-6) 0 var(--s-7); }
.article-body .measure { max-width: 680px; }
.article-body h3 {
  font-family: var(--font-d); font-weight: 500; font-size: 1.5rem; color: var(--navy);
  margin: var(--s-5) 0 var(--s-2); line-height: 1.25;
}
.article-body h3:first-child { margin-top: 0; }
.article-body p {
  font-size: 1.0625rem; font-weight: 300; line-height: 1.85; color: var(--text-1);
  margin-bottom: 1.15rem;
}
.article-body p strong { font-weight: 500; color: var(--navy); }
.article-body ul { margin: 0 0 1.15rem 1.25rem; }
.article-body li {
  font-size: 1.0625rem; font-weight: 300; line-height: 1.8; color: var(--text-1);
  margin-bottom: 0.5rem;
}
.article-note {
  font-size: var(--b-sm); font-weight: 300; font-style: italic; line-height: 1.7;
  color: var(--text-2); border-left: 3px solid var(--gold);
  background: var(--cream); padding: var(--s-2) var(--s-3);
  margin-bottom: var(--s-4); max-width: 680px;
}

/* Ledger table (Consolidation Math walk-through) */
.article-ledger {
  background: var(--cream); border-left: 2px solid var(--gold);
  padding: var(--s-4) var(--s-4); margin: var(--s-4) 0; max-width: 680px;
}
.article-ledger .label { display: block; margin-bottom: var(--s-3); }
.article-ledger table { width: 100%; border-collapse: collapse; }
.article-ledger td {
  padding: 0.65rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9375rem; font-weight: 300; color: var(--text-2); vertical-align: baseline;
}
.article-ledger td:last-child {
  text-align: right; font-family: var(--font-d); font-weight: 500;
  font-size: 1.125rem; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.article-ledger tr.sum td {
  border-bottom: none; border-top: 1px solid var(--border-strong);
  padding-top: 0.9rem; font-weight: 500; color: var(--navy);
}
.article-ledger tr.sum td:last-child { font-size: 1.5rem; color: var(--gold-dark); }
.article-ledger-note { font-size: var(--b-xs); font-weight: 300; line-height: 1.6; color: var(--text-3); margin-top: var(--s-2); }

/* Pull-stats (P2: the two rates and the bound) */
.pull-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  margin: var(--s-4) 0; max-width: 680px;
}
.pull-stat { background: var(--offwhite); padding: var(--s-3); }
.pull-stat-num { font-family: var(--font-d); font-size: var(--d-stat-sm); font-weight: 300; color: var(--navy); line-height: 1.1; }
.pull-stat-cap { font-size: var(--b-sm); font-weight: 300; line-height: 1.55; color: var(--text-2); margin-top: 0.375rem; }

/* End-of-article conversion blocks (shared with funnel pages' patterns) */
.article-gate {
  border: 1px solid var(--border); border-top: 2px solid var(--gold);
  padding: var(--s-5); max-width: 680px; margin: var(--s-6) 0 0;
}
.article-gate .label { margin-bottom: var(--s-2); }
.article-gate-title { font-family: var(--font-d); font-size: var(--d-sub); font-weight: 300; color: var(--navy); line-height: 1.25; margin-bottom: var(--s-2); }
.article-gate p { font-size: var(--b-sm); font-weight: 300; line-height: 1.7; color: var(--text-2); max-width: 520px; margin-bottom: var(--s-3); }
.article-gate-form { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.article-gate-form input[type="text"] {
  flex: 1 1 220px; padding: 0.8125rem 0.875rem;
  font-family: var(--font-b); font-size: var(--b-md); font-weight: 400;
  color: var(--text-1); background: var(--white);
  border: 1px solid var(--border-strong); border-radius: 0;
  transition: border-color 0.3s; -webkit-appearance: none; appearance: none;
}
.article-gate-form input:focus { outline: none; border-color: var(--gold-dark); }
.article-gate-form input[aria-invalid="true"] { border-color: #b84747; }
.article-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.article-gate-sent {
  font-size: var(--b-md); font-weight: 300; line-height: 1.7; color: var(--text-1);
  border-left: 3px solid var(--gold); background: var(--cream);
  padding: var(--s-2) var(--s-3); animation: fadeUp 0.4s ease forwards;
}
.article-tool {
  position: relative; background: var(--navy); color: var(--white);
  padding: var(--s-5); margin-top: var(--s-4); max-width: 680px; overflow: hidden;
}
.article-tool-mono { position: absolute; right: -70px; bottom: -70px; width: 300px; opacity: 0.05; pointer-events: none; }
.article-tool .label--light { display: block; margin-bottom: 0.75rem; }
.article-tool-title { font-family: var(--font-d); font-size: 1.625rem; font-weight: 300; line-height: 1.25; margin-bottom: var(--s-2); }
.article-tool p { font-size: var(--b-sm); font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 480px; margin-bottom: var(--s-3); }

/* Article footer compliance line (content, not chrome) */
.article-compliance {
  font-size: var(--b-sm); font-weight: 300; font-style: italic; line-height: 1.75;
  color: var(--text-3); max-width: 680px;
  border-top: 1px solid var(--border); margin-top: var(--s-6); padding-top: var(--s-3);
}

@media (max-width: 768px) {
  .pull-stats { grid-template-columns: 1fr; }
  .article-gate-form input[type="text"] { flex-basis: 100%; }
  .article-gate-form .btn { width: 100%; justify-content: center; }
}

/* ---------- print (PDF render of gated pieces) ---------- */
@page { size: letter; margin: 0.9in 1in; }
@media print {
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: #fff; }
  .nav, .footer, .article-gate, .article-tool, .mck-consent { display: none !important; }
  .article-hero {
    background: none; color: var(--navy); padding: 0 0 0.5rem;
  }
  .article-hero .label { color: var(--gold-dark); }
  .article-standfirst { color: var(--text-2); }
  .print-brand { display: flex !important; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--border-strong); padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
  .print-brand-name { font-family: var(--font-d); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--navy); }
  .print-brand-by { font-size: 0.5625rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
  .article-body { padding: 1rem 0 0; }
  .article-body p, .article-body li { font-size: 0.9375rem; line-height: 1.75; }
  h3 { page-break-after: avoid; }
  .article-ledger, .article-note, .pull-stats { page-break-inside: avoid; }
  /* whole-paragraph pagination — no split paragraphs in the PDF deliverable */
  .article-body p, .article-body li { page-break-inside: avoid; }
  p { orphans: 3; widows: 3; }
}
.print-brand { display: none; }
