/* cars-day.css — the Cars & coffee day map on /cars. Uses the .pp tokens from passion.css. */
.cd { margin: 0.25rem 0 0; }
.cd-lead { font-size: 0.9375rem; line-height: 1.5; max-width: 42.5rem; margin: -0.125rem 0 0.75rem; color: var(--pp-muted); }
.cd-lead strong { display: block; font-size: 1.0625rem; color: var(--pp-accent); margin-bottom: 0.125rem; }
.cd-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.125rem 0 0.625rem; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cd-chips::-webkit-scrollbar { display: none; }
.cd-chip { flex: 0 0 auto; min-height: 2.5rem; padding: 0 0.875rem; border-radius: 999px; border: 1px solid var(--pp-line);
           background: rgba(255,255,255,.04); color: var(--pp-ink); font: inherit; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.cd-chip.is-on { background: var(--pp-accent); border-color: var(--pp-accent); color: #1c1917; font-weight: 700; }
.cd-chip:focus-visible, .cd-row:focus-visible, .cd-pin:focus-visible { outline: 2px solid var(--pp-accent); outline-offset: 2px; }

.cd-map { position: relative; width: 100%; height: 55vh; min-height: 18.75rem; max-height: 32.5rem; border-radius: 0.875rem;
          overflow: hidden; border: 1px solid var(--pp-line); background: #1c1917; }
.cd-mapwrap { position: relative; }
/* The one switch for CHP incidents and Caltrans lane closures (js/lib/road-status-layers.js fills the slot).
   Owner 2026-11-18: every map that shows the barricades has a switch for them. The closed stretch of Highway 1
   has none: it always shows. Same look as the switch on /fire. */
.cd-rs { position: absolute; left: 0.75rem; bottom: 2.625rem; z-index: 5; display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0.4375rem 0.6875rem; font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em;
  background: rgba(9,9,11,0.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--pp-line); border-radius: 0.625rem; cursor: pointer; color: var(--pp-ink); }
.cd-rs[aria-pressed="false"] { color: var(--pp-muted); }
.cd-rs[aria-pressed="false"] span:last-child { text-decoration: line-through; }
@media (max-width: 600px) { .cd-rs { min-height: 2.75rem; } }
.cd-map--off::after { content: "The map could not load. The list below still works."; position: absolute; inset: 0;
          display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.25rem;
          color: var(--pp-muted); font-size: 0.8125rem; }
@media (min-width: 900px) { .cd-map { height: 28.75rem; } }
.cd-status { min-height: 1.125rem; font-size: 12.5px; color: var(--pp-muted); margin: 0.375rem 0.125rem 0; }

/* pins */
/* no position here: MapLibre positions markers absolutely, and position:relative from this later sheet made every pin flow one pin-width east of its venue */
.cd-pin { width: 1.875rem; height: 1.875rem; padding: 0; border: 0; background: none; cursor: pointer; }
.cd-pin-n { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 1.875rem; height: 1.875rem;
            border-radius: 50%; background: var(--pp-accent); color: #1c1917; font: 800 0.875rem/1 system-ui, sans-serif;
            border: 2px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.6); }
.cd-pin-ring { position: absolute; left: 50%; top: 50%; width: 1.875rem; height: 1.875rem; border-radius: 50%; display: none;
               border: 3px solid var(--pp-accent); transform: translate(-50%,-50%); }
.cd-pin--live .cd-pin-ring { display: block; animation: cd-pulse 1.8s ease-out infinite; }
.cd-pin--later .cd-pin-n { background: #d6a74a; }
.cd-pin--past { opacity: .5; }
.cd-pin--past .cd-pin-n { background: #78716c; border-color: #a8a29e; }
.cd-pin.is-sel .cd-pin-n { transform: scale(1.18); }
@keyframes cd-pulse { 0% { transform: translate(-50%,-50%) scale(.75); opacity: .85; }
                      70%, 100% { transform: translate(-50%,-50%) scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cd-pin--live .cd-pin-ring { animation: none; opacity: .4; transform: translate(-50%,-50%) scale(1.5); } }

.cd-leglabel { padding: 0.125rem 0.5rem; border-radius: 999px; background: rgba(28,25,23,.92); color: #FFB000; border: 1px solid rgba(255,176,0,.6);
               font: 700 11.5px/1.4 system-ui, sans-serif; white-space: nowrap; pointer-events: none; }
.cd-leglabel.is-bad { color: #d6d3d1; border-color: #78716c; }

/* popup */
.cd-popup .maplibregl-popup-content { background: #1c1917; color: #e7e5e4; border: 1px solid rgba(255,255,255,.12);
          border-radius: 0.75rem; padding: 0.75rem 0.875rem; font-size: 0.8125rem; }
.cd-popup .maplibregl-popup-tip { border-top-color: #1c1917; border-bottom-color: #1c1917; }
.cd-popup .maplibregl-popup-close-button { color: #e7e5e4; font-size: 1.25rem; padding: 0.125rem 0.5rem; }
.cd-pop-t { font-weight: 700; font-size: 14.5px; padding-right: 1.125rem; margin-bottom: 0.125rem; }
.cd-pop-m { color: #a8a29e; font-size: 12.5px; }
.cd-pop-a { display: inline-block; margin-top: 0.5rem; color: #FFB000; text-decoration: none; font-weight: 600; }

/* list */
.cd-list { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.cd-item { border: 1px solid var(--pp-line); border-radius: 0.75rem; background: rgba(255,255,255,.02); padding: 0.25rem 0.25rem 0.5rem; }
.cd-item.is-sel { border-color: var(--pp-accent); background: rgba(255,176,0,.07); }
.cd-past { opacity: .6; }
.cd-row { display: flex; gap: 0.625rem; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0;
          color: inherit; font: inherit; padding: 0.5rem; cursor: pointer; border-radius: 0.625rem; min-height: 3rem; }
.cd-num { flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--pp-accent); color: #1c1917; font-weight: 800;
          display: flex; align-items: center; justify-content: center; font-size: 13.5px; }
.cd-past .cd-num { background: #78716c; }
.cd-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.125rem 0.5rem; min-width: 0; }
.cd-time { font: 700 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--pp-accent); }
.cd-live { font: 800 10.5px system-ui, sans-serif; letter-spacing: .08em; padding: 0.125rem 0.4375rem; border-radius: 999px; background: var(--pp-good); color: #052e16; }
.cd-live[hidden] { display: none; }
.cd-title { flex-basis: 100%; font-weight: 650; font-size: 0.9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.cd-place { flex-basis: 100%; font-size: 12.5px; color: var(--pp-muted); }
.cd-actions { padding: 0 0.5rem 0 2.875rem; display: flex; flex-wrap: wrap; gap: 0.3125rem; }
/* Details joins the same row as the get-there buttons instead of wrapping onto a line of its own */
.cd-actions .get-there { display: contents; }
@media (max-width: 430px) { .cd-actions { padding: 0 0.625rem; } }
.cd-leg { margin: 0; padding: 0.4375rem 0.5rem 0.4375rem 1.25rem; font-size: 12.5px; color: var(--pp-muted); border-left: 2px solid var(--pp-accent); margin-left: 1.5rem; }
.cd-leg.is-bad { color: #fca5a5; border-left: 2px dashed #78716c; }
.cd-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.cd-empty { border: 1px solid var(--pp-line); border-radius: 0.875rem; padding: 0.875rem; background: rgba(255,255,255,.02); }
.cd-empty[hidden], .cd-body[hidden] { display: none; }

/* board rows: the get-there row sits under the link (no nested anchors) */
.pp-evw { margin-bottom: 0.125rem; }
.pp-evw .get-there-wrap { padding: 0 0.625rem 0.375rem 2.625rem; margin: -0.125rem 0 0; }

/* Weekly meet listed from its usual slot (no posted date) */
.cd-usual { display: block; margin: 0.125rem 0 0.375rem 2.125rem; font-size: 12.5px; color: #fbbf24; }
.cd-usual a { color: inherit; text-decoration: underline; }
.cd-pop .cd-usual { margin: 0.125rem 0 0.375rem 0; }

/* Pick which meets (George 11/12): a "Going" box per meet, all ticked by default; skipped meets fade and lose their number */
.cd-head { display: flex; align-items: flex-start; gap: 0.25rem; }
.cd-head .cd-row { flex: 1 1 auto; min-width: 0; }
.cd-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 0.625rem; margin-top: 0.125rem;
         font-size: 0.8125rem; font-weight: 600; color: var(--pp-muted); cursor: pointer; border-radius: 0.625rem; user-select: none; }
.cd-go input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--pp-accent); cursor: pointer; }
.cd-go:has(input:focus-visible) { outline: 2px solid var(--pp-accent); outline-offset: 1px; }
.cd-item.is-off { opacity: .55; border-style: dashed; }
.cd-item.is-off .cd-num { background: transparent; color: var(--pp-muted); border: 1px dashed var(--pp-line); }
.cd-pin.is-off { opacity: .45; }
.cd-pin.is-off .cd-pin-n { background: #57534e; border-color: #a8a29e; }
.cd-pin.is-off .cd-pin-ring { display: none; }
.cd-pickhint { list-style: none; margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--pp-muted); }
