/* UX-01 · Legibilidad, sin alterar el dimensionado de las grillas horarias.
   Escala: 16px lectura principal, 14px información secundaria y 13px solo
   cuando un elemento compacto no admite expansión sin rediseño. */
:root {
  --muted: #b8cbd4;
  --ux-secondary-size: .875rem;
  --ux-comfort-size: 1rem;
}

/* Contexto, avisos, leyendas y marcas temporales. */
.active-profile .context-controls label,
.active-profile p.profile-guidance,
.active-profile .context-selection-status,
.active-profile .free-profile-value,
.guidance-note,
.decision-guidance,
.legend,
.operational-legend,
.week-tap-hint,
.week-premium-note span,
.today-window span,
.today-window b,
.today-tide p,
.week-summary p,
.day-light,
.tide-legend,
.tide-curve-source,
.source-note,
.updated,
.disclaimer {
  font-size: var(--ux-secondary-size);
  line-height: 1.45;
}
.active-profile .context-controls select { font-size: var(--ux-comfort-size); }
.app-header .beta-plan-badge { font-size: var(--ux-secondary-size); }
.hour-axis span, .axis, .tide-ticks { font-size: .8125rem; }

/* AHORA: textos observacionales y etiquetas, sin cambiar valores grandes. */
.now-status,
.now-card-heading > span:first-child,
.now-card-heading .tide-mode,
.current-tide-main span,
.time-pair span,
.current-grid span,
.current-grid small,
.now-source-line,
.now-wave-metrics,
.now-pair span,
.now-pair small,
.now-weather-main small,
.now-metrics span,
.now-metrics small,
.observation-note,
.tide-event span,
.tide-event b,
.events-source,
.freshness {
  font-size: var(--ux-secondary-size);
  line-height: 1.4;
}
.now-status { text-align: right; }
.now-overall p { line-height: 1.5; }

/* HOY / 7 DÍAS: títulos de rieles, explicaciones y tabla ya desplazable.
   Las cifras dentro de las celdas continúan intactas hasta UX-02. */
.lane-label { font-size: var(--ux-secondary-size); line-height: 1.35; gap: 8px; }
.lane-title { font-size: .95rem; }
.lane-label > .lane-note { overflow-wrap: anywhere; }
.wind-pair .pair-key { font-size: .8125rem; }
.hourly-details summary { font-size: 1rem; }
.hour-table { font-size: var(--ux-secondary-size); line-height: 1.4; }
.hour-table td:last-child small { font-size: .8125rem; }

/* VENTANAS: lectura de cambios y condiciones, sin rediseñar las tarjetas horarias. */
.windows-heading p,
.window-picker-context,
.windows-notice,
.windows-updating,
.tracked-window-changes > p,
.tracked-window-no-changes,
.tracked-window-close-reasons p,
.tracked-window-history,
.tracked-window-best p,
.tracked-window-considerations p,
.tracked-empty,
.tracked-empty small,
.tracked-window-card footer span,
.tracked-window-card header small,
.tracked-condition-pair span,
.tracked-metrics span {
  font-size: var(--ux-secondary-size);
  line-height: 1.45;
}
.tracked-window-changes > strong,
.tracked-window-close-reasons > strong,
.tracked-window-best > strong,
.tracked-window-considerations > strong,
.tracked-tide-wave h4 { font-size: 1rem; }
.tracked-condition-status { font-size: .8125rem; line-height: 1.3; }
.tracked-window-remove { font-size: var(--ux-secondary-size); }
.tracked-unread-label { font-size: .75rem; }
.window-picker-day > strong { font-size: .8125rem; }

/* Estaciones: fecha de observación y etiquetas de las lecturas. */
.river-stations-muted,
.river-stations-freshness,
.river-stations-observed,
.river-stations-level-source,
.river-stations-extra-source,
.river-stations-extra-item span,
.river-stations-observed small,
.river-stations-intro {
  font-size: var(--ux-secondary-size);
  line-height: 1.45;
}
.river-stations-freshness { flex-shrink: 1; min-width: 0; }

/* AJUSTES: aumentar etiquetas y ayudas, incluso si su CSS se carga después. */
#settingsDialog label,
#settingsDialog .preferences-plan-banner span,
#settingsDialog .preferences-plan-banner small,
#settingsDialog .configuration-switcher > span,
#settingsDialog .settings-range-legend,
#settingsDialog .field-note,
#settingsDialog .profile-name-help,
#settingsDialog #profileTypeNote,
#settingsDialog #premiumOnlyNote {
  font-size: var(--ux-secondary-size);
  line-height: 1.45;
}
#settingsDialog .preferences-plan-kicker { font-size: .8125rem !important; }
#settingsDialog input,
#settingsDialog select { font-size: var(--ux-comfort-size); }

/* Notificaciones y avisos oficiales. */
#notificationSettings .push-category small,
.shn-official-card p,
.notice-verification summary,
.shn-report details summary {
  font-size: var(--ux-secondary-size);
  line-height: 1.45;
}

/* En pantallas estrechas, no forzar textos rígidos a salir de su tarjeta.
   Las grillas de celdas pequeñas se resolverán de forma sincronizada en UX-02. */
@media (max-width: 380px) {
  .now-status, .tracked-condition-status { white-space: normal; }
  .active-profile .context-controls select { font-size: .875rem; }
  .now-card-heading { gap: 6px; }
  .river-stations-freshness { text-align: right; }
}

/* UX-02I / UX-02K: los dos rótulos comparten tamaño y contraste.
   Peso 500 para recuperar ligereza; se conserva prioridad frente a
   la regla antigua exclusiva de «Perfil». */
.active-profile .context-controls label,
.active-profile #activeProfileLabel {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}

/* Aviso específico de Ventana(s) de navegación, separado del texto general. */
.help-dialog .help-safety-note {
  margin-top: 13px;
  color: var(--text);
}
.help-dialog .help-safety-note hr {
  height: 1px;
  border: 0;
  margin: 0 0 12px;
  background: var(--line);
}
.help-dialog .help-safety-note strong {
  display: block;
  font-size: .9375rem;
  line-height: 1.45;
  font-weight: 700;
}

/* UX-05D: la ayuda de Perfil conserva la lectura por párrafos y destaca
   por qué la aplicación evalúa los pronósticos según cada navegante. */
.help-dialog #helpText.profile-help { white-space: pre-line; }
.help-dialog #helpText.profile-help strong {
  color: var(--text);
  font-weight: 700;
}

/* UX-07F: dos respiros discretos en la ayuda de AHORA, sin alterar otros diálogos. */
.help-dialog #helpText.now-summary-help { white-space: pre-line; }

/* UX-08: mostrar cada operación de comparación en un párrafo corto. */
.help-dialog #helpText.wind-comparison-help { white-space: pre-line; }


/* UX-14: la lectura prioriza el valor. Rótulo e indicador son secundarios.
   Mantener los SVG UX-13 sin reducir su tamaño. */
.tracked-window-card .tracked-tide-wave h4,
.tracked-window-card .tracked-wind-panel h4{
  font-size:.88rem;font-weight:620;line-height:1.28;color:var(--muted);
}
.tracked-window-card .tracked-tide-wave section>strong{
  font-size:1.12rem;font-weight:800;line-height:1.2;margin-top:10px;
}
.tracked-window-card .tracked-wind-panel .tracked-condition-pair strong{
  font-size:1.06rem;font-weight:790;line-height:1.28;
}
.tracked-window-card .tracked-wind-panel .tracked-condition-pair>div:last-child strong{
  font-size:1rem;font-weight:750;
}
.tracked-window-card .tracked-wind-panel .tracked-condition-status{
  font-size:.73rem;font-weight:650;line-height:1.25;white-space:normal;text-align:right;
}
.tracked-window-history-older{margin-top:9px}
.tracked-window-history-older>summary{font-size:.82rem;color:var(--muted);font-weight:600}
.window-picker-context[hidden]{display:none}

/* UX-15: valores de Clima legibles, sin agrandar los rótulos ni las tarjetas.
   También incluye Visibilidad (cuarto campo actual), y Presión si se incorpora. */
.tracked-window-card .tracked-metrics strong{
  font-size:1.12rem;font-weight:770;line-height:1.16;letter-spacing:-.01em;
}
@media (max-width:380px){
  .tracked-window-card .tracked-metrics strong{font-size:1.05rem}
}
