.article-page { width: min(1180px, calc(100% - 40px)); margin: 32px auto 80px; }
.article-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 42px; }
.article-page a { text-decoration: underline; text-underline-offset: 4px; }
.article-page a:focus-visible, .article-page button:focus-visible, .article-page input:focus-visible, .article-table:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.article-hero { max-width: 980px; margin: 0 auto 52px; }
.article-hero h1 { font-family: var(--font-lora), Georgia, serif; color: var(--green); font-size: clamp(42px, 7vw, 82px); line-height: 1.08; letter-spacing: -.045em; margin: 14px 0 20px; }
.article-subtitle { font-size: clamp(21px, 2.5vw, 29px); line-height: 1.45; color: var(--green); max-width: 720px; margin: 0 0 20px; }
.article-date, .article-caption { color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-lead { max-width: 800px; font-size: 19px; line-height: 1.8; margin: 26px 0; }
.deficit-example { background: var(--green); color: white; padding: 30px; border-radius: 22px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: center; }
.deficit-example div { min-width: 0; }
.deficit-example span { display: block; font-size: 13px; line-height: 1.5; opacity: .85; margin-bottom: 10px; }
.deficit-example strong { display: block; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.2; white-space: nowrap; }
.deficit-example small { font-size: 14px; font-weight: 500; }
.deficit-example > b { font-size: 30px; color: #abc5ac; }
.deficit-answer strong { color: #f2c457; }
.article-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 58px; align-items: start; }
.article-toc { position: sticky; top: 26px; padding: 24px 22px; border: 1px solid #dce4d8; border-radius: 18px; max-height: calc(100vh - 52px); overflow-y: auto; }
.article-toc ol { padding-left: 18px; margin: 18px 0 24px; }
.article-toc li { padding: 0 0 11px 3px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.article-toc li a { text-decoration: none; }
.article-toc li a:hover { color: var(--green); text-decoration: underline; }
.toc-calculator { font-size: 14px; font-weight: 800; color: var(--green); }
.article-body { min-width: 0; font-size: 17px; line-height: 1.85; }
.article-body > :first-child { margin-top: 0; }
.article-body h2, .article-body h3 { font-family: var(--font-lora), Georgia, serif; color: var(--green); text-wrap: balance; scroll-margin-top: 28px; }
.article-body h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.25; letter-spacing: -.025em; margin: 54px 0 22px; }
.article-body h3 { font-size: 23px; line-height: 1.4; margin: 32px 0 16px; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 24px; }
.article-body li { padding-left: 4px; margin-bottom: 12px; }
.article-body a { color: #276140; overflow-wrap: anywhere; }
.article-note { padding: 18px 22px; background: #f2f5ef; border-left: 3px solid #9ab597; border-radius: 0 12px 12px 0; font-size: 14px; line-height: 1.75; }
.article-note em { font-style: normal; }
.article-calc-link { padding: 22px 24px; border-radius: 14px; background: #edf3e9; }
.article-table { max-width: 100%; overflow-x: auto; margin: 24px 0; border: 1px solid #dce4d8; border-radius: 12px; }
.article-table table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; }
.article-table th { background: #edf3e9; color: var(--green); text-align: left; font-weight: 800; }
.article-table th, .article-table td { padding: 14px 16px; vertical-align: top; min-width: 115px; }
.article-table tr + tr td { border-top: 1px solid #e3e8df; }
.article-table tbody tr:nth-child(even) { background: #fafbf8; }
.portion-tool { margin: 36px 0; padding: 30px; border-radius: 22px; border: 1px solid #cbdac5; background: #f3f6ed; }
.portion-tool h3 { margin-top: 12px; font-size: 28px; }
.portion-tool .eyebrow { margin-bottom: 0; }
.portion-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 24px 0; }
.portion-fields label { color: var(--green); font-size: 13px; font-weight: 800; line-height: 1.5; }
.portion-fields input { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px 14px; background: white; border: 1px solid #aebfaa; border-radius: 8px; font: inherit; font-size: 18px; color: var(--green); }
.portion-fields input[aria-invalid="true"] { border-color: #a13528; }
.portion-tool button { border: 0; border-radius: 9px; padding: 14px 22px; background: var(--green); color: white; cursor: pointer; font: inherit; font-weight: 800; }
.portion-tool button span { padding-left: 20px; }
.portion-tool .portion-hint { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 16px 0 0; }
.portion-tool output { display: block; background: white; border-radius: 12px; padding: 20px; margin-top: 22px; color: var(--green); font-size: 18px; font-weight: 700; }
.article-back { margin: 50px 0 0; border-top: 1px solid #dce4d8; padding-top: 28px; font-weight: 700; color: var(--green); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 30px; }
  .article-toc { padding: 20px 16px; }
}
@media (max-width: 820px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-toc { position: static; max-height: none; }
  .article-toc ol { columns: 2; column-gap: 32px; }
  .article-toc li { break-inside: avoid; }
  .article-hero { margin-bottom: 32px; }
  .deficit-example { gap: 12px; padding: 24px; }
}
@media (max-width: 580px) {
  .article-page { margin-top: 24px; }
  .article-breadcrumb { margin-bottom: 30px; font-size: 12px; }
  .article-lead { font-size: 17px; }
  .deficit-example { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .deficit-example div { display: flex; gap: 14px; justify-content: space-between; align-items: center; }
  .deficit-example span { margin: 0; max-width: 135px; }
  .deficit-example > b { display: none; }
  .deficit-answer { padding-top: 16px; border-top: 1px solid #ffffff38; }
  .article-body { font-size: 16px; line-height: 1.8; }
  .article-body h2 { margin-top: 42px; }
  .article-body h3 { font-size: 21px; }
  .article-toc ol { columns: 1; }
  .portion-tool { padding: 22px 18px; }
  .portion-fields { grid-template-columns: 1fr; }
  .portion-tool button { width: 100%; }
}
@media print {
  .site-header, .site-footer, .article-toc, .article-back, .portion-tool form { display: none; }
  .article-page { width: 100%; margin: 0; }
  .article-layout { display: block; }
  .article-body { font-size: 11pt; }
  .article-table { overflow: visible; }
  .article-body h2, .article-body h3 { break-after: avoid; }
}
