/* Scoped styles for the Economic Constant article: no theme-wide selectors. */
.ah-ec {
  --ec-ink: #192b30;
  --ec-muted: #52666a;
  --ec-paper: #f8f6ef;
  --ec-accent: #137d70;
  --ec-line: #d9ded7;
  box-sizing: border-box;
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(22px, 5vw, 42px);
  color: var(--ec-ink);
  background: var(--ec-paper);
  border: 1px solid #e5e2d7;
  border-radius: 12px;
  font: 17px / 1.65 system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-wrap: anywhere;
}
.ah-ec *, .ah-ec *::before, .ah-ec *::after { box-sizing: border-box; }
.ah-ec .ah-ec-intro { padding: 12px 0 20px; }
.ah-ec .eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 800; color: var(--ec-accent); }
.ah-ec h2 { color: var(--ec-ink); font-size: 1.65rem; line-height: 1.25; margin: 2.2em 0 .5em; font-weight: 700; }
.ah-ec p { margin: 0 0 1.15em; }
.ah-ec .lead { font-size: 1.22rem; color: #354b4c; max-width: 690px; }
.ah-ec .quarter { font-size: clamp(3.5rem, 12vw, 7rem); font-weight: 850; line-height: 1; letter-spacing: -.07em; margin: 22px 0 6px; color: var(--ec-accent); }
.ah-ec .sub { color: var(--ec-muted); font-size: .95rem; }
.ah-ec .panel { background: white; border: 1px solid var(--ec-line); border-radius: 18px; padding: clamp(20px, 5vw, 35px); margin: 34px 0; box-shadow: 0 10px 35px #1b33260a; }
.ah-ec label { display: block; }
.ah-ec .readout { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.15; margin: 12px 0; }
.ah-ec .slider { display: block; width: 100%; accent-color: var(--ec-accent); cursor: pointer; margin: 18px 0 12px; min-height: 36px; }
.ah-ec .buttons { display: flex; gap: 9px; flex-wrap: wrap; margin: 8px 0 20px; }
.ah-ec button { background: #f0f5f1; border: 1px solid #c8d9d2; border-radius: 999px; padding: 9px 15px; color: var(--ec-ink); font: inherit; font-size: .85rem; cursor: pointer; box-shadow: none; }
.ah-ec button:hover, .ah-ec button:focus-visible { background: #d8ede6; outline: 2px solid var(--ec-accent); outline-offset: 2px; }
.ah-ec .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; border-top: 1px solid var(--ec-line); padding-top: 20px; }
.ah-ec .stat strong { display: block; font-size: 1.65rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.ah-ec .stat small { display: block; color: var(--ec-muted); }
.ah-ec .fine { font-size: .85rem; color: var(--ec-muted); margin-top: 18px; }
.ah-ec .formula { background: #edf2ed; padding: 17px; border-radius: 10px; font-size: 1rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ah-ec .pull { font-size: 1.5rem; font-weight: 650; line-height: 1.4; border-left: 4px solid var(--ec-accent); padding: 5px 0 5px 20px; margin: 30px 0; }
.ah-ec .comparison { width: 100%; border-collapse: collapse; font-size: .95rem; table-layout: auto; }
.ah-ec .comparison th, .ah-ec .comparison td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--ec-line); background: none; color: var(--ec-ink); }
.ah-ec .comparison th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ec-muted); }
.ah-ec .comparison td:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.ah-ec .ah-ec-footnote { margin-top: 60px; border-top: 1px solid var(--ec-line); padding-top: 20px; font-size: .9rem; color: var(--ec-muted); }
@media (max-width: 520px) {
  .ah-ec { padding: 22px 16px; font-size: 16px; }
  .ah-ec .stats { grid-template-columns: 1fr; }
  .ah-ec .comparison { font-size: .82rem; }
  .ah-ec .comparison th, .ah-ec .comparison td { padding: 10px 5px; }
}
