/* Scale — tool-specific styles. Shared styles live in assets/css/. */

/* ---- The drawing ----
   Every rule is drawn from the same numbers the answer is compared
   against, so the colour here is the only thing that could make the
   picture disagree with the question. scripts/probe-escala-contraste.js measures each pair below in the three
   themes: a mark at 1.2:1 against the ruler is a mark nobody sees,
   and no structural check reports that. */
.scale-svg {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.legend {
  margin: 0.5rem 0 0;
  color: var(--color-texto-suave);
  font-size: var(--texto-pequeno);
  text-align: center;
}

/* ---- The ruler ----
   The outline is --color-texto and not --color-borde on purpose: the
   border token measures 1.50:1 on the surface in light and 1.55:1 in
   dark, so a ruler outlined with it is a ruler whose edges are not
   there. The body would then read as loose tick marks floating on the
   card. probe-escala-contraste.js is what caught it. */
.ruler-face {
  fill: var(--color-superficie);
  stroke: var(--color-texto);
  stroke-width: 2;
}
.ruler-tick {
  stroke: var(--color-texto);
  stroke-width: 2;
}
/* The mark the question is about. It is longer than every other mark
   as well as a different colour, so it is still the mark that is
   pointed out when colour is not perceived (WCAG 1.4.1). */
.ruler-tick-here {
  stroke: var(--mod-razonamiento);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.ruler-num {
  fill: var(--color-texto);
  font-size: 12px;
  text-anchor: middle;
}
.ruler-unit {
  fill: var(--color-texto-suave);
  font-size: 13px;
}
.pencil-body {
  fill: var(--mod-secuencia);
}
.pencil-tip {
  fill: var(--mod-razonamiento);
}

/* ---- Vertical instruments: thermometer and jug ---- */
.gauge-tube {
  fill: var(--color-superficie);
  stroke: var(--color-texto);
  stroke-width: 2;
}
.gauge-level {
  fill: var(--mod-secuencia);
}
.gauge-bulb {
  fill: var(--mod-secuencia);
}
.gauge-tick {
  stroke: var(--color-texto);
  stroke-width: 2;
}
.gauge-tick-here {
  stroke: var(--mod-razonamiento);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.gauge-num {
  fill: var(--color-texto);
  font-size: 12px;
}
.gauge-unit {
  fill: var(--color-texto-suave);
  font-size: 13px;
}
/* The handle and the pouring lip exist so the jug is not read as a
   second thermometer. Both are strokes and neither is filled: the lip
   filled reads as a mouse cursor sitting on the rim of the vessel. */
.gauge-handle,
.gauge-lip {
  fill: none;
  stroke: var(--color-texto);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* ---- A stretch of ruler with only its two end numbers ---- */
.span-face {
  fill: var(--color-superficie);
  stroke: var(--color-texto);
  stroke-width: 2;
}
.span-tick {
  stroke: var(--color-texto);
  stroke-width: 2;
}
.span-tick-end {
  stroke: var(--mod-razonamiento);
  stroke-width: 3;
  stroke-linecap: round;
}
.span-num {
  fill: var(--color-texto);
  font-size: 14px;
  font-weight: 700;
}
/* The numbers on the middle ticks of the rayita slide: smaller and
   lighter than the two end numbers so the eye still knows where the
   stretch starts and ends, but visible enough that every tick carries
   its own value. Without them, the slide asked a kid who could not
   count to five to count to five. */
.span-num-mid {
  fill: var(--color-texto-suave);
  font-size: 11px;
  font-weight: 600;
}
/* The guides tie the two ends of the pencil to their numbers, and the
   pencil itself is the accent: what is measured is what is coloured. */
.span-guide {
  stroke: var(--color-texto-suave);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
.span-object {
  fill: var(--mod-secuencia);
}

/* ---- The scale of a plan ---- */
.plan-bar {
  fill: var(--color-superficie);
  stroke: var(--color-texto);
  stroke-width: 2;
}
.plan-seg {
  stroke: var(--color-texto);
  stroke-width: 2;
}
.plan-num,
.plan-measure {
  fill: var(--color-texto);
  font-size: 12px;
}
.plan-measure {
  font-size: 14px;
  font-weight: 700;
}
/* The equation the whole scale bar stands for: which scale this is.
   Bigger and in the accent colour because it is the one line on the
   slide that carries the idea; the row labels and the centimetres are
   only there so it can be read. */
.plan-equation {
  fill: var(--mod-razonamiento);
  font-size: 15px;
  font-weight: 700;
}
.plan-row-label {
  fill: var(--color-texto-suave);
  font-size: 13px;
}
.plan-route {
  stroke: var(--color-texto);
  stroke-width: 3;
}
.plan-dot {
  fill: var(--mod-razonamiento);
  stroke: var(--color-superficie);
  stroke-width: 2;
}

/* ---- The small map illustration on the "dibujo" concept ----
   A paper rectangle with a couple of mountains, a river and a curvy
   dashed road going from a green start dot to a red end dot. The
   picture is what "the drawing" is; the three rows below carry its
   SCALE. The map paper is a warm off-white so it stands out from the
   card, and the terrain colours are muted on purpose: the road is the
   only feature that should be louder than the row labels. */
.plan-map-face {
  fill: #F5ECD7;
  stroke: #B8A076;
  stroke-width: 1.2;
}
.plan-map-terrain {
  fill: #C8D5B9;
  stroke: #7E8F70;
  stroke-width: 0.8;
  stroke-linejoin: round;
}
.plan-map-water {
  fill: none;
  stroke: #8FB5CB;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.plan-map-route {
  fill: none;
  stroke: #B85447;
  stroke-width: 2;
  stroke-dasharray: 3 2;
  stroke-linecap: round;
}
.plan-map-marker {
  stroke: #FFFFFF;
  stroke-width: 1.5;
}
.plan-map-marker-start {
  fill: #4F9D4F;
}
.plan-map-marker-end {
  fill: #B85447;
}

/* ---- Four answers: two by two when there is room for them ---- */
.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--espacio);
}
@media (min-width: 480px) {
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Screens ---- */
.center-row {
  justify-content: center;
  text-align: center;
}
.centered { align-items: center }

.concept-card {
  align-items: center;
  border-color: var(--mod-razonamiento-suave);
}
.concept-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
}
.concept-title {
  margin: 0;
  color: var(--mod-razonamiento);
  font-size: 1.3rem;
}
.concept-text {
  max-width: 34rem;
  margin: 0;
  text-align: center;
}

.real-card {
  align-items: center;
  border-color: var(--mod-razonamiento-suave);
}
.real-object {
  min-height: 1.2em;
  font-size: 5rem;
  line-height: 1.2;
}
.real-caption {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}
.real-note {
  max-width: 30rem;
  margin: 0;
  color: var(--color-texto-suave);
  font-size: 0.95rem;
  text-align: center;
}



.emoji-large {
  font-size: 3.5rem;
  line-height: 1.1;
}
.transfer {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--color-texto-suave);
  text-align: center;
}