{"id":14868,"date":"2026-11-18T13:24:22","date_gmt":"2026-11-18T12:24:22","guid":{"rendered":"https:\/\/geopard.tech\/?page_id=14868"},"modified":"2026-11-18T13:34:30","modified_gmt":"2026-11-18T12:34:30","slug":"noverstas-stadisanas-kalkulators","status":"publish","type":"page","link":"https:\/\/geopard.tech\/lv\/prevented-planting-calculator\/","title":{"rendered":"Nov\u0113rst\u0101s st\u0101d\u012b\u0161anas kalkulators"},"content":{"rendered":"\n<!--\n  Inline hero for \/prevented-planting-calculator\/, pasted as the FIRST block of\n  the page. Not the shared block 13098: that block's copy is Field Data Explorer\n  specific despite the generic name.\n\n  Written to the factory rules: rule 24 (Roboto 400\/700, radii on the 2\/4\/6\/8\n  scale, no decorative gradient or shadow, the measured surfaces), rule 14\n  (centred), rule 29 (four chips, the last one privacy, a marker inside each\n  chip's own text) and rule 7 (hides the theme's bare page-title h1).\n-->\n<div class=\"gp-lead\">\n<style>\/* GP-THEME-BOOST: paragraph defaults against #simple_page p (scripts\/theme_boost.py) *\/:is(#simple_page,body) .gp-pp p,:is(#simple_page,body) .gp-lead p{font-size:inherit;margin-top:0}<\/style><style>\n\n:is(#simple_page,body) #simple_page > .container > h1{display:none !important}\n:is(#simple_page,body) .gp-lead .pph{--f:\"Roboto\",-apple-system,\"Segoe UI\",Helvetica,Arial,sans-serif;font-family:var(--f);text-align:center;background:#eef4e8;border:1px solid #e3e7da;border-radius:8px;padding:28px 28px 24px;margin:6px 0 20px}\n:is(#simple_page,body) .gp-lead .pph-eyebrow{display:inline-block;font-family:var(--f);font-size:.76rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#15701e;background:#ffffff;border:1px solid #e3e7da;border-radius:4px;padding:5px 11px;margin:0 0 14px}\n:is(#simple_page,body) .gp-lead .pph-title{font-family:var(--f);font-size:1.95rem;font-weight:700;line-height:1.18;letter-spacing:-.01em;color:#145328;margin:0 auto 12px !important;max-width:820px}\n:is(#simple_page,body) .gp-lead .pph .lede{font-family:var(--f);font-size:1.04rem;font-weight:400;line-height:1.55;color:#2c3a30;margin:0 auto;max-width:820px}\n:is(#simple_page,body) .gp-lead .pph-features{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;justify-content:center}\n\n:is(#simple_page,body) .gp-lead .pph-feat{display:inline-block;font-family:var(--f);font-size:.86rem;font-weight:400;color:#212121;background:#ffffff;border:1px solid #e3e7da;border-radius:4px;padding:6px 12px;padding-left:2em;text-indent:-1.4em;text-align:left;max-width:100%}\n:is(#simple_page,body) .gp-lead .pph-feat .mk{color:#15701e;font-weight:700;margin-right:.45em}\n:is(#simple_page,body) .gp-lead .pph-feat.is-trust{background:transparent;border-color:transparent;color:#4c6066;padding-left:1.6em}\n:is(#simple_page,body) .gp-lead .pph-feat.is-trust .mk{color:#4c6066;font-weight:400}\n@media (max-width:820px){\n  :is(#simple_page,body) .gp-lead .pph{padding:22px 18px 20px}\n  :is(#simple_page,body) .gp-lead .pph-title{font-size:1.5rem}\n  :is(#simple_page,body) .gp-lead .pph .lede{font-size:.98rem}\n}\n@media (max-width:480px){\n  :is(#simple_page,body) .gp-lead .pph{padding:18px 14px 16px}\n  :is(#simple_page,body) .gp-lead .pph-title{font-size:1.3rem}\n}\n<\/style>\n  <div class=\"pph\">\n    <div class=\"pph-eyebrow\">Prevented planting calculator<\/div>\n    <h1 class=\"pph-title\">Prevented planting: the acres, the deadlines, the payment<\/h1>\n    <p class=\"lede\">Drop your field boundary, outline the ground you could not plant, and read the acres for the FSA-578 and the CCC-576. Every deadline counts from your final planting date. The payment stands next to what planting late would keep.<\/p>\n    <div class=\"pph-features\">\n      <span class=\"pph-feat\"><span class=\"mk\">&#10003;<\/span>Acres on your own field boundary<\/span>\n      <span class=\"pph-feat\"><span class=\"mk\">&#10003;<\/span>Every deadline from your final planting date<\/span>\n      <span class=\"pph-feat\"><span class=\"mk\">&#10003;<\/span>Payment against planting late<\/span>\n      <span class=\"pph-feat is-trust\"><span class=\"mk\">&#128274;<\/span>Files stay in your browser<\/span>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n<style>:is(#simple_page,body) .gp-pp *,:is(#simple_page,body) .gp-lead *{font-family:\"Roboto\",-apple-system,\"Segoe UI\",Helvetica,Arial,sans-serif}<\/style>\n<div class=\"gp-pp\" id=\"gp-pp\" data-theme=\"light\">\n<style>\n@font-face{font-family:\"Roboto\";font-style:normal;font-weight:100 900;font-display:swap;src:url(https:\/\/fonts.wp.com\/s\/roboto\/v51\/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3KUBHMdazTgWw.woff2) format(\"woff2\");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}\n@font-face{font-family:\"Roboto\";font-style:normal;font-weight:100 900;font-display:swap;src:url(https:\/\/fonts.wp.com\/s\/roboto\/v51\/KFO7CnqEu92Fr1ME7kSn66aGLdTylUAMa3yUBHMdazQ.woff2) format(\"woff2\");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}\n:is(#simple_page,body) .gp-pp{\n  --f:\"Roboto\",-apple-system,\"Segoe UI\",Helvetica,Arial,sans-serif;\n  --ink:#212121; --ink2:#2c3a30; --dim:#4c6066; --faint:#8a9a8e;\n  --accent:#145328; --accent-mid:#15701e; --accent-soft:#1b7a2a; --orange:#f76a0c; --amber:#b0741f; --logo-red:#b2060f; --logo-red-bright:#fd4d48;\n  --panel:#ffffff; --paper:#fcfdf9; --paper2:#f6f9f0; --wash:#eef4e8; --wash2:#e4eedd;\n  --hair:#eef2e8; --line:#e3e7da; --mute:#c3cdbf;\n  --r-panel:8px; --r-card:6px; --r-ctl:4px; --r-bar:2px;\n  color:var(--ink2);background:var(--paper);font-family:var(--f);font-size:16px;line-height:1.55;font-variant-numeric:tabular-nums;position:relative\n}\n:is(#simple_page,body) .gp-pp *{box-sizing:border-box}\n:is(#simple_page,body) .gp-pp [hidden]{display:none !important}\n:is(#simple_page,body) .gp-pp p{margin:0}\n\n:is(#simple_page,body) .gp-pp h1,:is(#simple_page,body) .gp-pp h2,:is(#simple_page,body) .gp-pp h3,:is(#simple_page,body) .gp-pp h4{margin:0 !important}\n:is(#simple_page,body) .gp-pp .pp-h{margin:0 0 4px !important}\n:is(#simple_page,body) .gp-pp .pp-wrap{max-width:1600px;margin:0 auto;padding:18px 16px;display:flex;flex-direction:column;gap:12px;position:relative}\n:is(#simple_page,body) .gp-pp .pp-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:14px 16px;min-width:0}\n:is(#simple_page,body) .gp-pp .pp-h{font-size:1.05rem;font-weight:700;letter-spacing:-.01em;line-height:1.15;color:var(--ink)}\n:is(#simple_page,body) .gp-pp .pp-sub{font-size:.92rem;color:var(--dim);margin:0 0 12px;max-width:72ch}\n:is(#simple_page,body) .gp-pp .pp-lab{font-size:.84rem;color:var(--faint);display:block;margin-bottom:4px}\n:is(#simple_page,body) .gp-pp .pp-field{display:flex;flex-direction:column;min-width:0}\n:is(#simple_page,body) .gp-pp .pp-in,:is(#simple_page,body) .gp-pp .pp-sel{font-family:var(--f);font-size:16px;font-weight:400;color:var(--ink);min-height:44px;padding:6px 10px;background:var(--panel);border:1px solid var(--line);border-radius:4px;width:100%;min-width:0}\n:is(#simple_page,body) .gp-pp .pp-in:focus,:is(#simple_page,body) .gp-pp .pp-sel:focus{outline:2px solid var(--accent-soft);outline-offset:-2px}\n:is(#simple_page,body) .gp-pp .pp-inrow{display:flex;gap:6px;align-items:stretch}\n:is(#simple_page,body) .gp-pp .pp-unit{display:inline-flex;align-items:center;font-size:.9rem;color:var(--faint);padding:0 10px;background:var(--wash);border:1px solid var(--line);border-radius:4px;flex:0 0 auto;white-space:nowrap}\n:is(#simple_page,body) .gp-pp .pp-hint{font-size:.82rem;color:var(--faint);margin-top:4px}\n:is(#simple_page,body) .gp-pp .pp-hint b{color:var(--accent-mid);font-weight:700}\n:is(#simple_page,body) .gp-pp .pp-note{font-size:.84rem;color:var(--dim);margin-top:8px}\n:is(#simple_page,body) .gp-pp .pp-warn{font-size:.86rem;color:var(--logo-red);margin-top:6px}\n:is(#simple_page,body) .gp-pp .pp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:var(--f);min-height:44px;padding:0 16px;background:var(--accent);border:1px solid var(--accent);border-radius:4px;color:#ffffff !important;font-weight:700;font-size:.92rem;cursor:pointer;text-decoration:none;max-width:100%}\n:is(#simple_page,body) .gp-pp .pp-btn:hover{background:var(--accent-mid);border-color:var(--accent-mid);color:#ffffff !important}\n:is(#simple_page,body) .gp-pp .pp-btn2{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:var(--f);min-height:44px;padding:0 14px;background:var(--panel);border:1px solid var(--accent);border-radius:4px;color:var(--accent);font-weight:700;font-size:.9rem;cursor:pointer}\n:is(#simple_page,body) .gp-pp .pp-btn2:hover{background:var(--wash)}\n:is(#simple_page,body) .gp-pp .pp-btn2:disabled,:is(#simple_page,body) .gp-pp .pp-btn:disabled{opacity:.55;cursor:default}\n:is(#simple_page,body) .gp-pp .pp-btn svg,:is(#simple_page,body) .gp-pp .pp-btn2 svg{width:16px;height:16px;flex:none}\n:is(#simple_page,body) .gp-pp .pp-chk{display:flex;gap:10px;align-items:flex-start;font-size:.92rem;color:var(--ink2);min-height:44px;cursor:pointer}\n:is(#simple_page,body) .gp-pp .pp-chk input{width:20px;height:20px;margin:3px 0 0;flex:none;accent-color:#145328}\n\n\n:is(#simple_page,body) .gp-pp .pp-dgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}\n:is(#simple_page,body) .gp-pp .pp-tl{margin:14px 0 6px;background:var(--paper2);border:1px solid var(--hair);border-radius:6px;padding:8px 6px 2px}\n:is(#simple_page,body) .gp-pp .pp-tl svg{display:block;width:100%;height:auto;max-width:100%;overflow:visible}\n:is(#simple_page,body) .gp-pp .pp-tl .ax{stroke:#c3cdbf;stroke-width:1}\n:is(#simple_page,body) .gp-pp .pp-tl .tick{stroke:#c3cdbf;stroke-width:1}\n:is(#simple_page,body) .gp-pp .pp-tl .mo{font-family:var(--f);font-size:11px;fill:#8a9a8e}\n:is(#simple_page,body) .gp-pp .pp-tl .lpp{fill:#e4eedd}\n:is(#simple_page,body) .gp-pp .pp-tl .mk line{stroke:#145328;stroke-width:1.5}\n:is(#simple_page,body) .gp-pp .pp-tl .mk circle{fill:#145328;cursor:pointer}\n:is(#simple_page,body) .gp-pp .pp-tl .mk circle:hover{fill:#f76a0c}\n:is(#simple_page,body) .gp-pp .pp-tl .mk.fsa circle{fill:#b2060f}\n:is(#simple_page,body) .gp-pp .pp-tl .mk.fsa line{stroke:#b2060f}\n:is(#simple_page,body) .gp-pp .pp-tl .mk text{font-family:var(--f);font-size:11px;fill:#2c3a30;text-anchor:middle}\n:is(#simple_page,body) .gp-pp .pp-tl .mk .d{font-weight:700;fill:#212121}\n:is(#simple_page,body) .gp-pp .pp-tl .today line{stroke:#f76a0c;stroke-width:1.5;stroke-dasharray:3 3}\n:is(#simple_page,body) .gp-pp .pp-tl .today text{font-family:var(--f);font-size:11px;fill:#f76a0c;text-anchor:middle;font-weight:700}\n:is(#simple_page,body) .gp-pp .pp-dl{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:0}\n:is(#simple_page,body) .gp-pp .pp-dl li{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;padding:8px 0;border-top:1px solid var(--hair);font-size:.92rem;align-items:baseline}\n:is(#simple_page,body) .gp-pp .pp-dl li:first-child{border-top:0}\n:is(#simple_page,body) .gp-pp .pp-dl .d{font-weight:700;color:var(--ink);white-space:nowrap}\n:is(#simple_page,body) .gp-pp .pp-dl .d.fsa{color:var(--logo-red)}\n:is(#simple_page,body) .gp-pp .pp-dl .w{color:var(--ink2)}\n:is(#simple_page,body) .gp-pp .pp-dl .w small{display:block;font-size:.82rem;color:var(--faint)}\n\n\n:is(#simple_page,body) .gp-pp .pp-agrid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}\n:is(#simple_page,body) .gp-pp .pp-mapbox{position:relative;background:var(--paper2);border:1px solid var(--line);border-radius:6px;overflow:hidden;min-height:62vh;height:520px}\n:is(#simple_page,body) .gp-pp .pp-map{display:block;width:100%;height:100%;touch-action:none;cursor:grab}\n:is(#simple_page,body) .gp-pp .pp-map.is-outlining{cursor:crosshair}\n:is(#simple_page,body) .gp-pp .pp-map.is-panning{cursor:grabbing}\n:is(#simple_page,body) .gp-pp .pp-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:20px;color:var(--faint);font-size:.95rem;pointer-events:none}\n\n:is(#simple_page,body) .gp-pp .pp-ctrl{position:absolute;top:14px;right:14px;display:flex;gap:6px;z-index:5}\n:is(#simple_page,body) .gp-pp .pp-ctrl button{background:var(--panel);border:1px solid var(--line);color:var(--ink);width:34px;height:34px;border-radius:6px;cursor:pointer;font-size:16px;padding:0;font-family:var(--f);font-weight:400;line-height:1;box-shadow:0 1px 3px rgba(20,83,40,0.12);display:inline-flex;align-items:center;justify-content:center;gap:5px}\n:is(#simple_page,body) .gp-pp .pp-ctrl button:hover{border-color:var(--accent-soft);color:var(--accent)}\n:is(#simple_page,body) .gp-pp .pp-ctrl button.is-active{background:#f76a0c;color:#ffffff;border-color:#f76a0c}\n:is(#simple_page,body) .gp-pp .pp-ctrl button.pp-wide{width:auto;padding:0 10px;font-size:11px;font-weight:700;letter-spacing:.02em}\n:is(#simple_page,body) .gp-pp .pp-ctrl button svg{display:block;width:16px;height:16px;flex:none}\n:is(#simple_page,body) .gp-pp .pp-hintpill{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:var(--accent);color:#ffffff;font-size:.84rem;padding:8px 14px;border-radius:4px;z-index:5;max-width:calc(100% - 28px);text-align:center}\n:is(#simple_page,body) .gp-pp .pp-scale{position:absolute;left:14px;bottom:14px;z-index:4;font-size:11px;color:var(--dim);display:flex;align-items:center;gap:6px}\n:is(#simple_page,body) .gp-pp .pp-scale i{display:block;height:4px;background:var(--ink2);border-radius:2px}\n:is(#simple_page,body) .gp-pp .pp-side{display:flex;flex-direction:column;gap:12px;min-width:0}\n:is(#simple_page,body) .gp-pp .pp-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:18px 14px;background:var(--paper2);border:2px dashed var(--mute);border-radius:6px;text-align:center;cursor:pointer;outline:none}\n:is(#simple_page,body) .gp-pp .pp-drop:hover,:is(#simple_page,body) .gp-pp .pp-drop:focus,:is(#simple_page,body) .gp-pp .pp-drop.is-drag{border-color:var(--accent);background:var(--wash)}\n:is(#simple_page,body) .gp-pp .pp-drop svg{width:30px;height:30px;color:var(--accent)}\n:is(#simple_page,body) .gp-pp .pp-drop-t{font-size:.98rem;font-weight:700;color:var(--ink)}\n:is(#simple_page,body) .gp-pp .pp-drop-s{font-size:.84rem;color:var(--faint);max-width:40ch}\n:is(#simple_page,body) .gp-pp .pp-drop input{display:none}\n:is(#simple_page,body) .gp-pp .pp-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}\n:is(#simple_page,body) .gp-pp .pp-msg{font-size:.86rem;color:var(--accent-mid);min-height:1.2em}\n:is(#simple_page,body) .gp-pp .pp-msg.is-err{color:var(--logo-red)}\n:is(#simple_page,body) .gp-pp .pp-tbl{width:100%;border-collapse:collapse;font-size:.9rem}\n:is(#simple_page,body) .gp-pp .pp-tbl th{text-align:left;font-weight:400;font-size:.78rem;color:var(--faint);padding:0 6px 6px 0;white-space:nowrap}\n:is(#simple_page,body) .gp-pp .pp-tbl td{padding:6px 6px 6px 0;border-top:1px solid var(--hair);vertical-align:middle}\n:is(#simple_page,body) .gp-pp .pp-tbl tr.is-sel td{background:var(--wash)}\n:is(#simple_page,body) .gp-pp .pp-tbl .n{text-align:right;white-space:nowrap;font-weight:700;color:var(--ink)}\n:is(#simple_page,body) .gp-pp .pp-tbl .pp-in{min-height:40px;padding:4px 8px;font-size:16px}\n:is(#simple_page,body) .gp-pp .pp-tbl .pp-in.num{width:88px;text-align:right}\n:is(#simple_page,body) .gp-pp .pp-tbl .src{font-size:.78rem;color:var(--faint);white-space:nowrap}\n:is(#simple_page,body) .gp-pp .pp-tbl .rm{font-family:var(--f);background:transparent;border:0;color:var(--faint);font-size:18px;line-height:1;cursor:pointer;min-width:44px;min-height:40px}\n:is(#simple_page,body) .gp-pp .pp-tbl .rm:hover{color:var(--logo-red)}\n:is(#simple_page,body) .gp-pp .pp-tbl .pick{font-family:var(--f);background:transparent;border:0;color:var(--accent-mid);font-size:.84rem;text-decoration:underline;text-underline-offset:2px;cursor:pointer;min-height:40px;padding:0}\n:is(#simple_page,body) .gp-pp .pp-tbl tfoot td{border-top:1px solid var(--mute);font-weight:700;color:var(--ink)}\n:is(#simple_page,body) .gp-pp .pp-tblwrap{overflow-x:auto}\n\n\n:is(#simple_page,body) .gp-pp .pp-two{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}\n:is(#simple_page,body) .gp-pp .pp-igrid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}\n:is(#simple_page,body) .gp-pp .pp-verdict{margin-top:12px;padding:10px 12px;background:var(--wash);border:1px solid var(--hair);border-radius:4px;font-size:.95rem;color:var(--ink2)}\n:is(#simple_page,body) .gp-pp .pp-verdict b{color:var(--accent);font-weight:700}\n:is(#simple_page,body) .gp-pp .pp-verdict.is-short b{color:var(--logo-red)}\n:is(#simple_page,body) .gp-pp .pp-res{background:var(--wash);border-color:var(--mute);display:flex;flex-direction:column}\n:is(#simple_page,body) .gp-pp .pp-big{font-size:clamp(2.1rem,4vw,2.8rem);font-weight:700;line-height:1.02;letter-spacing:-.03em;color:var(--accent);margin:6px 0 0}\n:is(#simple_page,body) .gp-pp .pp-big-u{font-size:1rem;font-weight:400;letter-spacing:0;color:var(--dim)}\n:is(#simple_page,body) .gp-pp .pp-out{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0 12px}\n:is(#simple_page,body) .gp-pp .pp-o{background:var(--panel);border:1px solid var(--hair);border-radius:4px;padding:7px 9px;min-width:0}\n:is(#simple_page,body) .gp-pp .pp-o-l{display:block;font-size:.78rem;color:var(--faint);line-height:1.25}\n:is(#simple_page,body) .gp-pp .pp-o-v{display:block;font-size:1.05rem;font-weight:700;letter-spacing:-.01em;color:var(--ink);word-break:break-word}\n:is(#simple_page,body) .gp-pp .pp-math{background:var(--panel);border:1px solid var(--hair);border-radius:4px;padding:10px 12px;font-size:.88rem;color:var(--dim);line-height:1.7}\n:is(#simple_page,body) .gp-pp .pp-math b{color:var(--ink);font-weight:700}\n:is(#simple_page,body) .gp-pp .pp-chart{margin-top:12px;background:var(--panel);border:1px solid var(--hair);border-radius:6px;padding:10px 8px 4px}\n:is(#simple_page,body) .gp-pp .pp-chart svg{display:block;width:100%;height:auto;max-width:100%;overflow:visible}\n:is(#simple_page,body) .gp-pp .pp-chart .ax{font-family:var(--f);font-size:10px;fill:#8a9a8e}\n:is(#simple_page,body) .gp-pp .pp-chart .grid{stroke:#eef2e8;stroke-width:1}\n:is(#simple_page,body) .gp-pp .pp-chart .bar{fill:#a0d468;cursor:pointer}\n:is(#simple_page,body) .gp-pp .pp-chart .bar.under{fill:#c3cdbf}\n:is(#simple_page,body) .gp-pp .pp-chart .bar:hover{fill:#1b7a2a}\n:is(#simple_page,body) .gp-pp .pp-chart .pp-line{stroke:#f76a0c;stroke-width:2;stroke-dasharray:5 3}\n:is(#simple_page,body) .gp-pp .pp-chart .pp-ll{font-family:var(--f);font-size:11px;fill:#f76a0c;font-weight:700;paint-order:stroke;stroke:#ffffff;stroke-width:3px;stroke-linejoin:round}\n:is(#simple_page,body) .gp-pp .pp-chart .gl{font-family:var(--f);font-size:11px;fill:#145328;font-weight:700;paint-order:stroke;stroke:#ffffff;stroke-width:3px;stroke-linejoin:round}\n:is(#simple_page,body) .gp-pp .pp-cap{margin-top:8px;font-size:.84rem;color:var(--faint)}\n\n\n:is(#simple_page,body) .gp-pp .pp-tip{position:absolute;z-index:20;pointer-events:none;background:var(--panel);border:1px solid var(--mute);border-radius:4px;padding:7px 10px;font-size:.84rem;color:var(--dim);max-width:260px;box-shadow:0 2px 8px rgba(20,83,40,0.14)}\n:is(#simple_page,body) .gp-pp .pp-tip b{color:var(--ink);font-weight:700}\n\n\n:is(#simple_page,body) .gp-pp .pp-sheet{display:none}\n\n\n@media (min-width:900px){\n  :is(#simple_page,body) .gp-pp .pp-dgrid{grid-template-columns:repeat(2,minmax(0,1fr))}\n  :is(#simple_page,body) .gp-pp .pp-two{grid-template-columns:repeat(2,minmax(0,1fr))}\n  :is(#simple_page,body) .gp-pp .pp-igrid{grid-template-columns:repeat(2,minmax(0,1fr))}\n  :is(#simple_page,body) .gp-pp .pp-dl{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}\n  :is(#simple_page,body) .gp-pp .pp-dl li:nth-child(2){border-top:0}\n}\n@media (min-width:1200px){\n  :is(#simple_page,body) .gp-pp .pp-dgrid{grid-template-columns:repeat(4,minmax(0,1fr))}\n  :is(#simple_page,body) .gp-pp .pp-agrid{grid-template-columns:minmax(0,1.5fr) minmax(360px,1fr)}\n  :is(#simple_page,body) .gp-pp .pp-mapbox{height:min(72vh,720px)}\n  :is(#simple_page,body) .gp-pp .pp-dl{grid-template-columns:repeat(3,minmax(0,1fr))}\n  :is(#simple_page,body) .gp-pp .pp-dl li:nth-child(3){border-top:0}\n}\n@media (max-width:820px){\n  :is(#simple_page,body) .gp-pp .pp-wrap{padding:14px 12px;gap:10px}\n  :is(#simple_page,body) .gp-pp .pp-mapbox{height:auto;min-height:62vh}\n  :is(#simple_page,body) .gp-pp .pp-ctrl{gap:5px;top:12px;left:12px;right:auto;flex-wrap:wrap;max-width:calc(100% - 24px)}\n  :is(#simple_page,body) .gp-pp .pp-ctrl button{width:44px;height:44px;font-size:18px}\n  :is(#simple_page,body) .gp-pp .pp-ctrl button.pp-wide{height:44px;min-height:44px;padding:0 10px}\n  :is(#simple_page,body) .gp-pp .pp-dl li{grid-template-columns:104px minmax(0,1fr)}\n  :is(#simple_page,body) .gp-pp .pp-tbl .pp-in.num{width:76px}\n  :is(#simple_page,body) .gp-pp .pp-tbl .pp-in,:is(#simple_page,body) .gp-pp .pp-tbl .rm,:is(#simple_page,body) .gp-pp .pp-tbl .pick{min-height:44px}\n}\n@media (max-width:480px){\n  :is(#simple_page,body) .gp-pp .pp-card{padding:12px 13px}\n  :is(#simple_page,body) .gp-pp .pp-mapbox{min-height:58vh}\n  :is(#simple_page,body) .gp-pp .pp-out{grid-template-columns:minmax(0,1fr)}\n  :is(#simple_page,body) .gp-pp .pp-ctrl button.pp-wide span{display:none}\n  :is(#simple_page,body) .gp-pp .pp-ctrl button.pp-wide{width:44px;padding:0}\n  :is(#simple_page,body) .gp-pp .pp-tbl{font-size:.84rem}\n  :is(#simple_page,body) .gp-pp .pp-tl{display:none}\n  :is(#simple_page,body) .gp-pp .pp-tbl [data-f=\"name\"]{min-width:120px}\n}\n@media (prefers-reduced-motion:reduce){\n  :is(#simple_page,body) .gp-pp *{transition:none !important}\n}\n@media print{\n  :is(#simple_page,body) .gp-pp .pp-wrap > .pp-card,:is(#simple_page,body) .gp-pp .pp-wrap > .pp-two,:is(#simple_page,body) .gp-pp .pp-tip{display:none !important}\n  :is(#simple_page,body) .gp-pp .pp-sheet{display:block;break-before:page;break-after:page;font-size:12pt;color:#000000}\n  :is(#simple_page,body) .gp-pp .pp-sheet h2{font-size:16pt;margin:0 0 6pt !important}\n  :is(#simple_page,body) .gp-pp .pp-sheet h3{font-size:12pt;margin:12pt 0 4pt !important}\n  :is(#simple_page,body) .gp-pp .pp-sheet table{width:100%;border-collapse:collapse;font-size:11pt}\n  :is(#simple_page,body) .gp-pp .pp-sheet th,:is(#simple_page,body) .gp-pp .pp-sheet td{text-align:left;padding:3pt 6pt 3pt 0;border-bottom:1px solid #c3cdbf}\n  :is(#simple_page,body) .gp-pp .pp-sheet .n{text-align:right}\n  :is(#simple_page,body) .gp-pp .pp-sheet img{display:block;max-width:100%;max-height:260pt;border:1px solid #c3cdbf;margin-top:6pt}\n  :is(#simple_page,body) .gp-pp .pp-sheet .sm{font-size:10pt;color:#4c6066}\n}\n<\/style>\n\n<div class=\"pp-wrap\" id=\"pp-wrap\">\n\n  <!-- \u2500\u2500 1. dates \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n  <div class=\"pp-card\">\n    <h2 class=\"pp-h\">Your dates<\/h2>\n    <p class=\"pp-sub\">The final planting date most counties carry is filled in for corn and soybeans. Overwrite it with the date in your policy&#8217;s actuarial documents, and the deadlines move with it.<\/p>\n    <div class=\"pp-dgrid\">\n      <div class=\"pp-field\">\n        <label class=\"pp-lab\" for=\"pp-state\">State<\/label>\n        <select class=\"pp-sel\" id=\"pp-state\">\n          <option value=\"IA\">Iowa<\/option>\n          <option value=\"IL\">Illinois<\/option>\n          <option value=\"IN\">Indiana<\/option>\n          <option value=\"OH\">Ohio<\/option>\n          <option value=\"MI\">Michigan<\/option>\n          <option value=\"MN\">Minnesota<\/option>\n          <option value=\"WI\">Wisconsin<\/option>\n          <option value=\"MO\">Missouri<\/option>\n          <option value=\"KS\">Kansas<\/option>\n          <option value=\"NE\">Nebraska<\/option>\n          <option value=\"SD\">South Dakota<\/option>\n          <option value=\"ND\">North Dakota<\/option>\n          <option value=\"--\">Another state<\/option>\n        <\/select>\n        <span class=\"pp-hint\" id=\"pp-state-note\"><\/span>\n      <\/div>\n      <div class=\"pp-field\">\n        <label class=\"pp-lab\" for=\"pp-crop\">Crop<\/label>\n        <select class=\"pp-sel\" id=\"pp-crop\">\n          <option value=\"corn\">Corn<\/option>\n          <option value=\"soybeans\">Soybeans<\/option>\n          <option value=\"wheat\">Spring wheat<\/option>\n          <option value=\"sorghum\">Grain sorghum<\/option>\n          <option value=\"barley\">Barley<\/option>\n          <option value=\"oats\">Oats<\/option>\n          <option value=\"sunflowers\">Sunflowers<\/option>\n          <option value=\"canola\">Canola<\/option>\n          <option value=\"flax\">Flax<\/option>\n          <option value=\"drypeas\">Dry peas<\/option>\n          <option value=\"millet\">Millet<\/option>\n          <option value=\"popcorn\">Popcorn<\/option>\n          <option value=\"rice\">Rice<\/option>\n          <option value=\"peanuts\">Peanuts<\/option>\n          <option value=\"cotton\">Cotton<\/option>\n          <option value=\"drybeans\">Dry beans<\/option>\n          <option value=\"sugarbeets\">Sugar beets<\/option>\n          <option value=\"potatoes\">Potatoes<\/option>\n        <\/select>\n      <\/div>\n      <div class=\"pp-field\">\n        <label class=\"pp-lab\" for=\"pp-fpd\">Final planting date<\/label>\n        <input class=\"pp-in\" id=\"pp-fpd\" type=\"date\">\n        <span class=\"pp-hint\"><span data-h=\"table\">Most counties in this state<\/span><span data-h=\"policy\" hidden>From your policy&#8217;s actuarial documents<\/span><\/span>\n      <\/div>\n      <div class=\"pp-field\">\n        <label class=\"pp-lab\" for=\"pp-lpp\">Late planting period<\/label>\n        <div class=\"pp-inrow\">\n          <input class=\"pp-in\" id=\"pp-lpp\" type=\"number\" min=\"0\" max=\"60\" step=\"1\" inputmode=\"numeric\">\n          <span class=\"pp-unit\">days<\/span>\n        <\/div>\n        <span class=\"pp-hint\">One percent of the guarantee comes off for every day planted late.<\/span>\n      <\/div>\n    <\/div>\n\n    <div class=\"pp-tl\">\n      <svg id=\"pp-timeline\" viewBox=\"0 0 760 126\" role=\"img\" aria-label=\"Deadlines on a calendar strip\">\n        <rect class=\"lpp\" id=\"pp-tl-lpp\" x=\"0\" y=\"54\" width=\"0\" height=\"12\"\/>\n        <line class=\"ax\" x1=\"20\" y1=\"60\" x2=\"740\" y2=\"60\"\/>\n        <g id=\"pp-tl-months\"><\/g>\n        <g class=\"today\" id=\"pp-tl-today\" hidden><line x1=\"0\" y1=\"14\" x2=\"0\" y2=\"100\"\/><text x=\"0\" y=\"10\">Today<\/text><\/g>\n        <g class=\"mk\" data-k=\"fpd\" data-row=\"0\"><line x1=\"0\" y1=\"34\" x2=\"0\" y2=\"60\"\/><circle cx=\"0\" cy=\"60\" r=\"5\"\/><text class=\"l\" x=\"0\" y=\"20\">Final planting<\/text><text class=\"d\" x=\"0\" y=\"31\"><\/text><\/g>\n        <g class=\"mk\" data-k=\"notice1\" data-row=\"1\"><line x1=\"0\" y1=\"60\" x2=\"0\" y2=\"80\"\/><circle cx=\"0\" cy=\"60\" r=\"5\"\/><text class=\"l\" x=\"0\" y=\"92\">Insurer notice<\/text><text class=\"d\" x=\"0\" y=\"104\"><\/text><\/g>\n        <g class=\"mk fsa\" data-k=\"ccc576\" data-row=\"0\"><line x1=\"0\" y1=\"34\" x2=\"0\" y2=\"60\"\/><circle cx=\"0\" cy=\"60\" r=\"5\"\/><text class=\"l\" x=\"0\" y=\"20\">CCC-576<\/text><text class=\"d\" x=\"0\" y=\"31\"><\/text><\/g>\n        <g class=\"mk\" data-k=\"lppEnd\" data-row=\"1\"><line x1=\"0\" y1=\"60\" x2=\"0\" y2=\"80\"\/><circle cx=\"0\" cy=\"60\" r=\"5\"\/><text class=\"l\" x=\"0\" y=\"92\">Late period ends<\/text><text class=\"d\" x=\"0\" y=\"104\"><\/text><\/g>\n        <g class=\"mk\" data-k=\"notice2\" data-row=\"0\"><line x1=\"0\" y1=\"34\" x2=\"0\" y2=\"60\"\/><circle cx=\"0\" cy=\"60\" r=\"5\"\/><text class=\"l\" x=\"0\" y=\"20\">Insurer notice<\/text><text class=\"d\" x=\"0\" y=\"31\"><\/text><\/g>\n        <g class=\"mk fsa\" data-k=\"fsa578\" data-row=\"1\"><line x1=\"0\" y1=\"60\" x2=\"0\" y2=\"80\"\/><circle cx=\"0\" cy=\"60\" r=\"5\"\/><text class=\"l\" x=\"0\" y=\"92\">FSA-578<\/text><text class=\"d\" x=\"0\" y=\"104\"><\/text><\/g>\n      <\/svg>\n    <\/div>\n    <ul class=\"pp-dl\" id=\"pp-dates\">\n      <li><span class=\"d\" data-d=\"fpd\"><\/span><span class=\"w\">Final planting date<small>Full guarantee on everything planted by this day.<\/small><\/span><\/li>\n      <li><span class=\"d\" data-d=\"notice1\"><\/span><span class=\"w\">Notice to your insurance agent<small>Within 72 hours of the final planting date, when you will not plant in the late period.<\/small><\/span><\/li>\n      <li><span class=\"d fsa\" data-d=\"ccc576\"><\/span><span class=\"w\">CCC-576 Notice of Loss at the FSA county office<small>15 calendar days after the final planting date.<\/small><\/span><\/li>\n      <li><span class=\"d\" data-d=\"lppEnd\"><\/span><span class=\"w\">Late planting period ends<small>Planted after this day, the guarantee drops to the prevented planting level.<\/small><\/span><\/li>\n      <li><span class=\"d\" data-d=\"notice2\"><\/span><span class=\"w\">Notice to your insurance agent<small>Within 72 hours of deciding you cannot plant in the late period.<\/small><\/span><\/li>\n      <li><span class=\"d fsa\" data-d=\"fsa578\"><\/span><span class=\"w\">FSA-578 acreage report<small><span data-r=\"july15\">15 July for most crops; your county office confirms the date.<\/span><span data-r=\"after-planting\" hidden>Planting runs past 15 July here, so the report is due 15 calendar days after planting is completed.<\/span><\/small><\/span><\/li>\n    <\/ul>\n    <p class=\"pp-note\">The signed prevented planting claim goes to the insurer within 60 days of the end of the insurance period in your policy.<\/p>\n  <\/div>\n\n  <!-- \u2500\u2500 2. acres \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n  <div class=\"pp-card\">\n    <h2 class=\"pp-h\">The acres<\/h2>\n    <p class=\"pp-sub\">Drop the field boundary, then outline the ground that could not be planted. The outline snaps to the boundary and the acres go straight into the fields table, the eligibility check and the worksheet.<\/p>\n    <div class=\"pp-agrid\">\n      <div class=\"pp-mapbox\" id=\"pp-mapbox\">\n        <canvas class=\"pp-map\" id=\"pp-map\" aria-label=\"Field map\"><\/canvas>\n        <div class=\"pp-empty\" id=\"pp-empty\">A field boundary, dropped on the right, draws here.<\/div>\n        <div class=\"pp-ctrl\">\n          <button type=\"button\" id=\"pp-outline\" class=\"pp-wide\" title=\"Outline the unplanted ground\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M4 7l6-3 7 4 3 9-8 3-8-5z\"\/><circle cx=\"4\" cy=\"7\" r=\"1.5\"\/><circle cx=\"10\" cy=\"4\" r=\"1.5\"\/><circle cx=\"17\" cy=\"8\" r=\"1.5\"\/><\/svg><span>Outline<\/span><\/button>\n          <button type=\"button\" id=\"pp-whole\" class=\"pp-wide\" title=\"The whole field was prevented\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"2\"\/><path d=\"M8 12l3 3 5-6\"\/><\/svg><span>Whole field<\/span><\/button>\n          <button type=\"button\" id=\"pp-clear\" class=\"pp-wide\" title=\"Remove the outlines on this field\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14\"\/><\/svg><span>Clear<\/span><\/button>\n          <button type=\"button\" id=\"pp-zin\" title=\"Zoom in\">+<\/button>\n          <button type=\"button\" id=\"pp-zout\" title=\"Zoom out\">&#8722;<\/button>\n          <button type=\"button\" id=\"pp-fit\" title=\"Fit the field\">&#10226;<\/button>\n        <\/div>\n        <div class=\"pp-hintpill\" id=\"pp-hintpill\" hidden>Click around the unplanted ground. The first point closes the outline. Esc cancels.<\/div>\n        <div class=\"pp-scale\" id=\"pp-scale\" hidden><i id=\"pp-scale-bar\" style=\"width:60px\"><\/i><span id=\"pp-scale-t\"><\/span><\/div>\n      <\/div>\n      <div class=\"pp-side\">\n        <div class=\"pp-drop\" id=\"pp-drop\" tabindex=\"0\" role=\"button\" aria-label=\"Drop a field boundary or choose a file\">\n          <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\/><polyline points=\"17 8 12 3 7 8\"\/><line x1=\"12\" y1=\"3\" x2=\"12\" y2=\"15\"\/><\/svg>\n          <span class=\"pp-drop-t\">Drop a field boundary<\/span>\n          <span class=\"pp-drop-s\">GeoJSON, zipped shapefile or KML. The Common Land Unit export from farmers.gov works as it is.<\/span>\n          <input type=\"file\" id=\"pp-file\" accept=\".geojson,.json,.zip,.kml,application\/json,application\/geo+json,application\/zip,application\/vnd.google-earth.kml+xml\" multiple>\n        <\/div>\n        <div class=\"pp-acts\">\n          <button type=\"button\" class=\"pp-btn2\" id=\"pp-sample\">Load the sample field<\/button>\n          <button type=\"button\" class=\"pp-btn2\" id=\"pp-add\">Add a field by hand<\/button>\n        <\/div>\n        <div class=\"pp-msg\" id=\"pp-msg\" aria-live=\"polite\"><\/div>\n        <div class=\"pp-tblwrap\">\n          <table class=\"pp-tbl\" id=\"pp-tbl\">\n            <thead><tr><th>Field<\/th><th class=\"n\">Field ac<\/th><th class=\"n\">Prevented ac<\/th><th class=\"n\">Planted ac<\/th><th>Source<\/th><th><\/th><\/tr><\/thead>\n            <tbody id=\"pp-fields\"><\/tbody>\n            <tfoot><tr><td>All fields<\/td><td class=\"n\" id=\"pp-tot-field\">0<\/td><td class=\"n\" id=\"pp-tot-prev\">0<\/td><td class=\"n\" id=\"pp-tot-plant\">0<\/td><td><\/td><td><\/td><\/tr><\/tfoot>\n          <\/table>\n        <\/div>\n        <template id=\"pp-row-tpl\">\n          <tr>\n            <td><input class=\"pp-in\" data-f=\"name\" type=\"text\" aria-label=\"Field name\"><\/td>\n            <td class=\"n\"><span data-f=\"fieldAc-t\"><\/span><input class=\"pp-in num\" data-f=\"fieldAc\" type=\"number\" min=\"0\" step=\"0.1\" inputmode=\"decimal\" aria-label=\"Field acres\" hidden><\/td>\n            <td class=\"n\"><span data-f=\"prevAc-t\"><\/span><input class=\"pp-in num\" data-f=\"prevAc\" type=\"number\" min=\"0\" step=\"0.1\" inputmode=\"decimal\" aria-label=\"Prevented acres\" hidden><\/td>\n            <td class=\"n\" data-f=\"plantAc\"><\/td>\n            <td class=\"src\"><span data-s=\"map\">map<button type=\"button\" class=\"pick\" data-f=\"pick\" hidden>show<\/button><\/span><span data-s=\"typed\" hidden>typed<\/span><\/td>\n            <td><button type=\"button\" class=\"rm\" data-f=\"rm\" aria-label=\"Remove this field\">&#215;<\/button><\/td>\n          <\/tr>\n        <\/template>\n        <div class=\"pp-acts\">\n          <button type=\"button\" class=\"pp-btn\" id=\"pp-geojson\" disabled><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\"\/><polyline points=\"7 10 12 15 17 10\"\/><line x1=\"12\" y1=\"15\" x2=\"12\" y2=\"3\"\/><\/svg>GeoJSON for farmers.gov<\/button>\n          <button type=\"button\" class=\"pp-btn2\" id=\"pp-shp\" disabled>Shapefile (zip)<\/button>\n          <button type=\"button\" class=\"pp-btn2\" id=\"pp-print\">Print the worksheet<\/button>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n\n  <!-- \u2500\u2500 3. eligibility, 4. payment \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n  <div class=\"pp-two\">\n    <div class=\"pp-card\">\n      <h2 class=\"pp-h\">Does it pay?<\/h2>\n      <p class=\"pp-sub\">Prevented planting pays on at least 20 acres or 20 percent of the insurable acres of the crop in the unit, whichever is less, and on no more acres than your four-year high for the crop.<\/p>\n      <div class=\"pp-igrid\">\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-unit\">Unit<\/label>\n          <select class=\"pp-sel\" id=\"pp-unit\">\n            <option value=\"basic\">Basic or optional unit<\/option>\n            <option value=\"enterprise\">Enterprise unit<\/option>\n          <\/select>\n          <span class=\"pp-hint\"><span data-u=\"basic\">The fields in this unit.<\/span><span data-u=\"enterprise\" hidden>Every field of the crop in the county, so small wet spots add up.<\/span><\/span>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-insurable\">Insurable acres of the crop in the unit<\/label>\n          <div class=\"pp-inrow\">\n            <input class=\"pp-in\" id=\"pp-insurable\" type=\"number\" min=\"0\" step=\"0.1\" inputmode=\"decimal\">\n            <span class=\"pp-unit\">ac<\/span>\n          <\/div>\n          <span class=\"pp-hint\">Opens on the fields table total.<\/span>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-eligible\">Most acres of this crop insured or certified in any of the four most recent years<\/label>\n          <div class=\"pp-inrow\">\n            <input class=\"pp-in\" id=\"pp-eligible\" type=\"number\" min=\"0\" step=\"0.1\" inputmode=\"decimal\" placeholder=\"no cap\">\n            <span class=\"pp-unit\">ac<\/span>\n          <\/div>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-chk\"><input type=\"checkbox\" id=\"pp-history\" checked><span>The ground was planted and harvested, or adjusted for an insured loss, in one of the four previous years<\/span><\/label>\n        <\/div>\n      <\/div>\n      <div class=\"pp-verdict\" id=\"pp-verdict\">\n        <span data-v=\"none\">Outline or type the prevented acres.<\/span>\n        <span data-v=\"pass\" hidden>Clears the floor of <b data-o=\"threshold\"><\/b> acres.<\/span>\n        <span data-v=\"short\" hidden><b data-o=\"prev\"><\/b> acres prevented against a floor of <b data-o=\"threshold\"><\/b>: short by <b data-o=\"short\"><\/b>.<\/span>\n      <\/div>\n      <div class=\"pp-verdict\" id=\"pp-payable\">\n        <span data-p=\"pay\">Payable: <b data-o=\"payable\"><\/b> acres<span data-p=\"capped\" hidden>, capped by the eligible acres after <b data-o=\"planted\"><\/b> planted<\/span>.<\/span>\n        <span data-p=\"history\" hidden>Without the four-year history the acres do not pay.<\/span>\n      <\/div>\n    <\/div>\n\n    <div class=\"pp-card\">\n      <h2 class=\"pp-h\">The payment<\/h2>\n      <p class=\"pp-sub\">Your approved yield, coverage level and the projected price give the guarantee; the prevented planting factor for the crop gives the payment.<\/p>\n      <div class=\"pp-igrid\">\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-aph\">Approved APH yield<\/label>\n          <div class=\"pp-inrow\">\n            <input class=\"pp-in\" id=\"pp-aph\" type=\"number\" min=\"0\" step=\"0.1\" inputmode=\"decimal\">\n            <span class=\"pp-unit\"><span data-un=\"bu\">bu\/ac<\/span><span data-un=\"lb\" hidden>lb\/ac<\/span><span data-un=\"cwt\" hidden>cwt\/ac<\/span><span data-un=\"ton\" hidden>ton\/ac<\/span><\/span>\n          <\/div>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-cov\">Coverage level<\/label>\n          <select class=\"pp-sel\" id=\"pp-cov\">\n            <option value=\"50\">50 percent<\/option>\n            <option value=\"55\">55 percent<\/option>\n            <option value=\"60\">60 percent<\/option>\n            <option value=\"65\">65 percent<\/option>\n            <option value=\"70\">70 percent<\/option>\n            <option value=\"75\">75 percent<\/option>\n            <option value=\"80\" selected>80 percent<\/option>\n            <option value=\"85\">85 percent<\/option>\n          <\/select>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-price\">Projected price<\/label>\n          <div class=\"pp-inrow\">\n            <span class=\"pp-unit\">$<\/span>\n            <input class=\"pp-in\" id=\"pp-price\" type=\"number\" min=\"0\" step=\"0.01\" inputmode=\"decimal\">\n            <span class=\"pp-unit\"><span data-un=\"bu\">per bu<\/span><span data-un=\"lb\" hidden>per lb<\/span><span data-un=\"cwt\" hidden>per cwt<\/span><span data-un=\"ton\" hidden>per ton<\/span><\/span>\n          <\/div>\n          <span class=\"pp-hint\"><span data-pr=\"known\">The 2026 projected price for the crop.<\/span><span data-pr=\"ask\" hidden>From your policy&#8217;s price discovery.<\/span><\/span>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-lab\" for=\"pp-factor\">Prevented planting factor<\/label>\n          <div class=\"pp-inrow\">\n            <input class=\"pp-in\" id=\"pp-factor\" type=\"number\" min=\"0\" max=\"100\" step=\"1\" inputmode=\"numeric\">\n            <span class=\"pp-unit\">percent<\/span>\n          <\/div>\n          <span class=\"pp-hint\">The standard factor for the crop. Your county&#8217;s figure is in the actuarial documents.<\/span>\n        <\/div>\n        <div class=\"pp-field\">\n          <label class=\"pp-chk\"><input type=\"checkbox\" id=\"pp-second\"><span>A second insurable crop goes in after the late period, so the payment is 35 percent<\/span><\/label>\n        <\/div>\n      <\/div>\n      <div class=\"pp-res pp-card\" style=\"margin-top:12px\">\n        <span class=\"pp-lab\">Prevented planting payment<\/span>\n        <div class=\"pp-big\"><span id=\"pp-perac\">&#8212;<\/span> <span class=\"pp-big-u\">per acre<\/span><\/div>\n        <div class=\"pp-out\">\n          <div class=\"pp-o\"><span class=\"pp-o-l\">On the payable acres<\/span><span class=\"pp-o-v\" id=\"pp-total\">&#8212;<\/span><\/div>\n          <div class=\"pp-o\"><span class=\"pp-o-l\">Guarantee per acre<\/span><span class=\"pp-o-v\" id=\"pp-guar\">&#8212;<\/span><\/div>\n        <\/div>\n        <div class=\"pp-math\" id=\"pp-math\">\n          <div><span data-m=\"g\"><\/span><\/div>\n          <div><span data-m=\"p\"><\/span><\/div>\n          <div><span data-m=\"t\"><\/span><\/div>\n        <\/div>\n        <span class=\"pp-warn\" id=\"pp-price-warn\" hidden>A projected price is needed for the payment.<\/span>\n      <\/div>\n      <div class=\"pp-chart\">\n        <svg id=\"pp-chart\" viewBox=\"0 0 760 250\" role=\"img\" aria-label=\"Guarantee kept by planting on each day of the late period, against the prevented planting payment\"><\/svg>\n      <\/div>\n      <p class=\"pp-cap\">Guarantee kept per acre by planting on each day of the late planting period, next to the prevented planting payment.<\/p>\n    <\/div>\n  <\/div>\n\n  <!-- \u2500\u2500 printed worksheet \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 -->\n  <div class=\"pp-sheet\" id=\"pp-sheet\">\n    <h2>Prevented planting worksheet<\/h2>\n    <p class=\"sm\">Prepared <span id=\"ps-date\"><\/span> at geopard.tech\/prevented-planting-calculator for the FSA-578 acreage report and the CCC-576 Notice of Loss.<\/p>\n    <h3>Crop and dates<\/h3>\n    <table>\n      <tr><th>Crop<\/th><td id=\"ps-crop\"><\/td><th>State<\/th><td id=\"ps-state\"><\/td><\/tr>\n      <tr><th>Final planting date<\/th><td id=\"ps-fpd\"><\/td><th>Late planting period ends<\/th><td id=\"ps-lppEnd\"><\/td><\/tr>\n      <tr><th>CCC-576 due<\/th><td id=\"ps-ccc576\"><\/td><th>FSA-578 due<\/th><td id=\"ps-fsa578\"><\/td><\/tr>\n      <tr><th>Insurer notice<\/th><td id=\"ps-notice1\"><\/td><th>Insurer notice after the late period<\/th><td id=\"ps-notice2\"><\/td><\/tr>\n    <\/table>\n    <h3>Fields<\/h3>\n    <table>\n      <thead><tr><th>Field<\/th><th class=\"n\">Field acres<\/th><th class=\"n\">Prevented acres<\/th><th class=\"n\">Planted acres<\/th><\/tr><\/thead>\n      <tbody id=\"ps-fields\"><\/tbody>\n      <tfoot><tr><th>All fields<\/th><td class=\"n\" id=\"ps-tot-field\"><\/td><td class=\"n\" id=\"ps-tot-prev\"><\/td><td class=\"n\" id=\"ps-tot-plant\"><\/td><\/tr><\/tfoot>\n    <\/table>\n    <h3>Eligibility and payment<\/h3>\n    <table>\n      <tr><th>Floor for the unit (20 acres or 20 percent)<\/th><td class=\"n\" id=\"ps-threshold\"><\/td><th>Payable acres<\/th><td class=\"n\" id=\"ps-payable\"><\/td><\/tr>\n      <tr><th>Guarantee per acre<\/th><td class=\"n\" id=\"ps-guar\"><\/td><th>Payment per acre<\/th><td class=\"n\" id=\"ps-perac\"><\/td><\/tr>\n      <tr><th>Payment on the payable acres<\/th><td class=\"n\" id=\"ps-total\"><\/td><th><\/th><td><\/td><\/tr>\n    <\/table>\n    <h3>Map<\/h3>\n    <img id=\"ps-map\" alt=\"The field boundary with the prevented planting outline\">\n  <\/div>\n\n  <div class=\"pp-tip\" id=\"pp-tip\" hidden><\/div>\n<\/div>\n\n<script type=\"application\/json\" id=\"pp-sample-data\" nowprocket data-no-optimize=\"1\" data-no-defer=\"1\" data-no-minify=\"1\">\n{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"Sample field\"},\"geometry\":{\"type\":\"Polygon\",\"coordinates\":[[[-93.610894,42.02913],[-93.604781,42.029283],[-93.604017,42.028977],[-93.603864,42.026073],[-93.604322,42.024545],[-93.606309,42.023934],[-93.609366,42.023781],[-93.611047,42.024239],[-93.6112,42.026838],[-93.610894,42.02913]],[[-93.60822,42.02699],[-93.607226,42.027143],[-93.606768,42.026532],[-93.607379,42.025921],[-93.608449,42.026226],[-93.60822,42.02699]]]}}]}\n<\/script>\n\n<script nowprocket data-no-optimize=\"1\" data-no-defer=\"1\" data-no-minify=\"1\">\n(function(){\n'use strict';\n\/* GPP-CORE BEGIN *\/\n\/* GPP: the Prevented Planting Calculator core. Pure logic, no DOM, ES5, and\n * never an ampersand character (rule 1: this file is injected into a script\n * body that WordPress entity-encodes). rebuild.sh copies it between the\n * GPP-CORE BEGIN\/END markers of source.html; tests-core.js requires it directly.\n * Every number here traces to reference\/sources.md. *\/\nvar GPP = (function(){\n  'use strict';\n  \/\/ \u2500\u2500 crops: the RMA prevented planting coverage factor (percent of the\n  \/\/    guarantee), the yield unit the policy prices, the late planting period\n  \/\/    in days most policies carry, and the 2026 projected price where RMA has\n  \/\/    announced one. A null price opens the input empty.\n  var CROPS = [\n    {key:'corn',      name:'Corn',          factor:55, unit:'bu',  lpp:25, price:4.62},\n    {key:'soybeans',  name:'Soybeans',      factor:60, unit:'bu',  lpp:25, price:11.09},\n    {key:'wheat',     name:'Spring wheat',  factor:60, unit:'bu',  lpp:15, price:6.19},\n    {key:'sorghum',   name:'Grain sorghum', factor:60, unit:'bu',  lpp:25, price:null},\n    {key:'barley',    name:'Barley',        factor:60, unit:'bu',  lpp:25, price:null},\n    {key:'oats',      name:'Oats',          factor:60, unit:'bu',  lpp:25, price:null},\n    {key:'sunflowers',name:'Sunflowers',    factor:60, unit:'lb',  lpp:25, price:null},\n    {key:'canola',    name:'Canola',        factor:55, unit:'lb',  lpp:25, price:null},\n    {key:'flax',      name:'Flax',          factor:60, unit:'bu',  lpp:25, price:null},\n    {key:'drypeas',   name:'Dry peas',      factor:60, unit:'cwt', lpp:25, price:null},\n    {key:'millet',    name:'Millet',        factor:60, unit:'bu',  lpp:25, price:null},\n    {key:'popcorn',   name:'Popcorn',       factor:60, unit:'lb',  lpp:25, price:null},\n    {key:'rice',      name:'Rice',          factor:55, unit:'cwt', lpp:25, price:null},\n    {key:'peanuts',   name:'Peanuts',       factor:55, unit:'lb',  lpp:25, price:null},\n    {key:'cotton',    name:'Cotton',        factor:50, unit:'lb',  lpp:25, price:null},\n    {key:'drybeans',  name:'Dry beans',     factor:50, unit:'cwt', lpp:25, price:null},\n    {key:'sugarbeets',name:'Sugar beets',   factor:45, unit:'ton', lpp:25, price:null},\n    {key:'potatoes',  name:'Potatoes',      factor:45, unit:'cwt', lpp:25, price:null}\n  ];\n  \/\/ \u2500\u2500 states: the final planting date most counties carry for corn and\n  \/\/    soybeans (MM-DD), the corn late planting period where it differs from\n  \/\/    25 days, and the exception the note names. Everything else is typed\n  \/\/    from the policy.\n  var STATES = [\n    {key:'IA', name:'Iowa',         corn:'05-31', soybeans:'06-15', cornLpp:25, note:''},\n    {key:'IL', name:'Illinois',     corn:'06-05', soybeans:'06-20', cornLpp:25, note:'Southern tier of counties: corn 31 May. Northern Illinois: soybeans 15 June.'},\n    {key:'IN', name:'Indiana',      corn:'06-05', soybeans:'06-20', cornLpp:25, note:''},\n    {key:'OH', name:'Ohio',         corn:'06-05', soybeans:'06-20', cornLpp:25, note:''},\n    {key:'MI', name:'Michigan',     corn:'06-05', soybeans:'06-15', cornLpp:25, note:''},\n    {key:'MN', name:'Minnesota',    corn:'05-31', soybeans:'06-10', cornLpp:25, note:'Northern tier of counties: corn 25 May.'},\n    {key:'WI', name:'Wisconsin',    corn:'05-31', soybeans:'06-10', cornLpp:25, note:'Northern tier of counties: corn 25 May. Southern Wisconsin: soybeans 15 June.'},\n    {key:'MO', name:'Missouri',     corn:'05-31', soybeans:'06-20', cornLpp:25, note:'Western and northern counties: corn 25 May.'},\n    {key:'KS', name:'Kansas',       corn:'05-25', soybeans:'06-10', cornLpp:20, note:'Corn carries a 20 day late planting period, to 14 June.'},\n    {key:'NE', name:'Nebraska',     corn:'05-25', soybeans:'06-10', cornLpp:20, note:'Corn carries a 20 day late planting period, to 14 June.'},\n    {key:'SD', name:'South Dakota', corn:'05-25', soybeans:'06-10', cornLpp:25, note:'South-eastern counties: corn 31 May.'},\n    {key:'ND', name:'North Dakota', corn:'05-25', soybeans:'06-10', cornLpp:25, note:'Four south-eastern counties: corn 31 May.'}\n  ];\n  function cropByKey(k){ for(var i=0;i<CROPS.length;i++){ if(CROPS[i].key===k) return CROPS[i]; } return null; }\n  function stateByKey(k){ for(var i=0;i<STATES.length;i++){ if(STATES[i].key===k) return STATES[i]; } return null; }\n  \/\/ Opening date for a state and crop, or null when the policy has to be read.\n  function defaultFpd(stateKey, cropKey, year){\n    var s = stateByKey(stateKey);\n    if(!s) return null;\n    var md = s[cropKey];\n    if(!md) return null;\n    return String(year) + '-' + md;\n  }\n  function defaultLpp(stateKey, cropKey){\n    var c = cropByKey(cropKey);\n    var base = c ? c.lpp : 25;\n    if(cropKey === 'corn'){\n      var s = stateByKey(stateKey);\n      if(s ? s.cornLpp : false) return s.cornLpp;\n    }\n    return base;\n  }\n  \/\/ \u2500\u2500 dates: ISO strings, calendar days, UTC arithmetic so a clock change\n  \/\/    never moves a deadline.\n  function parseIso(iso){\n    var m = \/^(\\d{4})-(\\d{2})-(\\d{2})$\/.exec(iso || '');\n    if(!m) return null;\n    return Date.UTC(+m[1], +m[2]-1, +m[3]);\n  }\n  function toIso(ms){\n    var d = new Date(ms);\n    var mo = d.getUTCMonth()+1, da = d.getUTCDate();\n    return d.getUTCFullYear() + '-' + (mo<10?'0':'') + mo + '-' + (da<10?'0':'') + da;\n  }\n  function addDays(iso, n){\n    var ms = parseIso(iso);\n    if(ms === null) return null;\n    return toIso(ms + n*86400000);\n  }\n  function daysBetween(a, b){\n    var x = parseIso(a), y = parseIso(b);\n    if(x === null || y === null) return null;\n    return Math.round((y - x)\/86400000);\n  }\n  var MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];\n  function fmtDate(iso){\n    var ms = parseIso(iso);\n    if(ms === null) return '';\n    var d = new Date(ms);\n    return d.getUTCDate() + ' ' + MONTHS[d.getUTCMonth()];\n  }\n  function fmtDateYear(iso){\n    var ms = parseIso(iso);\n    if(ms === null) return '';\n    return fmtDate(iso) + ' ' + new Date(ms).getUTCFullYear();\n  }\n  \/\/ Every deadline that counts from the final planting date.\n  \/\/   notice1  insurer notice when not planting in the late period: FPD + 72 h\n  \/\/   lppEnd   last day of the late planting period: FPD + lpp days\n  \/\/   notice2  insurer notice after deciding not to plant in the late period\n  \/\/   ccc576   FSA Notice of Loss: 15 calendar days after the FPD\n  \/\/   fsa578   acreage report: 15 July for most crops; when the late period\n  \/\/            runs past 15 July, 15 calendar days after planting is completed\n  function deadlines(o){\n    var fpd = o.fpd, lpp = Math.max(0, Math.round(+o.lpp || 0));\n    var year = +(fpd || '').slice(0,4);\n    var lppEnd = addDays(fpd, lpp);\n    var july15 = year + '-07-15';\n    var rule = 'july15', fsa578 = july15;\n    if(daysBetween(july15, lppEnd) > 0){ rule = 'after-planting'; fsa578 = addDays(lppEnd, 15); }\n    return {\n      fpd: fpd,\n      notice1: addDays(fpd, 3),\n      lppEnd: lppEnd,\n      notice2: addDays(lppEnd, 3),\n      ccc576: addDays(fpd, 15),\n      fsa578: fsa578,\n      fsa578Rule: rule\n    };\n  }\n  \/\/ \u2500\u2500 eligibility \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ The lesser of 20 acres or 20 percent of the insurable acres in the unit.\n  function twentyTwenty(preventedAc, insurableAc){\n    var ins = Math.max(0, +insurableAc || 0), pp = Math.max(0, +preventedAc || 0);\n    var threshold = Math.min(20, ins * 0.2);\n    var pass = pp >= threshold ? pp > 0 : false;\n    return { threshold: threshold, pass: pass, short: pass ? 0 : Math.max(0, threshold - pp) };\n  }\n  \/\/ Prevented plus planted acres cannot exceed the eligible acres.\n  function payableAcres(preventedAc, plantedAc, eligibleAc){\n    var pp = Math.max(0, +preventedAc || 0);\n    if(eligibleAc === null || eligibleAc === undefined || eligibleAc === '') return pp;\n    var el = Math.max(0, +eligibleAc || 0), pl = Math.max(0, +plantedAc || 0);\n    return Math.min(pp, Math.max(0, el - pl));\n  }\n  \/\/ \u2500\u2500 payment \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  function guarantee(o){\n    var aph = +o.aph || 0, cov = +o.coverage || 0, price = +o.price || 0;\n    return aph * cov \/ 100 * price;\n  }\n  function ppPayment(o){\n    var g = guarantee(o);\n    var factor = +o.factor || 0;\n    var share = o.secondCrop ? 0.35 : 1;\n    return { guarantee: g, perAc: g * factor \/ 100 * share, share: share, factor: factor };\n  }\n  \/\/ Guarantee kept by planting on each day of the late period: one percent a\n  \/\/ day off the full guarantee.\n  function lateCurve(o){\n    var out = [], lpp = Math.max(0, Math.round(+o.lpp || 0));\n    for(var d=1; d<=lpp; d++){\n      var pct = 100 - d;\n      out.push({ day: d, date: addDays(o.fpd, d), pct: pct, keep: (+o.guarantee || 0) * pct \/ 100 });\n    }\n    return out;\n  }\n  \/\/ \u2500\u2500 geometry \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  var M2_PER_ACRE = 4046.8564224;\n  var R = 6371008.8, RAD = Math.PI\/180;\n  \/\/ A local plane in metres about the ring's centroid. At field scale the\n  \/\/ error against an equal-area projection is well under 0.1 percent.\n  function makeProj(lonLatRing){\n    var n = lonLatRing.length, sx = 0, sy = 0;\n    for(var i=0;i<n;i++){ sx += lonLatRing[i][0]; sy += lonLatRing[i][1]; }\n    var lon0 = sx\/n, lat0 = sy\/n, k = Math.cos(lat0*RAD)*R*RAD, ky = R*RAD;\n    return {\n      lon0: lon0, lat0: lat0,\n      fwd: function(ll){ return [(ll[0]-lon0)*k, (ll[1]-lat0)*ky]; },\n      inv: function(xy){ return [lon0 + xy[0]\/k, lat0 + xy[1]\/ky]; }\n    };\n  }\n  function ringArea(ring){\n    var a = 0, n = ring.length;\n    if(n < 3) return 0;\n    for(var i=0, j=n-1; i<n; j=i++){ a += (ring[j][0]*ring[i][1]) - (ring[i][0]*ring[j][1]); }\n    return Math.abs(a)\/2;\n  }\n  function polyArea(rings){\n    if(!rings ? true : !rings.length) return 0;\n    var a = ringArea(rings[0]);\n    for(var i=1;i<rings.length;i++) a -= ringArea(rings[i]);\n    return Math.max(0, a);\n  }\n  function pointInRing(p, ring){\n    var inside = false, n = ring.length;\n    for(var i=0, j=n-1; i<n; j=i++){\n      var xi = ring[i][0], yi = ring[i][1], xj = ring[j][0], yj = ring[j][1];\n      var cross = (yi > p[1]) !== (yj > p[1]);\n      if(cross){\n        var x = (xj - xi) * (p[1] - yi) \/ (yj - yi) + xi;\n        if(p[0] < x) inside = !inside;\n      }\n    }\n    return inside;\n  }\n  function nearestOnSegment(p, a, b){\n    var dx = b[0]-a[0], dy = b[1]-a[1], l2 = dx*dx + dy*dy;\n    if(l2 === 0) return [a[0], a[1]];\n    var t = ((p[0]-a[0])*dx + (p[1]-a[1])*dy) \/ l2;\n    t = t < 0 ? 0 : (t > 1 ? 1 : t);\n    return [a[0] + t*dx, a[1] + t*dy];\n  }\n  function nearestOnRing(p, ring){\n    var best = null, bd = Infinity, n = ring.length;\n    for(var i=0, j=n-1; i<n; j=i++){\n      var q = nearestOnSegment(p, ring[j], ring[i]);\n      var d = (q[0]-p[0])*(q[0]-p[0]) + (q[1]-p[1])*(q[1]-p[1]);\n      if(d < bd){ bd = d; best = q; }\n    }\n    return best;\n  }\n  function bbox(rings){\n    var b = [Infinity, Infinity, -Infinity, -Infinity];\n    for(var r=0;r<rings.length;r++){\n      for(var i=0;i<rings[r].length;i++){\n        var p = rings[r][i];\n        if(p[0]<b[0]) b[0]=p[0]; if(p[1]<b[1]) b[1]=p[1];\n        if(p[0]>b[2]) b[2]=p[0]; if(p[1]>b[3]) b[3]=p[1];\n      }\n    }\n    return b;\n  }\n  \/\/ Snap a drawn outline to the field: every edge sampled at 2 m, a sample\n  \/\/ outside the outer ring moves to the nearest point on it, a sample inside a\n  \/\/ hole moves to the nearest point on that hole's ring. The result is the\n  \/\/ outline that is exported, so the acres and the file always agree.\n  function snapOutline(outline, field){\n    var outer = field.outer, holes = field.holes || [];\n    var out = [], n = outline.length;\n    if(n < 3) return [];\n    for(var i=0;i<n;i++){\n      var a = outline[i], b = outline[(i+1)%n];\n      var len = Math.sqrt((b[0]-a[0])*(b[0]-a[0]) + (b[1]-a[1])*(b[1]-a[1]));\n      var steps = Math.max(1, Math.ceil(len\/2));\n      for(var s=0; s<steps; s++){\n        var t = s\/steps, p = [a[0] + (b[0]-a[0])*t, a[1] + (b[1]-a[1])*t];\n        if(!pointInRing(p, outer)) p = nearestOnRing(p, outer);\n        else {\n          for(var h=0; h<holes.length; h++){\n            if(pointInRing(p, holes[h])){ p = nearestOnRing(p, holes[h]); break; }\n          }\n        }\n        var last = out.length ? out[out.length-1] : null;\n        if(last ? (Math.abs(last[0]-p[0]) < 0.05 ? Math.abs(last[1]-p[1]) < 0.05 : false) : false) continue;\n        out.push(p);\n      }\n    }\n    if(out.length > 1){\n      var f = out[0], l = out[out.length-1];\n      if(Math.abs(f[0]-l[0]) < 0.05 ? Math.abs(f[1]-l[1]) < 0.05 : false) out.pop();\n    }\n    out = dropCollinear(out, 0.01);\n    return out.length >= 3 ? out : [];\n  }\n  \/\/ The 2 m sampling leaves hundreds of points on every straight run. A point\n  \/\/ within tol metres of the line through its neighbours adds nothing to the\n  \/\/ shape or the area, so it goes. This is synthesised geometry, not an import\n  \/\/ (rule 20 is about the grower's own vertices, which are never touched).\n  function dropCollinear(ring, tol){\n    var n = ring.length;\n    if(n < 4) return ring;\n    var out = [];\n    for(var i=0;i<n;i++){\n      var a = out.length ? out[out.length-1] : ring[(i+n-1)%n], b = ring[i], c = ring[(i+1)%n];\n      var dx = c[0]-a[0], dy = c[1]-a[1], len = Math.sqrt(dx*dx + dy*dy);\n      var dist = len === 0 ? 0 : Math.abs(dx*(b[1]-a[1]) - dy*(b[0]-a[0])) \/ len;\n      if(dist > tol) out.push(b);\n    }\n    return out.length >= 3 ? out : ring;\n  }\n  \/\/ Crossings of a horizontal line with a ring, sorted. Used by the raster.\n  function rowCrossings(ring, y){\n    var xs = [], n = ring.length;\n    for(var i=0, j=n-1; i<n; j=i++){\n      var yi = ring[i][1], yj = ring[j][1];\n      if((yi > y) !== (yj > y)){\n        xs.push((ring[j][0]-ring[i][0]) * (y-yi) \/ (yj-yi) + ring[i][0]);\n      }\n    }\n    xs.sort(function(a,b){ return a-b; });\n    return xs;\n  }\n  \/\/ Parity of crossings left of x, walked with a pointer that only advances.\n  function makeParity(xs){\n    var k = 0;\n    return function(x){\n      while(k < xs.length ? xs[k] < x : false) k++;\n      return (k % 2) === 1;\n    };\n  }\n  \/\/ Area of the union of several rings, clipped to the field (outer ring\n  \/\/ minus holes), on a raster of cells no coarser than 1 m where the cell\n  \/\/ budget allows. Overlapping outlines are never counted twice.\n  function unionArea(rings, field, maxCells){\n    var live = [];\n    for(var r=0;r<rings.length;r++){ if(rings[r].length >= 3) live.push(rings[r]); }\n    if(!live.length) return 0;\n    var b = bbox(live), fb = bbox([field.outer]);\n    var x0 = Math.max(b[0], fb[0]), y0 = Math.max(b[1], fb[1]), x1 = Math.min(b[2], fb[2]), y1 = Math.min(b[3], fb[3]);\n    if(x1 <= x0 || y1 <= y0) return 0;\n    var budget = maxCells || 400000;\n    var cell = Math.max(1, Math.sqrt((x1-x0)*(y1-y0)\/budget));\n    var cols = Math.max(1, Math.ceil((x1-x0)\/cell)), rows = Math.max(1, Math.ceil((y1-y0)\/cell));\n    var holes = field.holes || [], count = 0;\n    for(var ry=0; ry<rows; ry++){\n      var y = y0 + (ry+0.5)*cell;\n      var pOuter = makeParity(rowCrossings(field.outer, y));\n      var pHoles = [], pRings = [];\n      for(var h=0;h<holes.length;h++) pHoles.push(makeParity(rowCrossings(holes[h], y)));\n      for(var q=0;q<live.length;q++) pRings.push(makeParity(rowCrossings(live[q], y)));\n      for(var cx=0; cx<cols; cx++){\n        var x = x0 + (cx+0.5)*cell;\n        if(!pOuter(x)) continue;\n        var inHole = false;\n        for(var hh=0; hh<pHoles.length; hh++){ if(pHoles[hh](x)){ inHole = true; break; } }\n        if(inHole) continue;\n        var inAny = false;\n        for(var rr=0; rr<pRings.length; rr++){ if(pRings[rr](x)){ inAny = true; break; } }\n        if(inAny) count++;\n      }\n    }\n    return count * cell * cell;\n  }\n  \/\/ \u2500\u2500 import \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ Any GeoJSON object to a list of fields: one per Polygon, one per\n  \/\/ MultiPolygon part. Every vertex is kept (rule 20). Projected coordinates\n  \/\/ are refused rather than placed wrongly.\n  function closeRing(r){\n    var out = r.slice();\n    if(out.length > 1){\n      var f = out[0], l = out[out.length-1];\n      if(f[0] === l[0] ? f[1] === l[1] : false) out.pop();\n    }\n    return out;\n  }\n  function pickName(props, fallback){\n    if(!props) return fallback;\n    var keys = ['name','NAME','Name','field','FIELD','Field','field_name','FIELD_NAME','FieldName','CLU','clu_number','CLUNBR','TRACT','tract'];\n    for(var i=0;i<keys.length;i++){\n      var v = props[keys[i]];\n      if(v !== undefined ? (v !== null ? String(v).trim() !== '' : false) : false) return String(v).trim();\n    }\n    return fallback;\n  }\n  function normaliseFeatures(gj){\n    var feats = [];\n    if(!gj) return feats;\n    if(gj.type === 'FeatureCollection') feats = gj.features || [];\n    else if(gj.type === 'Feature') feats = [gj];\n    else if(gj.type) feats = [{type:'Feature', geometry: gj, properties: {}}];\n    var fields = [], idx = 0;\n    function add(rings, props){\n      idx++;\n      var clean = [];\n      for(var r=0;r<rings.length;r++){\n        var ring = closeRing(rings[r]);\n        if(ring.length >= 3) clean.push(ring);\n      }\n      if(!clean.length) return;\n      for(var c=0;c<clean.length;c++){\n        for(var v=0; v<clean[c].length; v++){\n          var p = clean[c][v];\n          if(Math.abs(p[0]) > 180 || Math.abs(p[1]) > 90) throw new Error('projected');\n        }\n      }\n      fields.push({ name: pickName(props, 'Field ' + idx), rings: clean });\n    }\n    for(var i=0;i<feats.length;i++){\n      var g = feats[i] ? feats[i].geometry : null;\n      if(!g) continue;\n      if(g.type === 'Polygon') add(g.coordinates || [], feats[i].properties);\n      else if(g.type === 'MultiPolygon'){\n        var parts = g.coordinates || [];\n        for(var p=0;p<parts.length;p++) add(parts[p], feats[i].properties);\n      }\n    }\n    return fields;\n  }\n  \/\/ KML: Placemarks with Polygon outer and inner boundaries, read by pattern\n  \/\/ so the same code runs in the page and under node.\n  function kmlCoords(s){\n    var out = [], toks = String(s || '').trim().split(\/\\s+\/);\n    for(var i=0;i<toks.length;i++){\n      var c = toks[i].split(',');\n      if(c.length < 2) continue;\n      var lon = parseFloat(c[0]), lat = parseFloat(c[1]);\n      if(isFinite(lon) ? isFinite(lat) : false) out.push([lon, lat]);\n    }\n    return out;\n  }\n  function parseKml(text){\n    var feats = [];\n    var pm = \/<Placemark[\\s>][\\s\\S]*?<\\\/Placemark>\/g, m;\n    while((m = pm.exec(text))){\n      var block = m[0];\n      var nm = \/<name>([\\s\\S]*?)<\\\/name>\/.exec(block);\n      var polys = block.match(\/<Polygon[\\s>][\\s\\S]*?<\\\/Polygon>\/g) || [];\n      for(var i=0;i<polys.length;i++){\n        var rings = [];\n        var outer = \/<outerBoundaryIs>[\\s\\S]*?<coordinates>([\\s\\S]*?)<\\\/coordinates>\/.exec(polys[i]);\n        if(!outer) continue;\n        rings.push(kmlCoords(outer[1]));\n        var inner = \/<innerBoundaryIs>[\\s\\S]*?<coordinates>([\\s\\S]*?)<\\\/coordinates>[\\s\\S]*?<\\\/innerBoundaryIs>\/g, im;\n        while((im = inner.exec(polys[i]))) rings.push(kmlCoords(im[1]));\n        feats.push({ type:'Feature', properties: { name: nm ? nm[1].replace(\/\\s+\/g,' ').trim() : '' },\n                     geometry: { type:'Polygon', coordinates: rings } });\n      }\n    }\n    return { type:'FeatureCollection', features: feats };\n  }\n  \/\/ \u2500\u2500 export \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n  \/\/ fields: [{name, crop, fieldAc, preventedAc, boundary:[lonlat rings], prevented:[lonlat rings]}]\n  function exportGeoJson(fields){\n    var feats = [];\n    function closed(r){ var o = r.slice(); if(o.length){ o.push([o[0][0], o[0][1]]); } return o; }\n    for(var i=0;i<fields.length;i++){\n      var f = fields[i];\n      if(f.prevented ? f.prevented.length : false){\n        var pv = [];\n        for(var p=0;p<f.prevented.length;p++){ if(f.prevented[p].length >= 3) pv.push([closed(f.prevented[p])]); }\n        if(pv.length){\n          feats.push({ type:'Feature',\n            properties: { field: f.name, crop: f.crop, kind: 'prevented planting', acres: Math.round((+f.preventedAc || 0)*100)\/100 },\n            geometry: pv.length === 1 ? { type:'Polygon', coordinates: pv[0] } : { type:'MultiPolygon', coordinates: pv } });\n        }\n      }\n      if(f.boundary ? f.boundary.length : false){\n        var rings = [];\n        for(var r=0;r<f.boundary.length;r++) rings.push(closed(f.boundary[r]));\n        feats.push({ type:'Feature',\n          properties: { field: f.name, crop: f.crop, kind: 'field boundary', acres: Math.round((+f.fieldAc || 0)*100)\/100 },\n          geometry: { type:'Polygon', coordinates: rings } });\n      }\n    }\n    return { type:'FeatureCollection', features: feats };\n  }\n  function acres(m2){ return m2 \/ M2_PER_ACRE; }\n  return {\n    CROPS: CROPS, STATES: STATES, cropByKey: cropByKey, stateByKey: stateByKey,\n    defaultFpd: defaultFpd, defaultLpp: defaultLpp,\n    addDays: addDays, daysBetween: daysBetween, fmtDate: fmtDate, fmtDateYear: fmtDateYear, deadlines: deadlines,\n    twentyTwenty: twentyTwenty, payableAcres: payableAcres,\n    guarantee: guarantee, ppPayment: ppPayment, lateCurve: lateCurve,\n    M2_PER_ACRE: M2_PER_ACRE, acres: acres, makeProj: makeProj, ringArea: ringArea, polyArea: polyArea,\n    pointInRing: pointInRing, nearestOnRing: nearestOnRing, bbox: bbox, snapOutline: snapOutline, unionArea: unionArea,\n    normaliseFeatures: normaliseFeatures, parseKml: parseKml, exportGeoJson: exportGeoJson\n  };\n})();\nif(typeof module !== 'undefined' ? module.exports : false){ module.exports = GPP; }\n\/* GPP-CORE END *\/\nvar root = document.getElementById('gp-pp');\nif(!root) return;\nfunction $(id){ return document.getElementById(id); }\nfunction qa(sel, el){ return Array.prototype.slice.call((el || root).querySelectorAll(sel)); }\nfunction show(el, on){ if(el){ el.hidden = !on; } }\nfunction fmtN(v, d){ if(!isFinite(v)) return '\u2014'; return v.toLocaleString('en-US', {minimumFractionDigits: d, maximumFractionDigits: d}); }\nfunction fmtAc(v){ return fmtN(v, 1); }\nfunction fmt$(v){ if(!isFinite(v)) return '\u2014'; return '$' + fmtN(v, v >= 1000 ? 0 : 2); }\n\/\/ \u2500\u2500 state \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nvar S = {\n  state: 'IA', crop: 'corn', fpd: null, lpp: 25,\n  fpdTouched: false, lppTouched: false, priceTouched: false, factorTouched: false, insurableTouched: false,\n  fields: [], sel: null, nextId: 1, unit: 'basic', eligible: '', history: true,\n  aph: 175, cov: 80, price: null, factor: 55, second: false\n};\nvar YEAR = new Date().getFullYear();\n\/\/ \u2500\u2500 dates card \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nvar stateSel = $('pp-state'), cropSel = $('pp-crop'), fpdIn = $('pp-fpd'), lppIn = $('pp-lpp');\nfunction guessState(){\n  try {\n    var saved = localStorage.getItem('gp-pp-state');\n    if(saved ? GPP.stateByKey(saved) : false) return saved;\n  } catch(_){}\n  var tz = '';\n  try { tz = Intl.DateTimeFormat().resolvedOptions().timeZone || ''; } catch(_){}\n  if(tz === 'America\/New_York') return 'OH';\n  if(tz === 'America\/Detroit') return 'MI';\n  if(\/^America\\\/Indiana\/.test(tz)) return 'IN';\n  if(tz === 'America\/North_Dakota\/Center' ? true : tz === 'America\/North_Dakota\/New_Salem') return 'ND';\n  return 'IA';\n}\nfunction applyDateDefaults(){\n  var c = GPP.cropByKey(S.crop);\n  if(!S.fpdTouched){\n    var d = GPP.defaultFpd(S.state, S.crop, YEAR);\n    S.fpd = d; fpdIn.value = d || '';\n  }\n  if(!S.lppTouched){ S.lpp = GPP.defaultLpp(S.state, S.crop); lppIn.value = S.lpp; }\n  var fromTable = !!GPP.defaultFpd(S.state, S.crop, YEAR);\n  qa('[data-h]').forEach(function(el){ show(el, el.getAttribute('data-h') === (fromTable ? 'table' : 'policy')); });\n  var st = GPP.stateByKey(S.state);\n  $('pp-state-note').textContent = st ? st.note : '';\n  if(!S.priceTouched){ S.price = c ? c.price : null; $('pp-price').value = S.price === null ? '' : S.price; }\n  if(!S.factorTouched){ S.factor = c ? c.factor : 0; $('pp-factor').value = S.factor; }\n  qa('[data-un]').forEach(function(el){ show(el, el.getAttribute('data-un') === (c ? c.unit : 'bu')); });\n  qa('[data-pr]').forEach(function(el){ show(el, el.getAttribute('data-pr') === ((c ? c.price !== null : false) ? 'known' : 'ask')); });\n}\nstateSel.addEventListener('change', function(){\n  S.state = stateSel.value; S.fpdTouched = false; S.lppTouched = false;\n  try { localStorage.setItem('gp-pp-state', S.state); } catch(_){}\n  applyDateDefaults(); update();\n});\ncropSel.addEventListener('change', function(){\n  S.crop = cropSel.value; S.fpdTouched = false; S.lppTouched = false; S.priceTouched = false; S.factorTouched = false;\n  applyDateDefaults(); update();\n});\nfpdIn.addEventListener('change', function(){ S.fpd = fpdIn.value || null; S.fpdTouched = true; update(); });\nlppIn.addEventListener('input', function(){ S.lpp = Math.max(0, parseInt(lppIn.value, 10) || 0); S.lppTouched = true; update(); });\nvar DL = null;\nfunction renderDates(){\n  var list = $('pp-dates');\n  if(!S.fpd){\n    DL = null;\n    qa('[data-d]', list).forEach(function(el){ el.textContent = '\u2014'; });\n    qa('.mk', $('pp-timeline')).forEach(function(g){ g.setAttribute('hidden', ''); });\n    return;\n  }\n  DL = GPP.deadlines({ fpd: S.fpd, lpp: S.lpp });\n  qa('[data-d]', list).forEach(function(el){ el.textContent = GPP.fmtDate(DL[el.getAttribute('data-d')]); });\n  qa('[data-r]', list).forEach(function(el){ show(el, el.getAttribute('data-r') === DL.fsa578Rule); });\n  renderTimeline();\n}\nfunction renderTimeline(){\n  var svg = $('pp-timeline');\n  var start = GPP.addDays(DL.fpd, -7);\n  var end = GPP.addDays(DL.fsa578, 7);\n  if(GPP.daysBetween(end, GPP.addDays(DL.lppEnd, 7)) > 0) end = GPP.addDays(DL.lppEnd, 7);\n  var span = GPP.daysBetween(start, end);\n  function X(iso){ return 20 + 720 * GPP.daysBetween(start, iso) \/ span; }\n  \/\/ month ticks\n  var mg = $('pp-tl-months');\n  while(mg.firstChild) mg.removeChild(mg.firstChild);\n  var cur = start.slice(0, 7) + '-01';\n  for(var i=0; i<6; i++){\n    var ms = GPP.daysBetween(start, cur);\n    if(ms >= 0 ? ms <= span : false){\n      var ln = document.createElementNS('http:\/\/www.w3.org\/2000\/svg', 'line');\n      ln.setAttribute('class', 'tick'); ln.setAttribute('x1', X(cur)); ln.setAttribute('x2', X(cur)); ln.setAttribute('y1', 57); ln.setAttribute('y2', 63);\n      mg.appendChild(ln);\n      var tx = document.createElementNS('http:\/\/www.w3.org\/2000\/svg', 'text');\n      tx.setAttribute('class', 'mo'); tx.setAttribute('x', X(cur) + 3); tx.setAttribute('y', 122);\n      tx.textContent = GPP.fmtDate(cur).slice(2);\n      mg.appendChild(tx);\n    }\n    var y = +cur.slice(0, 4), m = +cur.slice(5, 7) + 1;\n    if(m > 12){ m = 1; y++; }\n    cur = y + '-' + (m < 10 ? '0' : '') + m + '-01';\n  }\n  var lppRect = $('pp-tl-lpp');\n  lppRect.setAttribute('x', X(DL.fpd)); lppRect.setAttribute('width', Math.max(0, X(DL.lppEnd) - X(DL.fpd)));\n  qa('.mk', svg).forEach(function(g){\n    var k = g.getAttribute('data-k'), iso = DL[k];\n    g.removeAttribute('hidden');\n    g.setAttribute('transform', 'translate(' + X(iso).toFixed(1) + ',0)');\n    g.querySelector('.d').textContent = GPP.fmtDate(iso);\n  });\n  var today = new Date(); var tIso = today.getFullYear() + '-' + (today.getMonth() < 9 ? '0' : '') + (today.getMonth()+1) + '-' + (today.getDate() < 10 ? '0' : '') + today.getDate();\n  var tg = $('pp-tl-today'), td = GPP.daysBetween(start, tIso);\n  if(td >= 0 ? td <= span : false){ tg.removeAttribute('hidden'); tg.setAttribute('transform', 'translate(' + X(tIso).toFixed(1) + ',0)'); }\n  else tg.setAttribute('hidden', '');\n}\nvar TL_WORDS = { fpd: 'Final planting date', notice1: 'Notice to your insurance agent, within 72 hours of the final planting date',\n  ccc576: 'CCC-576 Notice of Loss at the FSA county office', lppEnd: 'Last day of the late planting period',\n  notice2: 'Notice to your insurance agent, within 72 hours of deciding not to plant', fsa578: 'FSA-578 acreage report' };\nqa('.mk circle', $('pp-timeline')).forEach(function(c){\n  var k = c.parentNode.getAttribute('data-k');\n  function on(ev){ if(!DL) return; tip(ev, '<b>' + GPP.fmtDateYear(DL[k]) + '<\/b><br>' + TL_WORDS[k]); }\n  c.addEventListener('mouseenter', on); c.addEventListener('mousemove', on);\n  c.addEventListener('mouseleave', tipOff);\n  c.addEventListener('click', function(ev){ on(ev); ev.stopPropagation(); });\n});\n\/\/ \u2500\u2500 tooltip \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nvar tipEl = $('pp-tip'), wrap = $('pp-wrap');\nfunction tip(ev, html){\n  tipEl.innerHTML = html; tipEl.hidden = false;\n  var r = wrap.getBoundingClientRect();\n  var x = ev.clientX - r.left + 14, y = ev.clientY - r.top + 14;\n  if(x + 270 > r.width) x = Math.max(4, ev.clientX - r.left - 270);\n  tipEl.style.left = x + 'px'; tipEl.style.top = y + 'px';\n}\nfunction tipOff(){ tipEl.hidden = true; }\ndocument.addEventListener('click', function(ev){ if(!tipEl.contains(ev.target)) tipOff(); });\n\/\/ \u2500\u2500 fields \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nfunction addGeoField(name, rings){\n  var proj = GPP.makeProj(rings[0]);\n  var xy = rings.map(function(r){ return r.map(proj.fwd); });\n  var f = { id: S.nextId++, name: name, typed: false, rings: rings, proj: proj, outer: xy[0], holes: xy.slice(1),\n            fieldAc: GPP.acres(GPP.polyArea(xy)), outlines: [], preventedAc: 0 };\n  S.fields.push(f);\n  return f;\n}\nfunction addTypedField(){\n  var f = { id: S.nextId++, name: 'Field ' + (S.fields.length + 1), typed: true, fieldAc: 0, preventedAc: 0, outlines: [] };\n  S.fields.push(f);\n  return f;\n}\nfunction recomputeField(f){\n  if(f.typed) return;\n  var m2 = f.outlines.length ? GPP.unionArea(f.outlines, { outer: f.outer, holes: f.holes }, 400000) : 0;\n  f.preventedAc = Math.min(f.fieldAc, GPP.acres(m2));\n}\nfunction selField(){ for(var i=0;i<S.fields.length;i++){ if(S.fields[i].id === S.sel) return S.fields[i]; } return null; }\nfunction selectField(id){\n  S.sel = id; var f = selField();\n  if(f ? !f.typed : false) fitView(f);\n  renderFields(); draw();\n}\nfunction removeField(id){\n  S.fields = S.fields.filter(function(f){ return f.id !== id; });\n  if(S.sel === id){ S.sel = null; var g = null; for(var i=0;i<S.fields.length;i++){ if(!S.fields[i].typed){ g = S.fields[i]; break; } } if(g) S.sel = g.id; }\n  cancelOutline(); update();\n}\nfunction totals(){\n  var t = { fieldAc: 0, preventedAc: 0 };\n  S.fields.forEach(function(f){ t.fieldAc += f.fieldAc || 0; t.preventedAc += f.preventedAc || 0; });\n  t.plantedAc = Math.max(0, t.fieldAc - t.preventedAc);\n  return t;\n}\nfunction renderFields(){\n  var tb = $('pp-fields'), tpl = $('pp-row-tpl');\n  while(tb.firstChild) tb.removeChild(tb.firstChild);\n  S.fields.forEach(function(f){\n    var row = tpl.content.firstElementChild.cloneNode(true);\n    if(f.id === S.sel) row.className = 'is-sel';\n    var nameIn = row.querySelector('[data-f=\"name\"]'); nameIn.value = f.name;\n    nameIn.addEventListener('input', function(){ f.name = nameIn.value; });\n    var faT = row.querySelector('[data-f=\"fieldAc-t\"]'), faI = row.querySelector('[data-f=\"fieldAc\"]');\n    var paT = row.querySelector('[data-f=\"prevAc-t\"]'), paI = row.querySelector('[data-f=\"prevAc\"]');\n    if(f.typed){\n      show(faT, false); show(faI, true); faI.value = f.fieldAc || '';\n      show(paT, false); show(paI, true); paI.value = f.preventedAc || '';\n      faI.addEventListener('input', function(){ f.fieldAc = Math.max(0, parseFloat(faI.value) || 0); update(false); });\n      paI.addEventListener('input', function(){ f.preventedAc = Math.max(0, parseFloat(paI.value) || 0); update(false); });\n    } else {\n      faT.textContent = fmtAc(f.fieldAc); paT.textContent = fmtAc(f.preventedAc);\n    }\n    row.querySelector('[data-f=\"plantAc\"]').textContent = fmtAc(Math.max(0, (f.fieldAc || 0) - (f.preventedAc || 0)));\n    qa('[data-s]', row).forEach(function(el){ show(el, el.getAttribute('data-s') === (f.typed ? 'typed' : 'map')); });\n    var pick = row.querySelector('[data-f=\"pick\"]');\n    if(!f.typed ? f.id !== S.sel : false){ show(pick, true); pick.addEventListener('click', function(){ selectField(f.id); }); }\n    row.querySelector('[data-f=\"rm\"]').addEventListener('click', function(){ removeField(f.id); });\n    tb.appendChild(row);\n  });\n  var t = totals();\n  $('pp-tot-field').textContent = fmtAc(t.fieldAc);\n  $('pp-tot-prev').textContent = fmtAc(t.preventedAc);\n  $('pp-tot-plant').textContent = fmtAc(t.plantedAc);\n  var anyGeo = S.fields.some(function(f){ return !f.typed; });\n  $('pp-geojson').disabled = !anyGeo; $('pp-shp').disabled = !anyGeo;\n}\n$('pp-add').addEventListener('click', function(){ addTypedField(); update(); });\n\/\/ \u2500\u2500 import \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nvar msgEl = $('pp-msg');\nfunction msg(text, err){ msgEl.textContent = text || ''; msgEl.className = 'pp-msg' + (err ? ' is-err' : ''); }\nfunction loadFields(gj, label){\n  var fields;\n  try { fields = GPP.normaliseFeatures(gj); }\n  catch(e){\n    if(e.message === 'projected'){ msg(label + ' is in a projected coordinate system, so the field would land in the wrong place. Export it in WGS84 (EPSG:4326), or open it in GeoPard, which reprojects on import.', true); return; }\n    msg('Could not read ' + label + '.', true); return;\n  }\n  if(!fields.length){ msg('No polygon in ' + label + '.', true); return; }\n  var first = null;\n  fields.forEach(function(fd){ var f = addGeoField(fd.name, fd.rings); if(!first) first = f; });\n  S.sel = first.id; fitView(first);\n  msg(fields.length === 1 ? ('Loaded ' + first.name + ', ' + fmtAc(first.fieldAc) + ' ac.') : ('Loaded ' + fields.length + ' fields from ' + label + '.'));\n  update();\n}\nfunction readFile(file){\n  var name = (file.name || '').toLowerCase();\n  if(\/\\.zip$\/.test(name)){\n    msg('Reading the shapefile\u2026');\n    var rd = new FileReader();\n    rd.onload = function(){\n      loadShpjs().then(function(){\n        var p = window.shp(rd.result);\n        return p ? (p.then ? p : Promise.resolve(p)) : Promise.resolve(p);\n      }).then(function(res){\n        var cols = Array.isArray(res) ? res : [res];\n        var feats = [];\n        cols.forEach(function(c){ if(c ? c.features : false) feats = feats.concat(c.features); });\n        loadFields({ type: 'FeatureCollection', features: feats }, file.name);\n      }).catch(function(err){ msg('Shapefile: ' + (err ? (err.message || err) : 'could not read'), true); });\n    };\n    rd.onerror = function(){ msg('Could not read ' + file.name + '.', true); };\n    rd.readAsArrayBuffer(file);\n    return;\n  }\n  var rt = new FileReader();\n  rt.onload = function(){\n    var text = rt.result;\n    if(\/\\.kml$\/.test(name)){ loadFields(GPP.parseKml(text), file.name); return; }\n    try { loadFields(JSON.parse(text), file.name); }\n    catch(e){ msg(file.name + ' is not GeoJSON.', true); }\n  };\n  rt.onerror = function(){ msg('Could not read ' + file.name + '.', true); };\n  rt.readAsText(file);\n}\nfunction readFiles(list){\n  for(var i=0; i<list.length; i++) readFile(list[i]);\n}\nvar drop = $('pp-drop'), fileIn = $('pp-file');\ndrop.addEventListener('click', function(ev){ if(ev.target === fileIn) return; fileIn.click(); });\ndrop.addEventListener('keydown', function(ev){ if(ev.key === 'Enter' ? true : ev.key === ' '){ ev.preventDefault(); fileIn.click(); } });\nfileIn.addEventListener('change', function(){ if(fileIn.files.length) readFiles(fileIn.files); fileIn.value = ''; });\n['dragenter', 'dragover'].forEach(function(t){ drop.addEventListener(t, function(ev){ ev.preventDefault(); drop.classList.add('is-drag'); }); });\n['dragleave', 'drop'].forEach(function(t){ drop.addEventListener(t, function(ev){ ev.preventDefault(); drop.classList.remove('is-drag'); }); });\ndrop.addEventListener('drop', function(ev){ if(ev.dataTransfer ? ev.dataTransfer.files.length : false) readFiles(ev.dataTransfer.files); });\nvar mapbox = $('pp-mapbox');\n['dragenter', 'dragover'].forEach(function(t){ mapbox.addEventListener(t, function(ev){ ev.preventDefault(); }); });\nmapbox.addEventListener('drop', function(ev){ ev.preventDefault(); if(ev.dataTransfer ? ev.dataTransfer.files.length : false) readFiles(ev.dataTransfer.files); });\n$('pp-sample').addEventListener('click', function(){\n  try { loadFields(JSON.parse($('pp-sample-data').textContent), 'the sample'); } catch(e){ msg('The sample could not be read.', true); }\n});\n\/\/ Rule 4: shpjs, jszip and shp-write load on demand only, through a two-host\n\/\/ chain, exact versions pinned on both mirrors.\nfunction loadScriptChain(urls, ready, errMsg){\n  if(ready()) return Promise.resolve();\n  return new Promise(function(resolve, reject){\n    var idx = 0;\n    function tryNext(){\n      if(ready()){ resolve(); return; }\n      if(idx >= urls.length){ reject(new Error(errMsg)); return; }\n      var url = urls[idx++], done = false;\n      var s = document.createElement('script');\n      var timer = setTimeout(function(){ if(done) return; done = true; tryNext(); }, 8000);\n      s.onload = function(){ if(done) return; done = true; clearTimeout(timer); if(ready()){ resolve(); return; } tryNext(); };\n      s.onerror = function(){ if(done) return; done = true; clearTimeout(timer); tryNext(); };\n      s.src = url;\n      document.head.appendChild(s);\n    }\n    tryNext();\n  });\n}\nvar shpjsP = null, jszipP = null, shpwP = null;\nfunction loadShpjs(){\n  if(window.shp) return Promise.resolve();\n  if(shpjsP) return shpjsP;\n  shpjsP = loadScriptChain(['https:\/\/cdn.jsdelivr.net\/npm\/shpjs@4.0.4\/dist\/shp.min.js', 'https:\/\/unpkg.com\/shpjs@4.0.4\/dist\/shp.min.js'],\n    function(){ return !!window.shp; }, 'Could not load the shapefile reader').catch(function(e){ shpjsP = null; throw e; });\n  return shpjsP;\n}\nfunction loadJSZip(){\n  if(window.JSZip) return Promise.resolve();\n  if(jszipP) return jszipP;\n  jszipP = loadScriptChain(['https:\/\/cdn.jsdelivr.net\/npm\/jszip@3.10.1\/dist\/jszip.min.js', 'https:\/\/unpkg.com\/jszip@3.10.1\/dist\/jszip.min.js'],\n    function(){ return !!window.JSZip; }, 'Could not load the zip writer').catch(function(e){ jszipP = null; throw e; });\n  return jszipP;\n}\nfunction loadShpWrite(){\n  if(window.shpwrite) return Promise.resolve();\n  if(shpwP) return shpwP;\n  shpwP = loadScriptChain(['https:\/\/cdn.jsdelivr.net\/npm\/@mapbox\/shp-write@0.4.3\/shpwrite.js', 'https:\/\/unpkg.com\/@mapbox\/shp-write@0.4.3\/shpwrite.js'],\n    function(){ return !!window.shpwrite; }, 'Could not load the shapefile writer').catch(function(e){ shpwP = null; throw e; });\n  return shpwP;\n}\n\/\/ \u2500\u2500 export \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nfunction exportFields(){\n  var cropName = (GPP.cropByKey(S.crop) || {}).name || S.crop;\n  return S.fields.filter(function(f){ return !f.typed; }).map(function(f){\n    return { name: f.name, crop: cropName, fieldAc: f.fieldAc, preventedAc: f.preventedAc, boundary: f.rings,\n             prevented: f.outlines.map(function(o){ return o.map(f.proj.inv); }) };\n  });\n}\nfunction downloadBlob(blob, filename){\n  var url = URL.createObjectURL(blob), a = document.createElement('a');\n  a.href = url; a.download = filename; a.style.display = 'none';\n  document.body.appendChild(a); a.click(); document.body.removeChild(a);\n  setTimeout(function(){ URL.revokeObjectURL(url); }, 1500);\n}\n$('pp-geojson').addEventListener('click', function(){\n  var gj = GPP.exportGeoJson(exportFields());\n  downloadBlob(new Blob([JSON.stringify(gj)], { type: 'application\/geo+json' }), 'prevented-planting.geojson');\n  msg('Downloaded prevented-planting.geojson. Import it in farmers.gov under Farm Records Mapping.');\n});\nfunction zipResultToBlob(data){\n  return new Promise(function(resolve, reject){\n    function asBlob(b){ resolve(new Blob([b], { type: 'application\/zip' })); }\n    try {\n      if(data ? typeof data.then === 'function' : false){ data.then(function(inner){ zipResultToBlob(inner).then(resolve, reject); }, reject); return; }\n      if(data instanceof Blob){ resolve(data); return; }\n      if(data instanceof ArrayBuffer){ asBlob(data); return; }\n      if(data ? data.buffer instanceof ArrayBuffer : false){ asBlob(data); return; }\n      if(typeof data === 'string'){\n        var bin = atob(data.replace(\/^data:[^,]*,\/, ''));\n        var bytes = new Uint8Array(bin.length);\n        for(var i=0; i<bin.length; i++) bytes[i] = bin.charCodeAt(i);\n        asBlob(bytes); return;\n      }\n      reject(new Error('unexpected zip output'));\n    } catch(e){ reject(e); }\n  });\n}\n$('pp-shp').addEventListener('click', function(){\n  var btn = $('pp-shp'); btn.disabled = true;\n  msg('Loading the shapefile writer\u2026');\n  Promise.all([loadJSZip(), loadShpWrite()]).then(function(){\n    var gj = GPP.exportGeoJson(exportFields());\n    var opts = { folder: 'prevented_planting', types: { polygon: 'prevented_planting' }, type: 'base64', compression: 'STORE' };\n    return zipResultToBlob(window.shpwrite.zip(gj, opts));\n  }).then(function(blob){\n    downloadBlob(blob, 'prevented-planting-shapefile.zip');\n    msg('Downloaded prevented-planting-shapefile.zip.'); btn.disabled = false;\n  }).catch(function(err){ msg('Shapefile export: ' + (err ? (err.message || err) : 'failed'), true); btn.disabled = false; });\n});\n\/\/ \u2500\u2500 map \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nvar canvas = $('pp-map'), ctx = canvas.getContext('2d');\nvar V = { scale: 1, cx: 0, cy: 0, w: 0, h: 0, dpr: 1 };\nvar draft = null;             \/\/ the outline being drawn, in metres\nvar outlining = false;\nfunction sizeCanvas(){\n  var r = mapbox.getBoundingClientRect();\n  V.dpr = Math.min(2, window.devicePixelRatio || 1);\n  V.w = Math.max(10, r.width); V.h = Math.max(10, r.height);\n  canvas.width = Math.round(V.w * V.dpr); canvas.height = Math.round(V.h * V.dpr);\n}\nfunction toScreen(p){ return [(p[0] - V.cx) * V.scale + V.w \/ 2, V.h \/ 2 - (p[1] - V.cy) * V.scale]; }\nfunction toWorld(s){ return [(s[0] - V.w \/ 2) \/ V.scale + V.cx, V.cy - (s[1] - V.h \/ 2) \/ V.scale]; }\nfunction fitView(f){\n  if(!f ? true : f.typed) return;\n  sizeCanvas();\n  var b = GPP.bbox([f.outer]);\n  var bw = Math.max(1, b[2] - b[0]), bh = Math.max(1, b[3] - b[1]);\n  V.scale = Math.min(V.w \/ bw, V.h \/ bh) * 0.82;\n  V.cx = (b[0] + b[2]) \/ 2; V.cy = (b[1] + b[3]) \/ 2;\n}\nfunction pathRing(ring){\n  for(var i=0; i<ring.length; i++){ var s = toScreen(ring[i]); if(i === 0) ctx.moveTo(s[0], s[1]); else ctx.lineTo(s[0], s[1]); }\n  ctx.closePath();\n}\nfunction draw(){\n  var f = selField();\n  var hasGeo = f ? !f.typed : false;\n  show($('pp-empty'), !hasGeo);\n  show($('pp-scale'), hasGeo);\n  if(!V.w) sizeCanvas();\n  ctx.setTransform(V.dpr, 0, 0, V.dpr, 0, 0);\n  ctx.clearRect(0, 0, V.w, V.h);\n  if(!hasGeo) return;\n  \/\/ field: wash fill with holes cut out (evenodd), green stroke\n  ctx.beginPath(); pathRing(f.outer); f.holes.forEach(pathRing);\n  ctx.fillStyle = '#eef4e8'; ctx.fill('evenodd');\n  ctx.lineWidth = 1.5; ctx.strokeStyle = '#145328'; ctx.stroke();\n  \/\/ outlines: orange wash\n  f.outlines.forEach(function(o){\n    ctx.beginPath(); pathRing(o);\n    ctx.fillStyle = 'rgba(247,106,12,0.30)'; ctx.fill();\n    ctx.lineWidth = 2; ctx.strokeStyle = '#f76a0c'; ctx.stroke();\n  });\n  \/\/ holes: paper, hatched, painted after the outlines so the wash never\n  \/\/ covers a pothole the acres already exclude\n  f.holes.forEach(function(h){\n    ctx.beginPath(); pathRing(h); ctx.fillStyle = '#f6f9f0'; ctx.fill();\n    ctx.save(); ctx.beginPath(); pathRing(h); ctx.clip();\n    ctx.strokeStyle = 'rgba(20,83,40,0.35)'; ctx.lineWidth = 1;\n    var b = GPP.bbox([h]), s0 = toScreen([b[0], b[3]]), s1 = toScreen([b[2], b[1]]);\n    for(var x = s0[0] - (s1[1] - s0[1]); x < s1[0]; x += 8){ ctx.beginPath(); ctx.moveTo(x, s0[1]); ctx.lineTo(x + (s1[1] - s0[1]), s1[1]); ctx.stroke(); }\n    ctx.restore();\n    ctx.beginPath(); pathRing(h); ctx.setLineDash([4, 3]); ctx.strokeStyle = '#145328'; ctx.lineWidth = 1; ctx.stroke(); ctx.setLineDash([]);\n  });\n  \/\/ draft\n  if(draft ? draft.length : false){\n    ctx.beginPath();\n    for(var i=0; i<draft.length; i++){ var s = toScreen(draft[i]); if(i === 0) ctx.moveTo(s[0], s[1]); else ctx.lineTo(s[0], s[1]); }\n    if(draft.length > 2){ ctx.fillStyle = 'rgba(247,106,12,0.14)'; ctx.fill(); }\n    ctx.setLineDash([6, 4]); ctx.lineWidth = 2; ctx.strokeStyle = '#f76a0c'; ctx.stroke(); ctx.setLineDash([]);\n    draft.forEach(function(p, i){\n      var s = toScreen(p);\n      ctx.beginPath(); ctx.arc(s[0], s[1], i === 0 ? 7 : 4, 0, Math.PI * 2);\n      ctx.fillStyle = i === 0 ? '#ffffff' : '#f76a0c'; ctx.fill();\n      ctx.lineWidth = 2; ctx.strokeStyle = '#f76a0c'; ctx.stroke();\n    });\n  }\n  \/\/ scale bar\n  var target = 80 \/ V.scale, nice = [10, 20, 25, 50, 100, 200, 250, 500, 1000, 2000], pick = nice[0];\n  for(var k=0; k<nice.length; k++){ if(nice[k] <= target) pick = nice[k]; }\n  $('pp-scale-bar').style.width = (pick * V.scale) + 'px';\n  $('pp-scale-t').textContent = pick >= 1000 ? (pick \/ 1000) + ' km' : pick + ' m';\n}\n\/\/ pointer handling: pan, pinch, outline clicks\nvar ptrs = {}, panStart = null, pinchStart = null, moved = false;\nfunction ptrCount(){ return Object.keys(ptrs).length; }\nfunction localXY(ev){ var r = canvas.getBoundingClientRect(); return [ev.clientX - r.left, ev.clientY - r.top]; }\ncanvas.addEventListener('pointerdown', function(ev){\n  if(!selField() ? true : selField().typed) return;\n  ptrs[ev.pointerId] = localXY(ev);\n  try { canvas.setPointerCapture(ev.pointerId); } catch(_){}\n  moved = false;\n  if(ptrCount() === 1){ panStart = { s: localXY(ev), cx: V.cx, cy: V.cy }; pinchStart = null; }\n  else if(ptrCount() === 2){\n    var ids = Object.keys(ptrs), a = ptrs[ids[0]], b = ptrs[ids[1]];\n    pinchStart = { d: Math.hypot(a[0]-b[0], a[1]-b[1]), scale: V.scale, mid: [(a[0]+b[0])\/2, (a[1]+b[1])\/2], w: toWorld([(a[0]+b[0])\/2, (a[1]+b[1])\/2]) };\n    panStart = null;\n  }\n  ev.preventDefault();\n});\ncanvas.addEventListener('pointermove', function(ev){\n  var f = selField();\n  if(!f ? true : f.typed) return;\n  var p = localXY(ev);\n  if(ptrs[ev.pointerId]){\n    ptrs[ev.pointerId] = p;\n    if(ptrCount() === 2 ? pinchStart : false){\n      var ids = Object.keys(ptrs), a = ptrs[ids[0]], b = ptrs[ids[1]];\n      var d = Math.hypot(a[0]-b[0], a[1]-b[1]);\n      V.scale = Math.max(0.01, Math.min(200, pinchStart.scale * d \/ Math.max(1, pinchStart.d)));\n      var mid = [(a[0]+b[0])\/2, (a[1]+b[1])\/2];\n      V.cx = pinchStart.w[0] - (mid[0] - V.w\/2) \/ V.scale; V.cy = pinchStart.w[1] + (mid[1] - V.h\/2) \/ V.scale;\n      moved = true; draw(); return;\n    }\n    if(panStart){\n      var dx = p[0] - panStart.s[0], dy = p[1] - panStart.s[1];\n      if(Math.hypot(dx, dy) > 4) moved = true;\n      if(moved){ V.cx = panStart.cx - dx \/ V.scale; V.cy = panStart.cy + dy \/ V.scale; canvas.classList.add('is-panning'); draw(); }\n    }\n    return;\n  }\n  \/\/ hover: which outline is under the pointer\n  if(ev.pointerType === 'mouse' ? !outlining : false){\n    var w = toWorld(p), hit = -1;\n    for(var i=0; i<f.outlines.length; i++){ if(GPP.pointInRing(w, f.outlines[i])){ hit = i; break; } }\n    if(hit >= 0){\n      var m2 = GPP.unionArea([f.outlines[hit]], { outer: f.outer, holes: f.holes }, 40000);\n      tip(ev, '<b>' + fmtAc(GPP.acres(m2)) + ' ac<\/b> prevented planting outline ' + (hit + 1) + ' of ' + f.outlines.length);\n    } else tipOff();\n  }\n});\nfunction endPointer(ev){\n  var f = selField();\n  var wasClick = ptrs[ev.pointerId] ? !moved : false;\n  delete ptrs[ev.pointerId];\n  canvas.classList.remove('is-panning');\n  if(ptrCount() === 0){ panStart = null; pinchStart = null; }\n  if(!f ? true : f.typed) return;\n  if(wasClick ? outlining : false) outlineClick(localXY(ev));\n}\ncanvas.addEventListener('pointerup', endPointer);\ncanvas.addEventListener('pointercancel', endPointer);\ncanvas.addEventListener('pointerleave', function(){ tipOff(); });\ncanvas.addEventListener('wheel', function(ev){\n  var f = selField(); if(!f ? true : f.typed) return;\n  ev.preventDefault();\n  var p = localXY(ev), w = toWorld(p);\n  var k = ev.deltaY < 0 ? 1.15 : 1 \/ 1.15;\n  V.scale = Math.max(0.01, Math.min(200, V.scale * k));\n  V.cx = w[0] - (p[0] - V.w\/2) \/ V.scale; V.cy = w[1] + (p[1] - V.h\/2) \/ V.scale;\n  draw();\n}, { passive: false });\ncanvas.addEventListener('dblclick', function(ev){ ev.preventDefault(); if(outlining) closeOutline(); });\nfunction zoomBy(k){ V.scale = Math.max(0.01, Math.min(200, V.scale * k)); draw(); }\n$('pp-zin').addEventListener('click', function(){ zoomBy(1.3); });\n$('pp-zout').addEventListener('click', function(){ zoomBy(1 \/ 1.3); });\n$('pp-fit').addEventListener('click', function(){ var f = selField(); if(f){ fitView(f); draw(); } });\n\/\/ outline instrument\nfunction setOutlining(on){\n  outlining = on; draft = on ? [] : null;\n  $('pp-outline').classList.toggle('is-active', on);\n  canvas.classList.toggle('is-outlining', on);\n  show($('pp-hintpill'), on);\n  draw();\n}\nfunction cancelOutline(){ if(outlining) setOutlining(false); }\nfunction outlineClick(s){\n  var f = selField();\n  if(draft.length >= 3){\n    var f0 = toScreen(draft[0]);\n    if(Math.hypot(s[0] - f0[0], s[1] - f0[1]) <= 12){ closeOutline(); return; }\n  }\n  draft.push(toWorld(s)); draw();\n}\nfunction closeOutline(){\n  var f = selField();\n  if(!f ? true : !draft ? true : draft.length < 3){ setOutlining(false); return; }\n  var snapped = GPP.snapOutline(draft, { outer: f.outer, holes: f.holes });\n  if(snapped.length >= 3){ f.outlines.push(snapped); recomputeField(f); }\n  setOutlining(false);\n  update();\n}\n$('pp-outline').addEventListener('click', function(){\n  var f = selField();\n  if(!f ? true : f.typed){ msg('Drop a boundary or load the sample field first.', true); return; }\n  setOutlining(!outlining);\n});\n$('pp-whole').addEventListener('click', function(){\n  var f = selField();\n  if(!f ? true : f.typed){ msg('Drop a boundary or load the sample field first.', true); return; }\n  cancelOutline();\n  f.outlines = [f.outer.slice()]; recomputeField(f); update();\n});\n$('pp-clear').addEventListener('click', function(){\n  var f = selField();\n  cancelOutline();\n  if(f ? !f.typed : false){ f.outlines = []; recomputeField(f); fitView(f); }\n  update();\n});\ndocument.addEventListener('keydown', function(ev){\n  if(!outlining) return;\n  if(ev.key === 'Escape'){ cancelOutline(); ev.preventDefault(); }\n  else if(ev.key === 'Enter'){ closeOutline(); ev.preventDefault(); }\n});\nvar resizeT = null;\nwindow.addEventListener('resize', function(){\n  clearTimeout(resizeT);\n  resizeT = setTimeout(function(){ var f = selField(); if(f ? !f.typed : false){ fitView(f); } draw(); }, 120);\n});\n\/\/ \u2500\u2500 eligibility + payment \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n$('pp-unit').addEventListener('change', function(){ S.unit = $('pp-unit').value; qa('[data-u]').forEach(function(el){ show(el, el.getAttribute('data-u') === S.unit); }); update(false); });\n$('pp-insurable').addEventListener('input', function(){ S.insurableTouched = $('pp-insurable').value !== ''; update(false); });\n$('pp-eligible').addEventListener('input', function(){ S.eligible = $('pp-eligible').value; update(false); });\n$('pp-history').addEventListener('change', function(){ S.history = $('pp-history').checked; update(false); });\n$('pp-aph').addEventListener('input', function(){ S.aph = parseFloat($('pp-aph').value) || 0; update(false); });\n$('pp-cov').addEventListener('change', function(){ S.cov = parseInt($('pp-cov').value, 10) || 80; update(false); });\n$('pp-price').addEventListener('input', function(){ S.priceTouched = true; var v = parseFloat($('pp-price').value); S.price = isFinite(v) ? v : null; update(false); });\n$('pp-factor').addEventListener('input', function(){ S.factorTouched = true; S.factor = parseFloat($('pp-factor').value) || 0; update(false); });\n$('pp-second').addEventListener('change', function(){ S.second = $('pp-second').checked; update(false); });\n$('pp-aph').value = S.aph;\nvar LAST = {};\nfunction renderMoney(){\n  var t = totals();\n  var insurable = S.insurableTouched ? (parseFloat($('pp-insurable').value) || 0) : t.fieldAc;\n  if(!S.insurableTouched) $('pp-insurable').value = t.fieldAc ? Math.round(t.fieldAc * 10) \/ 10 : '';\n  var tt = GPP.twentyTwenty(t.preventedAc, insurable);\n  var verdict = $('pp-verdict');\n  var v = t.preventedAc > 0 ? (tt.pass ? 'pass' : 'short') : 'none';\n  verdict.classList.toggle('is-short', v === 'short');\n  qa('[data-v]', verdict).forEach(function(el){ show(el, el.getAttribute('data-v') === v); });\n  qa('[data-o=\"threshold\"]').forEach(function(el){ el.textContent = fmtAc(tt.threshold); });\n  qa('[data-o=\"prev\"]').forEach(function(el){ el.textContent = fmtAc(t.preventedAc); });\n  qa('[data-o=\"short\"]').forEach(function(el){ el.textContent = fmtAc(tt.short); });\n  var planted = Math.max(0, insurable - t.preventedAc);\n  var payable = GPP.payableAcres(t.preventedAc, planted, S.eligible === '' ? null : S.eligible);\n  var payableOk = S.history ? (v === 'pass') : false;\n  var payableAc = payableOk ? payable : 0;\n  var pb = $('pp-payable');\n  qa('[data-p]', pb).forEach(function(el){\n    var k = el.getAttribute('data-p');\n    if(k === 'pay') show(el, S.history);\n    else if(k === 'history') show(el, !S.history);\n    else if(k === 'capped') show(el, S.history ? (payable < t.preventedAc) : false);\n  });\n  qa('[data-o=\"payable\"]').forEach(function(el){ el.textContent = fmtAc(payableAc); });\n  qa('[data-o=\"planted\"]').forEach(function(el){ el.textContent = fmtAc(planted); });\n  var c = GPP.cropByKey(S.crop) || { unit: 'bu', name: S.crop };\n  var havePrice = S.price !== null ? S.price > 0 : false;\n  show($('pp-price-warn'), !havePrice);\n  var pay = GPP.ppPayment({ aph: S.aph, coverage: S.cov, price: havePrice ? S.price : 0, factor: S.factor, secondCrop: S.second });\n  var perAc = havePrice ? pay.perAc : NaN, guar = havePrice ? pay.guarantee : NaN;\n  $('pp-perac').textContent = fmt$(perAc);\n  $('pp-guar').textContent = fmt$(guar);\n  var total = (isFinite(perAc) ? payableAc > 0 : false) ? perAc * payableAc : NaN;\n  $('pp-total').textContent = isFinite(total) ? (fmt$(total) + ' on ' + fmtAc(payableAc) + ' ac') : '\u2014';\n  var m = $('pp-math');\n  m.querySelector('[data-m=\"g\"]').innerHTML = havePrice ? ('<b>' + fmtN(S.aph, 1) + ' ' + c.unit + '<\/b> \u00d7 <b>' + S.cov + '%<\/b> \u00d7 <b>' + fmt$(S.price) + '<\/b> = <b>' + fmt$(guar) + '<\/b> guarantee per acre') : '';\n  m.querySelector('[data-m=\"p\"]').innerHTML = havePrice ? ('<b>' + fmt$(guar) + '<\/b> \u00d7 <b>' + fmtN(S.factor, 0) + '%<\/b>' + (S.second ? ' \u00d7 <b>35%<\/b>' : '') + ' = <b>' + fmt$(perAc) + '<\/b> per acre') : '';\n  m.querySelector('[data-m=\"t\"]').innerHTML = (havePrice ? isFinite(total) : false) ? ('<b>' + fmt$(perAc) + '<\/b> \u00d7 <b>' + fmtAc(payableAc) + ' ac<\/b> = <b>' + fmt$(total) + '<\/b>') : '';\n  LAST = { t: t, insurable: insurable, tt: tt, planted: planted, payableAc: payableAc, perAc: perAc, guar: guar, total: total, unit: c.unit };\n  renderChart(guar, perAc);\n}\nfunction renderChart(guar, perAc){\n  var svg = $('pp-chart');\n  while(svg.firstChild) svg.removeChild(svg.firstChild);\n  if(!S.fpd ? true : !isFinite(guar) ? true : guar <= 0){ return; }\n  var NS = 'http:\/\/www.w3.org\/2000\/svg';\n  function el(tag, attrs, text){ var e = document.createElementNS(NS, tag); for(var k in attrs){ e.setAttribute(k, attrs[k]); } if(text !== undefined) e.textContent = text; svg.appendChild(e); return e; }\n  var curve = GPP.lateCurve({ fpd: S.fpd, lpp: S.lpp, guarantee: guar });\n  var L = 52, R = 14, T = 18, B = 40, W = 760, H = 250;\n  var n = Math.max(1, curve.length), bw = (W - L - R) \/ n;\n  var ymax = guar * 1.08;\n  function Y(v){ return T + (H - T - B) * (1 - v \/ ymax); }\n  for(var g=0; g<=4; g++){\n    var v = ymax * g \/ 4;\n    el('line', { 'class': 'grid', x1: L, x2: W - R, y1: Y(v), y2: Y(v) });\n    el('text', { 'class': 'ax', x: L - 6, y: Y(v) + 3, 'text-anchor': 'end' }, '$' + Math.round(v));\n  }\n  curve.forEach(function(pt, i){\n    var x = L + i * bw, under = isFinite(perAc) ? pt.keep < perAc : false;\n    var r = el('rect', { 'class': 'bar' + (under ? ' under' : ''), x: x + 1, y: Y(pt.keep), width: Math.max(1, bw - 2), height: Math.max(0, Y(0) - Y(pt.keep)), rx: 2 });\n    (function(pt){\n      function on(ev){ tip(ev, '<b>' + GPP.fmtDate(pt.date) + '<\/b>, day ' + pt.day + ' of the late period<br>Planting keeps <b>' + fmt$(pt.keep) + '<\/b> of guarantee an acre (' + pt.pct + '%)' + (isFinite(perAc) ? '<br>Prevented planting pays <b>' + fmt$(perAc) + '<\/b>' : '')); }\n      r.addEventListener('mouseenter', on); r.addEventListener('mousemove', on); r.addEventListener('mouseleave', tipOff);\n      r.addEventListener('click', function(ev){ on(ev); ev.stopPropagation(); });\n    })(pt);\n    if(i === 0 ? true : (i === n - 1 ? true : (pt.day % 5 === 0))) el('text', { 'class': 'ax', x: x + bw \/ 2, y: H - B + 14, 'text-anchor': 'middle' }, GPP.fmtDate(pt.date));\n  });\n  el('text', { 'class': 'ax', x: L + (W - L - R) \/ 2, y: H - 6, 'text-anchor': 'middle' }, 'planting date in the late planting period');\n  if(isFinite(perAc)){\n    el('line', { 'class': 'pp-line', x1: L, x2: W - R, y1: Y(perAc), y2: Y(perAc) });\n    el('text', { 'class': 'pp-ll', x: W - R, y: Y(perAc) - 5, 'text-anchor': 'end' }, 'prevented planting ' + fmt$(perAc));\n  }\n  el('text', { 'class': 'gl', x: L + 4, y: Y(guar) - 5 }, 'full guarantee ' + fmt$(guar));\n}\n\/\/ \u2500\u2500 worksheet \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nfunction fillSheet(){\n  var c = GPP.cropByKey(S.crop), st = GPP.stateByKey(S.state);\n  $('ps-date').textContent = new Date().toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' });\n  $('ps-crop').textContent = c ? c.name : S.crop;\n  $('ps-state').textContent = st ? st.name : '';\n  ['fpd', 'lppEnd', 'ccc576', 'fsa578', 'notice1', 'notice2'].forEach(function(k){ $('ps-' + k).textContent = DL ? GPP.fmtDateYear(DL[k]) : ''; });\n  var tb = $('ps-fields'); while(tb.firstChild) tb.removeChild(tb.firstChild);\n  S.fields.forEach(function(f){\n    var tr = document.createElement('tr');\n    [f.name, fmtAc(f.fieldAc), fmtAc(f.preventedAc), fmtAc(Math.max(0, (f.fieldAc || 0) - (f.preventedAc || 0)))].forEach(function(v, i){\n      var td = document.createElement('td'); if(i) td.className = 'n'; td.textContent = v; tr.appendChild(td);\n    });\n    tb.appendChild(tr);\n  });\n  var t = LAST.t || totals();\n  $('ps-tot-field').textContent = fmtAc(t.fieldAc); $('ps-tot-prev').textContent = fmtAc(t.preventedAc); $('ps-tot-plant').textContent = fmtAc(t.plantedAc);\n  $('ps-threshold').textContent = LAST.tt ? fmtAc(LAST.tt.threshold) : '';\n  $('ps-payable').textContent = fmtAc(LAST.payableAc || 0);\n  $('ps-guar').textContent = fmt$(LAST.guar); $('ps-perac').textContent = fmt$(LAST.perAc); $('ps-total').textContent = fmt$(LAST.total);\n  var img = $('ps-map'), f = selField();\n  if(f ? !f.typed : false){ try { img.src = canvas.toDataURL('image\/png'); img.hidden = false; } catch(_){ img.hidden = true; } }\n  else img.hidden = true;\n}\n$('pp-print').addEventListener('click', function(){ fillSheet(); window.print(); });\nwindow.addEventListener('beforeprint', fillSheet);\n\/\/ \u2500\u2500 orchestration \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nfunction update(redrawMap){\n  S.fields.forEach(recomputeField);\n  renderDates();\n  renderFields();\n  renderMoney();\n  if(redrawMap !== false) draw();\n}\nS.state = guessState(); stateSel.value = S.state;\nS.crop = cropSel.value;\napplyDateDefaults();\nqa('[data-u]').forEach(function(el){ show(el, el.getAttribute('data-u') === S.unit); });\nsizeCanvas();\nupdate();\ntry { window.__GP_PP = { S: S, V: V, update: update, selField: selField, addGeoField: addGeoField, closeOutline: closeOutline, setOutlining: setOutlining, draftPush: function(p){ draft.push(p); } }; } catch(_){}\n})();\n<\/script>\n<\/div>\n\n\n\n<div class=\"gp-lead\">\n<style>\n:is(#simple_page,body) .gp-lead .ppcx{--f:\"Roboto\",-apple-system,\"Segoe UI\",Helvetica,Arial,sans-serif;font-family:var(--f);color:#212121;max-width:820px;margin:28px auto 8px;padding:0 4px;line-height:1.6}\n:is(#simple_page,body) .gp-lead .ppcx h2{font-family:var(--f);font-size:1.35rem;font-weight:700;color:#145328;margin:26px 0 8px !important}\n:is(#simple_page,body) .gp-lead .ppcx p{margin:0 0 12px;font-size:1.02rem;color:#2c3a30}\n:is(#simple_page,body) .gp-lead .ppcx-fig{margin:18px 0 0;padding:14px;background:#eef4e8;border:1px solid #e3e7da;border-radius:8px}\n:is(#simple_page,body) .gp-lead .ppcx-fig svg{display:block;width:100%;height:auto;max-width:100%}\n:is(#simple_page,body) .gp-lead .ppcx-fig figcaption{margin-top:8px;font-size:.88rem;color:#4c6066;text-align:center}\n:is(#simple_page,body) .gp-lead .ppcx .bx{fill:#ffffff;stroke:#c3cdbf;stroke-width:1}\n:is(#simple_page,body) .gp-lead .ppcx .tx{font-family:var(--f);font-size:11px;fill:#2c3a30}\n:is(#simple_page,body) .gp-lead .ppcx .th{font-family:var(--f);font-size:11px;font-weight:700;fill:#145328}\n:is(#simple_page,body) .gp-lead .ppcx .tn{font-family:var(--f);font-size:15px;font-weight:700;fill:#145328}\n:is(#simple_page,body) .gp-lead .ppcx .ts{font-family:var(--f);font-size:10px;fill:#8a9a8e}\n:is(#simple_page,body) .gp-lead .ppcx .ar{stroke:#8a9a8e;stroke-width:1.6;fill:none}\n:is(#simple_page,body) .gp-lead .ppcx .bar{fill:#a0d468}\n:is(#simple_page,body) .gp-lead .ppcx .bar.lo{fill:#c3cdbf}\n:is(#simple_page,body) .gp-lead .ppcx .pl{stroke:#f76a0c;stroke-width:2;stroke-dasharray:5 3}\n:is(#simple_page,body) .gp-lead .ppcx .pt{font-family:var(--f);font-size:11px;font-weight:700;fill:#f76a0c}\n<\/style>\n<div class=\"ppcx\">\n  <h2>How a prevented planting payment is worked out<\/h2>\n  <p>Start with the guarantee. Your approved APH yield, times the coverage level you bought, times the projected price set in February, is the revenue the policy stands behind on every acre planted by the final planting date. For 175 bushels of corn at 80 percent and $4.00, that is $560 an acre.<\/p>\n  <p>Prevented planting pays a fixed share of it, set per crop: 55 percent for corn, 60 for soybeans, spring wheat and grain sorghum, 50 for cotton. The $560 guarantee becomes a $308 payment on every acre you were kept off, with no seed bought, no fuel burned and no crop to sell.<\/p>\n  <p>Planting late is the other side of the ledger. Each day after the final planting date takes one percent off the guarantee: five days late keeps $532, fifteen days keeps $476, and on the last day of a 25 day late period $420 is left. The day after that, corn planted anyway carries the same 55 percent the claim pays, and from then on the claim is almost always the better number. Where the two lines cross is the decision, and the chart on the page draws it for your yield, your coverage and your price.<\/p>\n  <p>Then the acres. The claim needs at least 20 acres or 20 percent of the insurable acres of the crop in the unit, whichever is less, and it pays on no more acres than your four-year high for the crop once this year&#8217;s planted acres are counted against it. The outline on your boundary gives the first number; the second comes from your own records. Both go on the FSA-578 and the CCC-576, and the worksheet carries them to the county office.<\/p>\n  <figure class=\"ppcx-fig\">\n    <svg viewBox=\"0 0 760 170\" role=\"img\" aria-labelledby=\"ppcx-t\">\n      <title id=\"ppcx-t\">Guarantee kept by planting on each day of the late period falls one percent a day from $560, while prevented planting pays a flat $308<\/title>\n      <text class=\"th\" x=\"12\" y=\"18\">Guarantee kept per acre, corn, APH 175 at 80 percent and $4.00<\/text>\n      <line class=\"ar\" x1=\"40\" y1=\"140\" x2=\"740\" y2=\"140\"\/>\n      <rect class=\"bar\" x=\"48\" y=\"40\" width=\"22\" height=\"100\"\/><text class=\"ts\" x=\"59\" y=\"154\" text-anchor=\"middle\">day 1<\/text><text class=\"tx\" x=\"59\" y=\"34\" text-anchor=\"middle\">$554<\/text>\n      <rect class=\"bar\" x=\"100\" y=\"45\" width=\"22\" height=\"95\"\/><text class=\"ts\" x=\"111\" y=\"154\" text-anchor=\"middle\">5<\/text><text class=\"tx\" x=\"111\" y=\"39\" text-anchor=\"middle\">$532<\/text>\n      <rect class=\"bar\" x=\"152\" y=\"55\" width=\"22\" height=\"85\"\/><text class=\"ts\" x=\"163\" y=\"154\" text-anchor=\"middle\">10<\/text><text class=\"tx\" x=\"163\" y=\"49\" text-anchor=\"middle\">$504<\/text>\n      <rect class=\"bar\" x=\"204\" y=\"65\" width=\"22\" height=\"75\"\/><text class=\"ts\" x=\"215\" y=\"154\" text-anchor=\"middle\">15<\/text><text class=\"tx\" x=\"215\" y=\"59\" text-anchor=\"middle\">$476<\/text>\n      <rect class=\"bar\" x=\"256\" y=\"75\" width=\"22\" height=\"65\"\/><text class=\"ts\" x=\"267\" y=\"154\" text-anchor=\"middle\">20<\/text><text class=\"tx\" x=\"267\" y=\"69\" text-anchor=\"middle\">$448<\/text>\n      <rect class=\"bar\" x=\"308\" y=\"85\" width=\"22\" height=\"55\"\/><text class=\"ts\" x=\"319\" y=\"154\" text-anchor=\"middle\">25<\/text><text class=\"tx\" x=\"319\" y=\"79\" text-anchor=\"middle\">$420<\/text>\n      <rect class=\"bar lo\" x=\"380\" y=\"105\" width=\"22\" height=\"35\"\/><text class=\"ts\" x=\"391\" y=\"154\" text-anchor=\"middle\">after<\/text><text class=\"tx\" x=\"391\" y=\"99\" text-anchor=\"middle\">$308<\/text>\n      <line class=\"pl\" x1=\"40\" y1=\"105\" x2=\"740\" y2=\"105\"\/>\n      <text class=\"pt\" x=\"740\" y=\"99\" text-anchor=\"end\">prevented planting pays $308<\/text>\n      <rect class=\"bx\" x=\"470\" y=\"26\" width=\"270\" height=\"56\" rx=\"6\"\/>\n      <text class=\"th\" x=\"482\" y=\"46\">$560 guarantee x 55 percent<\/text>\n      <text class=\"tn\" x=\"482\" y=\"70\">= $308 an acre<\/text>\n    <\/svg>\n    <figcaption>The guarantee kept by planting falls one percent a day through the late period; the prevented planting payment stays flat.<\/figcaption>\n  <\/figure>\n<\/div>\n<\/div>\n\n\n\n<!-- GENERATED by scripts\/make_faq.py from tools\/prevented-planting\/faq.json. Do not hand-edit. -->\n<div class=\"gp-lead\">\n<style>\n:is(#simple_page,body) .gp-lead .gpx-faq{margin:36px 0 8px}\n:is(#simple_page,body) .gp-lead .gpx-faq h2{text-align:center;margin:0 0 20px;font-size:1.6rem}\n:is(#simple_page,body) .gp-lead .gpx-tabs{border:1px solid #e8ebe2;border-radius:16px;overflow:hidden;background:#fff}\n:is(#simple_page,body) .gp-lead .gpx-tablist{display:flex;gap:0;background:#f6f7f1;border-bottom:1px solid #e8ebe2;overflow-x:auto;scrollbar-width:none}\n:is(#simple_page,body) .gp-lead .gpx-tablist::-webkit-scrollbar{display:none}\n:is(#simple_page,body) .gp-lead .gpx-tab{flex:1 1 auto;min-width:max-content;background:transparent;border:0;padding:16px 22px;font-family:inherit;font-size:.95rem;font-weight:700;color:#4c6066;cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap}\n:is(#simple_page,body) .gp-lead .gpx-tab:hover{color:#145328;background:#f0f4ea}\n:is(#simple_page,body) .gp-lead .gpx-tab[aria-selected=\"true\"]{color:#145328;border-bottom-color:#15701e;background:#fff}\n:is(#simple_page,body) .gp-lead .gpx-tab:focus{outline:2px solid #15701e;outline-offset:-2px}\n:is(#simple_page,body) .gp-lead .gpx-panel{padding:28px 32px;display:none}\n:is(#simple_page,body) .gp-lead .gpx-panel.is-active{display:block}\n:is(#simple_page,body) .gp-lead .gpx-panel h3{margin:0 0 10px;font-size:1.12rem;color:#212121}\n:is(#simple_page,body) .gp-lead .gpx-panel p{margin:0;line-height:1.7;color:#243024;font-size:1rem}\n:is(#simple_page,body) .gp-lead .gpx-panel p+p{margin-top:10px}\n@media (max-width:760px){\n  :is(#simple_page,body) .gp-lead .gpx-panel{padding:22px 20px}\n  :is(#simple_page,body) .gp-lead .gpx-tab{padding:14px 16px;font-size:.9rem}\n}\n<\/style>\n<section class=\"gpx-faq\" aria-labelledby=\"gpx-faq-h\">\n  <h2 id=\"gpx-faq-h\">Frequently asked questions<\/h2>\n  <div class=\"gpx-tabs\">\n    <div class=\"gpx-tablist\" role=\"tablist\" aria-label=\"Prevented Planting Calculator FAQ\">\n      <button class=\"gpx-tab\" role=\"tab\" id=\"gpx-tab-1\" aria-controls=\"gpx-panel-1\" aria-selected=\"true\" tabindex=\"0\">What counts<\/button>\n      <button class=\"gpx-tab\" role=\"tab\" id=\"gpx-tab-2\" aria-controls=\"gpx-panel-2\" aria-selected=\"false\" tabindex=\"-1\">20 acres or 20 percent<\/button>\n      <button class=\"gpx-tab\" role=\"tab\" id=\"gpx-tab-3\" aria-controls=\"gpx-panel-3\" aria-selected=\"false\" tabindex=\"-1\">Eligible acres<\/button>\n      <button class=\"gpx-tab\" role=\"tab\" id=\"gpx-tab-4\" aria-controls=\"gpx-panel-4\" aria-selected=\"false\" tabindex=\"-1\">Plant late or claim<\/button>\n      <button class=\"gpx-tab\" role=\"tab\" id=\"gpx-tab-5\" aria-controls=\"gpx-panel-5\" aria-selected=\"false\" tabindex=\"-1\">Second crop and cover<\/button>\n      <button class=\"gpx-tab\" role=\"tab\" id=\"gpx-tab-6\" aria-controls=\"gpx-panel-6\" aria-selected=\"false\" tabindex=\"-1\">Your file<\/button>\n    <\/div>\n    <div class=\"gpx-panel is-active\" role=\"tabpanel\" id=\"gpx-panel-1\" aria-labelledby=\"gpx-tab-1\">\n      <h3>The field was too wet to plant by the final planting date. Does that count as prevented planting?<\/h3>\n      <p>It does when an insured cause of loss, such as excess moisture, flood or drought, stopped you planting the insured crop by the final planting date, and the same conditions were general in the area. Ground that could never have been planted anyway, because it was under water most years or has no drainage, does not count, and the adjuster will ask whether the field was planted and harvested in one of the four previous years.<\/p>\n      <p>Two clocks start on the final planting date. Within 72 hours tell your insurance agent you were prevented from planting, or that you will not plant during the late planting period. Within 15 calendar days file the CCC-576 Notice of Loss at the FSA county office. The page prints both dates when you set the final planting date.<\/p>\n    <\/div>\n    <div class=\"gpx-panel\" role=\"tabpanel\" id=\"gpx-panel-2\" aria-labelledby=\"gpx-tab-2\">\n      <h3>Only 14 acres of the 160 were under water. Will that pay?<\/h3>\n      <p>Not on its own. Prevented planting pays on an area that is at least 20 acres or 20 percent of the insurable acres of that crop in the unit, whichever is less. On a 160 acre unit the floor is 20 acres, so 14 acres is 6 short. On a 60 acre unit the floor is 12 acres, so the same 14 acres pays.<\/p>\n      <p>Enterprise units change the arithmetic. The acres are counted across every field of the crop in the county, so six potholes of 4 acres each add up to 24 and clear the floor. Optional units count each unit on its own. Set the unit type on the page and the threshold follows.<\/p>\n    <\/div>\n    <div class=\"gpx-panel\" role=\"tabpanel\" id=\"gpx-panel-3\" aria-labelledby=\"gpx-tab-3\">\n      <h3>Why does the page ask for the most acres I insured in the last four years?<\/h3>\n      <p>Because that is the cap. The acres eligible for a prevented planting payment are the most acres of the crop you certified or insured in any one of the four most recent years, and the acres you planted this year count against it first. If 200 acres of corn is your four-year high and 150 are in the ground, 50 acres of prevented planting pay, however many you were kept off.<\/p>\n      <p>Ground you did not farm in those years has no history of its own. Land you took on this year carries the previous operator&#8217;s history for the crop; an intended acreage report filed by the sales closing date covers a new operation.<\/p>\n    <\/div>\n    <div class=\"gpx-panel\" role=\"tabpanel\" id=\"gpx-panel-4\" aria-labelledby=\"gpx-tab-4\">\n      <h3>It dried out on day 12 of the late planting period. Plant the corn, or take the payment?<\/h3>\n      <p>Read it off the chart. Every day past the final planting date takes one percent off the guarantee, so on day 12 you keep 88 percent of it, against the 55 percent a corn prevented planting claim pays. The guarantee kept is the floor under the planted crop, not the revenue: a crop planted twelve days late in your area yields what your own late plantings have yielded, and that number is yours to put beside it.<\/p>\n      <p>After the late planting period closes, the guarantee on corn planted anyway drops to the same 55 percent the claim pays, and the planted crop has to cover seed, fuel and the rest of the season from there. That is the day the claim usually wins. On a field that straddles the line, the fields table takes the two parts separately.<\/p>\n    <\/div>\n    <div class=\"gpx-panel\" role=\"tabpanel\" id=\"gpx-panel-5\" aria-labelledby=\"gpx-tab-5\">\n      <h3>Can I put soybeans or a cover crop on the prevented acres?<\/h3>\n      <p>A cover crop, yes, and since the 2019 change you can hay, graze or chop it for silage without touching the payment. The cover cannot be harvested for grain or seed.<\/p>\n      <p>A second insurable crop planted after the late planting period cuts the prevented planting payment on those acres to 35 percent, puts a 60 percent yield plug into the APH for the first crop, and the second crop insures in its own right. The switch on the payment card shows both figures. A second crop planted inside the late planting period simply replaces the first crop&#8217;s coverage, with no prevented planting payment at all.<\/p>\n    <\/div>\n    <div class=\"gpx-panel\" role=\"tabpanel\" id=\"gpx-panel-6\" aria-labelledby=\"gpx-tab-6\">\n      <h3>What happens to the boundary I drop here, and how does the outline get to the county office?<\/h3>\n      <p>The file is read in your browser and never uploaded. The outline you draw is snapped to the boundary, measured, and written out as GeoJSON or a zipped shapefile with the field name, the crop and the acres on each polygon. farmers.gov imports both formats into Farm Records Mapping, so the outline sits on your Common Land Units when you print the map for the FSA-578, and the same file goes to the insurance agent for the geospatial acreage report.<\/p>\n      <p>Print the worksheet from the page as well. It carries the fields, the acres planted and prevented, the dates and the map on one sheet, which is what the county office asks for at the appointment.<\/p>\n    <\/div>\n  <\/div>\n<\/section>\n<script type=\"application\/ld+json\" data-no-optimize=\"1\" data-no-minify=\"1\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"The field was too wet to plant by the final planting date. Does that count as prevented planting?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"It does when an insured cause of loss, such as excess moisture, flood or drought, stopped you planting the insured crop by the final planting date, and the same conditions were general in the area. Ground that could never have been planted anyway, because it was under water most years or has no drainage, does not count, and the adjuster will ask whether the field was planted and harvested in one of the four previous years. Two clocks start on the final planting date. Within 72 hours tell your insurance agent you were prevented from planting, or that you will not plant during the late planting period. Within 15 calendar days file the CCC-576 Notice of Loss at the FSA county office. The page prints both dates when you set the final planting date.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Only 14 acres of the 160 were under water. Will that pay?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Not on its own. Prevented planting pays on an area that is at least 20 acres or 20 percent of the insurable acres of that crop in the unit, whichever is less. On a 160 acre unit the floor is 20 acres, so 14 acres is 6 short. On a 60 acre unit the floor is 12 acres, so the same 14 acres pays. Enterprise units change the arithmetic. The acres are counted across every field of the crop in the county, so six potholes of 4 acres each add up to 24 and clear the floor. Optional units count each unit on its own. Set the unit type on the page and the threshold follows.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Why does the page ask for the most acres I insured in the last four years?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Because that is the cap. The acres eligible for a prevented planting payment are the most acres of the crop you certified or insured in any one of the four most recent years, and the acres you planted this year count against it first. If 200 acres of corn is your four-year high and 150 are in the ground, 50 acres of prevented planting pay, however many you were kept off. Ground you did not farm in those years has no history of its own. Land you took on this year carries the previous operator's history for the crop; an intended acreage report filed by the sales closing date covers a new operation.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"It dried out on day 12 of the late planting period. Plant the corn, or take the payment?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Read it off the chart. Every day past the final planting date takes one percent off the guarantee, so on day 12 you keep 88 percent of it, against the 55 percent a corn prevented planting claim pays. The guarantee kept is the floor under the planted crop, not the revenue: a crop planted twelve days late in your area yields what your own late plantings have yielded, and that number is yours to put beside it. After the late planting period closes, the guarantee on corn planted anyway drops to the same 55 percent the claim pays, and the planted crop has to cover seed, fuel and the rest of the season from there. That is the day the claim usually wins. On a field that straddles the line, the fields table takes the two parts separately.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Can I put soybeans or a cover crop on the prevented acres?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"A cover crop, yes, and since the 2019 change you can hay, graze or chop it for silage without touching the payment. The cover cannot be harvested for grain or seed. A second insurable crop planted after the late planting period cuts the prevented planting payment on those acres to 35 percent, puts a 60 percent yield plug into the APH for the first crop, and the second crop insures in its own right. The switch on the payment card shows both figures. A second crop planted inside the late planting period simply replaces the first crop's coverage, with no prevented planting payment at all.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What happens to the boundary I drop here, and how does the outline get to the county office?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"The file is read in your browser and never uploaded. The outline you draw is snapped to the boundary, measured, and written out as GeoJSON or a zipped shapefile with the field name, the crop and the acres on each polygon. farmers.gov imports both formats into Farm Records Mapping, so the outline sits on your Common Land Units when you print the map for the FSA-578, and the same file goes to the insurance agent for the geospatial acreage report. Print the worksheet from the page as well. It carries the fields, the acres planted and prevented, the dates and the map on one sheet, which is what the county office asks for at the appointment.\"\n      }\n    }\n  ]\n}\n<\/script>\n<\/div>\n<script nowprocket data-no-optimize=\"1\" data-no-defer=\"1\" data-no-minify=\"1\">\n(function(){\n  var root = document.querySelector('.gp-lead .gpx-faq');\n  if (!root) { return; }\n  var tabs = root.querySelectorAll('.gpx-tab');\n  var panels = root.querySelectorAll('.gpx-panel');\n  function activate(idx){\n    for (var i = 0; i < tabs.length; i++) {\n      var on = i === idx;\n      tabs[i].setAttribute('aria-selected', on ? 'true' : 'false');\n      tabs[i].setAttribute('tabindex', on ? '0' : '-1');\n      if (on) { panels[i].classList.add('is-active'); } else { panels[i].classList.remove('is-active'); }\n    }\n  }\n  for (var i = 0; i < tabs.length; i++) {\n    (function(n){\n      tabs[n].addEventListener('click', function(){ activate(n); });\n      tabs[n].addEventListener('keydown', function(ev){\n        var d = ev.key === 'ArrowRight' ? 1 : (ev.key === 'ArrowLeft' ? -1 : 0);\n        if (d === 0) { return; }\n        var t = (n + d + tabs.length) % tabs.length;\n        activate(t); tabs[t].focus(); ev.preventDefault();\n      });\n    })(i);\n  }\n})();\n<\/script>\n\n\n\n<!-- GeoPard Tool Wrapper - CTA only (CTA band + AI Assistant band, NO FAQ).\n     Pages pair this with their OWN faq.html, because the FAQ in block 13099 is\n     Field Data Explorer specific and answers questions nobody asked on another\n     tool's page. Block 13099 stays as it is for the legacy pages. -->\n<style>\/* GP-THEME-BOOST: paragraph defaults against #simple_page p (scripts\/theme_boost.py) *\/:is(#simple_page,body) .gp-lead p,:is(#simple_page,body) .gpx-aiband p{font-size:inherit;margin-top:0}<\/style><style>:is(#simple_page,body) .gp-lead *,:is(#simple_page,body) .gpx-aiband *{font-family:\"Roboto\",-apple-system,\"Segoe UI\",Helvetica,Arial,sans-serif}<\/style>\n<div class=\"gp-lead\">\n<style>\n\/* Shared CTA, integration chips and FAQ tab styling. These classes are USED by\n   this block but were only DEFINED in wrapper-top block 13098, so any page that\n   uses this block without 13098 (a tool page with an inline hero) rendered the\n   CTA and FAQ completely unstyled. Copied verbatim from 13098, so pages that\n   carry both blocks are byte-identical in effect. *\/\n.gp-lead{font-family:var(--wp--preset--font-family--nunito,\"Nunito\",system-ui,-apple-system,Segoe UI,sans-serif);color:#212121;max-width:1600px;margin:0 auto;padding:0 16px}\n.gp-lead .gpx-cta{background:linear-gradient(135deg,#145328 0%,#1b7a2a 65%,#1a7951 100%);border-radius:18px;padding:38px 40px;margin:36px 0 24px;color:#fafbf4;text-align:center;position:relative;overflow:hidden}\n.gp-lead .gpx-cta::before{content:\"\";position:absolute;inset:auto -40px -60px auto;width:200px;height:200px;background:radial-gradient(circle,rgba(178,6,15,0.26),transparent 70%);pointer-events:none}\n.gp-lead .gpx-cta h2{color:#fff;margin:0 0 12px;font-size:1.6rem}\n.gp-lead .gpx-cta p{color:rgba(255,255,255,0.95);font-size:1.05rem;max-width:740px;margin:0 auto 22px}\n.gp-lead .gpx-btn{display:inline-block;background:#b2060f;color:#fff;font-family:var(--wp--preset--font-family--poppins,\"Poppins\",sans-serif);font-weight:600;font-size:1rem;padding:14px 30px;border-radius:999px;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s;box-shadow:none}\n.gp-lead .gpx-btn:hover{transform:translateY(-1px);background:#fd4d48;color:#fff;box-shadow:none}\n.gp-lead .gpx-faq{margin:36px 0 8px}\n.gp-lead .gpx-faq h2{text-align:center;margin:0 0 20px;font-size:1.6rem}\n.gp-lead .gpx-tabs{border:1px solid #e8ebe2;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 2px 14px rgba(20,83,40,0.06)}\n.gp-lead .gpx-tablist{display:flex;gap:0;background:#f6f7f1;border-bottom:1px solid #e8ebe2;overflow-x:auto;scrollbar-width:none}\n.gp-lead .gpx-tablist::-webkit-scrollbar{display:none}\n.gp-lead .gpx-tab{flex:1 1 auto;min-width:max-content;background:transparent;border:0;padding:16px 22px;font-family:var(--wp--preset--font-family--poppins,\"Poppins\",sans-serif);font-size:.95rem;font-weight:600;color:#4c6066;cursor:pointer;border-bottom:3px solid transparent;transition:color .15s,border-color .15s,background .15s;white-space:nowrap;letter-spacing:.01em}\n.gp-lead .gpx-tab:hover{color:#145328;background:rgba(123,220,181,0.14)}\n.gp-lead .gpx-tab[aria-selected=\"true\"]{color:#145328;border-bottom-color:#15701e;background:#fff}\n.gp-lead .gpx-tab:focus{outline:2px solid #15701e;outline-offset:-2px}\n.gp-lead .gpx-panel{padding:28px 32px;display:none;animation:gpxfade .25s ease}\n.gp-lead .gpx-panel.is-active{display:block}\n.gp-lead .gpx-panel p{margin:0;line-height:1.7;color:#243024;font-size:1rem}\n.gp-lead .gpx-panel p+p{margin-top:10px}\n.gp-lead .gpx-panel kbd,.gp-lead .gpx-panel code{background:#f0f3ec;padding:2px 6px;border-radius:4px;font-family:var(--wp--preset--font-family--dm-mono,\"DM Mono\",ui-monospace,monospace);font-size:.88em;color:#145328}\n.gp-lead .gpx-integ{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:10px 0 20px}\n.gp-lead .gpx-integ-label{font-size:.86rem;color:rgba(255,255,255,0.86);margin:0 0 8px;font-weight:500;letter-spacing:.01em}\n.gp-lead .gpx-integ-chip{background:rgba(255,255,255,0.16);border:1px solid rgba(255,255,255,0.32);color:#fff;padding:6px 14px;border-radius:999px;font-size:.85rem;font-weight:600;letter-spacing:.02em}\n@media (max-width:760px){\n  .gp-lead .gpx-cta{padding:24px 22px}\n  .gp-lead .gpx-panel{padding:22px 20px}\n  .gp-lead .gpx-tab{padding:14px 16px;font-size:.9rem}\n}\n@keyframes gpxfade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}\n<\/style>\n\n<section class=\"gpx-cta\">\n  <h2>Bigger picture? GeoPard turns the data into prescriptions.<\/h2>\n  <p>This page reads one file at a time. The full GeoPard platform combines multi-year yield, NDVI, soil, and topography into management zones, generates variable rate prescriptions, and pushes them to your machine.<\/p>\n  <div class=\"gpx-integ-label\">Push prescriptions and pull as-applied data with:<\/div>\n  <div class=\"gpx-integ\">\n    <span class=\"gpx-integ-chip\">John Deere Operations Center<\/span>\n    <span class=\"gpx-integ-chip\">CNH FieldOps<\/span>\n    <span class=\"gpx-integ-chip\">AGCO \/ PTx FarmEngage<\/span>\n  <\/div>\n  <a class=\"gpx-btn\" href=\"https:\/\/app.geopard.tech\/auth\/sign-up?utm_source=geopard.tech&amp;utm_medium=lead-magnet&amp;utm_campaign=field-data-explorer&amp;utm_content=below-tool-cta\">Register free in GeoPard &rarr;<\/a>\n  <p style=\"margin:16px auto 0;max-width:740px;font-size:.95rem;color:rgba(255,255,255,.92)\">Already harvested? <a style=\"color:#ffffff;text-decoration:underline;text-underline-offset:3px\" href=\"https:\/\/geopard.tech\/yield-report\/\">See whether the variable rate paid off in the Automated Yield Report<\/a>.<\/p>\n<\/section>\n\n<section class=\"gpx-aiband\">\n  <style>\n    :is(#simple_page,body) .gp-lead .gpx-aiband{display:flex;align-items:center;gap:24px;flex-wrap:wrap;background:#f2f7ee;border:1px solid #d6e2c5;border-radius:14px;padding:22px 26px;margin:26px 0}\n    :is(#simple_page,body) .gp-lead .gpx-aiband-txt{flex:1 1 380px}\n    :is(#simple_page,body) .gp-lead .gpx-aiband-new{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.05em;color:#ffffff;background:#b2060f;border-radius:999px;padding:3px 9px;vertical-align:3px;margin-left:10px}\n    :is(#simple_page,body) .gp-lead .gpx-aiband h2{margin:0;font-size:1.3rem}\n    :is(#simple_page,body) .gp-lead .gpx-aiband p{margin:8px 0 0;color:#4c6066;font-size:.98rem;line-height:1.55}\n    :is(#simple_page,body) .gp-lead .gpx-aiband-btn{flex:0 0 auto;display:inline-flex;align-items:center;min-height:46px;background:#15701e;color:#ffffff;font-weight:600;padding:0 22px;border-radius:999px;text-decoration:none}\n    :is(#simple_page,body) .gp-lead .gpx-aiband-btn:hover{background:#145328;color:#ffffff}\n    @media (max-width:640px){ :is(#simple_page,body) .gp-lead .gpx-aiband{padding:18px} :is(#simple_page,body) .gp-lead .gpx-aiband-btn{width:100%;justify-content:center} }\n  <\/style>\n  <div class=\"gpx-aiband-txt\">\n    <h2>Meet the GeoPard AI Assistant<span class=\"gpx-aiband-new\">NEW<\/span><\/h2>\n    <p>Reasoning AI for precision agriculture: it asks the right agronomic questions, shows its math, and builds dry-run validated prescriptions from your data. You approve every step.<\/p>\n  <\/div>\n  <a class=\"gpx-aiband-btn\" href=\"https:\/\/geopard.tech\/ai\/\">Watch how the AI thinks &rarr;<\/a>\n<\/section>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Nov\u0113rst\u0101s st\u0101d\u012b\u0161anas kalkulators Nov\u0113rst\u0101s st\u0101d\u012b\u0161anas apr\u0113\u0137ins: plat\u012bba, termi\u0146i, maks\u0101jums No\u0146emiet lauka robe\u017eu, iez\u012bm\u0113jiet zemi, kur\u0101 nevar\u0113j\u0101t st\u0101d\u012bt, un izlasiet\u2026<\/p>","protected":false},"author":210157960,"featured_media":15685,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_eb_attr":"","content-type":"","jetpack_seo_llms_txt_always_include":false,"_wpcom_ai_launchpad_about_page":false,"_wpcom_ai_launchpad_gallery_page":false,"_wpcom_ai_launchpad_contact_page":false,"_wpcom_ai_launchpad_events_page":false,"_wpcom_ai_launchpad_video_page":false,"_wpcom_ai_launchpad_portfolio_piece":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":"","big_sky_generated":false},"class_list":["post-14868","page","type-page","status-publish","has-post-thumbnail","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Prevented Planting Calculator: Acres and Payment - GeoPard<\/title>\n<meta name=\"description\" content=\"Outline the ground you could not plant on your own boundary: acres for the FSA-578 and CCC-576, every deadline from the final planting date, and the payment.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/geopard.tech\/lv\/noverstas-stadisanas-kalkulators\/\" \/>\n<meta property=\"og:locale\" content=\"lv_LV\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prevented planting: the acres, the deadlines, the payment\" \/>\n<meta property=\"og:description\" content=\"Your field boundary, the unplanted ground outlined and measured, the CCC-576 and FSA-578 dates, the 20\/20 check and the payment next to what planting late keeps.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/geopard.tech\/lv\/noverstas-stadisanas-kalkulators\/\" \/>\n<meta property=\"og:site_name\" content=\"GeoPard - Precision agriculture Mapping software\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/geopardAgriculture\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T12:34:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/03\/GeoPard-Background-Precision-Ag-software-Do-more-with-your-data.png?fit=3116%2C1754&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"3116\" \/>\n\t<meta property=\"og:image:height\" content=\"1754\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@geopardagri\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"19 min\u016b\u0161u\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/\",\"url\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/\",\"name\":\"Prevented Planting Calculator: Acres and Payment - GeoPard\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/geopard.tech\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/geopard.tech\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/geopard-tool-prevented-planting.jpg?fit=1600%2C900&ssl=1\",\"datePublished\":\"2026-11-18T12:24:22+00:00\",\"dateModified\":\"2026-11-18T12:34:30+00:00\",\"description\":\"Outline the ground you could not plant on your own boundary: acres for the FSA-578 and CCC-576, every deadline from the final planting date, and the payment.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/#breadcrumb\"},\"inLanguage\":\"lv-LV\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"lv-LV\",\"@id\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/geopard.tech\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/geopard-tool-prevented-planting.jpg?fit=1600%2C900&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/geopard.tech\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/geopard-tool-prevented-planting.jpg?fit=1600%2C900&ssl=1\",\"width\":1600,\"height\":900,\"caption\":\"Prevented Planting Calculator, the sample field with the unplanted ground outlined and the acres counted\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/geopard.tech\\\/prevented-planting-calculator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/geopard.tech\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prevented Planting Calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/geopard.tech\\\/#website\",\"url\":\"https:\\\/\\\/geopard.tech\\\/\",\"name\":\"GeoPard - Precision agriculture software\",\"description\":\"Precision agriculture Mapping software\",\"publisher\":{\"@id\":\"https:\\\/\\\/geopard.tech\\\/#organization\"},\"alternateName\":\"GeoPard\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/geopard.tech\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"lv-LV\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/geopard.tech\\\/#organization\",\"name\":\"GeoPard Agriculture\",\"alternateName\":\"GeoPard\",\"url\":\"https:\\\/\\\/geopard.tech\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"lv-LV\",\"@id\":\"https:\\\/\\\/geopard.tech\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/geopard.tech\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/geopard_logo_transparentbackground.png?fit=512%2C68&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/geopard.tech\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/geopard_logo_transparentbackground.png?fit=512%2C68&ssl=1\",\"width\":512,\"height\":68,\"caption\":\"GeoPard Agriculture\"},\"image\":{\"@id\":\"https:\\\/\\\/geopard.tech\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/geopardAgriculture\\\/\",\"https:\\\/\\\/x.com\\\/geopardagri\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/geopard-agriculture\\\/\",\"https:\\\/\\\/www.instagram.com\\\/geopardagriculture\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCiaPGLAhRPNh-s85dXdC-Sw\",\"https:\\\/\\\/www.g2.com\\\/products\\\/geopard-agriculture-precision-farming-software\\\/reviews\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nov\u0113rsto st\u0101d\u012bjumu kalkulators: plat\u012bba un maks\u0101jumi \u2014 GeoPard","description":"Aprakstiet zemes plat\u012bbu, kuru nevar\u0113j\u0101t st\u0101d\u012bt uz savas robe\u017eas: akrus FSA-578 un CCC-576, katru termi\u0146u no p\u0113d\u0113j\u0101 s\u0113\u0161anas datuma un maks\u0101jumu.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/geopard.tech\/lv\/noverstas-stadisanas-kalkulators\/","og_locale":"lv_LV","og_type":"article","og_title":"Prevented planting: the acres, the deadlines, the payment","og_description":"Your field boundary, the unplanted ground outlined and measured, the CCC-576 and FSA-578 dates, the 20\/20 check and the payment next to what planting late keeps.","og_url":"https:\/\/geopard.tech\/lv\/noverstas-stadisanas-kalkulators\/","og_site_name":"GeoPard - Precision agriculture Mapping software","article_publisher":"https:\/\/www.facebook.com\/geopardAgriculture\/","article_modified_time":"2026-11-18T12:34:30+00:00","og_image":[{"width":3116,"height":1754,"url":"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/03\/GeoPard-Background-Precision-Ag-software-Do-more-with-your-data.png?fit=3116%2C1754&ssl=1","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@geopardagri","twitter_misc":{"Est. reading time":"19 min\u016b\u0161u"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/geopard.tech\/prevented-planting-calculator\/","url":"https:\/\/geopard.tech\/prevented-planting-calculator\/","name":"Nov\u0113rsto st\u0101d\u012bjumu kalkulators: plat\u012bba un maks\u0101jumi \u2014 GeoPard","isPartOf":{"@id":"https:\/\/geopard.tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/geopard.tech\/prevented-planting-calculator\/#primaryimage"},"image":{"@id":"https:\/\/geopard.tech\/prevented-planting-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/11\/geopard-tool-prevented-planting.jpg?fit=1600%2C900&ssl=1","datePublished":"2026-11-18T12:24:22+00:00","dateModified":"2026-11-18T12:34:30+00:00","description":"Aprakstiet zemes plat\u012bbu, kuru nevar\u0113j\u0101t st\u0101d\u012bt uz savas robe\u017eas: akrus FSA-578 un CCC-576, katru termi\u0146u no p\u0113d\u0113j\u0101 s\u0113\u0161anas datuma un maks\u0101jumu.","breadcrumb":{"@id":"https:\/\/geopard.tech\/prevented-planting-calculator\/#breadcrumb"},"inLanguage":"lv-LV","potentialAction":[{"@type":"ReadAction","target":["https:\/\/geopard.tech\/prevented-planting-calculator\/"]}]},{"@type":"ImageObject","inLanguage":"lv-LV","@id":"https:\/\/geopard.tech\/prevented-planting-calculator\/#primaryimage","url":"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/11\/geopard-tool-prevented-planting.jpg?fit=1600%2C900&ssl=1","contentUrl":"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/11\/geopard-tool-prevented-planting.jpg?fit=1600%2C900&ssl=1","width":1600,"height":900,"caption":"Prevented Planting Calculator, the sample field with the unplanted ground outlined and the acres counted"},{"@type":"BreadcrumbList","@id":"https:\/\/geopard.tech\/prevented-planting-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/geopard.tech\/"},{"@type":"ListItem","position":2,"name":"Prevented Planting Calculator"}]},{"@type":"WebSite","@id":"https:\/\/geopard.tech\/#website","url":"https:\/\/geopard.tech\/","name":"GeoPard - Prec\u012bzijas lauksaimniec\u012bbas programmat\u016bra","description":"Prec\u012bz\u0101s lauksaimniec\u012bbas kart\u0113\u0161anas programmat\u016bra","publisher":{"@id":"https:\/\/geopard.tech\/#organization"},"alternateName":"GeoPard","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/geopard.tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"lv-LV"},{"@type":"Organization","@id":"https:\/\/geopard.tech\/#organization","name":"GeoPard Lauksaimniec\u012bba","alternateName":"GeoPard","url":"https:\/\/geopard.tech\/","logo":{"@type":"ImageObject","inLanguage":"lv-LV","@id":"https:\/\/geopard.tech\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/07\/geopard_logo_transparentbackground.png?fit=512%2C68&ssl=1","contentUrl":"https:\/\/i0.wp.com\/geopard.tech\/wp-content\/uploads\/2026\/07\/geopard_logo_transparentbackground.png?fit=512%2C68&ssl=1","width":512,"height":68,"caption":"GeoPard Agriculture"},"image":{"@id":"https:\/\/geopard.tech\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/geopardAgriculture\/","https:\/\/x.com\/geopardagri","https:\/\/www.linkedin.com\/company\/geopard-agriculture\/","https:\/\/www.instagram.com\/geopardagriculture\/","https:\/\/www.youtube.com\/channel\/UCiaPGLAhRPNh-s85dXdC-Sw","https:\/\/www.g2.com\/products\/geopard-agriculture-precision-farming-software\/reviews"]}]}},"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PdiCPa-3RO","_links":{"self":[{"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/pages\/14868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/users\/210157960"}],"replies":[{"embeddable":true,"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/comments?post=14868"}],"version-history":[{"count":0,"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/pages\/14868\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/media\/15685"}],"wp:attachment":[{"href":"https:\/\/geopard.tech\/lv\/wp-json\/wp\/v2\/media?parent=14868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}