/* NDVI haritası (ndvi-map*.html) sayfa stilleri.
   Önceden js/ndvi-map.js DOMContentLoaded'da <style> olarak ekliyordu; ilk boyamadan sonra gelince panel düzeni
   kayıyordu (masaüstü CLS). Artık <head>'de statik bağlantı, marka CSS'inden sonra (eski ekleme sırası).
   Kurallar betikteki dizginin birebir aynısı. */
.tool-layout > [data-area]{min-width:0;}
.ndvi-overlay{image-rendering:pixelated;image-rendering:crisp-edges;}
.ndvi-legend{background:var(--rds-surface,#fff);color:var(--rds-text,#0f172a);border:1px solid var(--rds-border,#e2e8f0);border-radius:10px;box-shadow:0 2px 10px rgba(0,0,0,.2);padding:.4rem .6rem;font-size:11.5px;line-height:1.25;width:190px;}
.ndvi-legend summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:.4rem;}
.ndvi-legend summary::-webkit-details-marker{display:none;}
.ndvi-legend summary::after{content:'+';color:var(--rds-muted,#64748b);} .ndvi-legend[open] summary::after{content:'-';}
.ndvi-legend .bar{height:10px;border-radius:3px;margin:.4rem 0 .15rem;border:1px solid rgba(0,0,0,.2);}
.ndvi-legend .ticks{display:flex;justify-content:space-between;font-family:var(--rds-font-mono,monospace);color:var(--rds-muted,#64748b);font-size:10.5px;}
.ndvi-legend .cl{display:flex;align-items:center;gap:.4rem;margin-top:.3rem;color:var(--rds-muted,#64748b);}
.ndvi-sw{display:inline-block;width:14px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.25);flex:0 0 auto;}
.ndvi-basemap{display:flex;gap:2px;flex-wrap:wrap;} .ndvi-basemap .bar-btn{padding:5px 8px;}
.ndvi-status{font-size:.85rem;font-weight:600;min-height:1.1rem;color:var(--rds-muted);margin-top:.6rem;}
.ndvi-status.err{color:var(--rds-danger);}
.ndvi-note{font-size:.8rem;line-height:1.5;border-radius:10px;padding:.55rem .7rem;margin-top:.6rem;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.35);color:var(--rds-text);}
.ndvi-units{grid-template-columns:1fr 1fr 1fr;} .ndvi-units .u-val{font-size:.95rem;} .ndvi-units .u-wide{grid-column:1 / -1;}
@media (max-width:479px){.ndvi-units{grid-template-columns:1fr 1fr;}}
.ndvi-row{display:flex;flex-wrap:wrap;gap:.4rem;} .ndvi-row > *{flex:1 1 auto;min-width:0;} .ndvi-row > input{flex:1 1 0%;width:1%;}
.ndvi-range{width:100%;accent-color:var(--rds-primary);}
.ndvi-dates{display:grid;grid-template-columns:1fr 1fr;gap:.4rem;}
.ndvi-results{display:flex;flex-direction:column;gap:.3rem;margin-top:.45rem;}
.ndvi-results button{text-align:left;font-size:.8rem;line-height:1.35;padding:.45rem .6rem;border-radius:8px;border:1px solid var(--rds-border);background:var(--rds-surface);color:var(--rds-text);cursor:pointer;}
.ndvi-results button:hover,.ndvi-results button:focus-visible{border-color:var(--rds-primary);}
.ndvi-dist-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.ndvi-dist{width:100%;border-collapse:collapse;font-size:.84rem;min-width:460px;}
.ndvi-dist th{font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--rds-muted);font-weight:700;text-align:right;padding:.45rem .4rem;border-bottom:1px solid var(--rds-border);}
.ndvi-dist th:nth-child(-n+2),.ndvi-dist td:nth-child(-n+2){text-align:left;}
.ndvi-dist td{padding:.45rem .4rem;border-bottom:1px solid var(--rds-border);text-align:right;font-family:var(--rds-font-mono);font-variant-numeric:tabular-nums;color:var(--rds-text);}
.ndvi-dist td:nth-child(-n+2){font-family:inherit;} .ndvi-dist td:first-child{white-space:nowrap;font-weight:600;}
.ndvi-dist tfoot td{font-weight:700;border-bottom:0;}
.ndvi-chart-box{position:relative;height:260px;margin-top:.4rem;}
.ndvi-busy{opacity:.6;pointer-events:none;}
@media (max-width:639px){.ndvi-legend{width:150px;font-size:10.5px;} .ndvi-legend .cl{display:none;} .ndvi-basemap{margin-bottom:46px !important;margin-left:8px !important;} .ndvi-basemap .bar-btn{padding:4px 6px;font-size:11px;} #ndviMap .leaflet-control-attribution{font-size:9.5px;line-height:1.3;white-space:normal;}}
