/* /gate-lice. Everything here is scoped to .gl-page or a gl- class, on top of
   the site stylesheet. Two colours carry the whole page: the passengers who
   waited for their group, and the ones who did not. */
.gl-page .guide-shell { grid-template-columns: minmax(0, 1fr); max-width: 1040px; }
.gl-page .guide-head { max-width: 1040px; }
.gl-page .guide-head { padding-top: 16px; padding-bottom: 16px; }
.gl-page .guide-head h1 { font-size: clamp(20px, 3.5vw, 31px); line-height: 1.2; letter-spacing: 0.01em; margin: 8px 0 8px; text-wrap: balance; }
.gl-page .guide-head p { font-size: clamp(14.5px, 1.5vw, 15.5px); max-width: 100ch; color: var(--ink-2); line-height: 1.5; }

.gl-lab {
  --gl-rule: #3b93f0; --gl-jump: #e0962a;
  --gl-hull: #101d2e; --gl-hull-line: rgba(140, 178, 220, 0.42);
  --gl-seat: rgba(140, 178, 220, 0.24); --gl-ink: #dce8f5; --gl-mute: #93a7bd; --gl-ring: #f4f8fc;
  padding: 20px 22px 18px;
}
html.light .gl-lab {
  --gl-rule: #1f6fd0; --gl-jump: #b86200;
  --gl-hull: #f3f7fb; --gl-hull-line: rgba(30, 60, 100, 0.42);
  --gl-seat: rgba(30, 60, 100, 0.22); --gl-ink: #14213a; --gl-mute: #44546d; --gl-ring: #14213a;
}

/* controls: one sentence you can edit, not a settings form */
.gl-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 36px; align-items: start; }
.gl-ask { font-size: 15px; color: var(--ink); }
.gl-ask label { display: grid; gap: 6px; }
.gl-ask select { width: 100%; max-width: 100%; }
.gl-ask select {
  font: 600 14.5px var(--font-body); color: var(--ink); background: var(--panel-solid);
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; min-height: 40px;
}
.gl-ask select:focus-visible, .gl-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gl-slide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.gl-slide label { font-size: 15px; color: var(--ink); }
.gl-slide label b { color: var(--gl-jump); font-family: var(--font-mono); font-size: 17px; font-weight: 600; }
.gl-range { width: 100%; accent-color: var(--gl-jump); height: 30px; margin: 0; }
.gl-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

.gl-lanes { display: grid; gap: 6px; margin-top: 14px; }
.gl-lane { margin: 0; border-top: 1px solid var(--line); padding-top: 10px; }
.gl-lane figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 4px; }
.gl-name { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em; color: var(--ink); }
.gl-lane-b .gl-name { color: var(--gl-jump); }
.gl-sub { font-size: 13px; color: var(--ink-2); flex: 1 1 220px; }
.gl-clock { font-family: var(--font-mono); font-size: 24px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.gl-seated { font-size: 12.5px; color: var(--ink-3); min-width: 13ch; text-align: right; }
.gl-lane.first .gl-clock { color: var(--good); }
.gl-lane.first .gl-seated::after { content: ", finished first"; color: var(--good); }
html.light .gl-lane.first .gl-clock, html.light .gl-lane.first .gl-seated::after { color: #14603a; }
.gl-canvas { width: 100%; }
.gl-canvas canvas { display: block; width: 100%; }

.gl-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--ink-2); margin: 10px 0 0; padding: 0; list-style: none; }
.gl-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.gl-key .k-rule { background: var(--gl-rule); }
.gl-key .k-jump { background: var(--gl-jump); }
.gl-key .k-stow { background: var(--gl-rule); box-shadow: 0 0 0 2px var(--panel-solid), 0 0 0 3.4px var(--gl-ring); margin-left: 3px; margin-right: 10px; }

.gl-verdict { font-size: clamp(16px, 2.2vw, 20px); color: var(--ink); margin: 16px 0 4px; min-height: 1.5em; line-height: 1.4; }
.gl-verdict.faster strong { color: var(--good); }
.gl-verdict.slower strong { color: var(--amber); }
html.light .gl-verdict.faster strong { color: #14603a; }
.gl-average { font-size: 13.5px; color: var(--ink-2); max-width: 74ch; line-height: 1.6; margin: 0 0 14px; }
.gl-average strong { color: var(--ink); }
.gl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-buttons button { min-height: 40px; }
/* without JavaScript there is nothing to play: hide the stage, keep the text */
.gl-lab:not(.ready) .gl-lanes, .gl-lab:not(.ready) .gl-buttons, .gl-lab:not(.ready) .gl-controls, .gl-lab:not(.ready) .gl-key { display: none; }

/* the chart */
.gl-chart { position: relative; margin: 14px 0 6px; }
.gl-chart svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.gl-grid { stroke: var(--line); stroke-width: 1; }
.gl-tick, .gl-axis, .gl-reflabel, .gl-end { font-family: var(--font-body); font-size: 12px; fill: var(--ink-3); }
.gl-end { font-size: 12.5px; fill: var(--ink-2); font-weight: 600; }
.gl-ref { stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 4 5; }
.gl-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gl-pt { stroke: var(--panel-solid); stroke-width: 2; }
.gl-cross { stroke: var(--line-strong); stroke-width: 1; }
.gl-line.gl-s-airline { stroke: #3b93f0; } .gl-pt.gl-s-airline, .gl-sw.gl-s-airline { fill: #3b93f0; background: #3b93f0; }
.gl-line.gl-s-b2f { stroke: #c68120; } .gl-pt.gl-s-b2f, .gl-sw.gl-s-b2f { fill: #c68120; background: #c68120; }
.gl-line.gl-s-wilma { stroke: #9a70f0; } .gl-pt.gl-s-wilma, .gl-sw.gl-s-wilma { fill: #9a70f0; background: #9a70f0; }
.gl-line.gl-s-steffen { stroke: #27ab6c; } .gl-pt.gl-s-steffen, .gl-sw.gl-s-steffen { fill: #27ab6c; background: #27ab6c; }
html.light .gl-line.gl-s-airline { stroke: #1f6fd0; } html.light .gl-pt.gl-s-airline, html.light .gl-sw.gl-s-airline { fill: #1f6fd0; background: #1f6fd0; }
html.light .gl-line.gl-s-b2f { stroke: #a05e00; } html.light .gl-pt.gl-s-b2f, html.light .gl-sw.gl-s-b2f { fill: #a05e00; background: #a05e00; }
html.light .gl-line.gl-s-wilma { stroke: #6b3fd6; } html.light .gl-pt.gl-s-wilma, html.light .gl-sw.gl-s-wilma { fill: #6b3fd6; background: #6b3fd6; }
html.light .gl-line.gl-s-steffen { stroke: #0f8a55; } html.light .gl-pt.gl-s-steffen, html.light .gl-sw.gl-s-steffen { fill: #0f8a55; background: #0f8a55; }
.gl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.gl-sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.gl-legend .gl-sw-ref { background: none; border-top: 2px dashed var(--ink-3); height: 0; }
.gl-tip {
  position: absolute; top: 8px; pointer-events: none; min-width: 210px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 11px; font-size: 12.5px; color: var(--ink-2); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
}
.gl-tip b { display: block; color: var(--ink); margin-bottom: 5px; font-weight: 600; }
.gl-tip span { display: flex; align-items: center; gap: 0; line-height: 1.75; }
.gl-tip em { margin-left: auto; padding-left: 14px; font-style: normal; font-family: var(--font-mono); color: var(--ink); }

.gl-page .guide-sec h2 { font-size: clamp(16px, 2.2vw, 19px); }
.gl-page .guide-sec p, .gl-page .guide-sec li { font-size: 15px; line-height: 1.68; max-width: 70ch; }
.gl-page .guide-sec li { color: var(--ink-2); margin: 5px 0; }
.gl-page .guide-sec ul { padding-left: 20px; margin: 8px 0; }
.gl-page .guide-sec .claim { margin-bottom: 2px; }
.gl-page .tablewrap { margin: 14px 0 8px; }
.gl-page .tablewrap td.up { color: var(--amber); }
.gl-page .tablewrap td.down { color: var(--good); }
html.light .gl-page .tablewrap td.down { color: #14603a; }
.gl-faq h3 { font-size: 15.5px; margin: 20px 0 4px; color: var(--ink); }
.gl-next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (max-width: 720px) {
  .gl-lab { padding: 16px 12px 14px; }
  .gl-controls { grid-template-columns: minmax(0, 1fr); }
  .gl-page .guide-sec { padding: 20px 16px; }
  .gl-clock { font-size: 21px; margin-left: auto; }
  .gl-sub { flex: 1 1 100%; order: 3; }
  .gl-seated { flex: 1 1 100%; order: 4; text-align: left; }
}
