/* rt-hogar · rth-hoy.css · componentes de Hoy, Semana y la vista de niño (tema.md §9.4). Se carga después de
   rth-componentes.css; cero literales: todo sale de rth-temas.css. */

/* ---------- Ir a otro día, arriba de la banda (como el regreso de las subpáginas) ---------- */
.rth-dia-nav { display: flex; justify-content: space-between; gap: var(--rth-esp-2); margin-inline: calc(-1 * var(--rth-esp-2)); }
.rth-dia-nav a {
	display: inline-flex; align-items: center; gap: var(--rth-esp-1); min-block-size: var(--rth-tap); padding-inline: var(--rth-esp-2);
	border-radius: var(--rth-radio-control); color: var(--rth-barra-texto); font-size: var(--rth-t-16); font-weight: var(--rth-peso-medio); text-decoration: none;
}
.rth-dia-nav a .ico { inline-size: var(--rth-ico-20); block-size: var(--rth-ico-20); }
.rth-dia-nav a:only-child[data-dir="sig"] { margin-inline-start: auto; }

/* ---------- Tarjeta de integrante en Hoy ---------- */
.rth-tarjeta { background: var(--rth-superficie); border: var(--rth-borde-ancho) solid var(--rth-linea); border-radius: var(--rth-radio-hoja); overflow: hidden; }
.rth-tarjeta + .rth-tarjeta, .rth-indice + .rth-tarjeta { margin-block-start: var(--rth-esp-3); }
.rth-tarjeta__cab { display: flex; align-items: center; gap: var(--rth-esp-3); min-block-size: var(--rth-alto-fila); padding: var(--rth-esp-2) var(--rth-esp-4); }
.rth-tarjeta__cab + * { border-block-start: var(--rth-borde-ancho) solid var(--rth-linea); }
.rth-tarjeta__nombre { flex: 1; min-inline-size: 0; font-weight: var(--rth-peso-fuerte); overflow-wrap: anywhere; }
.rth-tarjeta__nombre small { display: block; font-size: var(--rth-t-14); font-weight: var(--rth-peso); color: var(--rth-texto-2); }
.rth-tarjeta__lista { list-style: none; margin: 0; padding: 0; }
.rth-tarjeta__lista > li + li { border-block-start: var(--rth-borde-ancho) solid var(--rth-linea); }
.rth-tarjeta .rth-indice { margin: 0; border: 0; border-radius: 0; border-block-start: var(--rth-borde-ancho) solid var(--rth-linea); background: none; }
.rth-tarjeta .rth-fila-btn { border-block-start: var(--rth-borde-ancho) solid var(--rth-linea); }
.rth-tarjeta__aviso { padding: 0 var(--rth-esp-4) var(--rth-esp-3); }

/* ---------- Ocurrencia: abrir (ícono + texto) · marca de hecho · y debajo lo que pide el toque ---------- */
.rth-ocu { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.rth-ocu__abrir {
	display: flex; align-items: center; gap: var(--rth-esp-3); min-block-size: var(--rth-alto-fila); padding: var(--rth-esp-2) var(--rth-esp-2) var(--rth-esp-2) var(--rth-esp-4);
	background: none; border: 0; color: var(--rth-texto); font: inherit; text-align: start; cursor: pointer; min-inline-size: 0;
}
.rth-ocu__abrir:focus-visible, .rth-hecho:focus-visible { outline-offset: calc(-1 * var(--rth-foco-ancho)); }
.rth-ocu__texto { min-inline-size: 0; overflow-wrap: anywhere; }
.rth-ocu__nombre { display: block; font-weight: var(--rth-peso-medio); }
.rth-ocu__2 { display: block; font-size: var(--rth-t-14); color: var(--rth-texto-2); }
.rth-ocu[data-hecha] .rth-ocu__nombre { color: var(--rth-texto-2); }
.rth-ocu__extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--rth-esp-2); padding: 0 var(--rth-esp-4) var(--rth-esp-3) calc(var(--rth-esp-4) + var(--rth-iman-fila) + var(--rth-esp-3)); }
.rth-ocu__extra > p { inline-size: 100%; font-size: var(--rth-t-14); font-weight: var(--rth-peso-medio); }
.rth-ocu__extra .rth-btn { inline-size: auto; }
.rth-ocu__extra .rth-btn--fantasma { padding-inline: var(--rth-esp-2); }
/* La marca de hecho: casilla de 28 (radio 8) dentro de un objetivo de 48; hecha = fondo y orilla «ok» con la palomita */
.rth-hecho { display: inline-grid; place-items: center; inline-size: var(--rth-tap); block-size: var(--rth-tap); margin-inline-end: var(--rth-esp-2); padding: 0; background: none; border: 0; border-radius: var(--rth-radio-control); cursor: pointer; }
.rth-hecho__caja {
	display: inline-grid; place-items: center; inline-size: var(--rth-casilla); block-size: var(--rth-casilla);
	border: var(--rth-borde-control-ancho) solid var(--rth-borde-control); border-radius: var(--rth-radio-chico); background: var(--rth-superficie); color: var(--rth-ok);
}
.rth-hecho__caja .ico { inline-size: var(--rth-ico-20); block-size: var(--rth-ico-20); visibility: hidden; }
.rth-hecho[aria-pressed="true"] .rth-hecho__caja { background: var(--rth-ok-fondo); border-color: var(--rth-ok); }
.rth-hecho[aria-pressed="true"] .rth-hecho__caja .ico { visibility: visible; }
.rth-hecho[aria-disabled="true"] { cursor: default; }
.rth-hecho[aria-disabled="true"] .rth-hecho__caja { background: var(--rth-superficie-2); border-color: var(--rth-linea); }
@media (prefers-reduced-motion: no-preference) {
	.rth-hecho__caja { transition: background-color var(--rth-mov-t2) var(--rth-ease), border-color var(--rth-mov-t2) var(--rth-ease); }
}

/* ---------- Plegable con estado escrito (menores en Semana): botón con aria-expanded y flecha que cambia ---------- */
.rth-plegable { display: flex; align-items: center; gap: var(--rth-esp-3); inline-size: 100%; min-block-size: var(--rth-alto-fila); padding: var(--rth-esp-2) var(--rth-esp-4); background: none; border: 0; color: var(--rth-texto); font: inherit; text-align: start; cursor: pointer; }
.rth-plegable:focus-visible { outline-offset: calc(-1 * var(--rth-foco-ancho)); }
.rth-plegable .rth-fila__texto { font-weight: var(--rth-peso-medio); }
.rth-plegable > .ico { color: var(--rth-accion-texto); }
.rth-plegable[aria-expanded="false"] .rth-plegable__cerrar, .rth-plegable[aria-expanded="true"] .rth-plegable__abrir { display: none; }
.rth-plegable__cuerpo { padding: 0 var(--rth-esp-4) var(--rth-esp-3) calc(var(--rth-esp-4) + var(--rth-iman-fila) + var(--rth-esp-3)); }
@media (hover: hover) {
	.rth-ocu__abrir:hover, .rth-plegable:hover { background: var(--rth-superficie-2); }
	.rth-hecho:hover:not([aria-disabled="true"]) .rth-hecho__caja { border-color: var(--rth-accion); }
	.rth-dia-nav a:hover { text-decoration: underline; }
}

/* ---------- Detalle de una ocurrencia (diálogo): por qué le tocó y pasarla ---------- */
.rth-dato-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--rth-esp-2) var(--rth-esp-4); margin: 0; }
.rth-dato-dl dt { color: var(--rth-texto-2); font-size: var(--rth-t-14); padding-block-start: var(--rth-esp-1); }
.rth-dato-dl dd { margin: 0; font-weight: var(--rth-peso-medio); overflow-wrap: anywhere; }

/* ---------- Semana: reparto de los adultos en palabras y cifras (sin barras que inviten a comparar) ---------- */
.rth-reparto > li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--rth-esp-3); align-items: start; padding: var(--rth-esp-3) var(--rth-esp-4); }
.rth-reparto .rth-iman { margin-block-start: var(--rth-esp-1); }
.rth-reparto__nombre { font-weight: var(--rth-peso-fuerte); overflow-wrap: anywhere; }
.rth-reparto__cifra { font-variant-numeric: tabular-nums; }
.rth-reparto__2 { font-size: var(--rth-t-14); color: var(--rth-texto-2); font-variant-numeric: tabular-nums; }
.rth-reparto .rth-franja { grid-column: 1 / -1; margin-block-start: var(--rth-esp-3); }

/* ---------- Vista de niño (data-shell="nino"): sin pestañas; ícono de 64, botón de 64 ---------- */
[data-shell="nino"] .rth-nav { display: none; }
[data-shell="nino"] .rth-main { padding-block: 0 var(--rth-esp-7); }
.rth-nino-cab { display: flex; align-items: center; gap: var(--rth-esp-4); }
.rth-iman--nino { inline-size: var(--rth-iman-nino); block-size: var(--rth-iman-nino); font-size: var(--rth-t-30); }
.rth-nino-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rth-esp-4); }
.rth-nino-tarea { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--rth-esp-4); row-gap: var(--rth-esp-4); align-items: center; padding: var(--rth-esp-4); background: var(--rth-superficie); border: var(--rth-borde-ancho) solid var(--rth-linea); border-radius: var(--rth-radio-hoja); }
.rth-nino-tarea__icono { display: grid; place-items: center; inline-size: calc(var(--rth-ico-nino) + var(--rth-esp-4)); block-size: calc(var(--rth-ico-nino) + var(--rth-esp-4)); border-radius: var(--rth-radio-hoja); background: var(--rth-superficie-2); color: var(--rth-texto); }
.rth-nino-tarea__icono .ico { inline-size: var(--rth-ico-nino); block-size: var(--rth-ico-nino); }
.rth-nino-tarea__corto { font-size: var(--rth-t-24); font-weight: var(--rth-peso-fuerte); line-height: var(--rth-lh-titulo); overflow-wrap: anywhere; }
.rth-nino-tarea__con { display: block; color: var(--rth-texto-2); }
.rth-nino-tarea > .rth-btn, .rth-nino-tarea > .rth-nino-hecho { grid-column: 1 / -1; }
.rth-btn--nino { min-block-size: var(--rth-tap-nino); font-size: var(--rth-t-21); }
.rth-nino-tarea[data-hecha] { background: var(--rth-ok-fondo); border-color: var(--rth-ok); }
.rth-nino-hecho { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rth-esp-2); min-block-size: var(--rth-tap-nino); }
.rth-nino-hecho > span { display: inline-flex; align-items: center; gap: var(--rth-esp-2); font-size: var(--rth-t-21); font-weight: var(--rth-peso-fuerte); color: var(--rth-texto); }
.rth-nino-hecho > span .ico { inline-size: var(--rth-ico-32); block-size: var(--rth-ico-32); color: var(--rth-ok); }
.rth-nino-hecho .rth-btn { inline-size: auto; min-block-size: var(--rth-tap-nino); }
.rth-nino-avance { display: grid; gap: var(--rth-esp-2); padding: var(--rth-esp-5) var(--rth-esp-4); background: var(--rth-superficie); border: var(--rth-borde-ancho) solid var(--rth-linea); border-radius: var(--rth-radio-hoja); }
.rth-nino-avance__casa { font-size: var(--rth-t-21); font-weight: var(--rth-peso-fuerte); line-height: var(--rth-lh-titulo); }
.rth-nino-avance__tu { font-size: var(--rth-t-18); }
.rth-volver-nino { min-block-size: var(--rth-tap-nino); }
