/* Built-in data showcase page (from the flights page): hero, video, stats, a gallery per family, the filterable table. */
.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); }
/* the short names on the outlines, shown from zoom 15 (map.js sets .sc-named) */
/* 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-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) {
}

/* 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) {
}
/* 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) {
}
/* the count under the legend, the three other views side by side */

.sc-anim.sc-square { max-width: 640px; }
.sc-anim.sc-square .sc-anim-box { aspect-ratio: 1 / 1; }

/* three globes side by side on a wide screen, one above another on a phone */
/* the app on a computer beside the app on a phone, the phone a narrow column; one above the other on a phone */
.sc-app { display: grid; gap: 12px; margin: 14px 0; align-items: start; }
.sc-app figure { margin: 0; }
.sc-app figure:last-child img { max-width: 260px; }
@media (min-width: 700px) { .sc-app { grid-template-columns: 3fr 1fr; } .sc-app figure:last-child img { max-width: 100%; } }

/* the year's rankings as tables: side by side on a wide screen */
.sc-note { border-left: 3px solid var(--amber); padding: 4px 0 4px 12px; margin: 16px 0; }

/* the families as chips under the stats */
.bd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 4px; }
.bd-chip { font: 600 12.5px var(--mono); text-transform: uppercase; letter-spacing: .03em; border: 1px solid var(--rule); padding: 6px 10px; color: var(--ink); text-decoration: none; background: var(--panel); }
.bd-chip b { color: var(--red); }
.bd-chip:hover { border-color: var(--blue); background: var(--blue); color: var(--paper); }
/* a gallery per family: one column on a phone, two, then three */
.bd-family h2 .bd-n { font: 600 .7em var(--mono); color: var(--red); vertical-align: middle; }
.bd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 12px 0; }
.bd-fig { margin: 0 !important; }
.bd-fig a { display: block; }
.bd-fig figcaption { font-size: 12.5px; }
.bd-fig figcaption b { display: block; font: 600 14px var(--sans); color: var(--ink); margin-bottom: 2px; }
.bd-fig figcaption i { font-style: normal; color: var(--ink-2, var(--ink-3)); }
@media (min-width: 700px) { .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* the table: words and family filters, a count; on a phone each row a card */
.bd-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 10px 0; }
.bd-filter label { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--mono); text-transform: uppercase; color: var(--ink-3); flex: 1 1 200px; }
.bd-filter input, .bd-filter select { font: 15px var(--mono); padding: 8px 10px; border: 2px solid var(--blue); background: var(--panel); color: var(--ink); min-height: 40px; }
.bd-filter output { font: 600 14px var(--mono); color: var(--ink); padding: 0 0 10px; }
.bd-table { margin: 6px 0; }
.bd-table table { width: 100%; border-collapse: collapse; font: 13px/1.4 var(--mono); }
.bd-table th, .bd-table td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--rule); }
.bd-table th { color: var(--ink); border-bottom: 2px solid var(--blue); font-weight: 600; position: sticky; top: 0; background: var(--paper); }
.bd-table td b { font: 600 14px var(--sans); color: var(--ink); }
.bd-about, .bd-ver { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.bd-table code { font-size: 12px; white-space: nowrap; }
.bd-table tr:target td { background: rgba(80, 140, 220, .15); }
.bd-none { color: var(--ink-3); }
@media (max-width: 899px) {
  .bd-table thead { display: none; }
  .bd-table tr { display: block; border-bottom: 2px solid var(--rule); padding: 8px 0; }
  .bd-table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; border: 0; padding: 3px 0; overflow-wrap: anywhere; }
  .bd-table td::before { content: attr(data-th); font: 600 11px var(--mono); text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
  .bd-table td:first-child { display: block; }
  .bd-table td:first-child::before { display: none; }
  .bd-table code { white-space: normal; }
}
.bd-credits { padding-left: 18px; }
.bd-credits li { font-size: 13.5px !important; color: var(--ink-3); margin: 3px 0; overflow-wrap: anywhere; }
.bd-credits b { color: var(--ink); }
