/* v4 page "near_me" (/roofers/near-me): page-only rules. The map is drawn by the server (routers/near_me.near_me_map, app/near_me.state_outlines); its classes are styled here. */
.nm-head{background:var(--pale);border-bottom:1px solid var(--line);padding:40px 0 36px}
.nm-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:36px;align-items:start}
.nm-head h1{font-size:clamp(30px,3.6vw,44px);font-weight:620;max-width:none;margin-bottom:14px}
.nm-head .sub{font-size:19px;line-height:1.5;color:var(--ink);margin-bottom:20px;max-width:34em}
.nm-form label{display:block;font-weight:650;color:var(--navy);margin-bottom:6px}
.nm-row{display:flex;flex-wrap:wrap;gap:10px}
.nm-row input{flex:1 1 150px;min-width:0;min-height:52px;font-size:22px;letter-spacing:.08em;padding:0 14px;border:2px solid var(--muted);border-radius:10px;background:#fff;color:var(--ink)}
.nm-row .button{min-height:52px}
.nm-geo{margin-top:10px}
.nm-geo[hidden]{display:none}
.nm-err{margin:12px 0 0;padding:10px 12px;border-left:4px solid var(--navy);background:#fff;color:var(--ink);font-size:17px}
.nm-fine{margin:14px 0 0;font-size:16px;color:var(--muted);line-height:1.5}
.nm-scope{margin:20px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:17px;color:var(--ink)}
.nm-scope b{font-size:22px;color:var(--navy)}
.nm-scope a{display:inline-flex;align-items:center;min-height:44px}
.nm-fig{margin:0}
.nm-map{display:block;width:100%;height:auto;background:#fff;border-radius:12px;border:1px solid var(--line)}
.nm-map .st{fill:#EEF1F5;stroke:#fff;stroke-width:.9;stroke-linejoin:round}
.nm-map .st.cov{fill:#D3DFEE}
.nm-dot{fill:var(--navy-2);fill-opacity:.8;stroke:#fff;stroke-width:.6}
.nm-dot:hover{fill:var(--ink)}
.nm-tether{stroke:#7a8798;fill:none}
.nm-tether.hub{stroke:var(--navy)}
.nm-num circle{fill:#fff;stroke:var(--navy-2);stroke-width:2}
.nm-num text{fill:var(--ink);font-weight:700}
.nm-num.hub circle{fill:var(--navy);stroke:var(--navy)}
.nm-num.hub text{fill:#fff}
.nm-lab{fill:var(--ink);font-weight:600;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round;pointer-events:none}
.nm-lab.hub{fill:var(--navy);font-weight:800}
.nm-pin path{stroke:var(--ink);fill:none}
.nm-pin circle{fill:var(--ink)}
.nm-pin .halo{fill:#fff;fill-opacity:.7;stroke:var(--ink);stroke-width:1}
.nm-key{list-style:none;margin:10px 2px 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:16px;color:var(--muted)}
.nm-key li{display:flex;align-items:center;gap:8px}
.nm-key i{display:inline-block;width:14px;height:14px;border-radius:3px}
.nm-key .k-you{background:var(--ink);border-radius:50%}.nm-key .k-hub{background:var(--navy);border-radius:50%}.nm-key .k-top{background:#fff;border:2px solid var(--navy-2);border-radius:50%}
.nm-key .k-state{background:#D3DFEE}.nm-key .k-city{background:var(--navy-2);border-radius:50%}
.nm-section{padding-top:44px;padding-bottom:44px}
.nm-alt{background:var(--pale)}
.nm-narrow{max-width:860px}
.nm-section .section-head{margin-bottom:20px}
.nm-answer{border:2px solid var(--navy);border-radius:var(--radius);padding:20px 22px;display:flex;gap:18px 28px;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#fff}
.nm-answer h2{font-size:28px;margin-bottom:6px}
.nm-answer p{color:var(--ink)}
.nm-acts{display:flex;gap:10px;flex-wrap:wrap}
.nm-wrap{margin-top:22px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.nm-table th,.nm-table td{text-align:left;padding:10px 14px;vertical-align:top}
.nm-table caption{text-align:left;padding:12px 14px 6px;font:600 18px/1.3 var(--head);color:var(--navy)}
.nm-table a{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.nm-table .nm-sub{font-size:16px;color:var(--muted);font-weight:400}
.nm-nw{white-space:nowrap;font-weight:650}
.nm-pop{list-style:none;margin:0;padding:0;columns:2 280px;column-gap:30px}
.nm-pop li{break-inside:avoid}
.nm-pop a{display:flex;align-items:center;min-height:44px}
.nm-states{columns:3 250px;column-gap:30px}
.nm-st{break-inside:avoid;margin:0 0 20px}
.nm-st h3{font-size:20px;margin:0 0 4px;padding-bottom:4px;border-bottom:2px solid var(--line)}
.nm-st h3 span{font:400 16px var(--body);color:var(--muted);margin-left:6px}
.nm-st ul{list-style:none;margin:0;padding:0}
.nm-st li{display:flex;align-items:center;gap:6px}
.nm-st li a{display:inline-flex;align-items:center;min-height:44px}
.nm-st li em{font-style:normal;color:var(--muted);font-size:16px}
.nm-qa details{background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin:0 0 10px}
.nm-qa summary{display:flex;align-items:center;min-height:56px;padding:10px 18px;cursor:pointer;font:600 19px/1.3 var(--head);color:var(--navy);list-style:none}
.nm-qa summary::-webkit-details-marker{display:none}
.nm-qa summary::after{content:"+";margin-left:auto;padding-left:14px;font:600 24px/1 var(--body)}
.nm-qa details[open] summary::after{content:"\2212"}
.nm-qa p{padding:0 18px 16px;color:var(--ink)}
@media (max-width:900px){.nm-grid{grid-template-columns:minmax(0,1fr);gap:24px}}
@media (max-width:700px){
 .nm-head{padding:28px 0 24px}
 .nm-head .sub{font-size:18px}
 .nm-section{padding-top:32px;padding-bottom:32px}
 .nm-row .button,.nm-geo,.nm-acts .button{width:100%}
 .nm-table{min-width:560px}
 .nm-qa summary{font-size:18px}
}
/* The map is a picture of the list below it: every city on it is also a 44 px row in "See every city" (WCAG 2.5.8, equivalent control).
   Its dots are 3 px on a phone, so a finger passes through them and the keyboard skips them (tabindex -1 in routers/near_me.py). */
@media (pointer:coarse),(max-width:900px){.nm-map a{pointer-events:none}}
