/* ============================================================
   calc-page.css  —  Individual calculator page overrides
   Works together with cat.css for sidebar/header/footer styles
   ============================================================ */
@import url('calc-info.css');

/* Calculator pages use white header (same as cat.css) */
body.calc-page .app-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.06) !important;
}
body.calc-page .app-header .brand-text h1,
body.calc-page .app-header .brand-text h1 span {
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    background: none !important;
}
body.calc-page .app-header .nav-link {
    color: #374151 !important;
}
body.calc-page .app-header .nav-link:hover,
body.calc-page .app-header .nav-link.active {
    color: #2563eb !important;
}
body.calc-page .app-header .logo-icon {
    background: #2563eb !important;
    color: #fff !important;
}

/* Main layout shell — reuse cat-shell/cat-body/cat-sidebar from cat.css */
body.calc-page {
    background: #f8fafc;
}

/* The calculator content area (right of sidebar) */
.calc-content-wrap {
    flex: 1;
    min-width: 0;
    padding: 0;
}

/* Make calculator-grid fill the content area */
.calc-content-wrap .calculator-grid {
    max-width: 100%;
    margin: 0 0 0 0;
    padding: 0 0 24px 0;
}

/* Cards look clean and modern with 20px border radius and soft shadows */
body.calc-page .card {
    background: var(--gu-surface);
    border: 1px solid var(--gu-border);
    border-radius: var(--gu-r-lg);
    box-shadow: var(--gu-shadow-sm);
    transition: var(--gu-ease);
}
body.calc-page .card:hover {
    box-shadow: var(--gu-shadow-md);
}

/* Rich content section styling */
.calc-content-wrap .rich-content-container {
    padding: 0 0 32px 0;
}
.calc-content-wrap .content-section {
    background: var(--gu-surface);
    border: 1px solid var(--gu-border);
    border-radius: var(--gu-r-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--gu-shadow-sm);
    transition: var(--gu-ease);
}
.calc-content-wrap .content-section:hover {
    box-shadow: var(--gu-shadow-md);
}
.calc-content-wrap .content-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--gu-heading);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gu-border);
    letter-spacing: -0.02em;
}
.calc-content-wrap .content-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gu-heading);
    margin: 20px 0 10px;
}
.calc-content-wrap .content-section p {
    font-size: 15px;
    color: var(--gu-body);
    line-height: 1.75;
    margin-bottom: 12px;
}

/* Section separator hide */
.calc-content-wrap hr.section-separator {
    display: none;
}

/* Intro lead card */
.calc-content-wrap .intro-lead-card {
    background: var(--gu-primary-light);
    border-left: 4px solid var(--gu-primary);
    border-radius: var(--gu-r-sm);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.calc-content-wrap .intro-lead-card p {
    color: #1e40af;
    font-size: 15.5px;
    font-weight: 500;
    margin: 0;
}
html[data-theme="dark"] .calc-content-wrap .intro-lead-card p {
    color: #60a5fa;
}

/* Responsive — collapse sidebar on mobile */
@media (max-width: 768px) {
    body.calc-page .cat-body {
        flex-direction: column;
    }
    body.calc-page .cat-sidebar {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gu-border);
    }
    body.calc-page .cat-sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px;
    }
    body.calc-page .cat-nav-item {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: var(--gu-r-sm);
    }
    body.calc-page .cat-sidebar-widget {
        display: none;
    }
}

