/* ============================================================
   NORTH AND NEAR STARS PAGE
   Full stylesheet — right column hosts <InteractiveCompass />
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────────── */
.nns-page {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* ── Save banner ─────────────────────────────────────────────── */
.nns-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 40px;
    font-size: .875rem;
    border-left: 4px solid;
}

.nns-banner-success {
    background: var(--ct-success-bg);
    border-left-color: #66BB6A;
    color: var(--ct-success);
}

.nns-banner-error {
    background: var(--ct-error-bg);
    border-left-color: var(--ct-error);
    color: var(--ct-error);
}

.nns-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: inherit;
    opacity: .7;
    padding: 0 4px;
    line-height: 1;
}

    .nns-banner-close:hover {
        opacity: 1;
    }

/* ── Grey header zone (full width, content constrained) ─────── */
.nns-header-zone {
    background: rgba(29, 27, 32, 0.05);
    padding: 35px 40px 20px;
    margin-bottom: 24px;
}

.nns-header-zone-inner {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Back link ───────────────────────────────────────────────── */
.nns-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ct-text-primary);
    font-weight: 500;
    margin-bottom: 12px;
    text-decoration: none;
}

    .nns-back-link:hover {
        color: var(--ct-brand-purple);
        text-decoration: none;
    }

    .nns-back-link span {
        font-size: 1.2rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        height: 1em; /* match the text's cap height roughly */
        position: relative;
        top: -1px;
    }

/* ── Page header ─────────────────────────────────────────────── */
.nns-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.nns-header-left {
    flex: 1;
    min-width: 0;
}

.nns-header-icon-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.nns-stars-column {
    flex-shrink: 0;
    padding-top: 4px;
}

.nns-stars-icon {
    display: block;
}

.nns-header-text {
    flex: 1;
    min-width: 0;
}

.nns-description {
    color: var(--ct-text-secondary);
    margin: 0 0 8px;
}

.nns-watch-video {
    color: var(--ct-brand-purple);
    cursor: pointer;
    font-weight: 500;
}

    .nns-watch-video:hover {
        text-decoration: underline;
    }

.nns-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: flex-start;
    padding-top: 8px;
}

/* ── Content wrapper ─────────────────────────────────────────── */
.nns-content-wrapper {
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Main content grid ───────────────────────────────────────── */
.nns-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 24px;
    align-items: stretch; /* lets right column match left-column height */
}

/* ── Left column: flows naturally ────────────────────────────── */
.nns-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

/* ── Star cards ──────────────────────────────────────────────── */
.nns-card {
    background: var(--ct-surface);
    border: 1px solid var(--ct-border);
    border-radius: var(--ct-radius);
    padding: 20px 24px;
    box-shadow: var(--ct-shadow-card);
    flex: 1;
    display: flex;
    flex-direction: column;
}

    /* Force Kendo textarea to fill the card */
    .nns-card .k-textarea {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

        .nns-card .k-textarea textarea,
        .nns-card .k-textarea.k-input-inner {
            flex: 1 1 auto !important;
            height: auto !important;
            min-height: 80px !important;
            resize: none !important;
        }

        .nns-card .k-textarea [class*="flex-none"] {
            flex: 1 1 auto !important;
        }

.nns-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.nns-card-title {
    color: var(--ct-brand-purple-nn);
    margin: 0;
}

.nns-info-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ct-brand-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-style: normal;
    flex-shrink: 0;
}

.nns-card-instruction {
    color: var(--ct-text-secondary);
    margin: 0 0 12px;
}

.nns-field-error {
    color: var(--ct-error);
    margin-top: 4px;
}

/* ── Tooltip content (Telerik info-icon tooltip) ─────────────── */
.nns-tooltip-content {
    max-width: 280px;
    font-size: .82rem;
    line-height: 1.5;
}

    .nns-tooltip-content p {
        margin: 0 0 10px;
    }

        .nns-tooltip-content p:last-child {
            margin-bottom: 0;
        }

/* ============================================================
   RIGHT COLUMN — Interactive compass
   ============================================================ */

/* ── Sticky right column (no card chrome — the compass panel
       provides its own dark background and radius) ──────────── */
.nns-right {
    position: sticky;
    top: calc(var(--ct-app-header-h) + 12px);
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow: visible; /* tooltips outside the SVG must remain visible */
}

    /* ── Compass panel sizing inside the column ──────────────────── */
    .nns-right > .compass-container {
        width: 100%;
        height: auto;
        aspect-ratio: 600 / 750; /* match the SVG viewBox */
        /* Cap so the sticky column never grows taller than the viewport */
        max-height: calc(100dvh - var(--ct-app-header-h) - 24px);
        border-radius: var(--ct-radius);
        box-shadow: var(--ct-shadow-card);
    }

/* ============================================================
   Height-based breakpoints (mirror the prior behaviour)
   ============================================================ */

@media (max-height: 899px) {
    .nns-content {
        grid-template-columns: 1fr 250px;
    }

    .nns-right > .compass-container {
        max-height: calc(100dvh - var(--ct-app-header-h) - 24px);
    }
}

@media (min-height: 900px) {
    .nns-content {
        grid-template-columns: 1fr 380px;
        min-height: 0;
        align-items: stretch;
    }
}

.nns-right .compass-section {
    cursor: default;
}
