/*
 * Shared chrome for every calculator page (template/calculator-*.php):
 * the SEO hero, the supporting-content prose, and the FAQ accordion.
 *
 * Hand-authored and shared across all calculators — do NOT put per-calculator
 * widget styles here (those are the scoped .{slug}-calc files, machine-generated).
 * Loaded on any calculator page by orbrick_enqueue_calculator_assets() in functions.php.
 */

.calc-hero {
    background: #FDF5E9;
    margin-top: 117px; /* clear the theme's fixed header, matching .home-banner */
    padding: 60px 0 50px;
}

@media (max-width: 1199px) {
    .calc-hero {
        margin-top: 96px;
    }
}

@media (max-width: 991px) {
    .calc-hero {
        margin-top: 88px;
    }
}

.calc-hero-desc {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.calc-hero-desc h1 {
    margin-bottom: 20px;
}

.calc-hero-desc .calc-h1-main {
    display: block;
    font-family: 'Solway', Georgia, serif;
    font-size: 52px;
    line-height: 1.1;
    font-weight: 700;
    color: #141413;
}

.calc-hero-desc .calc-h1-sub {
    display: block;
    margin-top: 14px;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 400;
    color: #5B2A86;
}

.calc-hero-desc p {
    font-size: 17px;
    line-height: 1.7;
    color: #555552;
    margin-bottom: 14px;
}

.calc-hero-desc .calc-hero-note {
    font-size: 16px;
    color: #333333;
}

.calc-hero-desc .calc-hero-note strong {
    color: #F08519;
}

.calc-content {
    padding: 70px 0 90px;
}

.calc-content h2 {
    font-family: 'Solway', Georgia, serif;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 700;
    color: #141413;
    margin: 44px 0 18px;
}

.calc-content h2:first-child {
    margin-top: 0;
}

.calc-content h3 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #5B2A86;
    margin: 30px 0 12px;
}

.calc-content p,
.calc-content li {
    font-size: 17px;
    line-height: 1.75;
    color: #555552;
}

.calc-content p {
    margin-bottom: 18px;
}

.calc-content ul,
.calc-content ol {
    margin: 0 0 22px 22px;
}

.calc-content li {
    margin-bottom: 10px;
}

.calc-content a {
    color: #F08519;
    font-weight: 700;
    text-decoration: underline;
}

.calc-content a:hover {
    color: #5B2A86;
}

/* FAQ accordion */
.calc-faq {
    margin-top: 8px;
}

.calc-faq-item {
    border: 1px solid #EBE8E2;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #FCFBF8;
    overflow: hidden;
}

.calc-faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 18px;
    font-weight: 700;
    color: #141413;
    position: relative;
    padding-right: 48px;
}

.calc-faq-item summary::-webkit-details-marker {
    display: none;
}

.calc-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #F08519;
    line-height: 1;
}

.calc-faq-item[open] summary::after {
    content: '\2013';
}

.calc-faq-answer {
    padding: 0 22px 20px;
}

.calc-faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #555552;
    margin: 0;
}

@media (max-width: 767px) {
    .calc-hero-desc .calc-h1-main {
        font-size: 36px;
    }

    .calc-hero-desc .calc-h1-sub {
        font-size: 18px;
    }

    .calc-content h2 {
        font-size: 26px;
    }
}
