/* Draw-a-Zone — rides on hunch.css. Series: inside #c2571a, outside #1f74a8 (validated pair). */
:root { --zs-in: #c2571a; --zs-out: #1f74a8; --zs-ink: #24361f; --zs-ink2: #5a5f55; --zs-grid: #e8ebe3; --zs-surface: #fff; }

.zs-btn-zone { background: var(--zs-in); border-color: var(--zs-in); }
.zs-maplegend { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.zs-sw { display: inline-block; width: 14px; height: 10px; border-radius: 2px; }
.zs-sw--in { background: var(--zs-in); }
.zs-sw--out { background: var(--zs-out); }
.zs-years { max-width: 140px; }

.zs-info { font-size: .9rem; margin: 2px 0 10px; line-height: 1.45; }
.zs-info:empty { display: none; }
.zs-badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; margin-left: 6px; vertical-align: 1px; }
.zs-badge--good { background: #e3f1e6; color: #1d5e2f; }
.zs-badge--medium { background: #fdf3d8; color: #6d500c; }
.zs-badge--low { background: #fde6dc; color: #8a2d0c; }
.zs-badge--no { background: #f3e1e0; color: #8a1d16; }

.zs-results h2 span { background: #c2861a; }
.zs-head { font-size: 1.15rem; font-weight: 700; color: var(--zs-ink); margin: 4px 0 6px; line-height: 1.35; }
.zs-hero { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.zs-hero b { font-size: 2.1rem; color: var(--zs-ink); font-weight: 800; letter-spacing: -.02em; }
.zs-hero span { color: var(--zs-ink2); font-size: .9rem; }
.zs-warn { background: #fff4ec; border: 1px solid #f1c7ad; border-left: 4px solid #c2571a; border-radius: 8px; padding: 10px 12px; font-size: .9rem; line-height: 1.45; color: #5b2a10; margin: 10px 0; }
.zs-warn b::before { content: "⚠ "; }
.zs-why { margin: 8px 0 12px; padding-left: 18px; font-size: .92rem; line-height: 1.45; color: #333; }
.zs-why li { margin-bottom: 4px; }
.zs-basis { font-size: .84rem; color: var(--zs-ink2); margin: 0 0 10px; }

.zs-tabs { display: flex; gap: 6px; margin: 8px 0 10px; }
.zs-tab { padding: 6px 12px; border-radius: 16px; border: 1px solid #cfd6c8; background: #fff; font: inherit; font-size: .85rem; cursor: pointer; color: var(--zs-ink); }
.zs-tab.is-on { background: var(--zs-ink); color: #fff; border-color: var(--zs-ink); }
.zs-legend { display: flex; gap: 16px; font-size: .84rem; color: var(--zs-ink); margin: 0 0 6px; align-items: center; flex-wrap: wrap; }
.zs-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.zs-chartwrap { position: relative; }
.zs-chart { width: 100%; height: auto; display: block; overflow: visible; }
.zs-chart text { font-family: inherit; }
.zs-tip { position: absolute; pointer-events: none; background: #fff; border: 1px solid #d6dbcf; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); padding: 8px 10px; font-size: .8rem; line-height: 1.45; color: #222; min-width: 150px; z-index: 5; }
.zs-tip[hidden] { display: none; }
.zs-tip h4 { margin: 0 0 4px; font-size: .82rem; color: var(--zs-ink); }
.zs-tip .r { display: flex; justify-content: space-between; gap: 12px; }
.zs-tip .r i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.zs-tip .m { color: #777; font-size: .74rem; margin-top: 3px; }
.zs-sub { font-size: .95rem; margin: 18px 0 2px; color: var(--zs-ink); }
.zs-caption { font-size: .8rem; color: var(--zs-ink2); margin: 2px 0 8px; }
.zs-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 8px; }
.zs-table th, .zs-table td { padding: 4px 6px; border-bottom: 1px solid #eef0ea; text-align: right; }
.zs-table th:first-child, .zs-table td:first-child { text-align: left; }
.zs-table details summary { cursor: pointer; }
.zs-tablebox summary { cursor: pointer; font-size: .86rem; color: #3d5a2a; margin-top: 10px; }
.zs-share { display: flex; gap: 6px; margin-top: 12px; }
.zs-share input { flex: 1; font-size: .8rem; }
.zs-saved { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.zs-saved li { display: flex; align-items: center; gap: 8px; font-size: .88rem; border: 1px solid #e3e6dc; border-radius: 8px; padding: 7px 10px; background: #fafbf7; }
.zs-saved li a { flex: 1; color: var(--zs-ink); font-weight: 600; text-decoration: none; }
.zs-saved li button { border: 0; background: none; color: #999; cursor: pointer; font-size: 1rem; }

@media (max-width: 900px) {
  .hn-app { grid-template-columns: 1fr; }
  .hn-mapcol { position: static; }
  .hn-map { height: 60vh; }
}
