/* lunupa Scaffold Panel: shared styles for the test site and the panel.
   Colours come from the scaffold tag itself: green = freigegeben, red = gesperrt,
   amber = wind warning, on galvanised grey. */
@import url(/scaffolding/fonts/fonts.css);

:root {
  color-scheme: light;
  --paper: #eef1f2;
  --card: #ffffff;
  --ink: #17202b;
  --steel: #56656f;
  --line: #d3dade;
  --free: #1e8a4a;
  --free-bg: #e3f3e9;
  --free-ink: #17733d;   /* green for text and buttons: 5.1:1 on --free-bg, white on it 5.9:1 (--free is 3.8 and 4.4) */
  --lock: #c62f2a;
  --lock-bg: #fbe6e4;
  --wind: #d99410;
  --wind-bg: #fdf1d8;
  --work: #3c6e9e;
  --work-bg: #e3edf6;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --r: 8px;
  --shadow: 0 1px 2px rgba(23,32,43,.05), 0 1px 1px rgba(23,32,43,.03);
  --lift: 0 6px 18px rgba(23,32,43,.09), 0 1px 3px rgba(23,32,43,.06);
  --ink-2: #2b3846;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--body);
}
a { color: var(--ink); }
/* Headings in Plex Sans, sentence case. Barlow Condensed is kept for the printed
   tag, which copies the lettering on a real scaffold tag. */
h1, h2, h3 { font-family: var(--body); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.015em; }
.mono, .num { font-family: var(--mono); font-feature-settings: "tnum"; }
.muted { color: var(--steel); }
.label { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; color: var(--steel); }
:focus-visible { outline: 3px solid var(--wind); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--body);
  padding: 11px 16px; border-radius: var(--r);
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn.ghost { background: transparent; color: var(--ink); }
.btn { transition: background-color .12s, border-color .12s, box-shadow .12s, transform .06s; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.ghost:hover { background: rgba(23,32,43,.06); border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.small { padding: 7px 11px; font-size: 13.5px; }
.btn.free { background: var(--free-ink); border-color: var(--free-ink); }
.btn.lock { background: var(--lock); border-color: var(--lock); }
.btn.free:hover { background: #125f32; border-color: #125f32; }
.btn.lock:hover { background: #a92622; border-color: #a92622; }
.btn:disabled { opacity: .45; cursor: default; }

/* The scaffold tag: the one object every scaffolder knows. */
.tag {
  position: relative; display: grid; grid-template-columns: 10px 1fr; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow); color: var(--ink); transition: box-shadow .15s, border-color .15s, transform .15s;
}
a.tag:hover, .tag[data-go]:hover { border-color: #b8c3c9; box-shadow: var(--lift); }
.tag::after { /* punched hole */
  content: ""; position: absolute; top: 12px; right: 12px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.tag .band { background: var(--steel); }
.tag.free .band { background: var(--free); }
.tag.lock .band { background: var(--lock); }
.tag.wind .band { background: var(--wind); }
.tag.work .band { background: var(--work); }
.tag .body { padding: 12px 34px 12px 14px; min-width: 0; }
.tag .id { font: 500 17px/1.1 var(--mono); letter-spacing: -.01em; }

.pill {
  display: inline-block; font: 600 11px/1 var(--body); text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 7px 4px; border-radius: 3px; background: var(--paper); color: var(--steel); white-space: nowrap;
}
.pill.free { background: var(--free-bg); color: var(--free-ink); }
.pill .tick { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 3px; }
.pill.lock { background: var(--lock-bg); color: var(--lock); }
.pill.wind { background: var(--wind-bg); color: #8a5c00; }
.pill.work { background: var(--work-bg); color: var(--work); }

/* Wind chart: one blue line, red only where a gust passes the limit. */
.windchart { width: 100%; height: auto; display: block; }
.windchart text { font: 500 10.5px var(--body); font-feature-settings: "tnum"; fill: #7d8b94; }
.windchart .grid { stroke: #e9edef; stroke-width: 1; }
.windchart .base { stroke: #c5cdd2; stroke-width: 1; }
.windchart .ahead { fill: #f6f8f9; }
.windchart .over { fill: rgba(198,47,42,.13); }
.windchart .line { fill: none; stroke: var(--work); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.windchart .line.fc { stroke-dasharray: 5 4; }
.windchart .line.hot { stroke: var(--lock); }
.windchart .limit { stroke: var(--lock); stroke-width: 1; }
.windchart .lim, .windchart .peak { fill: var(--lock); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.windchart .dot { fill: #fff; stroke: var(--lock); stroke-width: 1.8; }
.windchart .now { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.windchart .nowtag rect { fill: var(--ink); }
.windchart .nowtag text { fill: #fff; font-weight: 600; }
.windchart .side { fill: var(--steel); }
