/*
 * Calendário lunar do cabelo (Story 1.1): as duas páginas.
 *
 * Cores e céu da Astrofala (AC 11): a paleta vem de marca/astrofala.css
 * (azul-noite e dourado) e o céu do topo é o mesmo canvas da home
 * (marca/ceu.js). Dourado só sobre fundo escuro; em fundo claro, --af-gold-deep.
 * O verde e o coral dos selos são só para distinguir IDEAL de EVITE.
 */

.cl-ceu-topo {
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 125% 100% at 50% -6%, #4A2A8C 0%, #16103C 45%, var(--af-night, #010535) 100%);
    color: #fff;
    text-align: center;
    padding: 3.5rem 0 4.5rem;
}

.cl-ceu {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: .85;
}

.cl-ceu-topo > .container { position: relative; z-index: 1; }

.cl-emblema {
    display: block;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 14px rgba(222, 196, 96, .35));
}

.cl-titulo {
    color: #fff;
    font-family: var(--af-font-title, inherit);
    font-size: clamp(1.75rem, 4.6vw, 2.6rem);
    text-wrap: balance;
    margin-bottom: .75rem;
}

.cl-intro {
    color: rgba(255, 255, 255, .85);
    max-width: 640px;
    margin: 0 auto;
}

.cl-corpo { margin-top: -2.5rem; padding-bottom: 3rem; position: relative; z-index: 2; }

.cl-cartao { border-radius: var(--af-radius, 20px); box-shadow: var(--af-shadow); border: 0; }

.cl-resultado { margin-top: 2rem; }

.cl-aviso-sem-hora { margin-bottom: 1rem; }

.cl-mes-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

.cl-mes-titulo { color: var(--af-heading, #010535); text-transform: capitalize; text-align: center; }

.cl-legenda { display: flex; gap: .5rem; align-items: center; justify-content: center; margin-bottom: .75rem; }

.cl-calendario {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .35rem;
}

.cl-semana {
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--af-text, #5b5b66);
    padding: .25rem 0;
}

.cl-dia {
    min-height: 5.25rem;
    background: var(--af-surface, #fff);
    border: 1px solid var(--af-divider, #E6E6EB);
    border-radius: var(--af-radius-sm, 12px);
    padding: .35rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .8rem;
}

.cl-dia-vazio { background: transparent; border-color: transparent; }

.cl-num { font-weight: 600; color: var(--af-heading, #010535); }

.cl-dia-ideal { border-color: #1f8a4c; background: #effaf3; }
.cl-dia-evite { border-color: var(--af-coral, #E2403B); background: #fdf0ef; }

.cl-selo {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 999px;
    padding: .05rem .45rem;
    color: #fff;
    width: fit-content;
}

.cl-selo-ideal { background: #1f7a45; }
.cl-selo-evite { background: #b8322e; }

.cl-horas { color: var(--af-heading, #010535); font-variant-numeric: tabular-nums; }

.cl-objetivo-texto {
    margin-top: 1.75rem;
    padding: 1.5rem;
    background: var(--af-surface, #fff);
    border-radius: var(--af-radius, 20px);
    box-shadow: var(--af-shadow);
}

.cl-objetivo-texto h3 { color: var(--af-heading, #010535); }

.cl-aviso { margin-top: 2rem; }

/* ------------------------------------------------- versão geral (B) */

.cl-geral-botao { margin-top: 1.5rem; }

.cl-geral-objetivo {
    background: var(--af-surface, #fff);
    border-radius: var(--af-radius-sm, 12px);
    box-shadow: var(--af-shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.cl-geral-objetivo h2 { font-size: 1.15rem; color: var(--af-heading, #010535); margin-bottom: .5rem; }
.cl-geral-objetivo p { margin-bottom: .25rem; }
.cl-geral-rotulo { font-weight: 700; }
.cl-geral-rotulo-bom { color: #1f7a45; }
.cl-geral-rotulo-evitar { color: #b8322e; }

.cl-geral-nav { display: flex; justify-content: space-between; gap: .75rem; margin: 1.5rem 0; }

/* faixa na home e no fim dos artigos (AC 21) */
.cl-chamada {
    background: radial-gradient(ellipse 125% 100% at 50% -6%, #4A2A8C 0%, #16103C 45%, var(--af-night, #010535) 100%);
    color: #fff;
    border-radius: var(--af-radius, 20px);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.cl-chamada p { color: rgba(255, 255, 255, .88); margin-bottom: 1rem; }
/* O título herdava a cor escura dos h2 da home (.af-home h2) e não se lia
   no fundo escuro. Visto pelo dono a 15/11/2026. */
.cl-chamada h2, .af-home .cl-chamada h2 { color: #fff; }

@media (max-width: 575.98px) {
    .cl-dia { min-height: 4.25rem; padding: .25rem; font-size: .7rem; }
    .cl-selo { font-size: .6rem; padding: 0 .3rem; }
    .cl-mes-nav .btn { padding: .375rem .5rem; font-size: .85rem; }
}

/* ------------------------------------- salvar na conta (Story 1.2) */
.cl-salvar { margin-top: 1.25rem; text-align: center; }
.cl-salvar-estado { margin-bottom: 0; }
.cl-salvar-estado.is-ok { color: #1d7a37; }
.cl-salvar-estado.is-erro { color: #b8432f; }
