@font-face {
    font-family: "tddr-icons";
    src: local('tddr-icons'),
        url("../fonts/tddr-icons.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "HamburgSymbols";
    src: local('HamburgSymbols'),
        url("../fonts/HamburgSymbols.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

[class^="tddr-icon-"],
[class*=" tddr-icon-"] {
    color: #cf000f;
    font-family: "tddr-icons" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tddr-icon-aries::before {
    content: "\e90b";
}

.tddr-icon-taurus::before {
    content: "\e909";
    color: #00d717;
}

.tddr-icon-gemini::before {
    content: "\e90a";
    color: #f5ab35;
}

.tddr-icon-cancer::before {
    content: "\e908";
    color: #4169e1;
}

.tddr-icon-leo::before {
    content: "\e907";
}

.tddr-icon-virgo::before {
    content: "\e906";
    color: #00d717;
}

.tddr-icon-libra::before {
    content: "\e905";
    color: #f5ab35;
}

.tddr-icon-scorpio::before {
    content: "\e904";
    color: #4169e1;
}

.tddr-icon-sagittarius::before {
    content: "\e903";
}

.tddr-icon-capricorn::before {
    content: "\e902";
    color: #00d717;
}

.tddr-icon-aquarius::before {
    content: "\e901";
    color: #f5ab35;
}

.tddr-icon-pisces::before {
    content: "\e900";
    color: #4169e1;
}

[class^="tddr-planet-"]::before,
[class*=" tddr-planet-"]::before {
    font-family: "HamburgSymbols" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    line-height: 1;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tddr-planet-sun::before {
    content: "Q";
}

.tddr-planet-moon::before {
    content: "W";
}

.tddr-planet-mercury::before {
    content: "E";
}

.tddr-planet-venus::before {
    content: "R";
}

.tddr-planet-mars::before {
    content: "T";
}

.tddr-planet-jupiter::before {
    content: "Y";
}

.tddr-planet-saturn::before {
    content: "U";
}

.tddr-planet-uranus::before {
    content: "I";
}

.tddr-planet-neptune::before {
    content: "O";
}

.tddr-planet-pluto::before {
    content: "P";
}

.tddr-planet-chiron::before {
    content: "M";
}

.tddr-planet-lilith::before {
    content: "`";
}

.tddr-planet-nn::before {
    content: "\2039";
}

.tddr-current-sky-widget {
    background-color: transparent;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border: none;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

.tddr-current-sky-detail-link {
    align-items: center;
    background: #f3f7fa;
    border: 1px solid #dce7ef;
    border-radius: 10px;
    color: #244f73;
    display: grid;
    font-size: .82rem;
    font-weight: 700;
    gap: 10px;
    grid-template-columns: auto 1fr auto;
    margin: 10px 10px 18px;
    min-height: 46px;
    padding: 9px 12px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

.tddr-current-sky-detail-link__icon { color: #6e92b2; font-size: .9rem; }
.tddr-current-sky-detail-link__label { min-width: 0; white-space: nowrap; }
.tddr-current-sky-detail-link__arrow { font-size: 1.35rem; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.tddr-current-sky-detail-link:hover,
.tddr-current-sky-detail-link:focus-visible { background: #edf4f8; border-color: #b9cede; box-shadow: 0 8px 22px rgba(36, 79, 115, .1); color: #173e62; transform: translateY(-1px); }
.tddr-current-sky-detail-link:hover .tddr-current-sky-detail-link__arrow,
.tddr-current-sky-detail-link:focus-visible .tddr-current-sky-detail-link__arrow { transform: translateX(2px); }
.tddr-current-sky-detail-link:focus-visible { outline: 2px solid rgba(45, 95, 138, .35); outline-offset: 2px; }

@media (max-width: 360px) {
    .tddr-current-sky-detail-link { font-size: .76rem; gap: 7px; margin-left: 6px; margin-right: 6px; padding-left: 10px; padding-right: 10px; }
}

.tddr-current-sky-widget .tddr-planet-subname {
    display: block;
    color: #888;
    font-size: 0.8em;
    line-height: 1;
}

.tddr-current-sky-widget .tddr-widget-datetime {
    margin: 0 0 15px;
    color: #888;
    font-size: 0.9em;
    text-align: center;
}

.tddr-current-sky-widget .tddr-widget-datetime__local { color: #737b84; }
.tddr-current-sky-widget .tddr-widget-datetime__utc { color: #a1a7ad; font-size: .82em; white-space: nowrap; }

.tddr-current-sky-widget .tddr-moon-phase {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
    font-size: 1em;
    font-weight: 500;
}

.tddr-current-sky-widget .tddr-moon-icon {
    font-size: 3em;
    line-height: 1;
}

.tddr-current-sky-widget .tddr-moon-details {
    margin-top: 10px;
}

.tddr-current-sky-widget .tddr-moon-angle {
    margin-left: 5px;
    color: #777;
    font-size: 0.8em;
    font-weight: 400;
}

.tddr-current-sky-widget .tddr-planet-list {
    margin: 0 0 15px;
    padding: 0;
    list-style: none;
}

.tddr-current-sky-widget .tddr-planet-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tddr-current-sky-widget .tddr-planet-row:last-child {
    border-bottom: none;
}

.tddr-current-sky-widget .tddr-planet-glyph-name {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
}

.tddr-current-sky-widget .legend-glyph {
    width: 25px;
    margin-right: 8px;
    font-size: 1.4em;
    text-align: center;
}

.tddr-current-sky-widget .tddr-planet-position {
    margin-top: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    text-align: right;
    white-space: nowrap;
}

.tddr-current-sky-widget .tddr-sign-abbr {
    padding-left: 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.tddr-current-sky-widget .tddr-planet-retrograde {
    display: inline-block;
    margin-left: 4px;
    color: #e74c3c;
    font-weight: bold;
}

.tddr-current-sky-widget .tddr-widget-subtext,
.tddr-current-sky-widget .tddr-next-ingress {
    margin: 5px 0 0;
    padding: 0;
    color: #6c6c6c;
    font-size: 0.85em;
    font-style: italic;
    text-align: center;
}

.tddr-current-sky-widget .tddr-sky-notice {
    align-items: flex-start;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
    line-height: 1.4;
    margin-top: 9px !important;
    padding: 7px 10px;
    text-align: left;
}

.tddr-current-sky-widget .tddr-sky-notice em { font-style: normal; }
.tddr-current-sky-widget .tddr-sky-notice__icon { flex: 0 0 auto; font-size: 1rem; line-height: 1.35; }
.tddr-current-sky-widget .tddr-sky-notice--moon {
    background: rgba(217, 145, 25, .075);
    border-color: rgba(217, 145, 25, .2);
    color: #b26d00 !important;
}

.tddr-current-sky-widget .tddr-moon-voc {
    font-style: normal !important;
    font-weight: 600 !important;
}

.tddr-current-sky-widget .tddr-moon-in-course {
    color: #10b981 !important;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    font-style: normal !important;
    font-weight: 600 !important;
}

.tddr-current-sky-widget .tddr-mercury-retro {
    color: #6f6384 !important;
    background: rgba(111, 99, 132, .065);
    border-color: rgba(111, 99, 132, .16);
    font-style: normal !important;
    font-weight: 500 !important;
    margin-top: 12px !important;
}

.tddr-current-sky-widget .tddr-next-ingress {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.tddr-current-sky-widget .tddr-chart-drawing img {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .tddr-current-sky-widget .tddr-chart-drawing img {
        transition: transform 0.3s ease;
    }

    .tddr-current-sky-widget .tddr-chart-drawing img:hover {
        z-index: 20;
        transform: scale(1.25);
    }
}

.tddr-current-sky-widget.tddr-cs-placeholder {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    max-width: 450px;
    margin: 1em auto;
    padding: 20px 16px 18px;
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tddr-skeleton {
    display: grid;
    gap: 14px;
    padding: 0;
}

.tddr-skeleton-sky {
    padding: 0;
}

.tddr-skel-block {
    position: relative;
    overflow: hidden;
    background: #eef1f4;
    border-radius: 10px;
}

.tddr-skel-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    transform: translateX(-100%);
    animation: tddr-skeleton-shimmer 1.35s ease-in-out infinite;
}

.tddr-skel-datetime {
    width: 72%;
    height: 16px;
    margin: 0 auto 4px;
    border-radius: 999px;
}

.tddr-skel-moon-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.tddr-skel-moon-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.tddr-skel-moon-title {
    width: 54%;
    height: 18px;
}

.tddr-skel-moon-subtitle {
    width: 42%;
    height: 14px;
    border-radius: 999px;
}

.tddr-skel-status-card {
    width: 100%;
    height: 72px;
    border-radius: 12px;
}

.tddr-skel-next-ingress {
    width: 48%;
    height: 14px;
    border-radius: 999px;
}

.tddr-skel-planet-list {
    display: grid;
    gap: 0;
}

.tddr-skel-planet-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tddr-skel-planet-row:last-child {
    border-bottom: none;
}

.tddr-skel-planet-name {
    width: 84%;
    height: 18px;
}

.tddr-skel-planet-position {
    width: 92%;
    height: 16px;
    justify-self: end;
}

.tddr-skel-planet-sign {
    width: 70%;
    height: 16px;
}

.tddr-skel-mercury {
    width: 100%;
    height: 76px;
    margin-top: 4px;
    border-radius: 12px;
}

.tddr-skel-chart {
    width: min(100%, 320px);
    margin-top: 6px;
    border-radius: 50%;
    aspect-ratio: 1;
    justify-self: center;
}

@keyframes tddr-skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.tddr-personal-cta {
    padding: 20px;
    color: #495057;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
}

.tddr-personal-cta h4 {
    margin: 0 0 12px;
    color: #495057;
    font-weight: 600;
}

.tddr-cta-button {
    display: inline-block;
    padding: 8px 22px;
    color: #fff;
    background: #355d85;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tddr-cta-button:hover,
.tddr-cta-button:focus-visible {
    color: #fff;
    background: #005a87;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    text-decoration: none;
    transform: translateY(-1px);
}

.tddr-current-sky-error {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 28px 18px;
    text-align: center;
}

/* Shared by the existing widget and full sky page, without additional assets. */
.tddr-eclipse-notice { display: grid; gap: .35rem; margin: 1rem 0; padding: .85rem 1rem; border-left: 3px solid #6c91bb; border-radius: 0 4px 4px 0; background: #e8eff8; color: #193b5e; font-size: .9rem; line-height: 1.5; }
.tddr-eclipse-notice small { font-size: .8rem; color: #466078; }
.tddr-eclipse-notice[hidden] { display: none; }
.tddr-current-sky-widget .tddr-moon-in-course { background: #e7f0f8; border-color: #afc3d8; color: #315779; }
.tddr-current-sky-widget .tddr-moon-next-voc { background: transparent; border-color: #dce3ea; color: #52667a; }
.tddr-current-sky-widget .tddr-moon-voc { background: #fcf4df; border-color: #d1b361; color: #715a24; }

.tddr-current-sky-error p {
    margin: 0;
    color: #495057;
}

.tddr-current-sky-retry {
    border: 0;
    border-radius: 6px;
    padding: 10px 18px;
    background: #355d85;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tddr-current-sky-retry:hover,
.tddr-current-sky-retry:focus-visible {
    background: #274b70;
    outline: 2px solid #8bb8e8;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .tddr-skel-block::after {
        animation: none;
        transform: none;
    }

    .tddr-current-sky-widget .tddr-chart-drawing img,
    .tddr-cta-button,
    .tddr-current-sky-detail-link,
    .tddr-current-sky-detail-link__arrow {
        transition: none;
        transform: none;
    }
}
