/* 도로 유입 강도 색띠 범례 — 지도 우측에 세로로 세운다(B04 2D 지도 · B05 배수유역도 공용). */ .ui-flow-legend { position: absolute; z-index: 5; top: 50%; right: var(--spacing-12); display: flex; align-items: stretch; padding: var(--spacing-8); border: 1px solid var(--color-border); border-radius: var(--radius-cards); /* 위성사진 위에서도 눈금이 읽히도록 반투명 배경 + 블러를 깐다. */ background: color-mix(in srgb, var(--color-surface-raised) 82%, transparent); backdrop-filter: blur(3px); gap: var(--spacing-8); pointer-events: none; transform: translateY(-50%); } .ui-flow-legend[hidden] { display: none; } /* 색띠 자체 — 아래가 적음(파랑), 위가 많음(빨강). */ .ui-flow-legend__bar { width: 12px; height: 140px; flex: 0 0 auto; border: 1px solid var(--color-border); border-radius: 3px; } .ui-flow-legend__ticks { display: flex; flex-direction: column; justify-content: space-between; color: var(--color-text-body); font-size: 10px; line-height: 1; white-space: nowrap; } .ui-flow-legend__title { color: var(--color-text-body); font-size: 10px; font-weight: 600; /* 세로 막대 옆에 세로쓰기로 붙여 폭을 아낀다. */ writing-mode: vertical-rl; text-orientation: mixed; } /* 범례(552-3) — 색 칩 · 선 · 점선 · 점 · 꺼짐 */ .ui-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-4) var(--spacing-12); color: var(--color-text-secondary); font-size: var(--text-caption); } .ui-legend--vertical { flex-direction: column; align-items: flex-start; } .ui-legend__item { display: inline-flex; align-items: center; gap: var(--spacing-4); padding: 0; border: 0; background: none; color: inherit; font: inherit; white-space: nowrap; } button.ui-legend__item { cursor: pointer; } button.ui-legend__item:is(:hover, [data-state="hover"]) { color: var(--color-text); } .ui-legend__item:is(.is-off, [data-state="off"]) { opacity: 0.45; text-decoration: line-through; } .ui-legend__mark { flex: none; width: 14px; height: 10px; border-radius: 2px; background: var(--legend-color); } .ui-legend__mark--line, .ui-legend__mark--dash { height: 0; border-radius: 0; background: none; border-top: 2px solid var(--legend-color); } .ui-legend__mark--dash { border-top-style: dashed; } .ui-legend__mark--dot { width: 8px; height: 8px; border-radius: 50%; }