/* Estilo de GEO. Sin colores como único indicador: todo estado lleva también texto (frontend 3.2).
   Diseño adaptable: computador, sala de control (letra grande) y teléfono. */

:root {
  --fg: #1b1f24;
  --bg: #ffffff;
  --muted: #5a6572;
  --line: #c8d0d8;
  --accent: #0b4f8a;
  --ok: #0b6b3a;
  --warn: #8a4b00;
  --bad: #9b1c1c;
  font-size: 100%;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
}

.skip { position: absolute; left: -999px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus { left: 0.5rem; top: 0.5rem; background: var(--bg); padding: 0.5rem; z-index: 10; }

.top {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center;
  padding: 0.5rem 1rem; border-bottom: 2px solid var(--line);
}
.top p { margin: 0; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: 0.05em; }
.who { color: var(--muted); }

.menu { border-bottom: 1px solid var(--line); }
.menu ul { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0.25rem 1rem; }
.menu a { display: block; padding: 0.5rem 0.75rem; color: var(--accent); text-decoration: none; border-bottom: 3px solid transparent; }
.menu a:hover { text-decoration: underline; }
.menu a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }

main { max-width: 72rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.6rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; }
h2.small { font-size: 1rem; }

a { color: var(--accent); }
:focus-visible { outline: 3px solid #f2b600; outline-offset: 2px; }

.notice { border: 1px solid var(--line); border-left-width: 6px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; background: #f7f9fb; }
.notice.ok { border-left-color: var(--ok); }
.notice.warn { border-left-color: var(--warn); }
.notice.bad { border-left-color: var(--bad); }
ul.plain { list-style: none; margin: 0; padding: 0; }

.field { margin: 0.75rem 0; max-width: 32rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.5rem; font: inherit; border: 1px solid var(--muted); border-radius: 4px; background: var(--bg); color: var(--fg);
}
.field small { display: block; color: var(--muted); margin-top: 0.25rem; }
.error { color: var(--bad); margin: 0.25rem 0 0; }
.error strong { text-transform: none; }

button, .button {
  font: inherit; padding: 0.5rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block;
}
button.secondary, .button.secondary { background: var(--bg); color: var(--accent); }
button.danger { background: var(--bad); border-color: var(--bad); }
button[disabled] { opacity: 0.55; cursor: not-allowed; }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }

table { border-collapse: collapse; width: 100%; margin: 0.5rem 0 1rem; }
th, td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
th { background: #eef2f6; }
caption { text-align: left; font-weight: 600; padding: 0.25rem 0; }
.scroll { overflow-x: auto; }

.tag { display: inline-block; border: 1px solid var(--line); padding: 0 0.4rem; border-radius: 3px; background: #f1f4f7; }
.muted { color: var(--muted); }
code { background: #f1f4f7; padding: 0 0.25rem; border-radius: 3px; word-break: break-all; }
details { margin: 0.5rem 0; }

/* Pantallas de datos de la U2: el estado va siempre con texto; el símbolo y el borde son solo apoyo. */
.point { border: 1px solid var(--line); border-left-width: 6px; padding: 0.5rem 0.75rem; margin: 0.5rem 0; background: #f7f9fb; }
.point[data-state="valid"] { border-left-color: var(--ok); }
.point[data-state="stale"], .point[data-state="absent"] { border-left-color: var(--warn); }
.point[data-state="invalid"], .point[data-state="not_calculable"] { border-left-color: var(--bad); }
.point h4 { margin: 0 0 0.25rem; font-size: 1rem; }
.value strong { font-size: 1.25rem; }
.state { margin-left: 0.5rem; font-weight: 600; }
ul.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; border-bottom: 1px solid var(--line); }
ul.tabs a { display: block; padding: 0.5rem 0.75rem; text-decoration: none; border-bottom: 3px solid transparent; }
ul.tabs a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.chart { max-width: 100%; overflow-x: auto; }
fieldset { border: 1px solid var(--line); margin: 0.75rem 0; max-width: 32rem; }
fieldset label { margin-right: 1rem; }

@media (max-width: 40rem) {
  main { padding: 0.5rem; }
  .menu ul { flex-direction: column; }
  th, td { font-size: 0.9rem; }
}

@media (min-width: 100rem) {
  :root { font-size: 125%; } /* sala de control: letra más grande */
}

/* Histórico: la lista de mediciones ocupa todo el ancho (las etiquetas son cortas; el código va en el title). */
.field.field-wide { max-width: 48rem; }
