.sol-sun-page {
    margin-top: 12px;
    margin-bottom: 24px;
}

.tool-header {
    margin-bottom: 24px;
    text-align: center;
}

.tool-header .tool-page-header {
    text-align: center;
}

.tool-header .page-title {
    margin-bottom: 8px;
}

.tool-header .page-subtitle {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #3e5572;
}

.tool-header .lead {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #3e5572;
}

.sol-top-ad {
    margin-top: 14px;
    margin-bottom: 14px;
}

.sol-feature-ui {
    border: 1px solid #c7dbff;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f4fc0 0%, #2b6fd4 40%, #4ca8f6 100%);
    box-shadow: 0 16px 36px rgba(14, 30, 59, 0.24);
    padding: 20px;
    color: #f2f7ff;
}

.sol-hero-dashboard {
    position: relative;
    overflow: hidden;
}

.sol-hero-dashboard::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    right: -100px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 224, 142, 0.5) 0%, rgba(255, 224, 142, 0) 72%);
    pointer-events: none;
}

.sol-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.sol-hero-visual-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 16px;
    padding: 16px 16px 14px;
    background: linear-gradient(180deg, rgba(11, 40, 95, 0.42) 0%, rgba(8, 31, 75, 0.56) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.sol-hero-section {
    background: #f6f9ff;
    border: 1px solid #d6e2f5;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 12px;
    min-width: 0;
}

.sol-hero-section-title {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #4b627f;
}

.sol-hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 24px rgba(9, 21, 50, 0.28);
}

.sol-sun-icon {
    width: 52px;
    height: 52px;
    display: block;
}

.sol-hero-dashboard .immediate-answer {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.45;
    color: #f1f7ff;
}

.sol-hero-dashboard .cidade-ip {
    font-weight: 700;
    color: var(--white-color);
}

.sol-hero-support {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #d8e8ff;
}

.sol-hero-support strong {
    color: var(--white-color);
    font-weight: 800;
}

.sol-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
}

.sol-kpi-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 1px solid #d4e0f2;
    border-radius: 14px;
    background: linear-gradient(180deg, var(--content-bg) 0%, var(--res-highlight-bg) 100%);
    min-height: 96px;
    padding: 12px 13px;
    box-shadow: 0 7px 20px rgba(29, 54, 97, 0.08);
}

/* Os dois primeiros tiles (nascer/por) ocupam a linha inteira em destaque. */
.sol-kpi-card:nth-child(1),
.sol-kpi-card:nth-child(2) {
    background: linear-gradient(180deg, #fffaf0 0%, #fff2d8 100%);
    border-color: #f4d79a;
}

.sol-kpi-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4d6481;
    font-weight: 700;
}

.sol-kpi-value {
    display: block;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    line-height: 1.05;
    color: #112e59;
    font-weight: 900;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
}

.sol-kpi-sub {
    display: block;
    font-size: 0.78rem;
    line-height: 1.25;
    color: #4a6382;
}

.sol-hero-meta {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #eaf3ff;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-context {
    margin-bottom: 12px !important;
}

.card-sol .icon {
    display: block;
    margin-bottom: 10px;
    font-size: 1.4rem;
    line-height: 1;
}

.sol-serp-wrapper,
.sol-article-wrapper,
.sol-faq-wrapper,
.sol-related-wrapper {
    margin-top: 16px;
}

.sol-map-live-wrapper {
    margin-top: 16px;
}

.sol-map-live-wrapper h2 {
    margin: 0 0 10px;
}

.sol-map-wrapper--cta {
    margin-top: 10px;
    border: 1px solid rgba(20, 38, 72, 0.24);
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    box-shadow: 0 10px 26px rgba(18, 40, 78, 0.12);
    padding: 12px;
}

.sol-map-wrapper--preview {
    margin-top: 0;
    position: relative;
    --sol-refresh-accent: #2b88f0;
    border: 1px solid rgba(22, 36, 68, 0.32);
    border-radius: 14px;
    overflow: hidden;
    background: #0c1320;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(3, 8, 18, 0.24);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.sol-map-wrapper--preview:hover {
    border-color: rgba(68, 136, 224, 0.6);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 14px 30px rgba(17, 56, 115, 0.24);
}

.sol-map-wrapper--preview.sol-map-refreshing {
    border-color: rgba(82, 154, 245, 0.72);
}

.sol-map-wrapper--preview.sol-map-refreshing #sol-daynight-canvas {
    animation: sol-map-refresh-flash 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes sol-map-refresh-flash {
    0% {
        filter: brightness(1) saturate(1) contrast(1);
        transform: scale(1);
    }
    45% {
        filter: brightness(1.3) saturate(1.2) contrast(1.08);
        transform: scale(1.018);
    }
    100% {
        filter: brightness(1) saturate(1) contrast(1);
        transform: scale(1);
    }
}

@keyframes sol-map-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.sol-map-wrapper--preview #sol-daynight-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    touch-action: none;
    user-select: none;
    transform-origin: center center;
}

.sol-map-preview-footer {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sol-map-meta {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #2e4664;
}

.sol-map-meta-time {
    font-weight: 800;
    color: #17375c;
}

.sol-map-meta-location {
    display: inline-block;
    margin-top: 2px;
}

.sol-map-cta-btn {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100%;
    padding: 8px 14px;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    margin-left: auto;
    flex: 0 0 auto;
    text-decoration: none !important;
}

.sol-map-cta-btn:hover,
.sol-map-cta-btn:focus {
    text-decoration: none !important;
}

.sol-map-cta-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.sol-map-refresh-btn {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100%;
    padding: 8px 14px;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
    flex: 0 0 auto;
    border: 1px solid #158a61;
    background: linear-gradient(180deg, #1ebf86 0%, #169466 100%);
    color: var(--white-color);
    box-shadow: 0 8px 18px rgba(16, 122, 86, 0.26);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.sol-map-refresh-btn i {
    margin-right: 6px;
    font-size: 0.82rem;
}

.sol-map-refresh-btn:hover,
.sol-map-refresh-btn:focus {
    background: linear-gradient(180deg, #25cb90 0%, #1a9f6f 100%);
    border-color: #127c56;
    color: var(--white-color);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 122, 86, 0.3);
}

.sol-map-refresh-btn.is-loading {
    cursor: progress;
    opacity: 0.92;
}

.sol-map-refresh-btn.is-loading i {
    animation: sol-map-refresh-spin 0.72s linear infinite;
}

.sol-map-refresh-btn.is-success {
    border-color: #1f9f78;
    background: linear-gradient(180deg, #24b98a 0%, #1a936e 100%);
    color: #f4fff9;
}

.sol-faq-wrapper .article-content {
    padding: 0;
}

@media (max-width: 900px) {
    .tool-header .lead,
    .tool-header .page-subtitle {
        font-size: 1rem;
    }

    .sol-feature-ui {
        padding: 14px;
    }

    .sol-hero-inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sol-hero-visual-card {
        grid-template-columns: auto;
    }

    .sol-kpi-grid {
        grid-template-columns: 1fr;
    }

    .sol-kpi-card {
        min-height: 112px;
        padding: 12px;
    }

    .sol-map-preview-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sol-map-cta-btn {
        margin-left: 0;
    }

    .sol-map-cta-actions {
        margin-left: 0;
        justify-content: center;
    }
}

body.dark-mode .sol-feature-ui {
    border-color: #3d5d93;
    background: linear-gradient(135deg, #0b2e69 0%, #124ea8 45%, #2a78d3 100%);
}

body.dark-mode .sol-kpi-card {
    border-color: rgba(88, 115, 156, 0.54);
    background: linear-gradient(180deg, rgba(16, 29, 52, 0.95) 0%, rgba(9, 18, 35, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.dark-mode .sol-kpi-card:nth-child(1),
body.dark-mode .sol-kpi-card:nth-child(2) {
    background: linear-gradient(180deg, rgba(60, 44, 16, 0.95) 0%, rgba(38, 27, 8, 0.98) 100%);
    border-color: rgba(158, 122, 52, 0.6);
}

body.dark-mode .sol-hero-section {
    background: rgba(13, 24, 42, 0.62);
    border-color: rgba(86, 111, 152, 0.55);
}

body.dark-mode .sol-hero-section-title {
    color: #b9cee9;
}

body.dark-mode .sol-kpi-label {
    color: #a8c0df;
}

body.dark-mode .sol-kpi-value {
    color: #f0f6ff;
}

body.dark-mode .sol-kpi-sub {
    color: #b8cbe3;
}

body.dark-mode .tool-header .page-subtitle {
    color: #c4d9f3;
}

body.dark-mode .tool-header .lead {
    color: #c4d9f3;
}

body.dark-mode .sol-hero-icon {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(255, 255, 255, 0.22);
}

body.dark-mode .sol-hero-support {
    color: #d0e0f5;
}

body.dark-mode .sol-map-wrapper--cta {
    border-color: rgba(84, 114, 160, 0.46);
    background: linear-gradient(180deg, rgba(17, 30, 54, 0.9) 0%, rgba(13, 24, 42, 0.95) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.dark-mode .sol-map-wrapper--preview {
    --sol-refresh-accent: #67b3ff;
    border-color: rgba(103, 128, 167, 0.44);
    background: #0c1320;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.28);
}

body.dark-mode .sol-map-wrapper--preview:hover {
    border-color: rgba(94, 170, 255, 0.74);
    box-shadow:
        inset 0 0 0 1px rgba(220, 237, 255, 0.2),
        0 14px 30px rgba(12, 48, 99, 0.32);
}

body.dark-mode .sol-map-wrapper--preview.sol-map-refreshing {
    border-color: rgba(110, 184, 255, 0.9);
}

body.dark-mode .sol-map-preview-footer {
    border-top-color: transparent;
}

body.dark-mode .sol-map-refresh-btn {
    border-color: #2ac28f;
    background: linear-gradient(180deg, #1ca975 0%, #157d58 100%);
    color: #f3fff9;
}

body.dark-mode .sol-map-meta {
    color: #c3d5eb;
}

body.dark-mode .sol-map-meta-time {
    color: #f0f6ff;
}

/* === Redesign 2026-06-02: hero full-bleed (cal-year-hero) + pagina como bloco (cdp-tool-shift) === */

/* Ad below_tool: centrado, sem estilo inline em producao. */
.sol-belowtool-ad {
    margin: 16px 0;
    text-align: center;
}
.sol-belowtool-ad:empty {
    display: none;
    margin: 0;
}

/* Hub /sol/: grid de ferramentas + editorial dentro do bloco unico. */
.sol-hub-grid {
    margin-top: 4px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.sol-hub-article {
    margin-top: 6px;
}
.sol-hub-article h2 {
    margin-top: 22px;
    margin-bottom: 8px;
    color: #122a4e;
}
.sol-hub-article h2:first-child {
    margin-top: 0;
}
.sol-hub-article p {
    margin: 10px 0;
    line-height: 1.72;
    color: #25374f;
}
.sol-hub-article code {
    background: #eef3fb;
    border-radius: 5px;
    padding: 1px 6px;
    font-size: 0.92em;
}
body.dark-mode .sol-hub-article h2 {
    color: #dbe9ff;
}
body.dark-mode .sol-hub-article p {
    color: #c9d7ee;
}
body.dark-mode .sol-hub-article code {
    background: rgba(148, 163, 184, 0.16);
    color: #e7eefc;
}

/* Link de retorno ao hub de localizacao na pagina de cidade. */
.sol-hub-backlink {
    margin: 0 0 14px;
    font-size: 0.95rem;
}
.sol-hub-backlink a {
    font-weight: 700;
    color: #0b4b7f;
    text-decoration: none;
}
.sol-hub-backlink a:hover,
.sol-hub-backlink a:focus {
    text-decoration: underline;
}
body.dark-mode .sol-hub-backlink a {
    color: #7db8ec;
}

/* Dentro do bloco unico, cada wrapper herda a largura do .cdp-tool-body (cap cdp-tool-shift--cal).
   Os .container internos do ocal sao presos a 1000px; aqui soltamos para 100% do bloco. */
body .cdp-tool-body .sol-feature-ui,
body .cdp-tool-body .sol-map-live-wrapper,
body .cdp-tool-body .sol-article-wrapper,
body .cdp-tool-body .sol-faq-wrapper,
body .cdp-tool-body .sol-related-wrapper,
body .cdp-tool-body .sol-howto-wrapper {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
.cdp-tool-body { min-width: 0; }

/* === Entregas de conteudo solar (azimute, sol a pino, hora dourada, tabela do mes) === */

/* Janelas de foto (hora dourada / hora azul): lista com respiro, sem faixa colorida. */
.sol-photo-windows {
    margin: 10px 0 14px;
    padding-left: 20px;
    line-height: 1.7;
}
.sol-photo-windows li {
    margin: 4px 0;
}

/* Tabela do mes completo dentro de <details>: borda neutra 1px, sem faixa lateral. */
.sol-month-details {
    margin: 14px 0 18px;
    border: 1px solid #d6e2f5;
    border-radius: 12px;
    background: #f9fbff;
    padding: 10px 14px;
}
.sol-month-details > summary {
    cursor: pointer;
    font-weight: 700;
    color: #122a4e;
    list-style-position: inside;
    padding: 2px 0;
}
.sol-month-details[open] > summary {
    margin-bottom: 8px;
}
body.dark-mode .sol-month-details {
    border-color: rgba(86, 111, 152, 0.55);
    background: rgba(13, 24, 42, 0.5);
}
body.dark-mode .sol-month-details > summary {
    color: #dbe9ff;
}

/* Impressao: a tabela do mes DEVE sair; o resto da pagina, nao.
   O print global (style.css) esconde .article-wrapper inteiro, entao aqui
   reexibimos so a arvore ate a tabela do mes e escondemos os irmaos. */
@media print {
    .no-print { display: none !important; }

    body .sol-article-wrapper.article-wrapper {
        display: block !important;
    }
    body .sol-article-wrapper .article-content > *:not(.sol-month-details) {
        display: none !important;
    }
    .sol-month-details {
        display: block !important;
        border: 1px solid rgba(0, 0, 0, 0.3) !important;
        background: transparent !important;
        page-break-inside: auto;
    }
    .sol-month-details > summary {
        display: none !important;
    }
    .sol-month-details .post-table-wrap,
    .sol-month-details .post-table {
        display: block !important;
        width: 100% !important;
    }
    .sol-month-details .post-table {
        display: table !important;
    }
}
