/* Kümesiniz / Ahırınız (livestockyourbarn) · page style (Faz 2 plan §5.1, §13.6 T1): port of the prototype's
   kumesiniz.css, loaded after livestock-tools.css. Classes open with kv-. The livestock accent (--ls-acc) marks the
   programme's artificial light only; daylight #5f8a7a, light in the dark period and hot days #f0a46a, very hot
   #ff6f5a; the lemon marks the selected month and day, "now" and the programme line. */

.kv-pencere, .kv-hero, .kv-bolum { --kv-gun: #5f8a7a; --kv-alaca: #34504a; --kv-iz: #10231c; --kv-sizan: #f0a46a; --kv-s0: rgba(207, 230, 218, 0.34); --kv-s1: #f0a46a; --kv-s2: #ff6f5a; }

/* ---------- Hero: kısa; sağda aracın dört adımı ---------- */
.kv-hero { padding-bottom: clamp(48px, 5vw, 72px); }
@media (min-width: 901px) { .kv-hero.has-media .ph-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); } }
.kv-hero .ph-copy .lead { max-width: 60ch; }
.kv-hero h1 { max-width: 24ch; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.kv-adimlar { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; border-radius: 20px; background: linear-gradient(180deg, rgba(19, 41, 33, 0.7), rgba(10, 24, 19, 0.85)); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: var(--shadow-lg); }
.kv-adimlar li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 14px 14px 10px; border-radius: 14px; }
.kv-adimlar li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); border-radius: 0 0 14px 14px; }
.kv-no { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(66, 211, 156, 0.1); box-shadow: inset 0 0 0 1px rgba(66, 211, 156, 0.28); font: 700 0.86rem/1 var(--mono); color: var(--brand-mint); }
.kv-adimlar li:last-child .kv-no { background: rgba(240, 164, 106, 0.12); box-shadow: inset 0 0 0 1px rgba(240, 164, 106, 0.4); color: #f6c39a; }
.kv-adimlar b { display: block; font-size: 1rem; font-weight: 750; color: #fff; }
.kv-adimlar div span { display: block; margin-top: 3px; font-size: 0.86rem; line-height: 1.45; color: #b3c3bb; }

/* ---------- Araç bölümü ---------- */
.kv-bolum { padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(56px, 6vw, 88px); }
.kv-pencere .aw-body { padding: 20px; }
@media (min-width: 901px) { .kv-duzen { grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.36fr); } }
.kv-genis { margin-top: 18px; }

/* Üretim seçimi: dört kart (radyo grubu) */
.kv-uretimler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kv-uretim { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; min-width: 0; padding: 11px 12px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.03); color: #dbe7e1; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.kv-uretim:hover { border-color: rgba(255, 255, 255, 0.28); }
.kv-uretim[aria-checked='true'] { border-color: rgba(216, 243, 106, 0.7); background: linear-gradient(180deg, rgba(216, 243, 106, 0.09), rgba(216, 243, 106, 0.02)); box-shadow: 0 0 0 1px rgba(216, 243, 106, 0.25); }
.kv-uretim:focus-visible { outline: 2px solid var(--ls-lemon); outline-offset: 2px; }
.kv-mini { grid-row: 1 / 3; width: 34px; height: 34px; }
.kv-mini-iz { fill: none; stroke: var(--kv-iz); stroke-width: 5; }
.kv-mini-isik { fill: none; stroke: var(--ls-acc); stroke-width: 5; }
.kv-u-ad { font-size: 0.9rem; font-weight: 750; line-height: 1.25; color: #fff; }
.kv-u-evre { font-size: 0.74rem; line-height: 1.3; color: #a9bbb3; }
.kv-u-prog { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.76rem; font-weight: 700; color: #eef4f0; font-variant-numeric: tabular-nums; }
.kv-uretim[aria-checked='true'] .kv-u-prog { color: var(--ls-lemon); }

.kv-ayar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 22px; align-items: end; margin-top: 16px; }
.kv-ayar-k { margin: 0 0 8px; font-size: 0.84rem; font-weight: 650; color: #eef4f0; }
.kv-pill { display: flex; width: max-content; max-width: 100%; }
.kv-pill button { height: auto; min-height: 36px; padding: 6px 14px; line-height: 1.25; }
.kv-kaydirac output { color: var(--ls-lemon); }

/* Sonuç kartları: beş kart */
.kv-kartlar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kv-kartlar .ar-kart dd:not(.ar-alt) { font-size: clamp(1.15rem, 1.6vw, 1.42rem); }
.kv-kartlar .ar-kart.is-ana dd:not(.ar-alt) { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.kv-pencere .ar-harita .wm-svg { max-height: 340px; }

/* Seçilen gün: 24 saatlik halka ve denetim satırları */
.kv-gun { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: center; }
.kv-halka { position: relative; margin: 0; width: 100%; max-width: 236px; aspect-ratio: 1; }
.kv-halka > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kv-halka-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; }
.kv-halka-c b { font-size: 1.55rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.kv-halka-c small { margin-top: 4px; font-size: 0.68rem; line-height: 1.3; color: #a9bbb3; }
.kv-pencere .chart .kv-iz { fill: none; stroke: var(--kv-iz); }
.kv-pencere .chart .kv-yay { fill: none; stroke-linecap: butt; }
.kv-pencere .chart .kv-alaca { stroke: var(--kv-alaca); stroke-width: 7; }
.kv-pencere .chart .kv-gunes { stroke: var(--kv-gun); stroke-width: 7; }
.kv-pencere .chart .kv-p-dogal { stroke: var(--kv-gun); stroke-width: 20; }
.kv-pencere .chart .kv-p-yapay { stroke: var(--ls-acc); stroke-width: 20; }
.kv-pencere .chart .kv-p-sizan { stroke: var(--kv-sizan); stroke-width: 20; stroke-dasharray: 1.6 2.4; }
@media (prefers-reduced-motion: no-preference) { .kv-halka > svg .kv-yay { animation: kv-gel var(--dur-3) var(--ease) both; } }
@keyframes kv-gel { from { opacity: 0; } }

.kv-satirlar { margin: 0; display: grid; }
.kv-satirlar > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.kv-satirlar > div:first-child { padding-top: 0; }
.kv-satirlar > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-satirlar dt { grid-column: 1; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa59c; }
.kv-satirlar dd { grid-column: 1; margin: 4px 0 0; font-size: 0.88rem; line-height: 1.45; color: #dbe7e1; }
.kv-satirlar dd.kv-et { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.kv-uyari { color: #f6b48a; font-weight: 700; }
.kv-iyi { color: var(--brand-mint); font-weight: 700; }
.kv-lejant { margin-top: 14px; }
.kv-pencere .legend .k.kv-k-sizan::before { background: repeating-linear-gradient(90deg, var(--kv-sizan) 0 1.5px, transparent 1.5px 3.5px); }
.kv-pencere .legend .k.kv-k-alaca::before { background: var(--kv-alaca); }
.kv-pencere .legend .k.kv-k-gunuz::before { width: 8px; height: 8px; border-radius: 50%; background: #eef4f0; box-shadow: 0 0 0 2px #0a1813; }
.kv-isaret-not { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.5; color: #8fa59c; }
.kv-bugun { min-height: 26px; padding: 0 10px; font-size: 0.74rem; }

/* Yıl boyunca ve 15 gün: KPI satırı, grafik kutusu */
.kv-kpis { margin: 2px 0 14px; }
.kv-kpis dd small { margin-left: 5px; }
.kv-kpis dd.kv-kp-alt { margin-top: 4px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: #8fa59c; white-space: normal; }
.kv-grafik { position: relative; width: 100%; min-width: 0; }
.kv-grafik svg { display: block; width: 100%; height: auto; }
.kv-alt-satir { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 6px; }
.kv-alt-satir .legend { flex: 1 1 520px; margin: 0; }
.kv-tablo-ac { min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--brand-mint); font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer; }
.kv-tablo-ac:hover { color: #fff; }
.kv-tablo-ac:focus-visible { outline: 2px solid var(--ls-lemon); outline-offset: 2px; border-radius: 4px; }
#ls-yb-year-table { margin-top: 12px; }

.kv-pencere .chart .kv-hit { fill: transparent; }
.kv-pencere .chart .kv-r-dogal { fill: var(--kv-gun); }
.kv-pencere .chart .kv-r-yapay { fill: var(--ls-acc); }
.kv-pencere .chart .kv-r-sizan { fill: url(#kv-tarama); stroke: rgba(240, 164, 106, 0.7); stroke-width: 1; }
.kv-pencere .chart .kv-yil-v { font-size: 11px; }
.kv-pencere .chart .kv-gunuz { fill: none; stroke: rgba(238, 244, 240, 0.7); stroke-width: 1.4; stroke-linejoin: round; }
.kv-pencere .chart .kv-gunuz-n { fill: #eef4f0; stroke: #0a1813; stroke-width: 2; }
.kv-pencere .chart .kv-tgt-l { fill: var(--ls-lemon); font-size: 11px; font-weight: 750; }
.kv-pencere .chart :is(.kv-ay, .kv-g) { cursor: pointer; outline: none; }
.kv-pencere .chart :is(.kv-ay, .kv-g):hover .kv-hit { fill: rgba(255, 255, 255, 0.03); }
.kv-pencere .chart :is(.kv-ay, .kv-g):focus-visible :is(.sel, .kv-hit) { stroke: var(--ls-lemon); stroke-width: 1.5; }
.kv-pencere .chart :is(.kv-ay, .kv-g).is-sec :is(.kv-ay-l, .kv-t-g, .kv-t-a) { fill: var(--ls-lemon); font-weight: 700; }

/* 15 gün */
.kv-tahmin-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 16px; }
.kv-tahmin-bilgi { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 0.8rem; color: #a9bbb3; }
.kv-tahmin-bilgi span:first-child { color: #fff; font-weight: 700; }
.kv-tahmin-bos { margin: 0; padding: 14px 0 4px; font-size: 0.9rem; color: #b3c3bb; }
.kv-pencere .chart .kv-s0 { fill: var(--kv-s0); }
.kv-pencere .chart .kv-s1 { fill: var(--kv-s1); }
.kv-pencere .chart .kv-s2 { fill: var(--kv-s2); }
.kv-pencere .chart .kv-t-v { font-size: 11px; }
.kv-pencere .legend .k.kv-k-s0::before { background: var(--kv-s0); }
.kv-pencere .legend .k.kv-k-s1::before { background: var(--kv-s1); }
.kv-pencere .legend .k.kv-k-s2::before { background: var(--kv-s2); }

.kv-detay { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.kv-detay-ust { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.kv-detay-baslik { margin: 0; font-size: 1.05rem; font-weight: 750; color: #fff; }
.kv-detay-deger { margin: 4px 0 0; font-size: 0.86rem; color: #b3c3bb; }
.kv-detay-deger b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv-sev { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.02em; white-space: nowrap; }
.kv-sev::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kv-sev-0 { color: #cfe3d9; background: rgba(207, 230, 218, 0.08); border: 1px solid rgba(207, 230, 218, 0.24); }
.kv-sev-1 { color: #f6b48a; background: rgba(240, 164, 106, 0.1); border: 1px solid rgba(240, 164, 106, 0.45); }
.kv-sev-2 { color: #ff9d8a; background: rgba(255, 111, 90, 0.12); border: 1px solid rgba(255, 111, 90, 0.55); }
.kv-detay-ic { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; align-items: start; }
.kv-detay-ic .legend { margin-top: 8px; }
.kv-pencere .chart .kv-gun-cizgi { stroke: rgba(238, 244, 240, 0.28); stroke-width: 1; stroke-dasharray: 2 3; }
.kv-pencere .chart .kv-iz-r { fill: var(--ls-dark-track); }
.kv-pencere .legend .k.kv-k-iz::before { background: var(--ls-dark-track); }
.kv-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kv-liste li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; line-height: 1.5; color: #dbe7e1; }
.kv-liste li:first-child { padding-top: 0; }
.kv-liste .ar-rozet { margin-top: 1px; }
.kv-hekim { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(66, 211, 156, 0.07); border: 1px solid rgba(66, 211, 156, 0.26); font-size: 0.86rem; line-height: 1.5; color: #dbe7e1; }
.kv-hekim svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--brand-mint); }

/* ---------- Sonuçlar ve kanıt etiketleri (açık zemin) ---------- */
.kv-etiket-tablo th[scope='row'] { width: 150px; }

/* ---------- Kırılımlar ---------- */
@media (max-width: 1180px) {
  .kv-uretimler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv-kartlar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kv-detay-ic { grid-template-columns: minmax(0, 1fr); }
  /* tek sütunda sıra: konum, program, kartlar, gün, harita */
  .kv-duzen > .ar-yigin { display: contents; }
  .kv-duzen .ar-giris { order: 1; }
  .kv-duzen .kv-program { order: 2; }
  .kv-duzen .kv-kartlar { order: 3; }
  .kv-duzen .kv-gun-blok { order: 4; }
  .kv-duzen .kv-harita-blok { order: 5; }
}
@media (max-width: 640px) {
  .kv-pencere .aw-body { padding: 14px; }
  .kv-ayar { grid-template-columns: minmax(0, 1fr); }
  .kv-pill { width: 100%; }
  .kv-pill button { flex: 1 1 0; white-space: normal; }
  .kv-kartlar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv-kartlar .ar-kart.is-ana { grid-column: 1 / -1; }
  .kv-gun { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .kv-satirlar { width: 100%; }
  .kv-kpis { --n: 1 !important; grid-template-columns: 1fr; gap: 12px; }
  .kv-kpis > div { padding: 0 0 12px; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .kv-kpis > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .kv-kpis dd small { display: inline; margin: 0 0 0 5px; font-size: 0.5em; }
  .kv-adimlar li { grid-template-columns: 44px minmax(0, 1fr); padding: 12px 10px; }
  .kv-no { width: 38px; height: 38px; }
  .kv-etiket-tablo th[scope='row'] { width: auto; }
}
@media (max-width: 420px) {
  .kv-uretim { padding: 10px; column-gap: 8px; grid-template-columns: 28px minmax(0, 1fr); }
  .kv-mini { width: 28px; height: 28px; }
  .kv-u-ad { font-size: 0.84rem; }
}


/* ---------- Live page parts (results cards, evidence table, ring marks) ---------- */
.kv-pencere .chart .hv-edge { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.kv-pencere .chart .hv-tick { stroke: #8fa59c; stroke-width: 1.2; }
.kv-pencere .chart .hv-hr { fill: #8fa59c; font-size: 10.5px; font-weight: 650; }
.kv-pencere .chart .hv-cap { fill: #a9bbb3; font-size: 11px; font-weight: 650; }
.kv-pencere .chart .hv-now line { stroke: var(--ls-lemon); stroke-width: 2; stroke-linecap: round; }
.kv-pencere .chart .hv-now circle { fill: var(--ls-lemon); stroke: #0a1813; stroke-width: 2; }
.kv-pencere .legend .k.kv-k-gun::before { background: var(--kv-gun); }
.kv-pencere .legend .k.kv-k-yapay::before { background: var(--ls-acc); }
.kv-pencere .legend .k.kv-k-simdi::before { height: 2px; border-radius: 1px; width: 14px; background: var(--ls-lemon); }
.kv-pencere .legend .k.kv-k-program::before { height: 0; width: 14px; border-top: 1.5px dashed var(--ls-lemon); background: none; }
.kv-pencere .ar-harita-alt span:last-child { color: var(--ar-yazi-3); }
.kv-tahmin-ic[hidden], .kv-detay[hidden] { display: none; }
.kv-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.kv-results > li { display: flex; flex-direction: column; padding: 22px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.kv-results > li > p { flex: 1 1 auto; margin: 8px 0 0; color: var(--fg-2); line-height: 1.6; }
.kv-results .kv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.kv-vet { margin: 18px 0 0; color: var(--fg-2); }
.kv-recipe { margin: 18px 0 0; }
.kv-steps { counter-reset: none; }
