/* ==========================================================================
   Blog index, articles, printable checklist, 404.
   Loads after shell.css + style.css. Homepage visual language, own classes.
   ========================================================================== */

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; flex: none; }
.ico--sm { width: 18px; height: 18px; }
.bx-stage, .bcalc, .pick, .scres, .cprog, .bx-recon, .e404__rows, .doc__prog { font-variant-numeric: tabular-nums; }

/* ---------- Blog index: opener + filter ---------- */
.bx-hero { padding-bottom: 2.5rem; }
.bx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: end; }
.bx-hero h1 { max-width: 18ch; }
.bx-hero .lead { max-width: 52ch; margin-bottom: 0; }
.bx-hero__note { margin: 0; padding-left: 1rem; border-left: 3px double var(--accent); color: var(--slate); font-size: .9375rem; max-width: 34ch; }
.bx-filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.bx-filter button { font: 600 .9375rem/1 var(--sans); padding: .7rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.bx-filter button:hover { border-color: var(--ink); }
.bx-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bx-filter__count { margin-left: auto; font-size: .875rem; color: var(--muted); }

.bx-list { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.bx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin: 0 0 .9rem; font-size: .8125rem; color: var(--muted); }
.bx-tag { display: inline-block; font-weight: 600; padding: .35rem .55rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-dark); line-height: 1; }

/* Featured article: ink panel with a live illustration */
.bx-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; background: var(--ink); color: #C3CCD8; border-radius: 22px; padding: clamp(1.5rem, 4.5vw, 3.25rem); }
.bx-lead h2 { font-size: var(--fs-h2-card); line-height: 1.04; margin: 0 0 1rem; }
.bx-lead h2 a { color: #fff; text-decoration: none; }
.bx-lead h2 a:hover { color: var(--accent); }
.bx-lead p { color: #C3CCD8; max-width: 48ch; }
.bx-lead .bx-meta { color: #9DAAB9; }
.bx-lead .bx-tag { background: var(--accent); color: var(--ink); }
.bx-lead .btn--dark { background: #fff; color: var(--ink); margin-top: .5rem; }
.bx-lead .btn--dark:hover { background: var(--surface-2); color: var(--ink); }

/* App-window panel, as on the homepage */
.bx-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -40px rgba(13,27,42,.45); overflow: hidden; color: var(--slate); }
.bx-stage__bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: #F8FAFB; font: 600 .8125rem/1.2 var(--sans); color: var(--ink); }
.bx-stage__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--accent); flex: none; }
.bx-stage__ico .ico { width: 17px; height: 17px; stroke-width: 2; }
.bx-stage__live { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--accent-dark); }
.bx-stage__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: bxPulse 2s infinite; }
@keyframes bxPulse { 0% { box-shadow: 0 0 0 0 rgba(0,168,114,.45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(0,168,114,0); } }
.bx-stage__body { padding: 1.25rem; }
.bx-ringrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.bx-ring { width: 64px; height: 64px; transform: rotate(-90deg); flex: none; }
.bx-ring circle { fill: none; stroke: var(--surface); stroke-width: 7; }
.bx-ring .bx-ring__fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-on .bx-ring__fg { animation: bxDraw 1.3s linear .1s forwards; }
@keyframes bxDraw { to { stroke-dashoffset: 0; } }
.bx-ringrow b { display: block; font: 800 1.5rem/1 var(--display); color: var(--ink); }
.bx-ringrow span { font-size: .8125rem; }
.bx-months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.bx-months span { display: grid; place-items: center; height: 42px; border-radius: 8px; background: #FDEEE9; color: var(--negative); font-size: .8125rem; font-weight: 600; }
.is-on .bx-months span { animation: bxMonth .35s ease both; }
@keyframes bxMonth { to { background: var(--accent-soft); color: var(--accent-dark); } }
.is-on .bx-months span:nth-child(2) { animation-delay: .1s; } .is-on .bx-months span:nth-child(3) { animation-delay: .2s; }
.is-on .bx-months span:nth-child(4) { animation-delay: .3s; } .is-on .bx-months span:nth-child(5) { animation-delay: .4s; }
.is-on .bx-months span:nth-child(6) { animation-delay: .5s; } .is-on .bx-months span:nth-child(7) { animation-delay: .6s; }
.is-on .bx-months span:nth-child(8) { animation-delay: .7s; } .is-on .bx-months span:nth-child(9) { animation-delay: .8s; }
.is-on .bx-months span:nth-child(10) { animation-delay: .9s; } .is-on .bx-months span:nth-child(11) { animation-delay: 1s; }
.is-on .bx-months span:nth-child(12) { animation-delay: 1.1s; }
.bx-recon { margin-top: 1rem; font-size: .875rem; }
.bx-recon div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.bx-recon b { color: var(--ink); font-weight: 600; }
.bx-recon .bx-recon__tot { border-bottom: 3px double var(--ink); }
.bx-recon__tot b { opacity: 0; }
.is-on .bx-recon__tot b { animation: bxFade .4s ease 1.4s forwards; }
@keyframes bxFade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* Other articles */
.bx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.bx-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.bx-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(13,27,42,.4); border-color: var(--line-strong); }
.bx-card__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 1.25rem; transition: background .25s, color .25s; }
.bx-card:hover .bx-card__ico { background: var(--ink); color: var(--accent); }
.bx-card h3 { font: 800 var(--fs-h3-lg)/1.1 var(--display); letter-spacing: -.005em; margin: 0 0 .75rem; }
.bx-card h3 a { color: var(--ink); text-decoration: none; }
.bx-card h3 a:hover { color: var(--accent-dark); }
.bx-card p { font-size: .9375rem; }
.bx-card .card__link { margin-top: auto; }
.bx-empty { margin: 1.5rem 0 0; color: var(--slate); }
.bx-reset { font: 600 1rem var(--sans); color: var(--accent-dark); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* Lead magnet band */
.bx-mag-sec { padding-top: 0; }
.bx-mag { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; background: var(--surface); border-radius: 22px; padding: clamp(1.5rem, 4.5vw, 3.25rem); }
.bx-mag h2 { font-size: var(--fs-h2); max-width: 16ch; }
.bx-mag__copy > p { max-width: 46ch; }
.bx-paper { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.5rem 1.5rem 1.25rem; box-shadow: 0 30px 60px -40px rgba(13,27,42,.45); transform: rotate(1.5deg); }
.bx-paper__h { font: 800 var(--fs-h3)/1.25 var(--display); color: var(--ink); margin: 0 0 .9rem; padding-bottom: .75rem; border-bottom: 3px double var(--ink); }
.bx-paper ol { list-style: none; margin: 0; padding: 0; }
.bx-paper li { position: relative; padding: .5rem 0 .5rem 1.75rem; margin: 0; border-bottom: 1px solid var(--line); font-size: .875rem; color: var(--ink); }
.bx-paper li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-strong); box-sizing: border-box; }
.bx-paper.is-on li.is-done::before { animation: bxTick .3s ease both; }
.bx-paper.is-on li.is-done:nth-child(2)::before { animation-delay: .25s; }
.bx-paper.is-on li.is-done:nth-child(3)::before { animation-delay: .5s; }
@keyframes bxTick { to { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px #fff; } }
.bx-paper__more { margin: .8rem 0 0; font-size: .8125rem; color: var(--muted); }

/* ---------- Articles: reading progress ---------- */
.rprog { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none; }
.rprog i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* Hero sits on the same column as the article text */
.article__hero h1 { max-width: 20ch; }

/* ---------- Table of contents ---------- */
.toc { max-width: 680px; margin: 0 auto 2.25rem; }
.toc details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.toc summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer; list-style: none; padding: 1rem 1.2rem; font: 600 1rem/1.3 var(--sans); color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary small { font-weight: 500; font-size: .8125rem; color: var(--muted); margin-left: auto; }
.toc summary::after { content: "+"; font: 500 1.25rem/1 var(--sans); color: var(--accent-dark); }
.toc details[open] summary::after { content: "\2212"; }
.toc ol { list-style: none; margin: 0; padding: 0 .6rem .8rem; }
.toc li { margin: 0; }
.toc a { position: relative; display: block; padding: .45rem .6rem .45rem 1.6rem; border-radius: 8px; font-size: .875rem; line-height: 1.35; color: var(--slate); text-decoration: none; }
.toc a::before { content: ""; position: absolute; left: .6rem; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc a[aria-current] { color: var(--ink); font-weight: 600; background: var(--surface); }
.toc a[aria-current]::before { background: var(--accent); }
.toc li.is-done a::before { width: 10px; height: 5px; top: .72em; left: .5rem; border-radius: 0; background: none; border-left: 2px solid var(--accent-dark); border-bottom: 2px solid var(--accent-dark); transform: rotate(-45deg); }
@media (min-width: 1100px) {
  .wrap.has-toc { display: grid; grid-template-columns: 250px minmax(0, 680px); justify-content: center; column-gap: 56px; align-items: start; }
  .wrap.has-toc > .article { margin: 0; }
  .toc { position: sticky; top: 96px; margin: 0; max-height: calc(100vh - 120px); overflow: auto; }
  .toc details { border: 0; background: none; }
  .toc summary { padding: 0 0 .9rem .6rem; cursor: default; pointer-events: none; font-size: .875rem; color: var(--slate); }
  .toc summary::after { display: none; }
  .toc summary span { display: inline-flex; align-items: center; gap: .6rem; }
  .toc summary span::before { content: ""; width: 22px; height: 6px; border-block: 2px solid var(--accent); }
  .toc ol { padding: 0; border-left: 1px solid var(--line); }
  .article__hero .article { max-width: 986px; padding-left: 306px; }
}

/* ---------- Mid-article checklist card ---------- */
.bmag { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1.5rem; align-items: start; margin: 2.5rem 0; padding: clamp(1.4rem, 3vw, 2rem); background: var(--ink); border-radius: 18px; color: #C3CCD8; }
.bmag__k { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: .875rem !important; font-weight: 600; color: #9DAAB9; }
.bmag__k::before { content: ""; width: 22px; height: 6px; border-block: 2px solid var(--accent); }
.bmag__h { font: 800 var(--fs-h3-lg)/1.1 var(--display) !important; color: #fff; margin: 0 0 .5rem; }
.bmag p { color: #C3CCD8; font-size: .9375rem; }
.bmag .lead-mini { margin-top: 1rem; }
.bmag__svg { width: 96px; height: auto; }
.bmag__svg rect:first-child { fill: var(--ink-800); stroke: #22364D; stroke-width: 2; }
.bmag__svg .l { stroke: #3A5070; stroke-width: 4; stroke-linecap: round; fill: none; }
.bmag__svg .b { fill: none; stroke: #3A5070; stroke-width: 2; }
.bmag__svg .b.is-t { stroke: var(--accent); }
.bmag__svg .t { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; }
.bmag.is-on .t { animation: bxStroke .4s ease .2s forwards; }
.bmag.is-on .t2 { animation-delay: .55s; }
@keyframes bxStroke { to { stroke-dashoffset: 0; } }
.bmag__svg .dr { stroke: var(--accent); stroke-width: 2; fill: none; }

/* ---------- End-of-article CTA ---------- */
.endcta { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.75rem; margin: 2.75rem 0 2rem; padding: clamp(1.5rem, 3.5vw, 2.25rem); background: var(--ink); border-radius: 22px; color: #C3CCD8; }
.endcta__k { display: flex; align-items: center; gap: .6rem; margin: 0 0 .75rem; font-size: .875rem !important; font-weight: 600; color: #9DAAB9; }
.endcta__k::before { content: ""; width: 22px; height: 6px; border-block: 2px solid var(--accent); }
.endcta__p { color: #D6DDE6; font-size: 1.0625rem !important; }
.endcta__p strong { display: block; font: 800 1.625rem/1.12 var(--display); color: #fff; margin-bottom: .5rem; }
.endcta a:not(.btn) { color: var(--accent); }
.endcta a:not(.btn):hover { color: #fff; }
.endcta .btn-row { margin-top: 1.25rem; }
.endcta__side { align-self: center; border-left: 1px solid #22364D; padding-left: 1.5rem; }
.endcta__stamp { display: inline-block; margin: 0 0 1rem; font-weight: 700; font-size: .8125rem !important; color: var(--accent); border: 2px solid var(--accent); border-radius: 6px; padding: .45rem .65rem; transform: rotate(-3deg); }
.is-on .endcta__stamp { animation: bxStamp .45s cubic-bezier(.2,1.6,.4,1) .2s both; }
@keyframes bxStamp { from { transform: rotate(-3deg) scale(1.4); opacity: 0; } }
.endcta__side ul { list-style: none; margin: 0; padding: 0; }
.endcta__side li { position: relative; padding: .3rem 0 .3rem 1.5rem; margin: 0; font-size: .9375rem !important; color: #D6DDE6; }
.endcta__side li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- Month-end: step headings as a checklist ---------- */
.cprog { margin: 2rem 0 0; padding: 1.25rem 1.35rem; background: var(--surface); border-radius: 14px; }
.cprog__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cprog__k { margin: 0 !important; font-size: .875rem !important; font-weight: 600; color: var(--slate); }
.cprog__clear { font: 600 .8125rem var(--sans); color: var(--accent-dark); background: none; border: 0; padding: .25rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cprog__n { margin: .35rem 0 .75rem !important; font: 700 1.25rem/1.2 var(--display) !important; color: var(--ink); }
.cprog__n b { font-size: 2rem; font-weight: 800; }
.cprog__track { display: block; height: 6px; border-radius: 6px; background: #fff; overflow: hidden; }
.cprog__track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .35s var(--ease); }
.cprog__hint { margin: .75rem 0 0 !important; font-size: .875rem !important; color: var(--slate); }
.cprog.is-closed { background: var(--ink); }
.cprog.is-closed .cprog__k, .cprog.is-closed .cprog__hint { color: #C3CCD8; }
.cprog.is-closed .cprog__n { color: #fff; }
.cprog.is-closed .cprog__clear { color: var(--accent); }
.cprog.is-closed .cprog__track { background: #22364D; }
.chead { display: flex; align-items: flex-start; gap: .85rem; margin-top: 2.4rem; }
.chead h2 { margin-top: 0; flex: 1; transition: color .2s; }
.chead__box { appearance: none; -webkit-appearance: none; flex: none; width: 28px; height: 28px; margin: .1rem 0 0; border: 2px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.chead__box:hover { border-color: var(--ink); }
.chead__box::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg) scale(0); transition: transform .15s; }
.chead__box:checked { background: var(--accent); border-color: var(--accent); }
.chead__box:checked::after { transform: rotate(-45deg) scale(1); }
.chead__box:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.chead.is-done h2 { color: var(--muted); }

/* ---------- Tables: scroll sideways on small screens ---------- */
.tbl { margin: 1.25rem 0 1.7rem; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.tbl:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.article .tbl table { margin: 0; min-width: 460px; font-size: .9375rem; }
.article .tbl th, .article .tbl td { padding: .8rem 1rem; }
.article .tbl th { background: var(--ink); color: #fff; border-bottom: 0; font-weight: 600; }
.article .tbl tbody tr:last-child td { border-bottom: 0; }
.article .tbl td:last-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.article .tbl td:first-child, .article .tbl th:first-child { padding-left: 1rem; }
.pick__lead { margin: 1.25rem 0 0 !important; font-weight: 600; color: var(--ink); }
.article .tbl .pick__td, .article .tbl .pick__th { width: 3.25rem; padding-right: 0; text-align: center; }
.pick__td input { width: 20px; height: 20px; accent-color: var(--accent-dark); cursor: pointer; vertical-align: middle; }
.tbl tr.is-on td { background: var(--accent-soft); }
.pick { margin: -0.5rem 0 1.7rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--surface); }
.pick__score { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: .9375rem; color: var(--slate); }
.pick__score b { font: 800 1.75rem/1 var(--display); color: var(--ink); margin-left: .35rem; vertical-align: -2px; }
.pick p { margin: 0 !important; font-size: .9375rem !important; }
.pick p b { color: var(--ink); }

/* ---------- Mistakes: four checks ---------- */
.sc { list-style: none; padding: 0 !important; counter-reset: sc; }
.sc > li { counter-increment: sc; position: relative; padding: 1.1rem 1.1rem 1.1rem 3.5rem; margin: 0 0 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: background .2s, border-color .2s; }
.sc > li::before { content: counter(sc); position: absolute; left: 1.1rem; top: 1.1rem; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-strong); font: 600 .8125rem/1 var(--sans); color: var(--ink); }
.sc > li.is-yes::before { content: "\2713"; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.sc > li.is-no { background: #FDF6F3; border-color: #F3D9CF; }
.sc > li.is-no::before { content: "!"; background: var(--negative); border-color: var(--negative); color: #fff; }
.yn { display: inline-flex; margin-top: .75rem; padding: 3px; background: var(--surface); border-radius: 10px; gap: 2px; }
.yn button { font: 600 .8125rem/1 var(--sans); padding: .6rem .85rem; border-radius: 8px; border: 0; background: transparent; color: var(--slate); cursor: pointer; white-space: nowrap; }
.yn button:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.yn button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13,27,42,.15); }
.yn button[aria-pressed="true"][data-a="0"] { color: var(--negative); }
.scres { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border-radius: 14px; background: var(--ink); color: #C3CCD8; }
.scres p { margin: 0 0 .4rem !important; font-size: .9375rem !important; color: #C3CCD8; }
.scres .scres__n { font: 700 1.125rem/1.2 var(--display) !important; color: #fff; }
.scres .scres__n b { font-size: 1.625rem; }
.scres ul { margin: 0; padding-left: 1.1rem; }
.scres li { font-size: .9375rem !important; margin: .2rem 0; }
.scres a { color: var(--accent); }
.scres a:hover { color: #fff; }

/* ---------- Catch-up: backlog estimate ---------- */
.bcalc { margin: 1.9rem 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -45px rgba(13,27,42,.4); }
.bcalc__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--line); background: #F8FAFB; font-weight: 600; font-size: .875rem; color: var(--ink); }
.bcalc__note { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.bcalc__slide { display: block; padding: 1.25rem 1.25rem .5rem; }
.bcalc__slide span { display: flex; justify-content: space-between; font-size: .9375rem; color: var(--slate); margin-bottom: .6rem; }
.bcalc__slide b { font: 800 1.5rem/1 var(--display); color: var(--ink); }
.bcalc__slide input { width: 100%; accent-color: var(--accent); height: 22px; cursor: pointer; }
.bcalc__out { padding: 0 1.25rem; }
.bcalc__out div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.bcalc__out b { color: var(--ink); white-space: nowrap; font-weight: 700; }
.bcalc__out .bcalc__tot { border-bottom: 3px double var(--ink); }
.bcalc__tot b { font: 800 1.375rem/1 var(--display); }
.bcalc__fine { margin: 0 !important; padding: .9rem 1.25rem 1.1rem; font-size: .8125rem !important; line-height: 1.5 !important; color: var(--muted); }

/* ---------- Printable checklist (overrides the page's own styles) ---------- */
main.section:has(.doc) { background:
    linear-gradient(90deg, transparent calc(var(--gut) - 10px), rgba(168,58,36,.3) calc(var(--gut) - 10px), rgba(168,58,36,.3) calc(var(--gut) - 9px), transparent calc(var(--gut) - 9px)),
    repeating-linear-gradient(transparent 0 31px, rgba(0,168,114,.09) 31px 32px); }
main .doc { margin-block: 0; border-top: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.75rem); box-shadow: 0 30px 70px -45px rgba(13,27,42,.45); }
main .doc h1 { font-size: var(--fs-h1); line-height: 1.02; }
main .doc__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.25rem; margin: 0 0 1.5rem; border: 0; }
main .doc__fields div { margin: 0; padding: 0; border: 0; display: block; }
main .doc__fields dt { font: 600 .8125rem/1.2 var(--sans); color: var(--muted); margin-bottom: .35rem; }
main .doc__fields dd { margin: 0; height: 1.9rem; border-bottom: 1px solid var(--line-strong); }
main .doc__prog { display: flex; align-items: center; gap: 1rem; margin: 0 0 .5rem; padding: .8rem 1rem; background: var(--surface); border-radius: 10px; font-size: .9375rem; color: var(--slate); }
main .doc__prog[hidden] { display: none; }
main .doc__prog b { font: 800 1.375rem/1 var(--display); color: var(--ink); }
.doc__track { flex: 1; display: block; height: 6px; background: #fff; border-radius: 6px; overflow: hidden; }
.doc__track i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--ease); }
main .chk li { transition: background .2s; border-radius: 8px; padding-inline: .5rem; }
main .chk li.is-done { background: var(--accent-soft); }
main .chk input[type="checkbox"] { width: 20px; height: 20px; }
main .chk:last-of-type { border-bottom: 3px double var(--ink); }
@media (max-width: 640px) { main .doc__fields { grid-template-columns: 1fr 1fr; } }
@media print {
  main.section:has(.doc) { background: none; }
  main .doc { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  main .doc__prog { display: none !important; }
  main .chk li.is-done { background: none; }
  main .doc__fields dd { border-bottom-color: #555; }
  .rprog { display: none; }
}

/* ---------- 404 ---------- */
.e404 { background:
    linear-gradient(90deg, transparent calc(var(--gut) - 10px), rgba(168,58,36,.3) calc(var(--gut) - 10px), rgba(168,58,36,.3) calc(var(--gut) - 9px), transparent calc(var(--gut) - 9px)),
    repeating-linear-gradient(transparent 0 31px, rgba(0,168,114,.09) 31px 32px);
  padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.e404__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.e404 h1 { font-size: var(--fs-h1); line-height: 1.02; max-width: 12ch; }
.e404 .lead { max-width: 46ch; }
.e404__state { margin-left: auto; font-size: .75rem; padding: .35rem .55rem; border-radius: 6px; background: #FDEEE9; color: var(--negative); transition: background .3s, color .3s; }
.e404__ledger.is-ok .e404__state { background: var(--accent-soft); color: var(--accent-dark); }
.e404__rows { padding: .75rem 1.25rem 0; font-size: .9375rem; }
.e404__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.e404__rows small { display: block; font-size: .8125rem; color: var(--muted); margin-top: .15rem; word-break: break-all; }
.e404__rows b { color: var(--ink); font-weight: 700; }
.e404__match { animation: bxFade .4s ease both; }
.e404__match small a { font-weight: 600; }
.e404__rows .e404__tot { border-bottom: 3px double var(--ink); }
.e404__tot b { font: 800 1.5rem/1 var(--display); }
.e404__tot b.is-bad { color: var(--negative); }
.e404__tot b.is-ok { color: var(--ink); }
.e404__foot { margin: 0; padding: .9rem 1.25rem 1.1rem; font-size: .875rem; color: var(--slate); }
.e404__k { display: flex; align-items: center; gap: .6rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.1rem; font-size: .875rem; font-weight: 600; color: var(--slate); }
.e404__k::before { content: ""; width: 22px; height: 6px; border-block: 2px solid var(--accent); }
.e404__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.e404__card { display: flex; flex-direction: column; gap: .35rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--slate); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.e404__card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(13,27,42,.4); border-color: var(--line-strong); color: var(--slate); }
.e404__card .bx-card__ico { margin-bottom: .75rem; }
.e404__card:hover .bx-card__ico { background: var(--ink); color: var(--accent); }
.e404__card b { font: 800 1.375rem/1.1 var(--display); color: var(--ink); }
.e404__card span:last-child { font-size: .9375rem; line-height: 1.5; }

/* ---------- Narrow screens ---------- */
@media (max-width: 960px) {
  .bx-hero__grid, .bx-lead, .bx-mag, .e404__grid { grid-template-columns: minmax(0, 1fr); }
  .bx-grid, .e404__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-paper { max-width: 420px; }
}
@media (max-width: 640px) {
  .bx-grid, .e404__links { grid-template-columns: minmax(0, 1fr); }
  .bx-filter__count { margin-left: 0; width: 100%; }
  .bmag { grid-template-columns: minmax(0, 1fr); }
  .bmag__art { display: none; }
  .endcta { grid-template-columns: minmax(0, 1fr); }
  .endcta__side { border-left: 0; border-top: 1px solid #22364D; padding: 1.25rem 0 0; }
  .endcta .btn { white-space: normal; text-align: center; }
  .bx-months span { height: 36px; }
  .chead__box { width: 24px; height: 24px; }
  .yn { display: flex; }
  .yn button { flex: 1; }
  .sc > li { padding-left: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bx-stage__live::before { animation: none; }
  .bx-paper { transform: none; }
}
@media print {
  .rprog, .toc, .bmag, .endcta, .cprog { display: none !important; }
}
