/* Cannonball Run live tracker: the public page (index.html).
   admin.html loads this file too, for the tokens in the first block of :root, the body,
   .num and .sr-only; everything else here is written for the public page only.
   Black with gold accents. No external resources. */

:root {
  /* shared with admin.html: keep these names and values */
  --gold: #F2D5A0;
  --bg: #000;
  --fg: #fff;
  --soft: #d6d6d6;
  --dim: #a2a2a2;
  --label: #8a8a8a;
  --line: #1f1f1f;
  --track: #2a2a2a;
  --pad: 16px;

  /* the public page */
  --gold2: #c9a45c;
  --gold3: #8d7440;
  --card: #131313;
  --card2: #181818;
  --hair: rgba(242, 213, 160, 0.16);
  --hair2: rgba(255, 255, 255, 0.07);
  --ink2: #c4c4c4;
  --ink3: #858585;
  --blue: #4a87de;
  --good: #2fbf4a;
  --warn: #fab219;
  --crit: #e0524f;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 14px/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.noscript { margin: 0; padding: 12px var(--pad); color: var(--dim); }

a { color: var(--gold); }

/* ------------- layout -------------
   Narrow (under 760 px): one column at its natural height - the map (300 px, with the
   route bar inside it), then the panel. Nothing scrolls on its own; full screen on a phone
   the page simply scrolls. The height follows what there is to say and the page has no way
   to tell a host page what it is, so a frame of a fixed size has to allow for the tallest.
   Measured at 320 px wide with the real plan's stop names: 974 px before the start, 1,005
   to 1,056 during the run (1,071 with the longest text in every field); 39 more for a
   one-line banner and 16 for each further line of it (50 characters can take two lines),
   20 for the Reconnecting note, 16 when the ahead/behind pill needs a row of its own. With
   a banner of up to 50 characters and all of those, 1,147: inside the 320 x 1,160 frame of
   the Wix phone layout. A banner of 140 characters (four lines) with all of those: 1,179.
   Below the page a taller frame shows the panel's own colour.
   Wide: the map on the left and a 400 px panel on the right, filling the window. The dial
   gives up height when the panel has more to show, so a 700 px frame never scrolls. */

/* What shows below the panel when a frame is taller than the page. */
html.tracker,
html.tracker body { background: #070707; }

.app { line-height: 1.17; }

.st-row,
.where,
.local,
.st-note,
.fine,
.map-note,
.rb-head,
.legs { margin: 0; }

.map {
  position: relative;
  isolation: isolate;
  height: 300px;
  background: #050505;
  overflow: hidden;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  padding: 12px 12px 10px;
  border-top: 1px solid var(--hair);
  background: linear-gradient(180deg, #0e0e0e, #070707);
}

@media (min-width: 760px) {
  html.tracker,
  html.tracker body { height: 100%; overflow: hidden; }

  .app {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-rows: minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .map { height: auto; min-height: 0; }

  /* the map sinks into the panel's edge */
  .map::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: inset -30px 0 40px -20px #000;
    pointer-events: none;
  }

  .panel {
    gap: 8px;
    min-height: 0;
    padding: 13px 18px 10px;
    border-top: 0;
    border-left: 1px solid var(--hair);
    overflow-x: hidden;
    overflow-y: auto; /* only a window too short for the panel ever scrolls it */
  }
}

/* ------------- panel: status ------------- */

.lbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink3);
}

.st-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 9px;
  min-width: 0;
}

.lamp {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lamp, #7a7a7a);
  box-shadow: 0 0 0 3px var(--lamp-ring, rgba(255, 255, 255, 0.07)), 0 0 14px 2px var(--lamp-glow, transparent);
}

.app[data-state='live'] {
  --lamp: var(--good);
  --lamp-ring: rgba(47, 191, 74, 0.18);
  --lamp-glow: rgba(47, 191, 74, 0.7);
}

.app[data-state='stopped'] {
  --lamp: var(--warn);
  --lamp-ring: rgba(250, 178, 25, 0.18);
  --lamp-glow: rgba(250, 178, 25, 0.55);
}

.app[data-state='lost'] {
  --lamp: var(--crit);
  --lamp-ring: rgba(224, 82, 79, 0.2);
  --lamp-glow: rgba(224, 82, 79, 0.6);
}

.app[data-state='pre'],
.app[data-state='overdue'],
.app[data-state='finished'] {
  --lamp: var(--gold);
  --lamp-ring: rgba(242, 213, 160, 0.16);
  --lamp-glow: rgba(242, 213, 160, 0.45);
}

.app[data-state='live'] .lamp { animation: lamp-pulse 1.8s ease-in-out infinite; }

@keyframes lamp-pulse {
  50% { box-shadow: 0 0 0 6px rgba(47, 191, 74, 0.08), 0 0 20px 4px rgba(47, 191, 74, 0.9); }
}

.st-word,
.st-tick {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fg);
}

.st-tick:empty { display: none; }

.st-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.st-ago {
  font-size: 12px;
  color: var(--ink3);
  white-space: nowrap;
}

.st-net {
  padding: 1px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px;
  color: var(--ink2);
  white-space: nowrap;
}

.where {
  margin-top: -4px;
  font-size: 15px;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.tag {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 7px;
  border: 1px solid rgba(250, 178, 25, 0.5);
  border-radius: 999px;
  background: rgba(250, 178, 25, 0.08);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  white-space: nowrap;
  vertical-align: 2px;
}

/* the time at the car */
.local {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: -7px;
  font-size: 12px;
  color: var(--ink2);
}

.where[hidden] + .local { margin-top: -3px; }

.lc-ico { flex: none; width: 14px; height: 14px; }
.lc-ico svg { display: block; width: 14px; height: 14px; }
.lc-text { min-width: 0; }
.local b { color: var(--fg); font-weight: 600; }

/* operator banner */
.st-note {
  padding: 6px 10px 6px 11px;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(242, 213, 160, 0.07);
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--fg);
  overflow-wrap: anywhere;
}

/* ------------- panel: cards ------------- */

.card {
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid var(--hair2);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--card2), var(--card));
}

/* projected finish */
.finish {
  display: grid;
  row-gap: 3px;
  border-color: var(--hair);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(242, 213, 160, 0.13), rgba(242, 213, 160, 0) 55%),
    linear-gradient(180deg, var(--card2), var(--card));
}

/* label on the left, the pill on the right; a pill too long for the row drops under the label */
.fin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 2px;
  min-width: 0;
}

.fin-head .lbl { white-space: nowrap; }

.delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.delta i { display: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }

.delta.ahead { border-color: rgba(47, 191, 74, 0.45); background: rgba(47, 191, 74, 0.1); }
.delta.ahead i { display: block; border-bottom: 8px solid var(--good); }
.delta.behind { border-color: rgba(250, 178, 25, 0.5); background: rgba(250, 178, 25, 0.1); }
.delta.behind i { display: block; border-top: 8px solid var(--warn); }

.finish .big {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.finish .big small {
  margin-left: 6px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.finish .sub { font-size: 12px; color: var(--ink2); }

/* speedometer row: now | dial | plan */
.dialrow {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  margin: -2px 0 -6px;
}

.stat { text-align: center; }
.stat .v { margin-top: 5px; font-size: 21px; font-weight: 600; line-height: 1; }
.stat .u { margin-top: 2px; font-size: 10px; letter-spacing: 0.08em; color: var(--ink3); }
.stat .key { width: 18px; height: 3px; margin: 7px auto 0; border-radius: 2px; }
.key-now { background: #fff; }
.key-plan { background: var(--blue); }

/* current speed switched off: the stat goes, the dial stays in the middle */
.dialrow.no-now #stat-now { visibility: hidden; }

.dial-box { min-width: 0; min-height: 0; }

.dial-svg {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.dial-svg text { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.d-num { fill: #efe7d3; font-size: 13px; font-weight: 600; }
.d-avg { fill: #fff; font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.d-unit { fill: #8a8a8a; font-size: 8.5px; font-weight: 600; letter-spacing: 1.6px; }

.d-rot {
  transform-box: view-box;
  transform-origin: 0 0;
}

/* The needle, the arc and the bar ease from one reading to the next, but not on to the
   first one: track.js adds .ready once the first figures are on screen. */
.app.ready .d-rot { transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.app.ready .d-val { transition: stroke-dasharray 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* time elapsed | time to go */
.times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
}

.times .t { margin-top: 3px; font-size: 24px; font-weight: 600; line-height: 1.1; }
.times .p { font-size: 12px; color: var(--ink2); }
.times .r { text-align: right; }

.split {
  position: relative;
  grid-column: 1 / -1;
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(242, 213, 160, 0.16);
  overflow: hidden;
}

.split span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
}

.app.ready .split span { transition: width 0.6s ease; }

/* at the wheel | next stop */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.who {
  display: flex;
  align-items: center;
  gap: 11px;
}

.who-t { min-width: 0; }

.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #3a3a3a;
  box-shadow: 0 0 0 2px #0a0a0a, 0 0 0 3px var(--gold3);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.who .n { font-size: 19px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.who .n-next { font-size: 15px; }
.who .s { margin-top: 2px; font-size: 11.5px; color: var(--ink2); overflow-wrap: anywhere; }
.who .s:empty { display: none; }

.icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(242, 213, 160, 0.1);
}

.icon svg { display: block; }

/* start line and the full-screen link (only when framed) */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 6px;
  margin-top: auto;
  font-size: 11.5px;
  color: var(--ink3);
}

.foot .fs { margin-left: auto; color: var(--gold); text-decoration: none; white-space: nowrap; }
.foot .fs svg { width: 9px; height: 9px; margin-left: 3px; }

.fine {
  padding-top: 7px;
  border-top: 1px solid var(--hair2);
  font-size: 10px;
  line-height: 1.38;
  color: #8a8a8a;
}

@media (min-width: 760px) {
  .fin-head { column-gap: 8px; }
  .delta { gap: 6px; padding: 5px 9px; font-size: 12.5px; }
  .finish .big { font-size: 40px; }

  /* The one row that flexes: 221 px tall when there is room (the dial at its full width),
     less when the banner or a long line takes height above or below it. */
  .dialrow {
    flex: 0 1 221px;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    grid-template-rows: minmax(0, 1fr);
    min-height: 84px;
  }

  .dial-box { height: 100%; }
  .dial-svg { height: 100%; max-width: none; }
  .stat .v { font-size: 26px; }

  .times .t { font-size: 29px; }

  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  /* half the width: "Driver change" has to fit on one line beside the icon */
  .who .n-next { font-size: 13.5px; }

  .st-row,
  .where,
  .local,
  .st-note,
  .card,
  .pair,
  .foot,
  .fine { flex: none; }
}

/* The operator's banner takes its height from the dial. In a window as short as the 700 px
   frame the next stop gives some back while a banner is up: its distance stays, the place
   after it goes (up to three lines of the half-width card). From 760 px of height there is
   room for both. */
@media (min-width: 760px) and (min-height: 620px) and (max-height: 759px) {
  .st-note:not([hidden]) ~ .pair .nx-place { display: none; }
}

/* A window too short for the panel (a phone held sideways is 760 px wide or more and at
   most about 430 px tall): the dial would shrink to its 84 px floor, numerals 4 px high,
   and the panel scroll all the same. Instead the dial keeps its full size and the panel
   scrolls beside the map. Up to 619 px, because at 600 the stopped car with the longest
   next stop name still does not fit with the dial at its floor; from 620 every state does,
   with a banner of one line. */
@media (min-width: 760px) and (max-height: 619px) {
  .dialrow { flex: 0 0 221px; }
}
/* From 620 to 699 px tall (a laptop's browser window opened full screen) the dial would
   still shrink to 84-141 px at stops and with a banner; it stops at 165 px (numerals about
   8 px) and the panel scrolls instead. The 980 x 700 embed is not affected. */
@media (min-width: 760px) and (min-height: 620px) and (max-height: 699px) {
  .dialrow { min-height: 165px; }
}

/* ------------- map ------------- */

#map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.map-btns {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}

.mbtn {
  margin: 0;
  padding: 6px 11px;
  border: 1px solid rgba(242, 213, 160, 0.3);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.8);
  color: #ececec;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mbtn[aria-pressed='true'] {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
}

.mbtn:disabled { opacity: 0.45; cursor: default; }

.mbtn:focus-visible,
.foot .fs:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.map-note {
  position: absolute;
  top: 46px;
  left: 10px;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  font-size: 11px;
  color: var(--dim);
  pointer-events: none;
}

/* MapLibre chrome on a dark page */
.maplibregl-map { font: 12px/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif; }

.maplibregl-ctrl-group:not(:empty) {
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 0 0 1px rgba(242, 213, 160, 0.3);
}

.maplibregl-ctrl-group button + button { border-top-color: #3a3a3a; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }

/* The attribution sits just above the route bar (--rb-lift is set by track.js), dark like
   the rest of the page. */
.map .maplibregl-ctrl-bottom-right { bottom: var(--rb-lift, 0px); }

.map .maplibregl-ctrl.maplibregl-ctrl-attrib,
.map .maplibregl-ctrl-attrib.maplibregl-compact {
  background-color: rgba(0, 0, 0, 0.72);
  color: #cfcfcf;
}

.map .maplibregl-ctrl-attrib a { color: #cfcfcf; }
.map .maplibregl-ctrl-attrib-button { background-color: hsla(0, 0%, 100%, 0.75); filter: invert(1); }
.map .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button { background-color: hsla(0, 0%, 100%, 0.85); }

.maplibregl-popup-content {
  padding: 7px 10px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: #0d0d0d;
  color: #fff;
  font-size: 12px;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: #3a3a3a; }

.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: #3a3a3a; }

.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #3a3a3a; }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #3a3a3a; }

/* Until the map's first frame with every overlay drawn is on screen (track.js then removes
   .map-wait), its canvas and markers stay transparent over the black of .map, the same black
   as the map's own style: the routes, path, stops, pins and car come on together. Opacity,
   not visibility, so the canvas keeps being composited and shows its latest frame at once. */
.map-wait .maplibregl-canvas-container { opacity: 0; }

/* Car marker (an HTML marker on the map, an svg group in the no-WebGL fallback) */
.car { width: 0; height: 0; pointer-events: none; }

.car-in {
  position: absolute;
  left: -17px;
  top: -17px;
  width: 34px;
  height: 34px;
}

.car svg { display: block; overflow: visible; }

.c-halo { fill: rgba(242, 213, 160, 0.24); }
.c-dot { fill: var(--gold); stroke: #000; stroke-width: 2; }
.c-arrow { fill: var(--gold); stroke: #000; stroke-width: 1.5; stroke-linejoin: round; }
.app.ready .c-rot { transition: transform 0.5s ease; } /* turns to a new heading; the first one is just shown */

[data-st='live'] > svg .c-halo,
g[data-st='live'] .c-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: car-pulse 2.2s ease-out infinite;
}

[data-st='lost'] .c-dot { fill: #000; stroke: var(--gold); }
[data-st='lost'] .c-arrow,
[data-st='lost'] .c-halo { opacity: 0.45; }

@keyframes car-pulse {
  0% { transform: scale(0.55); opacity: 0.95; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Garage and hotel pins */
.pin { width: 0; height: 0; pointer-events: none; }

.pin i {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #000;
}

.pin.finish i { border-color: var(--gold); }

.pin span {
  position: absolute;
  bottom: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: 600 11px/1.3 'Helvetica Neue', Helvetica, Arial, sans-serif;
  white-space: nowrap;
}

.pin.start span { right: -7px; }
.pin.finish span { left: -7px; }

/* No-WebGL fallback: routes on black, drawn as svg */
.lite { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.lite .l-route { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lite .l-path { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lite .l-inf { stroke-linecap: butt; stroke-dasharray: 5 6; }
.lite .l-stop { fill: #000; stroke: #fff; stroke-width: 1.5; }
.lite .l-pin { fill: #000; stroke: #fff; stroke-width: 2; }
.lite .l-pin.finish { stroke: var(--gold); }
.lite .l-label { fill: #fff; font: 600 11px 'Helvetica Neue', Helvetica, Arial, sans-serif; paint-order: stroke; stroke: #000; stroke-width: 3px; stroke-linejoin: round; }

/* ------------- route bar (over the bottom of the map) ------------- */

.ribbon {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 20px 12px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.86) 62%, rgba(0, 0, 0, 0) 100%);
}

.rb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.rb-head b { font-size: 16px; font-weight: 600; color: var(--fg); }
.rb-head span { font-size: 12px; color: var(--ink2); }
.rb-r { white-space: nowrap; }

.rb-bar { height: 46px; }
.rb-bar svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rb-bar text { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }

.legs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--ink2);
}

.legs span { white-space: nowrap; }
.legs i { display: inline-block; width: 14px; height: 5px; margin-right: 5px; border-radius: 2.5px; vertical-align: middle; }
.legs em { font-style: normal; color: var(--ink3); }

@media (min-width: 760px) {
  .ribbon { padding: 26px 18px 12px; }
  .rb-head b { font-size: 20px; }
  .rb-bar { height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
