/* Minha Vida Organizada: tela de início com banner da viagem, Atenção, Próximos dias e Personalizar.
   Depende de tokens.css e shell.css. Só valores da escala e variáveis, nenhuma cor solta.
   Modelo: design-preview/aprovadas/inicio-enxuto.html (aprovado em 2026-10-03). */

[hidden] { display: none !important; }

/* ---------- Estrutura: o 1º bloco em largura total; depois a tela divide em principal + lateral ---------- */

.home-top { margin-bottom: var(--space-8); }
.home-top:empty, .home-top:not(:has(> :not([hidden]):not(.is-off))) { margin: 0; }   /* sem viagem, a tela começa em Atenção */
.home-passos:not(:empty) { margin-bottom: var(--space-8); }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); align-items: start; }
.home-main { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: var(--space-8); min-width: 0; }
@media (max-width: 1100px) {
  .home-split { grid-template-columns: 1fr; gap: var(--space-8); }
}

.sec-block, .hl-card, .side-card { position: relative; }
.home .hl-row { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 0; }
.home .sec-lbl { margin-bottom: var(--space-4); }
.home .hl-card .badge { display: inline-block; }

/* Título de bloco com o link dentro (ex.: "Próximos dias" + "Ver agenda"): mesma altura do título
   "Atenção", então os cards das duas colunas começam na mesma linha. */
.home-sec-hd { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }

/* Atenção sem nada pendente (ou conta nova) */
.home-em-dia { display: flex; align-items: center; gap: var(--space-3); }

/* ---------- Próximos dias (lateral) ---------- */
.act-row { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-2) 0; text-decoration: none; color: inherit; border-radius: var(--radius-sm); }
.act-row:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
a.act-row:hover .act-tx { color: var(--brand-ink); }
.act-ic { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.act-ic svg { width: 14px; height: 14px; }
.act-txt { min-width: 0; }
.act-tx { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-primary); }
.act-tm { font-size: 12px; color: var(--text-secondary); }

/* ---------- Cartão de hoje (lateral, em cima de Próximos dias; prévia design-preview/cartao-de-hoje.html) ---------- */
.ch-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: box-shadow 150ms, border-color 150ms; }
.ch-card:hover { box-shadow: var(--shadow-floating); border-color: var(--border-strong); }
.ch-card:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (prefers-reduced-motion: reduce) { .ch-card { transition: none; } }
.ch-nome { font-size: 15px; font-weight: 700; line-height: 1.3; margin-top: var(--space-2); }
.ch-pq { font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; margin-top: var(--space-1); }
.ch-base { font-size: 12px; color: var(--text-faint); line-height: 1.45; margin-top: var(--space-1); }

/* ---------- Personalizar: a lista fica em components.css (.pers-*) ---------- */
.home .is-off { display: none; }   /* desligado no Personalizar some do Início (continua no menu lateral) */
.home-split:not(:has(.home-side > :not(.is-off))) { grid-template-columns: minmax(0, 1fr); }   /* lateral desligada no Personalizar: a coluna principal usa a largura toda */

/* ---------- Celular: Atenção em linhas (revisão de UX 2026-10-04) ----------
   Cada card vira uma linha: slot, título e, embaixo, selo e valor, seta à direita. Três pendências
   cabem na primeira tela. */
@media (max-width: 600px) {
  .home .hl-row { gap: var(--space-2); }
  .home .hl-card { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "ic lab lab ar" "ic bdg val ar"; column-gap: var(--space-3); row-gap: var(--space-1); align-items: center; padding: var(--space-3); }
  .home .hl-top { display: contents; }
  .home .hl-icon { grid-area: ic; align-self: start; }
  .home .hl-label { grid-area: lab; font-size: 14px; }
  .home .hl-card .badge { grid-area: bdg; justify-self: start; }
  .home .hl-val { grid-area: val; margin: 0; padding: 0; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
  .home .hl-val .num { font-size: 15px; }
  .home .hl-arrow { grid-area: ar; position: static; }
}

/* ---------- Visual lavanda (2026-10-11) ---------- */
/* Pra fazer agora: lista dentro de um card, uma linha por coisa (era um card por coisa). */
.home #atencaoCards { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-2) var(--space-5); gap: 0; }
.home #atencaoCards .hl-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "ic lab val ar" "ic bdg val ar"; column-gap: var(--space-3); row-gap: 0; align-items: center; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; box-shadow: none; padding: var(--space-3) 0; }
.home #atencaoCards .hl-card:last-child { border-bottom: 0; }
.home #atencaoCards a.hl-card:hover { transform: none; box-shadow: none; }
.home #atencaoCards a.hl-card:hover .hl-label { color: var(--brand-ink); }
.home #atencaoCards .hl-top { display: contents; }
.home #atencaoCards .hl-icon { grid-area: ic; width: 36px; height: 36px; border-radius: var(--radius-md); }
.home #atencaoCards .hl-label { grid-area: lab; font-size: 14px; font-weight: 600; }
.home #atencaoCards .badge { grid-area: bdg; justify-self: start; background: none; padding: 0; font-weight: 500; font-size: 12.5px; }
.home #atencaoCards .hl-val { grid-area: val; margin: 0; padding: 0; font-size: 14px; font-weight: 600; text-align: right; }
.home #atencaoCards .hl-card.hl-texto { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic lab ar" "ic bdg ar" "ic val ar"; }
.home #atencaoCards .hl-texto .hl-val { text-align: left; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-top: var(--space-1); }
.home #atencaoCards .hl-val .num { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.home #atencaoCards .hl-arrow { grid-area: ar; position: static; background: none; }
/* Pra comprar hoje: uma linha, com o cartão em miniatura. */
.ch-card { display: flex; align-items: center; gap: var(--space-3); }
.ch-mini { width: 50px; height: 32px; border-radius: var(--radius-sm); flex-shrink: 0; position: relative; overflow: hidden; background-color: var(--text-secondary); color: var(--on-destaque); box-shadow: var(--shadow-floating); }
/* Brilho do plástico por cima da cor do banco, e o chip. */
.ch-mini::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--on-destaque) 22%, transparent), transparent 55%); }
.ch-mini::after { content: ''; position: absolute; left: 6px; top: 9px; width: 9px; height: 7px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--warn) 70%, var(--on-destaque)); }
/* Com a foto do cartão, sai o desenho (brilho e chip) e fica a foto. */
.ch-mini.tem-arte { background: none; outline: 1px solid var(--border-soft); outline-offset: -1px; }
.ch-mini.tem-arte::before, .ch-mini.tem-arte::after { content: none; }
.ch-mini.tem-arte img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-card .ch-nome { margin-top: 0; font-size: 14px; }
.ch-card .badge { align-self: flex-start; margin-top: var(--space-2); white-space: normal; }
.ch-card { align-items: flex-start; }
.home-sec-hd .card-link { white-space: nowrap; }
/* Viagem: o widget grande, com a foto. */
.trip-go { min-height: 240px; border-radius: var(--radius-lg); background-size: cover; background-position: center; }
.trip-go .trip-lbl { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: var(--space-1); }
.trip-dest { font-size: 30px; letter-spacing: -.02em; }
.trip-count .n { font-size: 40px; font-family: var(--font-sans); }
