/*
 * css/views/home.css — Inicio (#/home): calendario "Actividad diaria" (js/views/home.js, homeCalHtml).
 *
 * 6-nov, pedido del usuario: como el del dashboard de PostgreSQL: una fila por mes, una celda por día, intensidad en
 * 4 niveles del acento (el verde de la marca) según el día más alto; hoy con borde; total del mes a la derecha.
 */
.hm-cal { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
          padding: 14px 16px; min-width: 0; }
.hm-cal-head { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-cal-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.hm-cal-head .lang-toggle { margin: 0; }
.hm-cal-info { color: var(--text-dim); font-size: .82rem; }
.hm-cal-empty { color: var(--text-dim); }
/* en pantallas angostas la grilla se desplaza dentro de su caja, nunca la página */
.hm-cal-grid { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.hm-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px; align-items: center; gap: 12px;
          min-width: 640px; }
.hm-month { font-size: .85rem; color: var(--text); white-space: nowrap; }
.hm-days { display: grid; grid-template-columns: repeat(31, minmax(10px, 1fr)); gap: 4px; }
.hm-total { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .85rem;
            color: var(--text-dim); white-space: nowrap; }
.hm-c { display: block; aspect-ratio: 1; max-height: 18px; border-radius: 3px; background: var(--surface-2); }
.hm-c.hm-none { background: transparent; }
.hm-c.hm-off { background: transparent; border: 1px dashed var(--border); }
.hm-c.hm-l0 { background: var(--surface-2); }
.hm-c.hm-l1 { background: color-mix(in srgb, var(--accent) 28%, var(--surface-2)); }
.hm-c.hm-l2 { background: color-mix(in srgb, var(--accent) 50%, var(--surface-2)); }
.hm-c.hm-l3 { background: color-mix(in srgb, var(--accent) 74%, var(--surface-2)); }
.hm-c.hm-l4 { background: var(--accent); }
.hm-c.hm-today { outline: 2px solid var(--accent); outline-offset: 1px; }
.hm-legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px;
             font-size: .75rem; color: var(--text-dim); }
.hm-legend .hm-c { width: 12px; height: 12px; }
.hm-legend span:first-child { margin-right: 4px; }
.hm-legend span:last-child { margin-left: 4px; }

/* 6-nov: tabla "Actividad por mes" (componente tree-table, js/views/layer-activity.js) */
.hm-act { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
          padding: 14px 16px; min-width: 0; }
.hm-act .tt-head h4 { margin: 0; }
.tt-hint { color: var(--text-dim); font-size: .8rem; margin: -2px 0 8px; }

/* 6-nov, pedido del usuario: la tarjeta Catálogo centrada. Va en la columna del medio de las 3 de .mc-cols (mismo
   ancho que las de Medallion); en pantallas angostas .mc-cols es una sola columna y queda como estaba. */
@media (min-width: 901px) { .mc-cols.hm-catalog > .mc-col { grid-column: 2; } }
