/* Eğim haritası (slope-map*.html) sayfa stilleri.
   Önceden js/slope-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ı. */
.slope-overlay{image-rendering:pixelated;image-rendering:crisp-edges;}
.slope-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:.35rem .55rem;font-size:11.5px;line-height:1.25;max-width:190px;}
.slope-legend summary{cursor:pointer;font-weight:700;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:.4rem;padding:.1rem 0;}
.slope-legend summary::-webkit-details-marker{display:none;}
.slope-legend summary::after{content:'+';font-weight:700;color:var(--rds-muted,#64748b);}
.slope-legend[open] summary::after{content:'-';}
.slope-legend ul{list-style:none;margin:.3rem 0 0;padding:0;}
.slope-legend li{display:flex;align-items:center;gap:.4rem;padding:1px 0;white-space:nowrap;}
.slope-legend .sw,.slope-dist .sw{display:inline-block;width:14px;height:12px;border-radius:3px;border:1px solid rgba(0,0,0,.25);flex:0 0 auto;}
.slope-legend .deg{color:var(--rds-muted,#64748b);margin-left:auto;padding-left:.4rem;font-family:var(--rds-font-mono,monospace);}
.slope-legend .note{color:var(--rds-muted,#64748b);font-weight:500;font-size:10.5px;}
.slope-basemap{display:flex;gap:2px;flex-wrap:wrap;}
.slope-basemap .bar-btn{padding:5px 8px;}
.tool-layout > [data-area]{min-width:0;}
.slope-dist-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.slope-dist{width:100%;border-collapse:collapse;font-size:.84rem;min-width:480px;}
.slope-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);}
.slope-dist th:first-child,.slope-dist td:first-child{text-align:left;}
.slope-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);}
.slope-dist td:first-child{font-family:inherit;font-weight:600;white-space:nowrap;}
.slope-dist tfoot td{font-weight:700;border-bottom:0;}
.slope-dist .bar{display:block;height:6px;border-radius:3px;background:var(--rds-soft-line);margin-top:3px;min-width:2px;}
.slope-dist .bar > i{display:block;height:100%;border-radius:3px;background:var(--rds-primary);}
.slope-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);}
.slope-status{font-size:.85rem;font-weight:600;min-height:1.1rem;color:var(--rds-muted);margin-top:.6rem;}
.slope-status.err{color:var(--rds-danger);}
.slope-units{grid-template-columns:1fr 1fr;}
.slope-units .u-val{font-size:.95rem;}
.slope-units .u-wide{grid-column:1 / -1;}
.slope-row{display:flex;flex-wrap:wrap;gap:.4rem;}
.slope-row > *{flex:1 1 auto;min-width:0;}
.slope-row .rds-btn svg{flex:0 0 auto;}
.slope-row > input{flex:1 1 0%;width:1%;}
.slope-range{width:100%;accent-color:var(--rds-primary);}
@media (max-width:639px){.slope-legend{font-size:10.5px;max-width:160px;}.slope-legend .note{display:none;}.slope-basemap{margin-bottom:46px !important;margin-left:8px !important;}.slope-basemap .bar-btn{padding:4px 6px;font-size:11px;}#slopeMap .leaflet-control-attribution{font-size:10px;line-height:1.35;}}
