/* The Adelaide in 20 minutes showcase page (showcase/adelaide-20-minutes/index.html), from Adelaide in Sepia's page:
   mobile first, one column; pairs, the eight maps in four columns and the table wider from 700 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: 600 clamp(30px, 7vw, 54px)/1.04 var(--cond); margin: 6px 0 14px; color: var(--ink); 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); 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); background: var(--paper-2); }
.sc figcaption { font: 13px/1.4 var(--mono); color: var(--ink-3); 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(--blue); background: var(--panel); color: var(--ink); 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(--ink-3); }
.sc-btn-main { background: var(--blue); color: var(--paper); }
.sc-btn-main span { color: rgba(22, 25, 30, .85); }
.sc-btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.sc-btn:hover span { color: rgba(22, 25, 30, .9); }
.sc-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--blue); border-left: 1px solid var(--rule); margin: 14px 0; }
.sc-stats div { padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(27, 31, 37, .7); }
.sc-stats b { display: block; font: 600 26px var(--mono); color: var(--ink); }
.sc-stats div:first-child b { color: var(--red); }
.sc-stats span { font: 13px/1.3 var(--mono); color: var(--ink-3); }
.sc-mapwrap { display: grid; gap: 0; border: 2px solid var(--blue); background: var(--paper-2); 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); }
.sc-time { display: flex; gap: 10px; align-items: center; }
.sc-time input { flex: 1; min-width: 0; accent-color: var(--blue); }
.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(--blue); background: var(--panel); color: var(--ink); padding: 6px 12px; min-height: 36px; cursor: pointer; }
.sc-time button[aria-pressed=true] { background: var(--blue); color: var(--paper); }
.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(--blue); color: var(--paper); }
.sc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 12.5px var(--mono); color: var(--ink-1); padding-top: 8px; border-top: 1px solid var(--rule); }
.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); }
.sc-legend .sc-legend-n { color: var(--ink-3); margin-top: 2px; }
.sc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sc-legend i { width: 16px; height: 12px; border: 1px solid var(--ink); 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(--ink-3); }
.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(--ink-3); }
.sc-info dd { margin: 0; }
.sc-info .sc-big { margin: 8px 0 2px; font: 13px var(--mono); color: var(--ink-3); }
.sc-info .sc-big strong { display: block; font: 600 34px/1.05 var(--mono); color: var(--red); }
.sc-info .sc-big strong.sc-nc { color: var(--ink-3); }
.sc-spark { display: block; width: 100%; height: 46px; margin-top: 8px; overflow: visible; }
.sc-spark polyline { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.sc-spark circle { fill: var(--red); stroke: var(--panel); stroke-width: 1.5; }
.sc-spark .sc-spark-now { stroke: var(--rule); stroke-dasharray: 3 3; }
.sc-spark-axis { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--ink-3); }
.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(--ink-3); }
.leaflet-container { font: 12px var(--mono); background: var(--card); }
/* the short names on the outlines, shown from zoom 15 (map.js sets .sc-named) */
.leaflet-tooltip.sc-lab { display: none; background: rgba(27, 31, 37, .92); border: 0; box-shadow: none; padding: 1px 5px; font: 600 11px var(--mono); color: var(--ink); 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); }
/* 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(--blue); background: rgba(32, 37, 44, .9); color: var(--ink); padding: 4px 10px; min-height: 32px; cursor: pointer; }
.sc-anim-btn:hover { background: var(--blue); color: var(--paper); }
.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(--blue); }
.sc-pbi { display: grid; gap: 14px; align-items: start; }
.sc-placeholder { margin: 0 !important; border: 2px dashed var(--rule); aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 12px, var(--paper) 12px, var(--paper) 24px); }
.sc-placeholder div { text-align: center; padding: 16px; }
.sc-placeholder b { display: block; font: 600 16px var(--mono); color: var(--ink); }
.sc-placeholder span { font: 13px var(--mono); color: var(--ink-3); }
.sc-caveats li { margin: 4px 0; }
.sc-credits { margin-top: 34px; padding-top: 6px; border-top: 2px solid var(--blue); }
.sc-credits p { font-size: 14px; color: var(--ink-3); }
.sc-signup { margin: 34px 0 0; padding: 18px 20px 20px; border: 2px solid var(--blue); background: var(--paper-2); }
.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: repeat(3, 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); }
  .sc-pbi { grid-template-columns: 1.2fr 1fr; }
}

/* the By height and By source buttons */
.sc-jump button[aria-pressed="true"] { background: var(--blue); color: var(--paper); }
/* phones: the map, Play and the legend share the dock under the map (/showcase/showcase-map.css and .js); here the
   legend's note and the dot key are left out to keep the dock slim (the dots read at street level) */
@media (max-width: 899px) {
  .sc-dock .sc-legend .sc-legend-n { display: none; }
}
/* desktop: the panel beside the map is taller than 600 px (three rows of buttons and the decade bars), so the map
   stretches to its height instead of leaving a band under it */
@media (min-width: 900px) {
  .sc-docked:not(.sc-twin) #sc-map { height: auto; min-height: 640px; }
}
.sc-pbi-shots { display: grid; gap: 14px; }
.sc-pbi-shots figure { margin: 0; }
/* the count under the legend, the three other views side by side */
.sc-count { font: 12.5px/1.4 var(--mono); color: var(--ink-3); margin: 0 !important; }
.sc-strip { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; padding: 0; gap: 8px; margin: 16px 0 6px; }
.sc-strip figure { margin: 0; min-width: 0; }
.sc-strip picture, .sc-strip img { display: block; width: 100%; height: auto; }
.sc-strip figcaption { font-size: 12px; }
@media (min-width: 700px) { .sc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-info { min-height: 150px; }
.sc-src-table { border-collapse: collapse; width: 100%; margin: 10px 0 4px; font: 14px/1.4 var(--mono); }
.sc-src-table th, .sc-src-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sc-src-table td:nth-child(2), .sc-src-table th:nth-child(2), .sc-src-table td:nth-child(3), .sc-src-table th:nth-child(3) { text-align: right; white-space: nowrap; }
.sc-src-table th { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--blue); }
@media (max-width: 699px) { .sc-src-table { font-size: 12.5px; } .sc-src-table th, .sc-src-table td { padding: 5px 4px; } }

/* the eight places: a map each, its share large; two columns on a phone, four from 900 px */
.sc-grid8 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.sc-tile { margin: 0 !important; position: relative; background: #0e121a; border: 1px solid var(--rule); }
.sc-tile img { border: 0 !important; }
.sc-tile figcaption { position: absolute; left: 0; top: 0; right: 0; margin: 0 !important; padding: 8px 10px 22px; color: #e7eaef; font: 12px/1.3 var(--mono); background: linear-gradient(rgba(12, 16, 24, .92), rgba(12, 16, 24, .8) 75%, rgba(12, 16, 24, 0)); display: flex; flex-direction: column; }
.sc-tile figcaption b { font: 600 15px/1.15 var(--cond); color: var(--ink); }
.sc-tile .sc-big { font: 600 34px/1.05 var(--cond); color: #ffc460; }
.sc-tile .sc-rush { color: #96c8fa; }
@media (min-width: 900px) { .sc-grid8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sc-tile .sc-big { font-size: 40px; } }
.sc-src-table td:nth-child(4), .sc-src-table th:nth-child(4), .sc-src-table td:nth-child(5), .sc-src-table th:nth-child(5) { text-align: right; white-space: nowrap; }
.sc-src-table .sc-total th, .sc-src-table .sc-total td { font-weight: 600; border-top: 2px solid var(--blue); }
.sc-list { padding-left: 20px; }
.sc-list li { margin: 4px 0; font-size: 15.5px !important; }
.sc-pair h3 { margin: 18px 0 4px; }
.sc-anim video { background: #0e121a !important; }
.sc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sc-t5 caption { text-align: left; font: 13px/1.4 var(--mono); color: var(--ink-3); padding-bottom: 4px; }
.sc-t5 th, .sc-t5 td { white-space: normal !important; }
@media (max-width: 699px) { .sc-t5 { font-size: 12px; } .sc-t5 thead th { font-size: 11px; line-height: 1.25; } .sc-t5 th:first-child { min-width: 92px; } }
@media (min-width: 700px) { .sc-anim-sq { max-width: 600px; margin-left: auto; margin-right: auto; } }
/* Adelaide in motion: the busiest roads table, a row header per road with its count year under the name */
.sc-src-table tbody th { font-weight: 600; border-bottom: 1px solid var(--rule); }
.sc-src-table tbody th small { display: block; font: 400 12px/1.3 var(--mono); color: var(--ink-3); }
.sc-tablewrap { overflow-x: auto; }
