/* ============================================
   The Body Owl — Terrain / Portal pages
   Dark header+footer | Gold middle | shared buttons
   ============================================ */

/* Font stack: Glacial-like clean geometric + system fallbacks
   (ALTA/Glacial Indifference can be added via self-hosted files later) */
.portal-page {
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

/* ----- Dark header ----- */
.portal-header {
    background: #0c0b0a;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.08);
}

.portal-header .logo-link {
    color: #f5f2eb;
}

.portal-header .logo-text {
    color: #f5f2eb;
}

.portal-header .logo-link img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(212, 175, 55, 0.55),
        0 0 32px rgba(240, 208, 96, 0.25);
}

.portal-nav-link {
    color: #c8c2b4 !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.85rem !important;
    border-radius: 999px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s, text-shadow 0.2s;
}

.portal-nav-link:hover {
    color: #fff !important;
    background: rgba(212, 175, 55, 0.15);
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.45);
}

/* ----- Hero in gold/cream field ----- */
.portal-hero {
    padding: 3.25rem 0 2rem;
    text-align: center;
}

.portal-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 750;
    color: var(--text-dark, #12100e);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.85);
}

.portal-subtitle {
    color: var(--gold, #d4af37);
    font-weight: 650;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
}

.portal-lead {
    max-width: 560px;
    margin: 0 auto;
    color: var(--text-muted, #5a544c);
    font-size: 1.05rem;
}

/* ----- Insight cards ----- */
.insight-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border, rgba(212, 175, 55, 0.22));
    border-radius: var(--radius, 16px);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--shadow, 0 10px 36px rgba(0, 0, 0, 0.07));
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.insight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 32px rgba(212, 175, 55, 0.15), var(--shadow, 0 10px 36px rgba(0, 0, 0, 0.07));
}

.insight-card h3 {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--text-dark, #12100e);
    margin-bottom: 0.35rem;
}

.insight-card .sub {
    color: var(--gold, #d4af37);
    font-size: 0.88rem;
    font-weight: 550;
    margin-bottom: 0.65rem;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
}

.insight-card p {
    font-size: 0.92rem;
    color: var(--text-muted, #5a544c);
    margin: 0;
    line-height: 1.55;
}

/* ----- Dark footer ----- */
.portal-footer {
    background: #0c0b0a;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    padding: 1.75rem 0;
    text-align: center;
    color: #9a9488;
    font-size: 0.875rem;
}

.portal-footer .logo-link {
    color: #f5f2eb;
    margin-bottom: 0.35rem;
}

.portal-footer .logo-text {
    color: #f5f2eb;
    font-size: 1rem;
}

.portal-footer .logo-link img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.85),
        0 0 14px rgba(212, 175, 55, 0.45);
}

/* Uniform buttons already come from styles.min.css (.btn-glow / .btn-outline-glow) */

@media (max-width: 767.98px) {
    .portal-hero {
        padding: 2.5rem 0 1.5rem;
    }
    .portal-nav-link {
        padding: 0.4rem 0.65rem !important;
        font-size: 0.85rem;
    }
}
