/* =========================================================
   TIX Sun & Moon
   Port fidèle du widget HA / new-belchertown
   ========================================================= */

.tix-almanac {
    --tix-sun: #fbbf24;
    --tix-sun-set: #fb923c;
    --tix-sun-outline: #b45309;

    --tix-moon: #d7e0f2;
    --tix-moon-track: rgba(188, 202, 231, 0.90);
    --tix-moon-outline: #64748b;
    --tix-mini-moon: #aab3c4;

    position: relative;
    box-sizing: border-box;

    width: 100%;
    max-width: 380px;

    margin: 8px auto 14px;
    padding: 10px 18px 12px;

    color: inherit;
    background: rgba(245, 247, 250, 0.72);

    border: 1px solid rgba(140, 150, 165, 0.28);
    border-radius: 18px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 6px 18px rgba(0, 0, 0, 0.04);
}

.tix-info {
    position: absolute;
    top: 8px;
    right: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    border: 1px solid rgba(100, 110, 125, 0.25);
    border-radius: 50%;

    color: #6b7280;
    background: rgba(255, 255, 255, 0.72);

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
}

.tix-info:hover {
    text-decoration: none;
}

/* Haut : heures + diagramme + heures */

.tix-almanac-main {
    display: grid;

    grid-template-columns:
        max-content
        minmax(180px, 49%)
        max-content;

    justify-content: center;
    align-items: stretch;

    column-gap: 7px;
    width: 100%;
}

.tix-almanac-stack {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;

    gap: 7px;

    width: max-content;
    min-width: 0;

    font-size: 16px;
    line-height: 1.05;
}

.tix-almanac-stack-rise {
    justify-self: end;
    align-items: flex-end;
}

.tix-almanac-stack-set {
    justify-self: start;
    align-items: flex-start;
}

.tix-almanac-time {
    display: flex;
    align-items: center;

    gap: 5px;
    min-height: 18px;

    white-space: nowrap;
}

.tix-almanac-diagram {
    width: 100%;
    min-width: 180px;
    margin: 0;
}

.tix-almanac-svg {
    display: block;

    width: 100%;
    height: auto;

    margin: 0 auto;

    overflow: visible;
}

/* Courbes */

.tix-almanac-track,
.tix-almanac-horizon {
    fill: none;

    vector-effect: non-scaling-stroke;

    stroke-linecap: round;
}

.tix-almanac-track-sun {
    stroke: rgba(251, 191, 36, 0.90);
    stroke-width: 3.6;
}

.tix-almanac-track-moon {
    stroke: var(--tix-moon-track);
    stroke-width: 3.8;
    stroke-linejoin: round;
}

.tix-almanac-horizon {
    stroke: rgba(128, 128, 128, 0.45);
    stroke-width: 1.8;
}

/* Astres */

.tix-almanac-object-core {
    transition:
        fill 0.25s ease,
        stroke 0.25s ease;
}

.tix-almanac-object-sun .tix-almanac-object-core {
    fill: var(--tix-sun);
    stroke: var(--tix-sun-outline);
    stroke-width: 4.2;
}

.tix-almanac-object-moon .tix-almanac-object-core {
    fill: var(--tix-moon);
    stroke: var(--tix-moon-outline);
    stroke-width: 4.2;
}

.tix-almanac-object-sun.is-below-horizon .tix-almanac-object-core {
    fill: #e6ad22;
    stroke: #92400e;
}

.tix-almanac-object-moon.is-below-horizon .tix-almanac-object-core {
    fill: #c3ccdc;
    stroke: #55657a;
}

.tix-almanac-object-symbol {
    fill: #111827;

    font-family:
        "Segoe UI Symbol",
        "Noto Sans Symbols 2",
        "Apple Symbols",
        sans-serif;

    font-size: 80px;
    font-weight: 600;

    dominant-baseline: middle;
    alignment-baseline: central;

    pointer-events: none;
}

.tix-almanac-object-moon .tix-almanac-object-symbol {
    fill: #334155;
}

/* Mini icônes lever/coucher */

.tix-rise-set {
    display: block;
    flex: 0 0 auto;

    overflow: visible;
}

.tix-rise-set-sun {
    width: 17px;
    height: 8.5px;

    color: var(--tix-sun);
}

.tix-rise-set-sunset {
    color: var(--tix-sun-set);
}

.tix-rise-set-sun path {
    fill: currentColor;
}

.tix-rise-set-moon {
    width: 17px;
    height: 17px;

    color: var(--tix-mini-moon);
}

.tix-rise-set-moon path {
    fill: none;

    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;

    vector-effect: non-scaling-stroke;
}

/* Bas */

.tix-daylight {
    width: min(78%, 570px);

    margin: 6px auto 10px;

    font-size: 15px;
    line-height: 1.25;

    text-align: left;
}

.tix-moon-phase-row {
    display: grid;

    grid-template-columns:
        50px
        max-content;

    align-items: center;

    column-gap: 18px;

    width: max-content;
    max-width: 100%;

    margin: 0 auto;
}

.tix-moon-phase-graphic {
    display: block;

    width: 50px;
    height: 50px;
}

.tix-moon-phase-shadow {
    fill: #8b96a8;
}

.tix-moon-phase-light {
    fill: #f4f7fd;
}

.tix-moon-phase-outline {
    fill: none;

    stroke: var(--tix-moon-outline);
    stroke-width: 1.6;

    vector-effect: non-scaling-stroke;
}

.tix-moon-phase-copy {
    min-width: 0;

    font-size: 17px;
    line-height: 1.28;
}

.tix-moon-phase-copy strong {
    font-weight: 700;
}

.tix-moon-phase-copy > strong {
    display: block;
}

/* Mobile */

@media (max-width: 430px) {

    .tix-almanac {
        max-width: none;

        padding-left: 8px;
        padding-right: 8px;
    }

    .tix-almanac-main {
        grid-template-columns:
            max-content
            minmax(150px, 46%)
            max-content;

        column-gap: 4px;
    }

    .tix-almanac-stack {
        gap: 5px;

        font-size: 14px;
    }

    .tix-almanac-time {
        gap: 3px;
    }

    .tix-daylight {
        width: 92%;

        font-size: 15px;
    }

    .tix-moon-phase-row {
        grid-template-columns:
            46px
            minmax(0, 1fr);

        column-gap: 10px;

        width: 92%;
    }

    .tix-moon-phase-graphic {
        width: 46px;
        height: 46px;
    }

    .tix-moon-phase-copy {
        font-size: 14px;
    }
}
\n\n/* =========================================================\n   Intégration dans la tuile Soleil & Lune de Belchertown\n   ========================================================= */\n\n.wx-sunmoon.tix-sunmoon-integrated {\n    position: relative;\n    padding: 0 !important;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated > .tix-original-sunmoon {\n    display: none !important;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated > .tix-almanac {\n    width: 100%;\n    max-width: none;\n    margin: 0;\n    padding: 8px 10px 7px;\n\n    background: transparent;\n    border: 0;\n    border-radius: 0;\n    box-shadow: none;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-info {\n    top: 5px;\n    right: 6px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-almanac-main {\n    grid-template-columns:\n        max-content\n        minmax(118px, 1fr)\n        max-content;\n\n    column-gap: 4px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-almanac-stack {\n    gap: 3px;\n    font-size: 13px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-almanac-time {\n    gap: 3px;\n    min-height: 15px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-almanac-diagram {\n    min-width: 118px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-rise-set-sun {\n    width: 14px;\n    height: 7px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-rise-set-moon {\n    width: 14px;\n    height: 14px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-daylight {\n    width: 100%;\n    margin: 2px auto 4px;\n    font-size: 12px;\n    line-height: 1.15;\n    text-align: center;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-moon-phase-row {\n    grid-template-columns: 34px max-content;\n    column-gap: 7px;\n    margin-top: 0;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-moon-phase-graphic {\n    width: 34px;\n    height: 34px;\n}\n\n.wx-sunmoon.tix-sunmoon-integrated .tix-moon-phase-copy {\n    font-size: 13px;\n    line-height: 1.15;\n}\n\n@media (max-width: 430px) {\n    .wx-sunmoon.tix-sunmoon-integrated > .tix-almanac {\n        padding-left: 6px;\n        padding-right: 6px;\n    }\n\n    .wx-sunmoon.tix-sunmoon-integrated .tix-almanac-main {\n        grid-template-columns:\n            max-content\n            minmax(100px, 1fr)\n            max-content;\n    }\n}\n