/*
 * energy-arb-now.css — 28th distinct flavor: weather-station-bulletin.
 *
 * Visual language: slate background like a weather-station chalkboard,
 * chalk-yellow + ivory numbers, brass-rim dial gauges (anemometer cups,
 * barometer needle), a 24-h chalk-bar curve, flag-up VERDICT panel.
 *
 * Body: Familjen Grotesk. Headlines + station tags: Chakra Petch.
 * Technical numbers + monospace tokens: IBM Plex Mono.
 *
 * Contrast: chalk-yellow #e9c97a + ivory #f0e6c8 on slate #1f2530 reads
 * at >10:1 (AAA on body text). The barometer + anemometer use brass-rim
 * #b48a3f outlines on slate for shop-window depth.
 */

:root {
  --ws-slate:        #1f2530;
  --ws-slate-deep:   #161b24;
  --ws-slate-pale:   #2a3140;
  --ws-slate-border: #313a4c;
  --ws-board:        #232a36;
  --ws-board-deep:   #1a2029;
  --ws-chalk:        #e9c97a;
  --ws-chalk-bright: #f4d98e;
  --ws-ivory:        #f0e6c8;
  --ws-ivory-mute:   #d4cab0;
  --ws-brass:        #b48a3f;
  --ws-brass-deep:   #8a6a2e;
  --ws-low:          #6aa3c4;
  --ws-mid:          #e9c97a;
  --ws-high:         #d96249;
  --ws-go:           #58c46d;
  --ws-stop:         #d96249;
  --ws-hold:         #e9c97a;
  --ws-ink:          #c8c0a8;
  --ws-ink-mute:     #98907a;
  --ws-radius:       4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ws-slate);
  color: var(--ws-ivory);
  font-family: "Familjen Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  min-height: 100vh;
}

body.ws-body {
  background:
    radial-gradient(circle at 18% 12%, rgba(233,201,122,0.05), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(106,163,196,0.04), transparent 45%),
    repeating-linear-gradient(
      0deg,
      var(--ws-slate) 0px,
      var(--ws-slate) 22px,
      var(--ws-slate-deep) 23px,
      var(--ws-slate) 24px
    );
  padding: 22px 18px 28px;
}

a { color: var(--ws-chalk); text-decoration: none; }
a:hover, a:focus { color: var(--ws-chalk-bright); text-decoration: underline; }

.ws-mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.92em;
  color: var(--ws-chalk);
}

.ws-sep { color: var(--ws-ink-mute); margin: 0 6px; }

/* ===== HEADER ===== */

.ws-header {
  max-width: 1200px;
  margin: 0 auto 22px;
  border: 1px solid var(--ws-brass-deep);
  border-radius: var(--ws-radius);
  background: var(--ws-slate-deep);
  box-shadow:
    inset 0 0 14px rgba(0,0,0,0.4),
    0 0 0 1px rgba(180,138,63,0.18);
}

.ws-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-bottom: 1px solid var(--ws-slate-border);
  background: linear-gradient(180deg, #1c222b 0%, #161b24 100%);
}

.ws-strip-mark {
  font-family: "Chakra Petch", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ws-brass);
}

.ws-strip-line {
  font-family: "Chakra Petch", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ws-chalk);
  text-transform: uppercase;
  flex: 1 1 auto;
  text-align: center;
}

.ws-strip-clock {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ws-ivory);
}

.ws-header-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.ws-station-id {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-right: 1px solid var(--ws-slate-border);
}

.ws-station-id:last-child { border-right: none; }

.ws-id-k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ws-ink-mute);
}

.ws-id-v {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--ws-chalk);
}

/* ===== MAIN ===== */

.ws-main {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== HERO ===== */

.ws-hero {
  background: var(--ws-board);
  border: 1px solid var(--ws-slate-border);
  border-radius: var(--ws-radius);
  padding: 22px 24px;
}

.ws-h1 {
  font-family: "Chakra Petch", monospace;
  font-size: 30px;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  color: var(--ws-ivory);
}

.ws-h1-lead { color: var(--ws-ivory); }
.ws-h1-mid { color: var(--ws-brass); margin: 0 10px; }
.ws-h1-trail { color: var(--ws-chalk); }

.ws-h1-sub {
  font-size: 15px;
  color: var(--ws-ink);
  max-width: 70ch;
  margin: 0 0 14px;
}

.ws-fixture {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--ws-chalk-bright);
  background: rgba(217,98,73,0.08);
  border-left: 3px solid var(--ws-high);
  padding: 9px 14px;
  margin: 0;
  letter-spacing: 0.02em;
}

.ws-h2 {
  font-family: "Chakra Petch", monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-chalk);
  margin: 0 0 14px;
}

/* ===== GAUGES (3-card row) ===== */

.ws-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ws-gauge {
  background: var(--ws-board);
  border: 1px solid var(--ws-brass-deep);
  border-radius: var(--ws-radius);
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    inset 0 0 12px rgba(0,0,0,0.45),
    0 0 0 1px rgba(180,138,63,0.12);
}

.ws-gauge-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ws-gauge-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ws-brass);
  background: var(--ws-slate-deep);
  border: 1px solid var(--ws-slate-border);
  border-radius: 2px;
  padding: 2px 6px;
}

.ws-gauge-title {
  flex: 1 1 auto;
  font-family: "Chakra Petch", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--ws-chalk);
}

.ws-gauge-unit {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ws-ink-mute);
}

.ws-gauge-dial {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-dial-face {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1f28 0%, #131720 70%, #0d1019 100%);
  border: 2px solid var(--ws-brass);
  box-shadow:
    inset 0 0 14px rgba(0,0,0,0.7),
    0 0 0 2px var(--ws-slate-deep),
    0 0 0 3px var(--ws-brass-deep);
}

.ws-dial-tick {
  position: absolute;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ws-ivory-mute);
  text-transform: uppercase;
}

.ws-dial-tick-l { top: 78%; left: 14%; }
.ws-dial-tick-m { top: 12%; left: 46%; }
.ws-dial-tick-h { top: 78%; right: 14%; }

.ws-dial-needle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 56px;
  background: linear-gradient(180deg, var(--ws-chalk) 0%, var(--ws-brass) 100%);
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(-45deg);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(233,201,122,0.6);
  transition: transform 0.6s ease-out;
}

.ws-dial-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ws-brass);
  border: 1.5px solid var(--ws-slate-deep);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(0,0,0,0.6);
}

.ws-dial-face-anemo {
  background: radial-gradient(circle, #18222b 0%, #0e161e 100%);
}

.ws-anemo-cup {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ws-chalk);
  border: 1.5px solid var(--ws-brass);
  box-shadow: 0 0 5px rgba(233,201,122,0.5);
}

.ws-anemo-cup-1 { transform: translate(-50%, -50%) translate(0, -40px); }
.ws-anemo-cup-2 { transform: translate(-50%, -50%) translate(35px, 22px); }
.ws-anemo-cup-3 { transform: translate(-50%, -50%) translate(-35px, 22px); }

.ws-gauge-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.ws-gauge-big {
  font-family: "Chakra Petch", monospace;
  font-size: 28px;
  color: var(--ws-ivory);
  letter-spacing: 0.02em;
}

.ws-gauge-small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ws-ink-mute);
}

.ws-gauge-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  text-align: center;
  color: var(--ws-ink-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

/* verdict flag */

.ws-verdict-flag {
  width: 100%;
  height: 140px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-flag-bar {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ws-brass) 0%, var(--ws-brass-deep) 100%);
  transform: translateX(-50%);
}

.ws-flag-text {
  display: inline-block;
  position: relative;
  margin-left: 60px;
  font-family: "Chakra Petch", monospace;
  font-size: 22px;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border-radius: 2px;
  text-transform: uppercase;
  background: var(--ws-board-deep);
  border: 1.5px solid var(--ws-brass);
  color: var(--ws-chalk);
  box-shadow: 0 0 8px rgba(180,138,63,0.25);
}

.ws-flag-mine    { background: rgba(88,196,109,0.12); border-color: var(--ws-go);   color: var(--ws-go); }
.ws-flag-rent    { background: rgba(233,201,122,0.10); border-color: var(--ws-hold); color: var(--ws-hold); }
.ws-flag-idle    { background: rgba(217,98,73,0.10); border-color: var(--ws-stop); color: var(--ws-stop); }

/* ===== 24-H CURVE ===== */

.ws-curve {
  background: var(--ws-board);
  border: 1px solid var(--ws-slate-border);
  border-radius: var(--ws-radius);
  padding: 18px 20px 20px;
}

.ws-curve-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ws-curve-h h2 { margin: 0; }

.ws-curve-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ws-ink-mute);
}

.ws-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: -1px;
  margin: 0 4px;
}

.ws-legend-low  { background: var(--ws-low); }
.ws-legend-mid  { background: var(--ws-mid); }
.ws-legend-high { background: var(--ws-high); }

.ws-curve-canvas {
  position: relative;
  height: 180px;
  background: var(--ws-board-deep);
  border: 1px solid var(--ws-slate-border);
  border-radius: 3px;
  padding: 10px 10px 24px;
}

.ws-curve-grid {
  position: absolute;
  inset: 10px 10px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.ws-curve-h-line {
  height: 1px;
  background: var(--ws-slate-border);
  opacity: 0.5;
}

.ws-curve-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  height: 100%;
  position: relative;
  z-index: 1;
}

.ws-curve-bar {
  flex: 1 1 0;
  background: var(--ws-mid);
  min-width: 4px;
  border-radius: 1.5px 1.5px 0 0;
  position: relative;
  transition: opacity 0.3s ease-out;
}

.ws-curve-bar-low  { background: var(--ws-low);  }
.ws-curve-bar-mid  { background: var(--ws-mid);  }
.ws-curve-bar-high { background: var(--ws-high); }

.ws-curve-bar:hover { opacity: 0.7; }

.ws-curve-bar-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  color: var(--ws-ink-mute);
}

.ws-curve-axis {
  position: absolute;
  bottom: 4px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--ws-ink-mute);
}

/* ===== STEPS ===== */

.ws-steps {
  background: var(--ws-board);
  border: 1px solid var(--ws-slate-border);
  border-radius: var(--ws-radius);
  padding: 20px 22px 22px;
}

.ws-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ws-step {
  display: flex;
  gap: 12px;
  border-left: 2px solid var(--ws-brass-deep);
  padding: 4px 4px 4px 12px;
}

.ws-step-tag {
  flex: 0 0 auto;
}

.ws-step-n {
  font-family: "Chakra Petch", monospace;
  font-size: 22px;
  color: var(--ws-chalk);
  letter-spacing: 0.04em;
}

.ws-step-h {
  font-family: "Chakra Petch", monospace;
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--ws-ivory);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ws-step-body p {
  margin: 0;
  font-size: 13px;
  color: var(--ws-ink);
}

/* ===== CTA + BULLETIN ===== */

.ws-cta {
  background: var(--ws-board);
  border: 1px solid var(--ws-slate-border);
  border-radius: var(--ws-radius);
  padding: 22px 24px 22px;
}

.ws-cta-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  align-items: start;
}

.ws-cta-body {
  font-size: 14px;
  color: var(--ws-ink);
  max-width: 60ch;
  margin: 0 0 14px;
}

.ws-cta-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, #2a3140 0%, #1c222b 100%);
  border: 1.5px solid var(--ws-brass);
  border-radius: 3px;
  padding: 12px 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--ws-chalk);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--ws-slate-deep);
}

.ws-cta-mail:hover, .ws-cta-mail:focus {
  text-decoration: none;
  color: var(--ws-chalk-bright);
  border-color: var(--ws-chalk);
  box-shadow: 0 0 10px rgba(233,201,122,0.25), 0 0 0 1px var(--ws-slate-deep);
}

.ws-cta-icon { color: var(--ws-brass); }
.ws-cta-addr { color: var(--ws-chalk); }
.ws-cta-arrow { color: var(--ws-ivory); }

.ws-cta-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ws-ink-mute);
  margin: 10px 0 0;
}

.ws-bulletin-board {
  background: var(--ws-board-deep);
  border: 1.5px solid var(--ws-brass-deep);
  border-radius: 3px;
  padding: 14px 16px 16px;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.4);
}

.ws-bulletin-h {
  font-family: "Chakra Petch", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ws-chalk);
  margin: 0 0 12px;
}

.ws-bulletin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-bulletin-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  border-bottom: 1px dashed var(--ws-slate-border);
  padding-bottom: 5px;
}

.ws-bulletin-k {
  color: var(--ws-brass);
  letter-spacing: 0.04em;
}

.ws-bulletin-v {
  color: var(--ws-ivory);
  text-align: right;
}

.ws-bulletin-foot {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  color: var(--ws-ink-mute);
  margin: 12px 0 0;
}

/* ===== FOOTER ===== */

.ws-foot {
  max-width: 1200px;
  margin: 22px auto 0;
  border-top: 1px solid var(--ws-slate-border);
  padding: 14px 4px 6px;
}

.ws-foot-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ws-ink-mute);
}

.ws-foot-mark { color: var(--ws-brass); }
.ws-foot-name { color: var(--ws-chalk); }
.ws-foot-muted { color: var(--ws-ink-mute); }

.ws-foot-r { display: flex; align-items: baseline; gap: 4px; }
.ws-foot-r a { color: var(--ws-chalk); }

/* ===== RESPONSIVE ===== */

@media (max-width: 940px) {
  .ws-gauges { grid-template-columns: 1fr; }
  .ws-step-list { grid-template-columns: 1fr; }
  .ws-cta-grid { grid-template-columns: 1fr; }
  .ws-h1 { font-size: 24px; }
  .ws-header-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-station-id:nth-child(2) { border-right: none; }
}

@media (max-width: 560px) {
  body.ws-body { padding: 14px 10px 18px; }
  .ws-h1 { font-size: 20px; }
  .ws-curve-canvas { height: 140px; }
}
