/* Husfarm Crop Atlas (4.99.27): /crop-atlas/, /crop-yields/, /farm-gate-prices/. Skala ilosci: zielona rampa o jednej barwie (jasnosc OKLCH od .945 do .345, kroki rosna ku ciemnym klasom).
   Serie krajow na wykresie: 4 stale kolory (sprawdzone walidatorem palet na obu tlach). Zmiana 10-letnia: skala rozbiezna
   czerwony-szary-niebieski o rownej jasnosci ramion. Brak danych: kreskowanie, zeby nie mylil sie ze srodkiem skali. */
:root{ --at-b0:#dff3e1; --at-b1:#b0dfb6; --at-b2:#79c281; --at-b3:#41a04f; --at-b4:#197536; --at-b5:#044621; --at-s1:#257de0; --at-s2:#f47230; --at-s3:#00b894; --at-s4:#f2a600; --at-d0:#b83536; --at-d1:#e98279; --at-d2:#ecedf0; --at-d3:#6da7ec; --at-d4:#256abf; --at-hatch:#c5cbd8; --at-band:rgba(32,55,102,.12); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --at-b0:#173f25; --at-b1:#1f5c35; --at-b2:#2d7c46; --at-b3:#52a463; --at-b4:#89c895; --at-b5:#c4e6c9; --at-s1:#338ced; --at-s2:#e76624; --at-s3:#00a888; --at-s4:#d28e05; --at-d0:#ef9f98; --at-d1:#bf4d4b; --at-d2:#4a5060; --at-d3:#2a78d6; --at-d4:#86b6ef; --at-hatch:#3a4b73; --at-band:rgba(238,242,250,.14); } }
:root[data-theme="dark"]{ --at-b0:#173f25; --at-b1:#1f5c35; --at-b2:#2d7c46; --at-b3:#52a463; --at-b4:#89c895; --at-b5:#c4e6c9; --at-s1:#338ced; --at-s2:#e76624; --at-s3:#00a888; --at-s4:#d28e05; --at-d0:#ef9f98; --at-d1:#bf4d4b; --at-d2:#4a5060; --at-d3:#2a78d6; --at-d4:#86b6ef; --at-hatch:#3a4b73; --at-band:rgba(238,242,250,.14); }

/* ---------- badacz ---------- */
.at{ background:var(--surface); border:1.5px solid var(--line); border-radius:var(--r-panel); padding:20px; margin:26px 0 0; }
.at:not(.at-on):not(.at-fail){ min-height:1040px; }
.at-pop{ margin:18px 0 0; }
.at-pop + .at{ margin-top:14px; }
.at.at-loading::before{ content:'Loading the interactive map…'; display:block; font-size:.86rem; font-weight:700; color:var(--muted); margin:0 0 12px; }
.at-fb h2{ font-size:1.1rem; margin:0 0 10px; }
.at-fb .tablewrap{ max-height:420px; overflow:auto; }
.at button:focus-visible, .at select:focus-visible, .at input:focus-visible, .at a:focus-visible{ outline:2px solid var(--cta); outline-offset:2px; }
.at-bar{ display:flex; flex-wrap:wrap; gap:14px 22px; align-items:flex-end; margin:0 0 16px; }
.at-f{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.at-f > span{ font-size:.72rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.at-f select{ font:inherit; font-size:1.02rem; font-weight:750; padding:9px 12px; border:1.5px solid var(--line-2); border-radius:var(--r-ctl); background:var(--surface); color:var(--ink); min-width:250px; max-width:100%; }
.at-fm{ flex:1 1 420px; }
.at-seg{ display:flex; flex-wrap:wrap; gap:2px; border:1.5px solid var(--line-2); border-radius:999px; padding:3px; background:var(--surface-2); width:fit-content; max-width:100%; }
.at-seg button{ border:0; background:transparent; color:var(--ink-2); font:inherit; font-size:.84rem; font-weight:700; padding:7px 13px; border-radius:999px; cursor:pointer; line-height:1.15; }
.at-seg button:hover{ color:var(--ink); background:var(--surface); }
.at-seg button[aria-pressed="true"]{ background:var(--ink); color:var(--surface); }
.at-seg button:disabled{ opacity:.45; cursor:not-allowed; background:transparent; }
.at-year{ display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:10px 14px; background:var(--surface-2); border-radius:var(--r-card); }
.at-year output{ font-size:1.9rem; font-weight:800; font-variant-numeric:tabular-nums; font-stretch:84%; min-width:4.2ch; line-height:1; color:var(--ink); }
.at-year input[type=range]{ flex:1 1 auto; min-width:0; height:30px; margin:0; cursor:pointer; -webkit-appearance:none; appearance:none; background:transparent; }
.at-year input[type=range]::-webkit-slider-runnable-track{ height:6px; border-radius:3px; background:linear-gradient(to right, var(--cta) var(--at-p, 100%), var(--line-2) var(--at-p, 100%)); }
.at-year input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:22px; height:22px; margin-top:-8px; border-radius:50%; background:var(--surface); border:3px solid var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.25); }
.at-year input[type=range]::-moz-range-track{ height:6px; border-radius:3px; background:var(--line-2); }
.at-year input[type=range]::-moz-range-progress{ height:6px; border-radius:3px; background:var(--cta); }
.at-year input[type=range]::-moz-range-thumb{ width:16px; height:16px; border-radius:50%; background:var(--surface); border:3px solid var(--ink); box-shadow:0 1px 3px rgba(0,0,0,.25); }
.at-ib{ flex:0 0 auto; width:34px; height:34px; border-radius:50%; border:1.5px solid var(--line-2); background:var(--surface); color:var(--ink); font-size:1.15rem; line-height:1; cursor:pointer; padding:0 0 2px; }
.at-ib:hover, .at-play:hover{ border-color:var(--ink); }
.at-play{ flex:0 0 auto; border:1.5px solid var(--line-2); background:var(--surface); color:var(--ink); border-radius:999px; font:inherit; font-size:.84rem; font-weight:750; padding:8px 15px; cursor:pointer; white-space:nowrap; min-width:92px; }
.at-play[aria-pressed="true"]{ background:var(--ink); color:var(--surface); border-color:var(--ink); }
.at-grid{ display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:20px; align-items:start; }
.at-main{ min-width:0; }
.at-map{ margin:0; min-width:0; }
.at-zoom{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 8px; }
.at-zoom .chip{ background:var(--surface); color:var(--ink); border:1.5px solid var(--line-2); font:inherit; font-size:.74rem; font-weight:700; padding:4px 10px; cursor:pointer; }
.at-zoom .chip[aria-pressed="true"]{ background:var(--ink); color:var(--surface); border-color:var(--ink); }
.at-svgw{ position:relative; background:var(--lw-sea); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.at-svg{ display:block; width:100%; height:auto; touch-action:pan-y; }
.at-svg path, .at-svg circle{ stroke:var(--lw-edge); stroke-width:.5px; vector-effect:non-scaling-stroke; cursor:pointer; transition:fill .2s ease; }
.at-svg .at-nd{ fill:url(#at-hatch); cursor:default; }
.at-svg #at-dots .at-nd{ display:none; }
.at-hbg{ fill:var(--lw-nd); stroke:none !important; } .at-hln{ stroke:var(--at-hatch); stroke-width:1.3; }
.at-b0{ fill:var(--at-b0); background:var(--at-b0); } .at-b1{ fill:var(--at-b1); background:var(--at-b1); } .at-b2{ fill:var(--at-b2); background:var(--at-b2); }
.at-b3{ fill:var(--at-b3); background:var(--at-b3); } .at-b4{ fill:var(--at-b4); background:var(--at-b4); } .at-b5{ fill:var(--at-b5); background:var(--at-b5); }
.at-d0{ fill:var(--at-d0); background:var(--at-d0); } .at-d1{ fill:var(--at-d1); background:var(--at-d1); } .at-d2{ fill:var(--at-d2); background:var(--at-d2); }
.at-d3{ fill:var(--at-d3); background:var(--at-d3); } .at-d4{ fill:var(--at-d4); background:var(--at-d4); }
.at-svg #at-land path:hover, .at-svg #at-dots circle:hover{ stroke:var(--ink); stroke-width:1.5px; }
.at-svg .at-pin{ stroke:var(--ink); stroke-width:1.7px; }
.at-svg .at-mk{ stroke:var(--surface); stroke-width:2px; pointer-events:none; cursor:default; }
.at-s1{ --at-c:var(--at-s1); } .at-s2{ --at-c:var(--at-s2); } .at-s3{ --at-c:var(--at-s3); } .at-s4{ --at-c:var(--at-s4); }
.at-svg .at-mk, .at-pt{ fill:var(--at-c, var(--ink)); }
.at-sw{ display:inline-block; width:14px; height:14px; border-radius:4px; border:1px solid var(--line); flex:0 0 auto; }
.at-sw.at-nd{ background:repeating-linear-gradient(45deg, var(--lw-nd) 0 3px, var(--at-hatch) 3px 4.3px); }
.at-leg{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin:10px 0 0; font-size:.8rem; color:var(--ink-2); }
.at-legt{ font-weight:750; font-size:.78rem; color:var(--muted); }
.at-leg ol{ display:flex; flex-wrap:wrap; gap:6px 12px; list-style:none; margin:0; padding:0; }
.at-leg li{ display:inline-flex; align-items:center; gap:5px; }
.at-note{ margin:8px 0 0; color:var(--muted); }
.at-note:empty{ display:none; }
.at-tip{ position:absolute; z-index:6; pointer-events:none; max-width:280px; background:var(--surface); color:var(--ink); border:1px solid var(--line-2); border-radius:8px; box-shadow:var(--shadow); padding:9px 11px; font-size:.82rem; line-height:1.45; }
.at-tip > b:first-child{ display:block; font-size:.9rem; margin:0 0 2px; }
.at-tip b{ font-weight:750; font-variant-numeric:tabular-nums; }
.at-tn{ color:var(--muted); font-size:.76rem; margin-top:4px; }
.at-dot{ display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; background:var(--at-c, var(--ink)); }
.at-refd{ background:var(--muted); } .at-bandd{ background:var(--at-band); border:1px solid var(--line-2); border-radius:2px; }
.at-side{ min-width:0; }
.at-side h3{ font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 8px; font-weight:800; }
.at-kpi{ margin:0 0 18px; border:1.5px solid var(--line); border-radius:var(--r-card); overflow:hidden; }
.at-kpi div{ padding:9px 12px; border-top:1px solid var(--line); }
.at-kpi div:first-child{ border-top:0; }
.at-kpi dt{ font-size:.74rem; color:var(--muted); font-weight:700; }
.at-kpi dd{ margin:1px 0 0; font-size:1.3rem; font-weight:800; font-variant-numeric:tabular-nums; font-stretch:84%; line-height:1.2; }
.at-kpi dd span{ display:block; font-size:.74rem; font-weight:600; color:var(--muted); font-stretch:100%; margin-top:1px; }
.at-rq{ margin:-4px 0 6px; }
.at-rank{ list-style:none; margin:0; padding:0; }
.at-rank li{ margin:0; }
.at-rank button{ display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:3px 8px; align-items:baseline; width:100%; border:0; background:transparent; color:inherit; font:inherit; font-size:.86rem; text-align:left; padding:5px 6px; border-radius:6px; cursor:pointer; }
.at-rank button:hover{ background:var(--surface-2); }
.at-rank button[aria-pressed="true"]{ background:var(--navy-bg); }
.at-rn{ color:var(--muted); font-variant-numeric:tabular-nums; font-size:.76rem; text-align:right; }
.at-rl{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:650; }
.at-rv{ font-variant-numeric:tabular-nums; font-weight:750; white-space:nowrap; }
.at-rb{ grid-column:2 / 4; height:4px; background:var(--line); border-radius:2px; overflow:hidden; }
.at-rb i{ display:block; height:100%; background:var(--at-c, var(--at-b3)); border-radius:2px; }
.at-trend{ margin:20px 0 0; padding:16px 0 0; border-top:1.5px solid var(--line); }
.at-th{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin:0 0 8px; }
.at-th h3{ margin:0; font-size:1.02rem; }
.at-pins{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.at-pins > span{ display:contents; }
.at-pinb{ display:inline-flex; align-items:center; gap:6px; border:1.5px solid var(--line-2); background:var(--surface); color:var(--ink); border-radius:999px; font:inherit; font-size:.8rem; font-weight:700; padding:4px 10px; cursor:pointer; }
.at-pinb:hover{ border-color:var(--ink); }
.at-pinb i{ width:10px; height:10px; border-radius:50%; background:var(--at-c); flex:0 0 auto; }
.at-refl{ display:inline-flex; align-items:center; gap:6px; font-size:.8rem; color:var(--muted); font-weight:650; padding:0 4px; }
.at-refl i{ display:inline-block; width:18px; height:0; border-top:2px dashed var(--muted); }
.at-add{ font:inherit; font-size:.8rem; font-weight:700; padding:5px 8px; border:1.5px dashed var(--line-2); border-radius:999px; background:var(--surface); color:var(--ink); max-width:170px; cursor:pointer; }
.at-cw{ position:relative; }
.at-chart, .at-ssr svg{ display:block; width:100%; height:auto; overflow:visible; }
.at-ax{ font:600 11px var(--font); fill:var(--muted); font-variant-numeric:tabular-nums; }
.at-gl{ stroke:var(--line); stroke-width:1; shape-rendering:crispEdges; } .at-zero{ stroke:var(--line-2); stroke-width:1.5; }
.at-ln{ fill:none; stroke:var(--at-c, var(--ink)); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; }
.at-ref{ fill:none; stroke:var(--muted); stroke-width:1.6; stroke-dasharray:5 4; }
.at-band{ fill:var(--at-band); stroke:none; }
.at-pt{ stroke:var(--surface); stroke-width:2; }
.at-el{ font:700 11.5px var(--font); fill:var(--ink); paint-order:stroke; stroke:var(--surface); stroke-width:3px; stroke-linejoin:round; }
.at-ld{ stroke:var(--at-c, var(--ink)); stroke-width:1.3; }
.at-now{ stroke:var(--ink); stroke-width:1; opacity:.4; stroke-dasharray:2 3; }
.at-cross{ stroke:var(--ink); stroke-width:1; opacity:.65; }
.at-hit{ cursor:crosshair; }
.at-hint{ margin:6px 0 0; }
.at-tools{ display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 0; }
.at-tools .btn{ text-decoration:none; }
.at-live{ min-height:1.2em; font-size:.8rem; color:var(--muted); margin:6px 0 0; }
.at-live:empty{ display:none; }
.at-cite, .at-citebox{ margin:12px 0 0; padding:14px 16px; border:1.5px solid var(--line); border-radius:var(--r-card); background:var(--surface-2); }
.at-cite p, .at-citebox p{ margin:0 0 6px; max-width:none; }
.at-citet{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:.8rem; line-height:1.5; overflow-wrap:anywhere; user-select:all; background:var(--surface); border:1px solid var(--line); border-radius:6px; padding:8px 10px; }
.at-tablew{ margin:12px 0 0; }
.at-tablew .tablewrap{ max-height:560px; overflow:auto; }
.at-t caption, .at-cap{ caption-side:top; text-align:left; font-size:.8rem; color:var(--muted); padding:10px 14px 0; }
.at-t th button{ cursor:pointer; font-weight:inherit; }
.at-t th button[aria-pressed="true"]{ color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.at-t th[scope="row"], .at-page table.data th[scope="row"]{ text-transform:none; letter-spacing:0; font-size:inherit; color:inherit; font-weight:650; position:static; border-bottom:1px solid var(--line); white-space:normal; }

/* ---------- strony ---------- */
.at-page .at-lead2{ max-width:78ch; }
.at-cards{ display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; margin:14px 0 0; }
.at-card{ display:flex; flex-direction:column; gap:6px; border:1.5px solid var(--line); border-radius:var(--r-card); background:var(--surface); padding:16px 18px; color:inherit; text-decoration:none; }
a.at-card:hover{ border-color:var(--ink); }
.at-card b{ font-size:1.05rem; }
.at-card span{ font-size:.88rem; color:var(--ink-2); }
.at-card em{ font-style:normal; font-weight:750; font-size:.84rem; margin-top:auto; padding-top:4px; text-decoration:underline; text-underline-offset:3px; }
.at-idx{ columns:3 230px; column-gap:28px; list-style:none; margin:0 0 20px; padding:0; }
.at-idx li{ break-inside:avoid; margin:0 0 7px; line-height:1.35; }
.at-idx a{ font-weight:650; }
.at-page h3.at-g{ font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:22px 0 10px; font-weight:800; }
.at-eq{ display:flex; flex-wrap:wrap; align-items:stretch; gap:10px; margin:14px 0; }
.at-eq div{ flex:1 1 150px; border:1.5px solid var(--line); border-radius:var(--r-card); background:var(--surface); padding:12px 14px; }
.at-eq div b{ display:block; font-size:1.6rem; font-weight:800; font-stretch:84%; font-variant-numeric:tabular-nums; line-height:1.15; }
.at-eq div span{ font-size:.8rem; color:var(--muted); font-weight:650; }
.at-eq > i{ align-self:center; font-style:normal; font-size:1.5rem; font-weight:700; color:var(--muted); }
.at-ssr{ margin:14px 0 0; background:var(--surface); border:1.5px solid var(--line); border-radius:var(--r-card); padding:16px 18px 12px; }
.at-ssr figcaption{ font-weight:750; margin:0 0 8px; }
.at-lg{ display:flex; flex-wrap:wrap; gap:6px 16px; list-style:none; margin:8px 0 0; padding:0; font-size:.8rem; color:var(--ink-2); font-weight:650; }
.at-lg li{ display:inline-flex; align-items:center; gap:6px; }
.at-lg i{ display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--at-c, var(--ink)); }
.at-lg i.at-lr{ width:18px; height:0; border-radius:0; background:none; border-top:2px dashed var(--muted); }
.at-lg i.at-lb{ width:16px; height:10px; border-radius:2px; background:var(--at-band); border:1px solid var(--line-2); }
.at-two{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:22px 28px; }
.at-two h3{ margin:0 0 8px; font-size:1rem; }
.at-two ol{ margin:0; padding-left:1.4em; }
.at-two li{ margin:0 0 5px; }
.at-more summary{ cursor:pointer; font-weight:750; margin:12px 0; }
@media (max-width:980px){
  .at-grid{ display:flex; flex-direction:column; align-items:stretch; gap:18px; }
  .at-main{ display:contents; }
  .at-map{ order:1; } .at-side{ order:2; } .at-trend{ order:3; margin:0; }
  .at-side{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:18px; align-items:start; }
  .at-kpi{ margin:0; }
  .at:not(.at-on):not(.at-fail){ min-height:1450px; }
}
@media (max-width:640px){
  .at{ padding:14px 12px; border-radius:var(--r-card); margin-inline:-6px; }
  .at-f select{ min-width:0; width:100%; } .at-f{ flex:1 1 100%; }
  .at-seg{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-radius:14px; width:100%; }
  .at-seg button{ border-radius:10px; padding:8px 4px; font-size:.78rem; }
  .at-year{ flex-wrap:wrap; padding:10px 12px; gap:8px 10px; }
  .at-year output{ order:1; font-size:1.7rem; flex:1 1 auto; }
  .at-year .at-ib[data-step="-1"]{ order:2; } .at-year .at-ib[data-step="1"]{ order:3; } .at-play{ order:4; }
  .at-year input[type=range]{ order:5; flex:1 1 100%; }
  .at-zoom{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; margin-inline:-12px; padding-inline:12px; }
  .at-pop{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px; }
  .at-pop::-webkit-scrollbar{ display:none; }
  .at-pop .chip{ flex:0 0 auto; white-space:nowrap; }
  .at-zoom::-webkit-scrollbar{ display:none; }
  .at-zoom .chip{ flex:0 0 auto; }
  .at-side{ grid-template-columns:minmax(0,1fr); }
  .at-kpi{ display:grid; grid-template-columns:1fr 1fr; }
  .at-kpi div{ border-top:0; border-bottom:1px solid var(--line); }
  .at-kpi dd{ font-size:1.1rem; }
  .at-kpi div:last-child:nth-child(odd){ grid-column:1 / -1; }
  .at-kpi div:last-child, .at-kpi div:nth-last-child(2):nth-child(odd){ border-bottom:0; }
  .at:not(.at-on):not(.at-fail){ min-height:1800px; }
  .at-th{ flex-direction:column; align-items:flex-start; }
  .at-tools .btn{ flex:1 1 46%; white-space:normal; text-align:center; }
  .at-ssr{ padding:12px 12px 10px; }
  .at-eq > i{ flex:1 1 100%; text-align:center; line-height:.6; }
}
@media (prefers-reduced-motion: reduce){ .at-svg path, .at-svg circle{ transition:none; } }
@media print{ .at-year, .at-zoom, .at-tools, .at-add, .at-hint, .at-seg{ display:none !important; } }
