/* dec track (Decimals and fractions): class prefix wk-dec-. Colours only from tokens.css. */

/* the decimal point, written small at the bottom right of a bus stop digit */
.wk-dec-dot {
  position: absolute;
  right: -0.14em;
  bottom: 0.14em;
  font-size: 1em;
  line-height: 1;
  font-weight: 900;
  color: var(--ink);
  z-index: 2;
  pointer-events: none;
}
.wk-dec-dot.wk-dec-dotnew {
  color: var(--rose-deep);
  text-shadow: 0 0 0.25em color-mix(in srgb, var(--rose) 60%, transparent);
}

/* place value chart with a decimal point column */
.wk-dec-pv td.wk-dec-ptc, .wk-dec-pv th.wk-dec-ptc {
  min-width: 0.5em;
  width: 0.5em;
  padding: 0;
  background: none;
  border: 0;
  font-size: 1.2em;
  line-height: 1;
  color: var(--ink);
  vertical-align: bottom;
}
.wk-dec-pv td { font-size: 1em; }

/* a line of working in big type: 72 tenths ÷ 8 = 9 tenths */
.wk-dec-eq { font-size: clamp(24px, 6vw, 34px); line-height: 1.5; margin: 0.4rem 0; }
.wk-dec-eq .wk-frac { font-size: 0.85em; }

/* bar model for fractions */
.wk-dec-bar {
  display: flex;
  gap: 0;
  margin: 0.6rem auto;
  width: min(100%, 460px);
  border: 4px solid var(--ink);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--paper);
}
.wk-dec-seg {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 3px solid var(--ink);
  font-family: var(--font-num);
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  background: var(--lilac);
}
.wk-dec-seg:first-child { border-left: 0; }
.wk-dec-seg.wk-dec-on { background: var(--gold); }
.wk-dec-subs { display: flex; align-self: stretch; width: 100%; }
.wk-dec-sub { flex: 1 1 0; border-left: 2px dashed var(--ink-soft); }
.wk-dec-sub:first-child { border-left: 0; }
.wk-dec-sub.wk-dec-hi { background: var(--rose); }
