/* The Moving house, region by region showcase page (showcase/migration-flows/index.html), from the engine-graph page's. Mobile first:
   one column; pairs side by side 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); }
/* 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(5, 1fr); }
  .sc-pair { grid-template-columns: 1fr 1fr; }
}
/* the box follows the clip it shows: page.js swaps in the square clip below 700 px, the wide one plays above */
@media (max-width: 699px) {
  .sc-anim.sc-square { max-width: 640px; }
  .sc-anim.sc-square .sc-anim-box { aspect-ratio: 1 / 1; }
}
@media (min-width: 700px) { .sc-anim.sc-square .sc-anim-box { aspect-ratio: 16 / 9; } }
.sc-anim.sc-square video { height: 100%; object-fit: contain; }
.sc-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; justify-content: start; }
.sc-wide { overflow: hidden; }
.sc code { font: 14px var(--mono); }

/* the linked views: the chart and the map side by side from 700 px, each a picture with an SVG over it in the
   picture's own coordinates (the hit areas, a dimming veil and the lit links from linked.json) */
.mf-hint { font: 13px/1.4 var(--mono) !important; color: var(--ink-3); margin: 0 0 6px; }
.mf-linked { display: grid; gap: 0 14px; }
.mf-view { position: relative; margin: 8px 0 !important; }
.mf-view img { aspect-ratio: 1 / 1; }
.mf-over { position: absolute; left: 1px; top: 1px; width: calc(100% - 2px); aspect-ratio: 1 / 1; height: auto; }
.mf-dim { fill: #0b0f1a; opacity: 0; transition: opacity .15s; pointer-events: none; }
.mf-chart .mf-dim { fill: #160a2b; }
.mf-linked.on .mf-dim { opacity: .62; }
.mf-lit { fill: none; stroke: #ffffff; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: .92; pointer-events: none; }
.mf-hits path { fill: transparent; stroke: transparent; cursor: pointer; }
.mf-hits path.on { stroke: #ffffff; stroke-width: 1.2; }
.mf-hits circle { fill: transparent; cursor: pointer; }
.mf-hits circle.on { stroke: #ffffff; stroke-width: 1.6; fill: none; }
.mf-read { border-top: 2px solid var(--blue); padding: 8px 0 2px; min-height: 112px; }
.mf-view figcaption { margin-top: 4px !important; }
.mf-read p { margin: 2px 0; }
.mf-place { font: 600 20px var(--cond) !important; color: var(--ink); }
.mf-crumb { font: 14px/1.5 var(--mono) !important; color: var(--ink-2); }
.mf-crumb b { margin-left: 10px; color: var(--red); white-space: nowrap; }
.mf-nums { font-size: 15px !important; color: var(--ink-3); }
.mf-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.mf-picks button { font: 600 12.5px var(--mono); border: 1.5px solid var(--blue); background: var(--panel); color: var(--ink); padding: 6px 10px; min-height: 36px; cursor: pointer; }
.mf-picks button[aria-pressed="true"], .mf-picks button:hover { background: var(--blue); color: var(--paper); }
.mf-picks .mf-clear { border-style: dashed; }
@media (min-width: 700px) { .mf-linked { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) {
  .mf-picks { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .mf-picks button { flex: none; font-size: 12px; padding: 4px 9px; min-height: 34px; }
}
