/* The three carrier coverage-map pages' stylesheet (/t-mobile-coverage-maps/ and the others).
   Source: carrier-pages\page\src\carrier-page.css. Shipped to interactive.bestneighborhood.org/dist/v1/carrier-page.css?v=<md5-8>
   by mapbox-transition\bestneighborhood\sync-static-bn-cellcarrier.ps1; the page links it, render-blocking, from its
   first line. The theme owns fonts, sizes and colors; these rules add only what the bare page cannot do. Every class
   is ccm-; the map box reuses the site's .MapSurround / .triggerWrapper / .mapWrapper / #map-1 / .map--fullscreen. */

.ccm-meta { font-size: .9em; }

/* ── the first screen. Desktop: the lead; one row with the pills left and the main button (AT&T: and its phone)
   right; the commission line, small, right under it; the map, its caption, then the brand line and the compare link.
   Under 650px: the lead, the pills and the map, then the buttons, the commission line and the brand line (CSS order;
   the row's own box steps aside, so its two halves sort separately). ── */
.ccm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ccm-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ccm-btns .cta1, .ccm-brand .cta1 { margin: 0; }
.ccm-top > .ccm-commission { margin: 2px 0 8px; padding: 0; text-align: right; font-size: .8em; line-height: 1.4; }
.ccm-after { margin: 10px 0 0; }
@media (max-width: 649.98px) {
  .ccm-top { display: flex; flex-direction: column; }
  .ccm-top > .ccm-bar { display: contents; }
  .ccm-top .ccm-btns, .ccm-top > .ccm-commission, .ccm-top > .ccm-after { order: 1; }
  .ccm-top .ccm-btns { margin: 12px 0 0; }
  .ccm-top > .ccm-commission { text-align: left; }
}

/* ── pills over the map ── */
.ccm-views { display: flex; gap: 8px; margin: 0 0 10px; }
.ccm-bar .ccm-views { margin: 0; }
@media (max-width: 649.98px) { .ccm-bar .ccm-views { margin: 0 0 10px; } }
.ccm-pill { padding: 6px 18px; border: 2px solid #d9d9d9; border-radius: 24px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ccm-pill[aria-pressed="true"] { border-color: var(--bn-accent, #28166C); background: var(--bn-accent, #28166C); color: #fff; }

/* ── the map box: 16:9, 3:2 under 650px (map_spec.json view.boxes), for the picture and for the live map ── */
.ccm-map .MapSurround .triggerWrapper, .ccm-map .MapSurround .mapWrapper { aspect-ratio: 16 / 9; }
@media (max-width: 649.98px) {
  .ccm-map .MapSurround .triggerWrapper, .ccm-map .MapSurround .mapWrapper { aspect-ratio: 3 / 2; }
}
.ccm-cap { font-size: .85em; }
/* The caption: 650px and up reads every sentence (.ccm-wide); under 650px the paragraph keeps what the colors and the
   gray mean and the tap line (.ccm-narrow), and the rest sits in <details> "About this map" right under it. */
.ccm-cap .ccm-narrow, .ccm-about { display: none; }
@media (max-width: 649.98px) {
  .ccm-cap .ccm-wide { display: none; }
  .ccm-cap .ccm-narrow { display: inline; }
  .ccm-about:not([hidden]) { display: block; margin: -8px 0 16px; }
  .ccm-about summary { cursor: pointer; font-weight: 600; min-height: 32px; line-height: 32px; }
  .ccm-about p { margin: 6px 0 0; }
}
#map-1:fullscreen { width: 100vw; height: 100vh; background: #fff; }
/* Keyboard focus on the picture shows what hover shows (the site's .triggerWrapper ::before shade and ::after "Load
   Interactive Map" badge) and a ring on the shade: the site positions the picture's img, which would cover an outline. */
#ccm-teaser:focus { outline: none; }
#ccm-teaser:focus-visible::before, #ccm-teaser:focus-visible::after { opacity: 1; transform: translateY(0); }
#ccm-teaser:focus-visible::before { box-shadow: inset 0 0 0 3px #1a1a2e, inset 0 0 0 5px #fff; }
/* the line over the loading map while the proof helper's challenge waits on the reader */
.ccm-msg { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 45; max-width: calc(100% - 120px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; background: #fff; border: 1px solid #9ba1a8; border-radius: 4px; padding: 8px 14px; font-size: 15px; line-height: 1.4; color: #1a1a2e; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ccm-cancel { min-height: 36px; padding: 6px 14px; border: 1px solid #9ba1a8; border-radius: 4px; background: #fff; color: #1a1a2e; font: inherit; line-height: 1.4; cursor: pointer; }
.ccm-cancel[hidden] { display: none; }
.ccm-msg[hidden] { display: none; }
@media (max-width: 649.98px) { .ccm-msg { top: 66px; max-width: calc(100% - 32px); } .ccm-cancel { min-height: 44px; } }   /* under the "Close the map" button */

/* over the live map: the zoom hint, the legend in full screen, the card under 650px */
.ccm-hint { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; background: #fff; border: 1px solid #d9d9d9; border-radius: 4px; padding: 4px 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 4px rgba(0,0,0,.15); pointer-events: none; white-space: nowrap; }
.ccm-hint[hidden], .ccm-fsleg { display: none; }
#map-1:has(.cg-tile-auth-banner:not(.cg-tile-auth-banner-hidden)) .ccm-hint { display: none; }   /* the map's own notice wins */
.cg-fullscreen .ccm-fsleg { display: block; position: absolute; left: 10px; bottom: 34px; z-index: 3; width: min(420px, calc(100% - 64px)); }
.ccm-card { font-size: 14px; line-height: 1.45; text-align: left; }
.ccm-card b { display: block; margin: 0 0 4px; font-size: 15px; }
.ccm-card div { margin: 0 0 4px; }
.ccm-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 -2px 10px rgba(0,0,0,.2); padding: 14px 44px 18px 16px; line-height: 1.45; }
.ccm-sheet[hidden] { display: none; }
/* .MapSurround sets line-height 0 for its picture: the button sets its own, and a 44px touch target */
.ccm-early { position: absolute; top: 10px; right: 10px; z-index: 40; min-height: 44px; padding: 10px 14px; border: 1px solid #9ba1a8; border-radius: 4px; background: #fff; color: #1a1a2e; font: inherit; font-size: 15px; line-height: 1.4 !important; cursor: pointer; }
.ccm-sheet-x { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #333; }

/* ── tables ── */
.ccm-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0 0 16px; }
/* the logos and the 5G picture keep their shape before they load (their width and height attributes give the ratio) */
.ccm-brand .ccm-logo { height: auto; }
.ccm-to5g img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ccm-sort th[data-k] { cursor: pointer; }
.ccm-sort th[aria-sort="ascending"]::after { content: " \25B2"; }
.ccm-sort th[aria-sort="descending"]::after { content: " \25BC"; }
/* On phones the state table and the city tables stay tables, one compact line per place (they carry bn-no-stack, so
   the site's stacking script leaves them alone); the state table drops its three share columns there. */
@media (max-width: 649.98px) {
  .entry-content table.ccm-compact:not(.variations) { font-size: .8em; --bn-t-pad: .75em 6px .75em 0; }   /* beats sitewide.css; rows about 40px */
  .ccm-compact td:last-child:not(.ccm-wrap) { white-space: nowrap; }
  #ccm-states th:nth-child(n+4):nth-child(-n+6), #ccm-states td:nth-child(n+4):nth-child(-n+6) { display: none; }
}
