/* =========================================================
   DASHBOARD.CSS
   Page-specific layout for Dashboard / Home
   Depends on: ephemeris.css
   ---------------------------------------------------------
   01. Dashboard Hero
   02. Location Search
   03. Tonight Score Card / Gauge
   04. Forecast + Moon Strip
   05. Nightly Forecast Cards
   06. Night Forecast Modal
   07. Visible Tonight / Highlights
   08. Tools / Gear / Signup
   09. Highlights and Calendar
   10. Dashboard Responsive Rule
   ========================================================= */

/* =========================================================
   01. DASHBOARD HERO
   ========================================================= */

.hero {
    min-height: 630px;
    margin: 0 -34px var(--section-gap);
    padding: 66px 70px 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 54px;
    align-items: start;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(4, 10, 18, 0.88) 0%, rgba(4, 10, 18, 0.38) 50%, rgba(4, 10, 18, 0.94) 100%),
        linear-gradient(180deg, rgba(4, 10, 18, 0.10) 0%, rgba(4, 10, 18, 0.98) 100%),
        url("../img/hero-stars.jpg") center center / cover no-repeat,
        var(--bg-dark);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 32px;
    max-width: 520px;
}

.hero h1 {
    margin: 0 0 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 70px;
    line-height: 0.94;
    font-weight: 500;
    color: var(--text);
}

.hero h1 em {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.hero-copy p {
    max-width: 440px;
    margin: 0 0 32px;
    color: #e1e6ec;
    font-size: 15px;
    line-height: 1.65;
}

/* =========================================================
   02. LOCATION SEARCH
   ========================================================= */

.location-box {
    display: flex;
    width: 420px;
    height: 58px;
    margin: 0 0 18px;
    border-radius: 8px;
    overflow: hidden;
}

.location-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: #f3efe6;
    color: #111;
    padding: 0 20px;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
}

.location-box button {
    width: 58px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: var(--gold);
    color: #111;
    font-size: 20px;
    cursor: pointer;
}

.use-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7d3df;
    font-size: 13px;
    text-decoration: underline;
}

.use-location::before {
    content: "⌖";
    color: var(--gold);
    font-size: 16px;
}

/* =========================================================
   03. TONIGHT SCORE CARD / GAUGE
   ========================================================= */

@property --score-pct { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --clear-pct { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --humidity-pct { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --wind-pct { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

.score-card {
    position: relative;
    z-index: 2;
    min-height: 500px;
    padding: 30px 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    background: rgba(7, 20, 32, 0.86);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
}

.score-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 500;
    color: var(--text);
}

.score-subtitle {
    margin-top: 4px;
    color: #8f9baa;
    font-size: 12px;
}

.score-ring {
    width: 220px;
    height: 220px;
    margin: 24px auto 16px;
    position: relative;
    border-radius: 50%;
    animation: scoreGaugeIn 700ms ease-out both;
}

.ring {
    position: absolute;
    border-radius: 50%;
    background-repeat: no-repeat;
}

.ring-score {
    inset: 0;
    background: conic-gradient(var(--gold) 0 var(--score-pct), rgba(255, 255, 255, 0.08) var(--score-pct) 100%);
    mask: radial-gradient(circle, transparent 67%, #000 68% 77%, transparent 78%);
    transition: --score-pct 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-clear {
    inset: 10px;
    background: conic-gradient(#78cfff 0 var(--clear-pct), rgba(255, 255, 255, 0.07) var(--clear-pct) 100%);
    mask: radial-gradient(circle, transparent 67%, #000 68% 76%, transparent 77%);
    transition: --clear-pct 1800ms cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.ring-humidity {
    inset: 20px;
    background: conic-gradient(#8bd3c7 0 var(--humidity-pct), rgba(255, 255, 255, 0.07) var(--humidity-pct) 100%);
    mask: radial-gradient(circle, transparent 66%, #000 67% 72%, transparent 73%);
    transition: --humidity-pct 1800ms cubic-bezier(0.22, 1, 0.36, 1) 240ms;
}

.ring-wind {
    inset: 30px;
    background: conic-gradient(#c7a7ff 0 var(--wind-pct), rgba(255, 255, 255, 0.07) var(--wind-pct) 100%);
    mask: radial-gradient(circle, transparent 65%, #000 66% 71%, transparent 72%);
    transition: --wind-pct 1800ms cubic-bezier(0.22, 1, 0.36, 1) 360ms;
}

.score-ring-center {
    position: absolute;
    inset: 64px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.06), transparent 60%), rgba(7, 20, 32, 0.94);
    box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 0, 0, 0.42);
}

.score-ring strong {
    font-size: 56px;
    line-height: 0.9;
    color: #ffffff;
}

.score-ring span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
}

@keyframes scoreGaugeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.score-label {
    margin-bottom: 26px;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
}

.score-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.score-metrics span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.score-metrics strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.score-updated {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #7f8c9b;
    text-align: center;
    font-size: 11px;
}

/* =========================================================
   SCORE CARD TOOLTIP + METRICS
   ========================================================= */

.score-info {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 22px;
    height: 22px;

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

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);

    color: #c8d3df;
    font-size: 12px;
    font-weight: 800;
    cursor: help;
}

.score-info:hover {
    color: #ffffff;
    border-color: var(--gold);
}

.score-tooltip {
    position: absolute;
    top: 44px;
    right: -18px;
    z-index: 10;
    width: 260px;
    padding: 16px;

    border: 1px solid rgba(217, 169, 91, 0.35);
    border-radius: 10px;
    background: #f3efe6;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);

    color: #111827;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    transition: opacity 0.18s ease, transform 0.18s ease;
}

.score-ring:hover .score-tooltip,
.score-info:hover + .score-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-row {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;

    color: #111827;
    font-size: 13px;
}

.tooltip-row + .tooltip-row {
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.tooltip-row strong {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.tooltip-row em {
    color: #111827;
    font-style: normal;
    font-weight: 900;
}

.tooltip-row.composite strong,
.tooltip-row.composite em {
    color: #8a5c18;
}

.tooltip-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, 0.14);

    color: #5f6975;
    font-size: 12px;
    line-height: 1.45;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-score {
    background: var(--gold);
}

.dot-clear {
    background: #78cfff;
}

.dot-humidity {
    background: #8bd3c7;
}

.dot-wind {
    background: #c7a7ff;
}


/* =========================================================
   04. FORECAST + MOON STRIP
   ========================================================= */

.forecast-moon-panel {
    margin-top: var(--section-gap);
    padding: 28px 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
}

.nightly-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 12px;
    align-items: stretch;
}

.nightly-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 28px) / 3);
    gap: 14px;
    padding-top: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.nightly-row::-webkit-scrollbar {
    display: none;
}

.night-arrow {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: var(--panel-soft);
    color: #c8d3df;
    font-size: 30px;
    cursor: pointer;
}

.night-arrow:hover {
    border-color: rgba(217, 169, 91, 0.55);
    color: var(--gold);
}

.night-arrow.is-disabled {
    opacity: 0.25;
    pointer-events: none;
}

.moon-side {
    padding-left: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.moon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.moon-content img {
    width: 122px;
    height: 122px;
    object-fit: contain;
    display: block;
    margin-top: 10px;
}

.moon-content strong {
    display: block;
    color: var(--text);
    font-size: 19px;
}

.moon-content span {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 28px;
}

.moon-times {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.moon-times small {
    color: #b5c0cd;
    font-size: 12px;
}

/* =========================================================
   05. NIGHTLY FORECAST CARDS
   ========================================================= */

.night-card {
    min-height: 220px;
    padding: 16px;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: var(--panel-soft);
    text-align: center;
    cursor: pointer;
}

.night-card:hover {
    border-color: rgba(217, 169, 91, 0.55);
    background: var(--panel-hover);
    transform: translateY(-2px);
}

.night-card span {
    min-height: 12px;
    margin-bottom: 2px;
    color: #b5c0cd;
    font-size: 11px;
    font-weight: 700;
}

.night-card img {
    width: 124px;
    height: 124px;
    margin: 2px 0 6px;
    object-fit: contain;
    display: block;
}

.night-card strong {
    color: var(--gold);
    font-size: 30px;
    margin-bottom: 2px;
    font-weight: 500;
    line-height: 1;
}

.night-card em {
    margin: 0 0 2px;
    color: var(--gold);
    font-style: normal;
    font-size: 11px;
    line-height: 1.2;
}

.night-card small {
    display: none;
}

.night-click-hint {
    margin: 3px 0 6px;
    color: #8f9baa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.night-block-wrap {
    width: 100%;
    position: relative;
    margin-top: 4px;
}

.night-block-bar {
    width: 100%;
    margin-top: 2px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.night-block {
    height: 12px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   06. NIGHT FORECAST MODAL
   Uses custom light modal design, not the global dark app modal.
   ========================================================= */

.night-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.night-modal.is-open {
    display: block;
}

.night-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.night-modal-card {
    position: relative;
    z-index: 2;
    width: min(620px, calc(100% - 40px));
    margin: 6vh auto 0;
    padding: 30px;
    border: 1px solid rgba(217, 169, 91, 0.32);
    border-radius: 14px;
    background: #f3efe6;
    color: #111827;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.night-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 34px;
    cursor: pointer;
}

.night-modal-header h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.night-modal-header p,
.night-modal-scorebox small {
    color: #64748b;
    font-size: 13px;
}

.night-modal-hero {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 20px 0;
}

.night-modal-hero img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.night-modal-scorebox strong {
    display: block;
    color: #8a5c18;
    font-size: 72px;
    line-height: 0.95;
}

.night-modal-scorebox span {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    font-weight: 900;
}

.night-modal-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.night-modal-quick-grid div {
    padding: 13px 14px;
    border-radius: 10px;
    background: rgba(17, 24, 39, 0.06);
}

.night-modal-quick-grid span {
    display: block;
    margin-bottom: 5px;
    color: #5f6975;
    font-size: 12px;
    font-weight: 800;
}

.night-modal-quick-grid strong {
    display: block;
    color: #111827;
    font-size: 17px;
}

.night-modal-block-preview {
    display: grid;
    gap: 0;
    margin: 10px 0 20px;
    border-top: 1px solid rgba(17, 24, 39, 0.18);
    border-bottom: 1px solid rgba(17, 24, 39, 0.18);
}

.night-modal-block-row {
    display: grid;
    grid-template-columns: 140px 70px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(17, 24, 39, 0.10);
}

.night-modal-block-row:first-child {
    border-top: 0;
}

.night-modal-block-time,
.night-modal-block-label {
    color: #111827;
    font-size: 15px;
}

.night-modal-block-score {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 14px;
}

.night-modal-block-score strong {
    color: #111827;
    font-size: 14px;
}

.night-modal-block-best {
    color: #8a5c18;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.night-modal-actions {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
}

.night-modal-actions .outline-button {
    background: rgba(17, 24, 39, 0.08);
    color: #111827;
    border-color: rgba(17, 24, 39, 0.18);
}

.night-modal-actions .outline-button:hover {
    background: rgba(217, 169, 91, 0.18);
    color: #8a5c18;
    border-color: rgba(217, 169, 91, 0.45);
}

.night-modal-actions button {
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

/* =========================================================
   07. VISIBLE TONIGHT / HIGHLIGHTS
   ========================================================= */

.visible-highlights-grid {
    margin-top: var(--section-gap);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 18px;
}

.visible-panel,
.highlights-panel {
    padding: 30px 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
}

.visible-objects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
    justify-items: center;
    padding-top: 10px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.visible-object {
    text-align: center;
}

.visible-object {
    width: 100%;
    max-width: 180px;
    text-align: center;
}

.visible-object strong {
    display: block;
    margin-top: 8px;
    margin-bottom: -2px;
    font-size: 22px;
    line-height: 1;
    min-height: 22px;
    white-space: nowrap;
}

.visible-object div,
.visible-object span,
.visible-object small {
    margin-top: 0;
    font-size: 18px;
    line-height: 1;
}

.visible-object span,
.visible-object small {
    display: block;
    margin-top: 0;
    padding-top: 0;
    font-size: 18px;
    line-height: 1;
}

.object-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0a1622;
    display: flex;
    align-items: center;
    justify-content: center;
}

.object-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.25s ease;
}

.visible-object:hover .object-img img {
    transform: scale(1.05);
    opacity: 1;
}

/* =========================================================
   08. TOOLS / GEAR / SIGNUP
   ========================================================= */

.tools-gear-grid {
    margin-top: var(--section-gap);
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) 360px;
    gap: 18px;
}

.tools-panel {
    padding: 34px 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
}

.tool-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.signup-strip {
    margin-top: var(--section-gap);
    padding: 38px 44px;
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 34px;
    align-items: center;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: linear-gradient(90deg, rgba(8, 24, 42, 0.92), rgba(10, 38, 70, 0.84)), var(--panel);
}

.signup-form {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 0;
}

/* =========================================================
   09. HIGHLIGHTS AND CALENDAR
   ========================================================= */

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 22px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 14px 16px;

    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;

    transition: 0.2s ease;
}

.highlight-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.highlight-content {
    min-width: 0;
}

.highlight-content strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #fff;
}

.highlight-content span {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: rgba(210, 225, 240, 0.75);
}

.calendar-date {
    width: 46px;
    height: 52px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar-month {
    width: 100%;
    padding: 4px 0 3px;
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(104, 211, 145, 0.18);
    color: #9ae6b4;
}

.calendar-day {
    flex: 1;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
}

.highlights-panel .panel-action-row {
    margin-top: 18px;
}

/* =========================================================
   10. DASHBOARD RESPONSIVE RULES
   ========================================================= */

@media (max-width: 1100px) {
    .hero,
    .forecast-moon-panel,
    .visible-highlights-grid,
    .tools-gear-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 36px;
        padding-left: 44px;
        padding-right: 44px;
    }

    .hero h1 {
        font-size: 60px;
    }

    .moon-side {
        padding-left: 0;
        padding-top: 26px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.10);
    }
}

@media (max-width: 950px) {
    .hero {
        display: block;
        min-height: auto;
        margin: 0 -20px var(--section-gap);
        padding: 28px 20px 24px;
    }

    .hero-copy {
        padding: 0;
    }

    .hero h1 {
        font-size: 42px;
        line-height: 0.95;
        margin-bottom: 18px;
    }

    .hero-copy p {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
    }

    .location-box {
        width: 100%;
        max-width: 420px;
        height: 52px;
    }

    .score-card {
        min-height: auto;
        margin-top: 22px;
        padding: 22px 20px 18px;
    }

    .visible-objects,
    .tool-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .signup-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .night-modal-card {
        width: min(100% - 28px, 620px);
        padding: 24px;
        margin-top: 5vh;

        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .night-modal-hero {
        align-items: flex-start;
    }

    .night-modal-hero img {
        width: 112px;
        height: 112px;
    }

    .night-modal-quick-grid,
    .night-modal-actions {
        grid-template-columns: 1fr;
    }

    .night-modal-block-row {
        grid-template-columns: 1fr 70px 1fr;
    }

    .night-modal-block-best {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .hero {
        margin-left: -14px;
        margin-right: -14px;
        padding: 26px 14px 22px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .location-box {
        height: 50px;
    }

    .score-card h3 {
        font-size: 22px;
    }

    .score-ring {
        width: 145px;
        height: 145px;
        margin: 12px auto 8px;
    }

    .score-ring-center {
        inset: 52px;
    }

    .score-ring strong {
        font-size: 38px;
    }

    .score-label {
        margin-bottom: 18px;
        font-size: 17px;
    }

    .score-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 16px;
        padding-top: 16px;
    }

    .score-updated {
        margin-top: 16px;
        padding-top: 12px;
    }

    .score-tooltip {
        display: none;
    }

    .forecast-moon-panel,
    .visible-panel,
    .highlights-panel,
    .tools-panel,
    .signup-strip {
        padding: 20px;
    }

    .forecast-moon-panel {
        display: block;
        gap: 22px;
    }

    .nightly-carousel {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
        gap: 8px;
    }

    .nightly-row {
        grid-auto-columns: 100%;
        gap: 12px;
    }

    .night-card {
        min-height: 250px;
    }

    .moon-side {
        margin-top: 22px;
        padding-top: 22px;
    }

    .visible-objects,
    .tool-cards {
        grid-template-columns: 1fr;
    }

    .visible-objects {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 14px;
    }

    .object-img {
        width: 110px;
        height: 110px;
        margin-bottom: 10px;
    }

    .visible-object strong {
        font-size: 15px;
    }

    .signup-strip {
        grid-template-columns: 1fr;
    }

    .signup-form {
        grid-template-columns: 1fr;
    }

    .signup-form input,
    .signup-form button {
        border-radius: 8px;
    }

    .signup-form button {
        margin-top: 10px;
    }
}



/* =========================================================
   11. TONIGHT OVERVIEW INFO MODAL
   ========================================================= */

.score-info {
    cursor: pointer;
}

.score-info-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.score-info-modal.is-open {
    display: block;
}

.score-info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.score-info-modal-card {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 40px));
    max-height: 88vh;
    overflow-y: auto;
    margin: 7vh auto 0;
    padding: 32px;
    border: 1px solid rgba(217, 169, 91, 0.35);
    border-radius: 16px;
    background: #f3efe6;
    color: #111827;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}

.score-info-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 34px;
    cursor: pointer;
}

.score-info-modal-card h2 {
    margin: 4px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.1;
}

.score-info-modal-lede {
    margin: 0 0 22px;
    color: #465264;
    line-height: 1.6;
}

.score-info-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.score-info-modal-grid div {
    padding: 16px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.06);
}

.score-info-modal-grid strong {
    display: block;
    margin-bottom: 7px;
    color: #8a5c18;
    font-size: 15px;
}

.score-info-modal-grid p {
    margin: 0;
    color: #243142;
    font-size: 13px;
    line-height: 1.5;
}

.score-info-modal-actions {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 12px;
    margin-top: 22px;
}

.score-info-modal-actions button {
    border: 0;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

/* Keep upcoming-highlight date boxes from compressing */
.highlight-date.calendar-date,
.calendar-date {
    flex: 0 0 46px;
    min-width: 46px;
    width: 46px;
}

.highlight-content {
    flex: 1 1 auto;
    min-width: 0;
}

/* =========================================================
   12. FOOTER REDESIGN SUPPORT
   Move to ephemeris.css if footer should be sitewide.
   ========================================================= */

.site-footer {
    margin-top: var(--section-gap);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(5, 14, 24, 0.96), rgba(3, 8, 14, 1));
}

.footer-inner-redesigned {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(130px, 0.75fr)) minmax(210px, 1fr);
    gap: 34px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 34px;
}

.footer-brand-redesigned .footer-logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.footer-brand-redesigned .brand-symbol {
    max-width: 220px;
    height: auto;
    display: block;
}

.footer-brand-redesigned p,
.footer-connect-copy {
    max-width: 280px;
    color: #aab7c6;
    font-size: 13px;
    line-height: 1.6;
}

.footer-col h4,
.footer-connect h4 {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    margin: 9px 0;
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
}

.footer-col a:hover,
.footer-bottom a:hover {
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.social-links a:hover {
    border-color: rgba(217, 169, 91, 0.65);
    background: rgba(217, 169, 91, 0.15);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #7f8c9b;
    font-size: 12px;
}

.footer-bottom a {
    margin-left: 16px;
    color: #9daabd;
    text-decoration: none;
}

@media (max-width: 1000px) {
    .footer-inner-redesigned {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .score-info-modal-card {
        width: min(100% - 28px, 680px);
        padding: 24px;
        margin-top: 5vh;
    }

    .score-info-modal-grid,
    .score-info-modal-actions,
    .footer-inner-redesigned,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: grid;
    }

    .footer-bottom a {
        display: inline-block;
        margin: 8px 16px 0 0;
    }
}


/*   end  */
