/* BoulderCAST snowfall verification map: clickable totals over the graphic.
   Upload to bouldercast.com/models/snowverify/ next to snowverify.js.
   Styling sits inside an always-true container query so the WP Dark Mode
   plugin leaves its colors alone; dark colors come from its own rules below. */
.bcsv { container-type: inline-size; position: relative; margin: 1.5em 0; max-width: 100%; }

@container (min-width: 0px) {
  .bcsv-wrap { position: relative; line-height: 0; }
  .bcsv-img { display: block; width: 100%; height: auto; margin: 0; border-radius: 10px; box-shadow: 0 4px 22px rgba(12, 32, 66, .16); }
  .bcsv-pts { list-style: none; margin: 10px 0 0; padding: 0; font: 15px/1.45 "Barlow", system-ui, sans-serif; }
  .bcsv.is-live .bcsv-pts { display: none; }
  .bcsv.is-live.show-list .bcsv-table { display: block; }

  .bcsv-hot {
    position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer;
    border-radius: 999px; outline-offset: 2px; -webkit-tap-highlight-color: transparent;
    transition: box-shadow .15s, background-color .15s;
  }
  .bcsv-hot:hover, .bcsv-hot.on { background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 3px rgba(22, 99, 199, .75); }
  .bcsv-hot:focus-visible { outline: 3px solid #1663c7; }

  .bcsv-pop {
    position: absolute; z-index: 5; width: 270px; max-width: calc(100% - 16px); line-height: 1.4;
    background: #fff; color: #18243a; border-radius: 12px; padding: 12px 14px 12px;
    box-shadow: 0 10px 34px rgba(8, 22, 48, .32); font: 14.5px/1.4 "Barlow", system-ui, sans-serif;
  }
  .bcsv-pop[hidden] { display: none; }
  .bcsv-pop .t { font-weight: 700; font-size: 16px; margin: 0 24px 4px 0; }
  .bcsv-pop .big { display: flex; gap: 14px; margin: 6px 0 8px; }
  .bcsv-pop .big div { flex: 1; background: #f2f5f9; border-radius: 8px; padding: 6px 8px; }
  .bcsv-pop .big small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: #5b6880; font-weight: 700; }
  .bcsv-pop .big b { font-size: 22px; font-family: "Barlow Semi Condensed", "Barlow", sans-serif; }
  .bcsv-pop .chip { display: inline-block; padding: 2px 9px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13px; }
  .bcsv-pop .note { color: #4a5870; font-size: 13.5px; margin-left: 4px; }
  .bcsv-pop .meta { color: #6a778d; font-size: 12.5px; margin-top: 7px; }
  .bcsv-pop .x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 20px; line-height: 1; color: #8a95a7; cursor: pointer; padding: 4px; }
  .s-ok { background: #16a34a; } .s-near { background: #d68f00; } .s-bust { background: #dc2626; } .s-none { background: #8a96a8; }

  .bcsv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; font: 14px/1.4 "Barlow", system-ui, sans-serif; color: #4a5870; }
  .bcsv-bar button { font: 600 14px "Barlow", system-ui, sans-serif; border: 1px solid #cfd8e5; background: #fff; color: #0b2a5b; border-radius: 7px; padding: 6px 12px; cursor: pointer; }
  .bcsv-bar button:hover { border-color: #1663c7; }

  .bcsv-table { display: none; margin-top: 10px; overflow-x: auto; }
  .bcsv-table table { width: 100%; border-collapse: collapse; font: 14px/1.35 "Barlow", system-ui, sans-serif; color: #18243a; }
  .bcsv-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #5b6880; border-bottom: 2px solid #d9e0ea; padding: 6px 8px; cursor: pointer; white-space: nowrap; }
  .bcsv-table td { border-bottom: 1px solid #e8edf3; padding: 6px 8px; }
  .bcsv-table td.n { text-align: right; font-weight: 700; white-space: nowrap; }
  .bcsv-table .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

  html[data-wp-dark-mode-active] .bcsv-pop { background: #17202e; color: #e6ecf5; }
  html[data-wp-dark-mode-active] .bcsv-pop .big div { background: #222d3e; }
  html[data-wp-dark-mode-active] .bcsv-pop .big small, html[data-wp-dark-mode-active] .bcsv-pop .note,
  html[data-wp-dark-mode-active] .bcsv-pop .meta, html[data-wp-dark-mode-active] .bcsv-bar { color: #a9b6ca; }
  html[data-wp-dark-mode-active] .bcsv-bar button { background: #17202e; color: #e6ecf5; border-color: #33415a; }
  html[data-wp-dark-mode-active] .bcsv-table table { color: #e6ecf5; }
  html[data-wp-dark-mode-active] .bcsv-table th { color: #a9b6ca; border-color: #33415a; }
  html[data-wp-dark-mode-active] .bcsv-table td { border-color: #263247; }
}
