/* Husfarm 4.99.29: Crop calendar (obok atlas.css). Paski 24 polmiesiecy, legenda etapow, mapa etapow.
   Kolory etapow sprawdzone narzedziem validate_palette (wszystkie pary): jasny #00b894 #1d6fd6 #f2a600 #c2410c, ciemny #00a888 #338ced #d28e05 #c2410c.
   Etap nie jest oznaczony samym kolorem: kazdy odcinek ma litere (P, G, R, H), a pod spodem jest tabela dat. */
:root{ --cc-s1:#00b894; --cc-s2:#1d6fd6; --cc-s3:#f2a600; --cc-s4:#c2410c; --cc-t1:#0c2340; --cc-t2:#ffffff; --cc-t3:#0c2340; --cc-t4:#ffffff; --cc-s0:#e9edf3; --cc-m0:#c5cedd; --cc-grid:rgba(32,55,102,.14); }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --cc-s1:#00a888; --cc-s2:#338ced; --cc-s3:#d28e05; --cc-s4:#c2410c; --cc-t1:#0b1730; --cc-t2:#0b1730; --cc-t3:#0b1730; --cc-t4:#ffffff; --cc-s0:#22335a; --cc-m0:#3d4f78; --cc-grid:rgba(238,242,250,.16); } }
:root[data-theme="dark"]{ --cc-s1:#00a888; --cc-s2:#338ced; --cc-s3:#d28e05; --cc-s4:#c2410c; --cc-t1:#0b1730; --cc-t2:#0b1730; --cc-t3:#0b1730; --cc-t4:#ffffff; --cc-s0:#22335a; --cc-m0:#3d4f78; --cc-grid:rgba(238,242,250,.16); }

.cc-s1{ background:var(--cc-s1); color:var(--cc-t1); } .cc-s2{ background:var(--cc-s2); color:var(--cc-t2); } .cc-s3{ background:var(--cc-s3); color:var(--cc-t3); } .cc-s4{ background:var(--cc-s4); color:var(--cc-t4); } .cc-s0{ background:var(--cc-s0); }

/* ---------- pasek kalendarza ---------- */
.cc-gantt{ --cc-lab:250px; --cc-gap:14px; --cc-now:0; margin:14px 0 0; }
.cc-head, .cc-row{ display:grid; grid-template-columns:var(--cc-lab) minmax(0,1fr); column-gap:var(--cc-gap); align-items:center; }
.cc-head{ position:sticky; top:var(--cc-top, 68px); z-index:4; background:var(--bg); padding-top:6px; }
.cc-months{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); font-size:.72rem; font-weight:750; color:var(--muted); }
.cc-months i{ font-style:normal; padding:0 0 5px 4px; border-left:1px solid var(--cc-grid); white-space:nowrap; overflow:hidden; }
.cc-rows{ list-style:none; margin:0 0 6px; padding:0; position:relative; }
.cc-rows > li{ border-top:1px solid var(--line); }
.cc-rows > li:last-child{ border-bottom:1px solid var(--line); }
.cc-row{ padding:6px 0; min-height:38px; }
.cc-lab{ font-size:.9rem; line-height:1.25; min-width:0; overflow-wrap:anywhere; }
.cc-lab a{ font-weight:700; }
.cc-sn{ color:var(--ink-2); font-size:.84rem; }
.cc-rg{ display:block; margin-top:2px; line-height:1.3; }
.cc-same{ color:var(--ink-2); font-weight:650; }
.cc-sub{ font-size:.8rem; color:var(--ink-2); padding-left:14px; display:block; }
.cc-strip{ display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); height:24px; border-radius:6px; background:repeating-linear-gradient(to right, var(--cc-grid) 0 1px, transparent 1px calc(100% / 12)), var(--cc-s0); }
.cc-strip i{ font-style:normal; font-size:.68rem; font-weight:800; line-height:24px; text-align:center; overflow:hidden; border-radius:4px; margin:0 1px; cursor:default; }
.cc-gantt.cc-hasnow .cc-rows::after{ content:""; position:absolute; top:0; bottom:0; width:2px; margin-left:-1px; background:var(--ink); opacity:.6; pointer-events:none; left:calc(var(--cc-lab) + var(--cc-gap) + (100% - var(--cc-lab) - var(--cc-gap)) * var(--cc-now)); }
.cc-more{ margin:0 0 6px; }
.cc-more summary{ cursor:pointer; font-size:.78rem; color:var(--muted); font-weight:750; margin-left:calc(var(--cc-lab) + var(--cc-gap)); padding:0 0 4px; width:fit-content; }
.cc-more .cc-row{ padding:4px 0; min-height:30px; }
.cc-legend{ display:flex; flex-wrap:wrap; gap:6px 16px; margin:12px 0 0; color:var(--ink-2); }
.cc-lg{ display:inline-flex; align-items:center; gap:6px; }
.cc-lg i{ font-style:normal; display:inline-block; min-width:18px; height:18px; border-radius:4px; font-size:.66rem; font-weight:800; line-height:18px; text-align:center; }
.cc-lg i.cc-nowi{ min-width:2px; width:2px; border-radius:0; background:var(--ink); opacity:.6; }
.cc-lgnow[hidden]{ display:none; }
.cc-now{ border:1.5px solid var(--line); border-radius:var(--r-card); background:var(--surface); padding:12px 16px; margin:22px 0 0; line-height:1.7; min-height:calc(1.7em * var(--cc-nl, 1) + 1.43em + 27px); box-sizing:border-box; display:flex; flex-direction:column; justify-content:center; }
.cc-noww{ display:block; }
.cc-nowh{ display:block; font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:800; }
.cc-nowp{ margin-right:10px; }
.cc-nowp i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:5px; }
.cc-dt td, .cc-dt th{ white-space:nowrap; } .cc-dt td:nth-child(2), .cc-dt th:nth-child(1){ white-space:normal; min-width:150px; }
.cc-mt td{ min-width:170px; line-height:1.5; vertical-align:top; } .cc-mt th[scope=row]{ white-space:nowrap; vertical-align:top; }

/* ---------- mapa etapow ---------- */
.cc .at-f[hidden], .cc .at-zoom .chip[hidden], .cc .at-bar[hidden]{ display:none; }
.at.cc:not(.at-on):not(.at-fail){ min-height:900px; }
.at.cc.at-loading::before{ content:'Loading the calendar map…'; }
.at.cc.at-loading .at-fb{ display:none; }
.at-svg .cc-m1{ fill:var(--cc-s1); } .at-svg .cc-m2{ fill:var(--cc-s2); } .at-svg .cc-m3{ fill:var(--cc-s3); } .at-svg .cc-m4{ fill:var(--cc-s4); } .at-svg .cc-m0{ fill:var(--cc-m0); }
.at-sw.cc-m1{ background:var(--cc-s1); } .at-sw.cc-m2{ background:var(--cc-s2); } .at-sw.cc-m3{ background:var(--cc-s3); } .at-sw.cc-m4{ background:var(--cc-s4); } .at-sw.cc-m0{ background:var(--cc-m0); }
.cc-time output{ font-size:1.2rem; min-width:15.5ch; line-height:1.15; }
.cc-sl{ flex:1 1 auto; min-width:0; }
.cc-sl input[type=range]{ display:block; width:100%; }
.cc-ticks{ position:relative; height:15px; font-size:.66rem; font-weight:700; color:var(--muted); margin:-2px 11px 0; }
.cc-ticks i{ position:absolute; top:0; font-style:normal; border-left:1px solid var(--line-2); padding-left:3px; white-space:nowrap; line-height:15px; }
.cc .at-play.cc-today{ min-width:0; }
.cc .at-play:disabled{ opacity:.45; cursor:default; border-color:var(--line-2); }
.cc-lists{ max-height:455px; overflow:auto; border:1.5px solid var(--line); border-radius:var(--r-card); padding:4px 12px; }
.cc-ls{ padding:8px 0; border-top:1px solid var(--line); }
.cc-ls:first-child{ border-top:0; }
.cc .at-side h2{ font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:0 0 8px; font-weight:800; font-stretch:100%; line-height:1.3; }
.cc .at-side .cc-ls h3{ display:flex; align-items:center; gap:6px; margin:0 0 3px; font-size:.82rem; font-weight:800; letter-spacing:0; text-transform:none; color:var(--ink); }
.cc .at-side .cc-ls h3 span{ color:var(--muted); font-weight:700; }
.cc-ls p{ margin:0; font-size:.84rem; line-height:1.55; }

/* wykres roku: liczba krajow w kazdym etapie wg polmiesiecy */
.cc-yr{ margin:18px 0 0; min-width:0; order:1; }
.cc-yr figcaption{ display:flex; flex-direction:column; gap:2px; margin:0 0 8px; }
.cc-yr figcaption b{ font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-weight:800; }
.cc-yrw{ position:relative; }
.cc-yrp{ position:relative; display:grid; grid-template-columns:repeat(24,minmax(0,1fr)); align-items:end; height:122px; padding:0 0 0 26px; border-bottom:1.5px solid var(--line-2); background:linear-gradient(to bottom, var(--line) 0 1px, transparent 1px) 26px 10px / calc(100% - 26px) 100% no-repeat; }
.cc-yry{ position:absolute; left:0; top:2px; bottom:-7px; width:22px; display:flex; flex-direction:column; justify-content:space-between; font-size:.66rem; font-weight:700; color:var(--muted); text-align:right; font-variant-numeric:tabular-nums; }
.cc-yry i{ font-style:normal; line-height:14px; }
.cc-yc{ appearance:none; -webkit-appearance:none; border:0; background:transparent; padding:0 3px; margin:0; height:100%; display:flex; align-items:flex-end; cursor:pointer; border-radius:5px 5px 0 0; min-width:0; }
.cc-yc:hover{ background:var(--surface-2); }
.cc-yc.is-on{ background:var(--surface-2); box-shadow:inset 0 0 0 1.5px var(--ink); }
.cc-ycs{ position:relative; display:block; width:100%; height:112px; pointer-events:none; }
.cc-ycs i{ position:absolute; left:0; right:0; }
.cc-ycs i:last-child{ border-radius:4px 4px 0 0; }
.cc-ycs .cc-m1{ background:var(--cc-s1); } .cc-ycs .cc-m2{ background:var(--cc-s2); } .cc-ycs .cc-m3{ background:var(--cc-s3); } .cc-ycs .cc-m4{ background:var(--cc-s4); }
.cc-yrx{ display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); padding:3px 0 0 26px; font-size:.66rem; font-weight:700; color:var(--muted); }
.cc-yrx i{ font-style:normal; border-left:1px solid var(--line-2); padding-left:3px; white-space:nowrap; overflow:hidden; }
.cc-yrw .at-tip .at-sw{ width:10px; height:10px; border-radius:3px; vertical-align:-1px; }

@media (max-width:980px){
  .at.cc:not(.at-on):not(.at-fail){ min-height:1150px; }
  .cc-lists{ max-height:340px; }
  .cc-now{ min-height:calc(1.7em * var(--cc-nlt, 2) + 1.43em + 27px); }
  .cc-gantt{ --cc-lab:190px; }
}
@media (max-width:640px){
  .cc-gantt{ --cc-lab:0px; --cc-gap:0px; }
  .cc-head, .cc-row{ grid-template-columns:minmax(0,1fr); row-gap:4px; }
  .cc-head > span:first-child{ display:none; }
  .cc-months i{ padding-left:2px; font-size:.64rem; }
  .cc-row{ padding:7px 0; }
  .cc-strip{ height:22px; } .cc-strip i{ line-height:22px; font-size:.62rem; }
  .cc-more summary{ margin-left:0; }
  .at.cc:not(.at-on):not(.at-fail){ min-height:1250px; }
  .cc-time output{ font-size:1.15rem; min-width:0; }
  .at-year .cc-sl{ order:5; flex:1 1 100%; }
  .cc-ticks i:nth-child(even), .cc-yrx i:nth-child(even){ color:transparent; }
  .cc .at-seg{ display:flex; flex-wrap:nowrap; } .cc .at-seg button{ flex:1 1 0; min-width:0; }
  .cc-yr{ margin-top:0; }
  .cc-now{ min-height:calc(1.7em * var(--cc-nlm, 3) + 1.43em + 27px); }
  .cc-dt td:nth-child(2), .cc-dt th:nth-child(1){ min-width:118px; }
  .cc .at-play.cc-today{ order:4; }
}
@media print{ .cc-more:not([open]) > *:not(summary){ display:block; } .cc-time{ display:none !important; } .cc-head{ position:static; } }
@media (forced-colors: active){ .cc-ycs i{ border:1px solid CanvasText; } .cc-yc.is-on{ outline:2px solid Highlight; } }
@media (forced-colors: active){ .cc-strip i{ border:1px solid CanvasText; } }
