/* "Can I drive with this crack?" map. Colors follow the live usmap on auto-glass-laws.html. */
.cmap{display:grid;gap:1rem;min-width:0}
.cmap__controls{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;align-items:flex-end}
.cmap__pick{margin:0;flex:1 1 14rem;max-width:22rem}
.cmap__pick .select{width:100%}
.cmap__mode{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25rem 1rem;align-items:center}
.cmap__mode legend{float:left;margin-right:.75rem;padding:0}
.cmap__mode label{display:inline-flex;align-items:center;gap:.375rem;min-height:2.75rem;cursor:pointer;font:500 1rem/1.2 var(--text)}
.cmap__mode input{width:1.125rem;height:1.125rem;accent-color:var(--ink)}
.cmap__body{display:grid;gap:1rem;min-width:0}
.cmap__fig{margin:0;min-width:0;border-radius:var(--radius-lg,.875rem);background:radial-gradient(120% 90% at 50% 0,#12325c 0,#0b2545 70%);color:#fff;padding:.75rem;box-shadow:0 10px 30px -18px rgba(11,37,69,.7)}
.cmap__fig .caption{color:#d7e3f4;margin:.5rem 0 0;font-size:.875rem}
.cmap__key{display:flex;flex-wrap:wrap;gap:.25rem .875rem;font:500 .8125rem/1.3 var(--text);color:#d7e3f4;margin-bottom:.375rem}
.cmap__key span{display:inline-flex;align-items:center;gap:.375rem}
.cmap__key span[hidden]{display:none}
.cmap__key i{width:.875rem;height:.875rem;border-radius:.1875rem;border:1px solid rgba(255,255,255,.35)}
.k-a{background:#8fd0f5}.k-b{background:#4f7fb8}.k-c{background:#1b3c69}
.cmap__svg{display:block;width:100%;height:auto;touch-action:manipulation}
.cmap__st path{fill:#1b3c69;stroke:#0b2545;stroke-width:1.25;stroke-linejoin:round;transition:fill .12s}
.cmap__st[data-c="a"] path{fill:#8fd0f5}
.cmap__st[data-c="b"] path{fill:#4f7fb8}
.cmap__st text{font:700 15px/1 var(--text);fill:#0b2545;text-anchor:middle;pointer-events:none}
.cmap__st[data-c="b"] text,.cmap__st[data-c="c"] text{fill:#d7e3f4}
.is-ready .cmap__st{cursor:pointer;outline:none}
.cmap__st:hover path{fill:#2a5288}
.cmap__st[data-c="a"]:hover path{fill:#c2e6fa}
.cmap__st.is-on path,.cmap__st.is-on:hover path{fill:#df2229;stroke:#fff;stroke-width:2.5}
.cmap__st.is-on text{fill:#fff}
.cmap__st:focus-visible path{stroke:#fff;stroke-width:3.5}
.cmap__chips{display:flex;flex-wrap:wrap;gap:.375rem;align-items:center;margin-top:.5rem}
.cmap__chips-l{font:600 .875rem/1 var(--text);color:#d7e3f4;margin-right:.25rem}
.cmap__chip{min-width:2.75rem;min-height:2.75rem;padding:0 .5rem;border:1px solid rgba(255,255,255,.35);border-radius:.375rem;background:#1b3c69;color:#fff;font:700 .875rem/1 var(--text);cursor:pointer}
.cmap__chip:hover{background:#2a5288}
.cmap__chip[aria-pressed="true"]{background:#df2229;border-color:#fff}
.cmap__chip:focus-visible{outline:3px solid #fff;outline-offset:2px}
.cmap__out{min-width:0;padding:1rem 1.125rem;border:1px solid var(--line,#d3dbe6);border-radius:var(--radius-lg,.875rem);background:var(--glass-wash,#edf3fb);overflow-wrap:anywhere}
.cmap__out:focus{outline:none}
.cmap__wait{margin:0;color:#3a4a60}
.cmap__name{margin:0 0 .25rem;font:600 1.75rem/1.15 var(--display);color:var(--ink)}
.cmap__sum{margin:0 0 .75rem;font-weight:600}
.cmap__row{padding:.625rem 0;border-top:1px solid var(--line,#d3dbe6)}
.cmap__k{margin:0 0 .25rem;font:600 1.0625rem/1.3 var(--text);color:var(--ink)}
.cmap__row p,.cmap__all-item p{margin:.25rem 0 .5rem;line-height:1.5}
.cmap__note{display:block;margin-top:.25rem;font-style:italic;color:#5a3a00}
.cmap__src{display:block;margin-top:.25rem;font-size:.875rem;color:#3a4a60}
.tag--nv{background:#fff4d6;color:#5a3a00;border-color:#e0c36a}
.cmap__legal{margin:.75rem 0 0;font-size:.875rem;color:#3a4a60}
.cmap__act{margin-top:1rem}
.cmap__all{display:grid;gap:.5rem}
.cmap__all-item{border:1px solid var(--line,#d3dbe6);border-radius:var(--radius,.5rem);background:#fff;padding:0 1rem;overflow-wrap:anywhere}
.cmap__all-item summary{cursor:pointer;min-height:2.75rem;display:flex;align-items:center;font:600 1.0625rem/1.2 var(--text);color:var(--ink)}
.cmap__all-item[open]{padding-bottom:.75rem}
.cmap__all-item h4{margin:0 0 .25rem;font:600 1rem/1.3 var(--text)}
@media (min-width:62rem){
  .cmap__body{grid-template-columns:minmax(0,1fr) 24rem;align-items:start}
  .cmap__out{position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow:auto}
}
@media (max-width:30rem){
  .cmap__fig{padding:.5rem}
  .cmap__st text{font-size:18px}
}
@media (prefers-reduced-motion:reduce){.cmap__st path{transition:none}}
@media (forced-colors:active){.cmap__st.is-on path{stroke:Highlight;stroke-width:4}}
