:root {
  --canvas: #f6f8f6;
  --paper: #fdfefb;
  --ink: #172e3e;
  --muted: #475d65;
  --teal: #086b68;
  --mint: #dceee9;
  --line: #cedbd9;
  --saffron: #edc66e;
}
.sj-hero h1 { max-width: 12ch; }
.sj-cover { background: #d4e0dd; }
.sj-cover img { object-position: 38% 50%; }
.sj-context { border-color: var(--saffron); }
.sj-deck { color: #304b57; }
.sj-note { background: #e1f0ed; border-color: #c5e0dc; }
.sj-journey-head { background: #203e4d; }
.sj-journey article p:last-child { color: #294f53; background: #edf5f2; }
.sj-demo { background: #193b4a; }
.sj-demo .sj-kicker { color: #bde3df; }
.sj-demo a { background: #f6d990; color: #1c3641; }
.sf-board {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px; border: 1px solid #c0d6d3; overflow: hidden; border-radius: 9px;
  background: repeating-linear-gradient(90deg, transparent 0 24px, #b5cfcd38 24px 25px), repeating-linear-gradient(0deg, transparent 0 24px, #b5cfcd38 24px 25px), #e5eeea;
}
.sf-device { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(19px, 2.4vw, 34px); }
.sf-device + .sf-device { border-left: 1px solid #bfd3ce; }
.sf-label { margin: 0 0 12px; font: 500 .77rem/1.5 var(--mono); color: #35545a; }
.sf-pass, .sf-gate { width: 100%; max-width: 305px; overflow: hidden; border: 1px solid #b8cdc9; border-radius: 8px; background: #fffefa; box-shadow: 0 12px 20px -16px #173a425e; }
.sf-pass { border-top: 5px solid var(--teal); }
.sf-pass-top, .sf-gate-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 11px 14px; font: 560 .77rem/1.4 var(--ui); }
.sf-pass-top { border-bottom: 1px solid #d8e3dd; }
.sf-pass-top span:last-child { color: #5b5e4a; padding: 3px 6px; border-radius: 3px; background: #f7ecc9; font: 500 .65rem/1.35 var(--mono); }
.sf-pass-hint { margin: 16px 15px 2px; color: #4d635f; font-size: .8rem; }
.sf-pass-time { display: block; margin-inline: 14px; font: 500 clamp(1.65rem, 2.55vw, 2.45rem)/1.12 var(--ui); letter-spacing: -.055em; }
.sf-pass-rule { margin: 5px 15px 16px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.sf-ticket-line { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px dashed #aec1b9; padding: 14px; background: #f0f5ef; }
.sf-ticket-line small, .sf-ticket-line b { display: block; }
.sf-ticket-line small { color: var(--muted); font: .69rem/1.45 var(--ui); }
.sf-ticket-line b { margin-top: 2px; font: 580 .88rem/1.4 var(--mono); }
.sf-code {
  position: relative; width: 38px; height: 38px; flex: none; background-color: white;
  border: 3px solid white; outline: 1px solid #ccd7d0;
  background-image: conic-gradient(#244445 25%,white 0 50%,#244445 0 75%,white 0);
  background-size: 7px 7px;
}
.sf-code i { position: absolute; height: 11px; width: 11px; background: #244445; border: 2px solid #244445; box-shadow: 0 0 0 1px white, inset 0 0 0 1px white; }
.sf-code i:nth-child(1) { top: 0; left: 0; }
.sf-code i:nth-child(2) { top: 0; right: 0; }
.sf-code i:nth-child(3) { bottom: 0; left: 0; }
.sf-gate-top { color: white; background: #203f50; }
.sf-gate-top time { font: .79rem/1.45 var(--mono); color: #dcebe9; }
.sf-gate-state { background: #e5f1ea; margin: 14px; padding: 10px 12px; border-left: 3px solid #16746b; }
.sf-gate-state strong { color: #144d44; font-size: 1.12rem; }
.sf-gate-state p { color: #395b53; font-size: .81rem; line-height: 1.45; }
.sf-gate dl { margin: 0 14px 12px; }
.sf-gate dl > div { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; margin: 5px 0; font-size: .79rem; }
.sf-gate dt { color: var(--muted); }
.sf-gate dd { font: 550 .78rem/1.5 var(--mono); }
.sf-faux { display: block; background: var(--teal); color: white; text-align: center; padding: 7px; margin: 0 14px 14px; border-radius: 4px; font: 540 .8rem/1.5 var(--ui); }
.sf-board figcaption { grid-column: 1/-1; padding: 12px 18px; background: #f1f5f1; border-top: 1px solid #c3d5cc; font-size: .87rem; color: #465f5d; }
.sf-decisions { margin: 28px 0 0; }
.sf-decisions h3 { margin: 0 0 10px; font: 530 1.24rem/1.4 var(--sans); letter-spacing: -.025em; }
.sf-decisions dl > div { display: grid; grid-template-columns: minmax(120px,.35fr) 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.sf-decisions dt { color: #484632; font-weight: 620; }
.sf-decisions dd { color: var(--muted); }
@media (max-width: 720px) {
  .sj-journey article h3 { background: #203e4d; }
}
@media (max-width: 570px) {
  .sj-hero h1 { max-width: 13ch; }
  .sf-board { grid-template-columns: 1fr; }
  .sf-device + .sf-device { border-left: 0; border-top: 1px solid #bfd3ce; }
  .sf-decisions dl > div { grid-template-columns: 1fr; gap: 3px; }
}
