/* article-widgets.css — interactive blocks, app walkthrough and end block for
 * the five articles of specs/029-article-value-funnel. Rendered by
 * js/article-widgets.js into <div class="aw-mount">. Everything is scoped to
 * .aw / .aw-end so blog-v4.min.css (serif body, orange accent) cannot leak in.
 * App screens keep their own dark palette: they mirror the real app.
 */
:is(.post-body,.post-cta) .aw,:is(.post-body,.post-cta) .aw-end{
  --aw-ink:#031f18;--aw-ink-soft:#1b251f;--aw-mut:#5e6b63;--aw-paper:#f5faf6;--aw-bone:#fff;
  --aw-line:rgba(3,31,24,.12);--aw-forest:#178a43;--aw-forest-d:#0f6b33;--aw-lime:#c8f46a;
  --aw-new:#e6f6ea;--aw-err:#b3261e;--aw-err-bg:#fdecea;--aw-warn-bg:#fff6dc;
  --aw-app-bg:#0f1412;--aw-app-card:#1a211e;--aw-app-card2:#222a26;--aw-app-ink:#e8efe9;
  --aw-app-mut:#8d9a92;--aw-app-green:#8fd16a;--aw-app-amber:#e3b44e;--aw-app-line:rgba(255,255,255,.08);
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--aw-ink);line-height:1.55;
}
:is(.post-body,.post-cta) .aw{display:grid;gap:22px;margin:28px 0 36px;scroll-margin-top:90px}
:is(.post-body,.post-cta) .aw *,:is(.post-body,.post-cta) .aw-end *{box-sizing:border-box}
:is(.post-body,.post-cta) .aw h3,:is(.post-body,.post-cta) .aw h4,:is(.post-body,.post-cta) .aw-end h3{font-family:inherit;color:inherit;margin:0;text-wrap:balance;line-height:1.2;letter-spacing:-.015em}
:is(.post-body,.post-cta) .aw p,:is(.post-body,.post-cta) .aw-end p{margin:0}
:is(.post-body,.post-cta) .aw button{font:inherit}
:is(.post-body,.post-cta) .aw :focus-visible,:is(.post-body,.post-cta) .aw-end :focus-visible{outline:3px solid var(--aw-forest);outline-offset:2px;border-radius:6px}/* neutralise blog-v4 list/table/heading rules inside the blocks */
:is(.post-body,.post-cta) .aw :is(ul,ol),:is(.post-body,.post-cta) .aw :is(ul,ol) li{margin:0;padding:0;border:0;list-style:none;line-height:inherit}
:is(.post-body,.post-cta) .aw li::before{position:static;left:auto;font-weight:inherit}
:is(.post-body,.post-cta) .aw table{margin:0;border:0;border-radius:0;overflow:visible}
:is(.post-body,.post-cta) .aw :is(th,td){text-transform:none;letter-spacing:normal;line-height:1.45}
:is(.post-body,.post-cta) .aw thead{background:none}

/* block */


:is(.post-body,.post-cta) .aw-box{background:var(--aw-paper);border:1px solid var(--aw-line);border-radius:18px;padding:clamp(16px,3vw,24px);display:grid;gap:18px}
:is(.post-body,.post-cta) .aw-head{display:grid;gap:6px}
:is(.post-body,.post-cta) .aw-eyebrow{font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--aw-forest)}
:is(.post-body,.post-cta) .aw-title{font-size:22px;font-weight:800}
:is(.post-body,.post-cta) .aw-sub{color:var(--aw-mut);font-size:15px}
:is(.post-body,.post-cta) .aw-prog{height:6px;background:var(--aw-line);border-radius:99px;overflow:hidden}
:is(.post-body,.post-cta) .aw-prog i{display:block;height:100%;width:0;background:var(--aw-forest);transition:width .3s}
:is(.post-body,.post-cta) .aw-q{border:0;padding:0;margin:0;min-width:0;display:grid;gap:8px}
:is(.post-body,.post-cta) .aw-q legend,:is(.post-body,.post-cta) .aw-q .aw-lbl{font-weight:600;font-size:15px;padding:0;margin-bottom:2px}
:is(.post-body,.post-cta) .aw-opts{display:flex;flex-wrap:wrap;gap:8px}
:is(.post-body,.post-cta) .aw-opt{position:relative;min-width:0}
:is(.post-body,.post-cta) .aw-opt input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
:is(.post-body,.post-cta) .aw-opt span{display:block;border:1px solid var(--aw-line);background:var(--aw-bone);border-radius:12px;padding:8px 12px;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
:is(.post-body,.post-cta) .aw-opt input:checked+span{border-color:var(--aw-forest);background:var(--aw-new);color:var(--aw-forest-d);font-weight:600}
:is(.post-body,.post-cta) .aw-opt input:focus-visible+span{outline:3px solid var(--aw-forest);outline-offset:2px}
:is(.post-body,.post-cta) .aw-range{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
:is(.post-body,.post-cta) .aw-range input{flex:1 1 200px;accent-color:var(--aw-forest)}
:is(.post-body,.post-cta) .aw-val{font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-weight:600;min-width:4ch;font-variant-numeric:tabular-nums}/* result */


:is(.post-body,.post-cta) .aw-res{border-radius:16px;padding:18px;background:var(--aw-bone);border:1px solid var(--aw-line);display:grid;gap:14px}
:is(.post-body,.post-cta) .aw-res.is-empty{color:var(--aw-mut);text-align:center;border-style:dashed}
:is(.post-body,.post-cta) .aw-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
:is(.post-body,.post-cta) .aw-kpi{background:var(--aw-paper);border-radius:12px;padding:12px;display:grid;gap:2px;min-width:0}
:is(.post-body,.post-cta) .aw-kpi .k{font-size:12.5px;color:var(--aw-mut)}
:is(.post-body,.post-cta) .aw-kpi .v{font-size:24px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
:is(.post-body,.post-cta) .aw-kpi .s{font-size:12.5px;color:var(--aw-mut)}
:is(.post-body,.post-cta) .aw-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
:is(.post-body,.post-cta) .aw-list li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;font-size:15px}
:is(.post-body,.post-cta) .aw-list li::before{content:"";width:18px;height:18px;border-radius:5px;background:var(--aw-new);border:1px solid var(--aw-forest);margin-top:3px}
:is(.post-body,.post-cta) .aw-cmp{display:grid;grid-template-columns:1fr 1fr;gap:10px}
:is(.post-body,.post-cta) .aw-cmp>div{border-radius:12px;padding:12px;display:grid;gap:4px;font-size:14px;min-width:0}
:is(.post-body,.post-cta) .aw-cmp .is-manual{background:var(--aw-err-bg)}
:is(.post-body,.post-cta) .aw-cmp .is-app{background:var(--aw-new)}
:is(.post-body,.post-cta) .aw-cmp h4{font-size:12.5px;letter-spacing:.04em;text-transform:uppercase}
:is(.post-body,.post-cta) .aw-cmp .v{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums}
:is(.post-body,.post-cta) .aw-fine{font-size:12.5px;color:var(--aw-mut)}
:is(.post-body,.post-cta) .aw-role{font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--aw-forest-d)}
@media (max-width:560px){:is(.post-body,.post-cta) .aw-cmp{grid-template-columns:1fr}}/* buttons */


:is(.post-body,.post-cta) .aw-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
:is(.post-body,.post-cta) .aw-btn,:is(.post-body,.post-cta) .aw-end .aw-btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:12px 18px;font-weight:700;font-size:15px;line-height:1.2;cursor:pointer;text-decoration:none!important}
:is(.post-body,.post-cta) .aw-btn.is-pri{background:var(--aw-forest);color:#fff!important}
:is(.post-body,.post-cta) .aw-btn.is-pri:hover{background:var(--aw-forest-d)}
:is(.post-body,.post-cta) .aw-btn.is-sec{background:transparent;color:var(--aw-ink)!important;border:1px solid var(--aw-line)}
:is(.post-body,.post-cta) .aw-btn.is-link{background:none;padding:6px 2px;color:var(--aw-forest)!important;text-decoration:underline!important;font-weight:600}/* form */


:is(.post-body,.post-cta) .aw-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:is(.post-body,.post-cta) .aw-field{display:grid;gap:4px;min-width:0}
:is(.post-body,.post-cta) .aw-field label{font-size:13px;font-weight:600}
:is(.post-body,.post-cta) .aw-field input,:is(.post-body,.post-cta) .aw-field select{border:1px solid var(--aw-line);background:var(--aw-bone);color:var(--aw-ink);border-radius:10px;padding:9px 10px;font:inherit;font-size:15px;width:100%;min-width:0}
:is(.post-body,.post-cta) .aw-field .aw-err{display:none;color:var(--aw-err);font-size:12.5px}
:is(.post-body,.post-cta) .aw-field.is-bad input{border-color:var(--aw-err);background:var(--aw-err-bg)}
:is(.post-body,.post-cta) .aw-field.is-bad .aw-err{display:block}
@media (max-width:560px){:is(.post-body,.post-cta) .aw-form{grid-template-columns:1fr}}/* tables */


:is(.post-body,.post-cta) .aw-scroll{overflow-x:auto;border:1px solid var(--aw-line);border-radius:12px;background:var(--aw-bone)}
:is(.post-body,.post-cta) .aw-sheet{border-collapse:collapse;width:100%;min-width:640px;font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:12px;margin:0}
:is(.post-body,.post-cta) .aw-sheet th,:is(.post-body,.post-cta) .aw-sheet td{border:1px solid var(--aw-line);padding:6px 8px;text-align:left;white-space:nowrap;color:var(--aw-ink)}
:is(.post-body,.post-cta) .aw-sheet th{background:var(--aw-paper);color:var(--aw-mut);font-weight:500}
:is(.post-body,.post-cta) .aw-sheet td.is-fill{background:var(--aw-new)}
:is(.post-body,.post-cta) .aw-sheet td.is-gap{color:var(--aw-mut)}
:is(.post-body,.post-cta) .aw-table{border-collapse:collapse;width:100%;min-width:620px;font-size:13px;margin:0}
:is(.post-body,.post-cta) .aw-table th,:is(.post-body,.post-cta) .aw-table td{padding:9px 10px;border-bottom:1px solid var(--aw-line);text-align:left;vertical-align:top;color:var(--aw-ink)}
:is(.post-body,.post-cta) .aw-table thead th{background:var(--aw-paper);font-size:12.5px}
:is(.post-body,.post-cta) .aw-table .is-hl{background:var(--aw-new)}
:is(.post-body,.post-cta) .aw-table .is-no{color:var(--aw-err)}
:is(.post-body,.post-cta) .aw-table .is-yes{color:var(--aw-forest-d);font-weight:600}/* decision tree */


:is(.post-body,.post-cta) .aw-path{display:flex;flex-wrap:wrap;gap:6px;font-size:12.5px}
:is(.post-body,.post-cta) .aw-path span{background:var(--aw-bone);border:1px solid var(--aw-line);border-radius:99px;padding:3px 10px}
:is(.post-body,.post-cta) .aw-out{border-radius:16px;padding:18px;display:grid;gap:10px}
:is(.post-body,.post-cta) .aw-out.is-down{background:var(--aw-new)}
:is(.post-body,.post-cta) .aw-out.is-op{background:var(--aw-warn-bg)}
:is(.post-body,.post-cta) .aw-out h4{font-size:19px}/* walkthrough */


:is(.post-body,.post-cta) .aw-walk{display:grid;grid-template-columns:240px minmax(0,1fr);gap:22px;align-items:center;background:var(--aw-ink);color:#f5faf6;border-radius:18px;padding:clamp(16px,3vw,26px)}
:is(.post-body,.post-cta) .aw-walk h3{font-size:20px;color:#f5faf6}
:is(.post-body,.post-cta) .aw-walk .aw-eyebrow{color:var(--aw-lime)}
:is(.post-body,.post-cta) .aw-walk-t{display:grid;gap:12px;min-width:0;width:100%}
:is(.post-body,.post-cta) .aw-steps{list-style:none;margin:0;padding:0;display:grid;gap:6px;counter-reset:aw}
:is(.post-body,.post-cta) .aw-steps li{counter-increment:aw;margin:0}
:is(.post-body,.post-cta) .aw-steps li::before{content:none;display:none}
:is(.post-body,.post-cta) .aw-steps button{all:unset;box-sizing:border-box;cursor:pointer;display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:8px 10px;border-radius:10px;color:rgba(245,250,246,.7);font-size:14.5px;line-height:1.45;width:100%}
:is(.post-body,.post-cta) .aw-steps button::before{content:counter(aw);font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:12px;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(245,250,246,.35)}
:is(.post-body,.post-cta) .aw-steps button[aria-current="step"]{background:rgba(245,250,246,.1);color:#f5faf6}
:is(.post-body,.post-cta) .aw-steps button[aria-current="step"]::before{background:var(--aw-lime);color:#0f1a12;border-color:var(--aw-lime)}
:is(.post-body,.post-cta) .aw-steps button:focus-visible{outline:2px solid var(--aw-lime)}
:is(.post-body,.post-cta) .aw-steps b{display:block;color:inherit}
:is(.post-body,.post-cta) .aw-ctrl{display:flex;gap:10px;align-items:center}
:is(.post-body,.post-cta) .aw-ctrl button{background:none;border:1px solid rgba(245,250,246,.3);color:#f5faf6;border-radius:999px;padding:4px 12px;cursor:pointer;font-size:12.5px}
@media (max-width:640px){:is(.post-body,.post-cta) .aw-walk{grid-template-columns:1fr;justify-items:center}}

:is(.post-body,.post-cta) .aw-phone{width:240px;max-width:100%;aspect-ratio:9/19.5;border-radius:34px;border:8px solid #050807;background:var(--aw-app-bg);position:relative;overflow:hidden;box-shadow:0 20px 40px rgba(0,0,0,.35)}
:is(.post-body,.post-cta) .aw-phone .scr{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
:is(.post-body,.post-cta) .aw-phone .scr.on{opacity:1}
:is(.post-body,.post-cta) .aw-phone img{width:100%;height:100%;object-fit:cover;object-position:top;display:block;margin:0;border:0;border-radius:0;max-width:none}
:is(.post-body,.post-cta) .aw-shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;align-items:start}
:is(.post-body,.post-cta) .aw-shot{display:grid;gap:8px;justify-items:center;text-align:center;font-size:13.5px;color:var(--aw-ink-soft)}
:is(.post-body,.post-cta) .aw-shot .aw-phone{width:min(170px,100%);border-width:6px;border-radius:26px}
:is(.post-body,.post-cta) .aw-shot b{display:block;color:var(--aw-ink)}
:is(.post-body,.post-cta) .aw-fig{margin:0;display:grid;gap:8px}
:is(.post-body,.post-cta) .aw-fig img{width:100%;height:auto;border-radius:12px;border:1px solid var(--aw-line);margin:0}
:is(.post-body,.post-cta) .aw-fig figcaption{font-size:13px;color:var(--aw-mut)}
:is(.post-body,.post-cta) .aw-fork{background:var(--aw-paper);border-radius:14px;padding:14px 16px;display:grid;gap:4px}
:is(.post-body,.post-cta) .aw-fork b{font-size:15px}
:is(.post-body,.post-cta) .aw-fork span{font-size:14px;color:var(--aw-mut)}/* drawn app screens (English, like the app). Sized in em off a container-relative
   base so the same screen reads right in the 240 px walkthrough phone and the
   170 px phones of the screenshot rows (11 px at 224 px of inner width). */
:is(.post-body,.post-cta) .aw-phone{container-type:inline-size}
:is(.post-body,.post-cta) .aw-app{height:100%;background:var(--aw-app-bg);color:var(--aw-app-ink);font-size:4.9cqw;display:flex;flex-direction:column;line-height:1.35;overflow:hidden}
:is(.post-body,.post-cta) .aw-app-top{display:flex;justify-content:space-between;align-items:center;padding:.9em 1.1em;border-bottom:1px solid var(--aw-app-line);font-weight:700;white-space:nowrap}
:is(.post-body,.post-cta) .aw-app-top em{font-style:normal;font-weight:500;color:var(--aw-app-green);margin-left:.35em}
:is(.post-body,.post-cta) .aw-app-top .clk{font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:.82em;color:var(--aw-app-mut);border:1px solid var(--aw-app-line);border-radius:99px;padding:.15em .55em}
:is(.post-body,.post-cta) .aw-app-body{padding:.9em 1.1em;display:grid;gap:.72em;align-content:start;flex:1;min-height:0}
:is(.post-body,.post-cta) .aw-app .bn{border-radius:.9em;padding:.65em .8em;font-size:.95em;border:1px solid}
:is(.post-body,.post-cta) .aw-app .bn.off{border-color:var(--aw-app-amber);color:var(--aw-app-amber)}
:is(.post-body,.post-cta) .aw-app .lab{font-size:.77em;letter-spacing:.1em;color:var(--aw-app-mut);text-transform:uppercase}
:is(.post-body,.post-cta) .aw-app h5{margin:.2em 0 0;font-size:1.36em;font-weight:800;color:var(--aw-app-ink);font-family:inherit;line-height:1.2}
:is(.post-body,.post-cta) .aw-app .card{background:var(--aw-app-card);border-radius:1.1em;padding:.8em .9em;display:grid;gap:.55em}
:is(.post-body,.post-cta) .aw-app .row{display:flex;justify-content:space-between;gap:.7em;align-items:center;white-space:nowrap}
:is(.post-body,.post-cta) .aw-app .row span:first-child{color:var(--aw-app-mut);overflow:hidden;text-overflow:ellipsis}
:is(.post-body,.post-cta) .aw-app .m{font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-size:.91em;color:var(--aw-app-ink)}
:is(.post-body,.post-cta) .aw-app .in{background:var(--aw-app-card2);border-radius:.7em;padding:.55em .7em;display:flex;justify-content:space-between;gap:.55em;white-space:nowrap}
:is(.post-body,.post-cta) .aw-app .in span:first-child{color:var(--aw-app-mut);font-size:.86em}
:is(.post-body,.post-cta) .aw-app .chip{font-size:.77em;font-weight:700;border-radius:99px;padding:.2em .65em}
:is(.post-body,.post-cta) .aw-app .chip.g{background:rgba(143,209,106,.15);color:var(--aw-app-green)}
:is(.post-body,.post-cta) .aw-app .chip.a{background:rgba(227,180,78,.15);color:var(--aw-app-amber)}
:is(.post-body,.post-cta) .aw-app .abtn{background:var(--aw-app-green);color:#0d1a0f;border-radius:99px;text-align:center;padding:.7em;font-weight:800}
:is(.post-body,.post-cta) .aw-app .abtn.sec{background:var(--aw-app-card2);color:var(--aw-app-ink)}
:is(.post-body,.post-cta) .aw-app .bar{margin:0 .9em .9em;border-radius:1.45em;background:var(--aw-app-card);display:grid;grid-template-columns:repeat(4,1fr);text-align:center;padding:.65em 0;font-size:.77em;color:var(--aw-app-mut)}
:is(.post-body,.post-cta) .aw-app .zip{display:grid;place-items:center;gap:.55em;padding:1.2em .7em;text-align:center}
:is(.post-body,.post-cta) .aw-app .zip i{width:4.2em;height:5.1em;border-radius:.7em;background:var(--aw-app-card2);border:1px solid var(--aw-app-green);display:grid;place-items:center;font-style:normal;font-family:"JetBrains Mono",ui-monospace,Menlo,monospace;font-weight:700;color:var(--aw-app-green)}

/* end block (replaces .post-cta content) */


:is(.post-body,.post-cta) .aw-end{background:var(--aw-ink);color:#f5faf6;border-radius:18px;padding:clamp(18px,3vw,28px);display:grid;gap:12px;margin:0}
:is(.post-body,.post-cta) .aw-end h3{font-size:22px;color:#f5faf6}
:is(.post-body,.post-cta) .aw-end p{color:rgba(245,250,246,.78)}
:is(.post-body,.post-cta) .aw-end .aw-btn.is-sec{color:#f5faf6!important;border-color:rgba(245,250,246,.3)}

@media (prefers-reduced-motion:reduce){:is(.post-body,.post-cta) .aw-phone .scr,:is(.post-body,.post-cta) .aw-prog i{transition:none}}

/* EUDR series links (scripts/inject_eudr_series.py) — static, outside .post-body */
aside.eudr-series{max-width:720px;margin:2.5rem auto 0;padding:20px 22px;border:1px solid rgba(3,31,24,.12);border-radius:16px;background:#f5faf6;font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
aside.eudr-series h2{margin:0 0 10px;font-family:inherit;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#178a43;line-height:1.3}
aside.eudr-series ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
aside.eudr-series li{margin:0;padding:0;border:0}
aside.eudr-series li::before{content:none}
aside.eudr-series a{color:#031f18;font-weight:600;font-size:16px;line-height:1.4;text-decoration:underline;text-decoration-color:rgba(23,138,67,.45);text-underline-offset:3px}
aside.eudr-series a:hover{color:#178a43}
@media (max-width:760px){aside.eudr-series{margin:2rem 16px 0}}
