/* The US national parks crowding showcase page (showcase/us-parks-crowding/index.html): the soft-story page's
   styles, with the month slider and Play. Mobile first: one column, the map then its panel; the panel beside the map
   from 900 px. Uses the site's tokens (style.css). */
.sc { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 18px 16px 40px; }
.titleblock { position: relative; z-index: 1; }
.sc h1 { font: 700 clamp(30px, 7vw, 54px)/1.04 var(--cond, 'IBM Plex Sans Condensed', sans-serif); margin: 6px 0 14px; color: var(--ink-2, #163c6e); text-transform: uppercase; letter-spacing: -.01em; }
.sc h2 { margin: 34px 0 10px; }
.sc p, .sc li { font-size: 17px; line-height: 1.55; }
.sc-kicker { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red, #cf3b26); margin: 0; }
.sc-lede { font-size: 19px !important; }
.sc figure { margin: 16px 0; }
.sc figure img, .sc figure video { display: block; width: 100%; height: auto; border: 1px solid var(--rule, #a9b8cf); background: #faf8f1; }
.sc figcaption { font: 13px/1.4 var(--mono); color: var(--muted, #5b6573); margin-top: 6px; }
.sc-cta { display: grid; gap: 10px; margin: 18px 0 8px; }
.sc-btn { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border: 2px solid var(--ink, #1d4f91); background: #fff; color: var(--ink-2, #163c6e); text-decoration: none; font: 600 15px var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.sc-btn span { font: 400 13px var(--mono); text-transform: none; letter-spacing: 0; color: var(--muted, #5b6573); }
.sc-btn-main { background: var(--ink, #1d4f91); color: var(--film, #f2efe6); }
.sc-btn-main span { color: rgba(242, 239, 230, .85); }
.sc-btn:hover { background: var(--red, #cf3b26); border-color: var(--red, #cf3b26); color: var(--film, #f2efe6); }
.sc-btn:hover span { color: rgba(242, 239, 230, .9); }
.sc-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink, #1d4f91); border-left: 1px solid var(--rule, #a9b8cf); margin: 14px 0; }
.sc-stats div { padding: 12px 14px; border-right: 1px solid var(--rule, #a9b8cf); border-bottom: 1px solid var(--rule, #a9b8cf); background: rgba(250, 248, 241, .7); }
.sc-stats b { display: block; font: 600 26px var(--mono); color: var(--ink-2, #163c6e); }
.sc-stats div:first-child b { color: var(--red, #cf3b26); }
.sc-stats span { font: 13px/1.3 var(--mono); color: var(--muted, #5b6573); }
.sc-mapwrap { display: grid; gap: 0; border: 2px solid var(--ink, #1d4f91); background: #faf8f1; margin: 12px 0 8px; }
#sc-map { height: 62vh; min-height: 340px; max-height: 640px; }
.sc-panel { padding: 12px 14px; display: grid; gap: 10px; align-content: start; border-top: 1px solid var(--rule, #a9b8cf); }
.sc-time { display: flex; gap: 10px; align-items: center; }
.sc-time input { flex: 1; min-width: 0; accent-color: var(--ink, #1d4f91); }
.sc-time output { font: 600 18px var(--mono); min-width: 48px; text-align: right; }
.sc-time button, .sc-jump button { font: 600 13px var(--mono); text-transform: uppercase; border: 2px solid var(--ink, #1d4f91); background: #fff; color: var(--ink-2, #163c6e); padding: 6px 12px; min-height: 36px; cursor: pointer; }
.sc-time button[aria-pressed=true] { background: var(--ink, #1d4f91); color: #fff; }
.sc-jump { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-jump button { font-size: 12px; padding: 5px 9px; min-height: 34px; }
.sc-jump button:hover, .sc-time button:hover { background: var(--ink, #1d4f91); color: #fff; }
.sc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 12.5px var(--mono); color: var(--text, #1f2a37); padding-top: 8px; border-top: 1px solid var(--rule, #a9b8cf); }
.sc-legend p { flex-basis: 100%; margin: 0; font: 12px/1.35 var(--mono) !important; }
.sc-legend .sc-legend-t { font-weight: 600 !important; color: var(--ink-2, #163c6e); }
.sc-legend .sc-legend-n { color: var(--muted, #5b6573); margin-top: 2px; }
.sc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sc-legend i { width: 16px; height: 12px; border: 1px solid #163c6e; display: inline-block; }
.sc-legend i.sc-dash { border-style: dashed; background: transparent; }
.sc-info { min-height: 230px; font-size: 15px; }
.sc-info b { display: block; font-size: 17px; }
.sc-info span { font: 12.5px var(--mono); color: var(--muted, #5b6573); }
.sc-info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 8px 0 4px; font: 14px var(--mono); }
.sc-info dt { color: var(--muted, #5b6573); }
.sc-info dd { margin: 0; }
.sc-info .sc-big { margin: 8px 0 2px; font: 13px var(--mono); color: var(--muted, #5b6573); }
.sc-info .sc-big strong { display: block; font: 600 34px/1.05 var(--mono); color: var(--red, #cf3b26); }
.sc-info .sc-big strong.sc-nc { color: var(--muted, #5b6573); }
.sc-spark { display: block; width: 100%; height: 46px; margin-top: 8px; overflow: visible; }
.sc-spark polyline { fill: none; stroke: var(--ink, #1d4f91); stroke-width: 2; stroke-linejoin: round; }
.sc-spark circle { fill: var(--red, #cf3b26); stroke: #fff; stroke-width: 1.5; }
.sc-spark .sc-spark-now { stroke: var(--rule, #a9b8cf); stroke-dasharray: 3 3; }
.sc-spark-axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted, #5b6573); }
.sc-info p { font-size: 13.5px !important; margin: 4px 0 0; }
.sc-info .sc-src, .sc-hint { font: 12px/1.4 var(--mono) !important; color: var(--muted, #5b6573); }
.leaflet-container { font: 12px var(--mono); background: #e8e4d8; }
/* the short names on the outlines, shown from zoom 15 (map.js sets .sc-named) */
.leaflet-tooltip.sc-lab { display: none; background: rgba(250, 248, 241, .92); border: 0; box-shadow: none; padding: 1px 5px; font: 600 11px var(--mono); color: var(--ink-2, #163c6e); white-space: nowrap; }
.leaflet-tooltip.sc-lab::before { display: none; }
.sc-named .leaflet-tooltip.sc-lab { display: block; }
.leaflet-tooltip.sc-tip { font: 600 12px var(--mono); color: var(--ink-2, #163c6e); }
/* the animations: no player bar over the picture; the button to pause sits beside the caption */
.sc-anim-box { position: relative; }
.sc-anim-btn { float: right; margin: 6px 0 0 12px; font: 600 12px var(--mono); text-transform: uppercase; border: 2px solid var(--ink, #1d4f91); background: rgba(255, 255, 255, .9); color: var(--ink-2, #163c6e); padding: 4px 10px; min-height: 32px; cursor: pointer; }
.sc-anim-btn:hover { background: var(--ink, #1d4f91); color: #fff; }
.sc-pair { display: grid; gap: 0 18px; }
.sc-steps { padding-left: 22px; }
.sc-steps li { margin: 6px 0; }
.sc-link { font: 600 14px var(--mono); color: var(--ink, #1d4f91); }
.sc-pbi { display: grid; gap: 14px; align-items: start; }
.sc-placeholder { margin: 0 !important; border: 2px dashed var(--rule, #a9b8cf); aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #faf8f1, #faf8f1 12px, #f2efe6 12px, #f2efe6 24px); }
.sc-placeholder div { text-align: center; padding: 16px; }
.sc-placeholder b { display: block; font: 600 16px var(--mono); color: var(--ink-2, #163c6e); }
.sc-placeholder span { font: 13px var(--mono); color: var(--muted, #5b6573); }
.sc-caveats li { margin: 4px 0; }
.sc-spark rect { fill: #a9b8cf; }
.sc-spark rect.on { fill: var(--ink, #1d4f91); }
.sc-measure { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-measure button { font: 600 12px var(--mono); text-transform: uppercase; border: 2px solid var(--ink, #1d4f91); background: #fff; color: var(--ink-2, #163c6e); padding: 5px 9px; min-height: 34px; cursor: pointer; }
.sc-measure button[aria-pressed=true], #sc-year[aria-pressed=true] { background: var(--ink, #1d4f91); color: #fff; }
.sc-time input.sc-off { opacity: .4; }
.sc-time output { font-size: 14px; min-width: 0; }
.sc-found { color: #b45f00; font-style: normal; font-weight: 600; }
.sc-info .sc-query { border-left: 3px solid var(--red, #cf3b26); padding-left: 8px; color: var(--text, #1f2a37); }
.sc-legend i.sc-found-key { background: transparent; border: 2.5px solid #e07b00; }
.sc-credits { margin-top: 34px; padding-top: 6px; border-top: 2px solid var(--ink, #1d4f91); }
.sc-credits p { font-size: 14px; color: var(--muted, #5b6573); }
.sc-signup { margin: 34px 0 0; padding: 18px 20px 20px; border: 2px solid var(--ink, #1d4f91); background: #faf8f1; }
.sc-signup h2 { margin-top: 0; }
.sc-signup .sc-btn { max-width: 420px; }
@media (min-width: 700px) {
  .sc { padding: 28px 24px 56px; }
  .sc-cta { grid-template-columns: 1fr 1fr; }
  .sc-stats { grid-template-columns: repeat(4, 1fr); }
  .sc-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .sc-mapwrap { grid-template-columns: 1fr 320px; }
  #sc-map { height: 600px; max-height: none; }
  .sc-panel { border-top: 0; border-left: 1px solid var(--rule, #a9b8cf); }
  .sc-pbi { grid-template-columns: 1.2fr 1fr; }
}

/* the view and period switches, the readout, the other showcases */
.sc-mode{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}
.sc-mode button{font:600 13px/1.2 'IBM Plex Sans Condensed',sans-serif;padding:7px 10px;border:1px solid var(--rule,#c9c3b2);background:#faf8f1;color:#1f2a37;border-radius:6px;cursor:pointer}
.sc-mode button[aria-pressed="true"]{background:#1d4f91;border-color:#1d4f91;color:#fff}
.sc-sample{border:1px solid var(--rule,#c9c3b2);border-radius:10px;padding:14px 16px;margin:18px 0;background:#faf8f1}
.sc-sample h2{margin-top:0}
.sc-info h3{margin:0 0 6px;font:600 17px/1.25 'IBM Plex Sans Condensed',sans-serif;color:#163c6e}
.sc-info dl{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;margin:0;font-size:14px}
.sc-info dt{color:#5b6573;font:12.5px var(--mono)}
.sc-info dd{margin:0}
.sc-sample .sc-banner{font:500 12.5px/1.3 var(--mono);color:#5b6573;margin:0 0 6px}
.sc-others li{margin:0 0 6px}
.sc-period{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 4px}
.sc-period button{font:600 12.5px var(--mono);padding:6px 10px;border:2px solid var(--ink,#1d4f91);background:#fff;color:var(--ink-2,#163c6e);cursor:pointer;min-height:34px}
.sc-period button[aria-pressed="true"]{background:var(--ink,#1d4f91);color:#fff}
.sc-info h3 small{font:400 12px var(--mono);color:#5b6573}
.sc-table{width:100%;border-collapse:collapse;font:14px var(--mono);margin:10px 0}
.sc-table th,.sc-table td{border-bottom:1px solid var(--rule,#a9b8cf);padding:6px 8px;text-align:right}
.sc-table th:first-child,.sc-table td:first-child{text-align:left}
.sc-tablewrap{overflow-x:auto}
.sc-whole { white-space: nowrap; }
@media (max-width: 699px) { .sc-time { flex-wrap: wrap; } .sc-whole { margin-left: auto; } }
