/* Stations for Module 4. Everything here must survive a 360 px phone: the canvases
   size themselves from clientWidth, so the only rule that matters is that nothing
   sets a fixed width. */
.fl-box {
  background: #0c202b;
  border: 1px solid var(--ec-rule, #27424a);
  border-radius: 8px;
  padding: clamp(12px, 2vw, 20px);
  min-width: 0;
}
.fl-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.fl-box > p {
  margin: 0 0 0.9rem;
  max-width: 76ch;
}
.fl-box canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #091a23;
  border-radius: 6px;
}
.fl-axis {
  margin: 0.8rem 0 0.3rem;
  font: 600 0.8rem var(--mono, ui-monospace, monospace);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fe3d2;
}
.fl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.55rem 0 0;
  font-size: 0.87rem;
  color: #c2d6da;
}
.fl-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fl-legend i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}
.fl-readout {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--ec-amber, #edc077);
  background: #1d170e;
  color: #f0e4d2;
  font-size: 0.93rem;
  border-radius: 0 5px 5px 0;
}
.fl-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.85rem 1.3rem;
  margin: 0 0 1rem;
}
.fl-policies {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fl-policies button {
  text-transform: capitalize;
}
/* .btn-primary paints nothing on a .btn-ghost, so selection is shown with
   aria-pressed instead of a second class. */
.fl-policies button[aria-pressed='true'] {
  border-color: var(--ec-mint, #7fdcc9);
  color: #06181d;
  background: var(--ec-mint, #7fdcc9);
}
.fl-slider {
  display: block;
  min-width: 0;
}
.fl-slider > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.fl-slider b {
  font-weight: 600;
  color: #e3f1f0;
}
.fl-slider output {
  font: 500 0.86rem var(--mono, ui-monospace, monospace);
  color: var(--ec-amber, #edc077);
}
.fl-slider input[type='range'] {
  width: 100%;
  margin: 0.3rem 0 0;
}
@media print {
  .fl-box {
    background: white;
    border: 1px solid #999;
  }
  .fl-readout {
    background: white;
    color: black;
  }
}
