/* ------------------------------------------------------------------ *
 * SEO / content surfaces shared across calculator pages.
 * Breadcrumbs, direct-answer blocks, FAQ sections, related-calculator
 * cross-links, and the grouped footer. Matches the premium dark theme
 * (see replit.md colour palette) so individual pages don't reinvent it.
 * ------------------------------------------------------------------ */

/* ---- Breadcrumbs --------------------------------------------------- */
.breadcrumb-nav {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.breadcrumb-list a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #55b685;
}

.breadcrumb-list .breadcrumb-sep {
    color: #555;
    font-size: 0.7rem;
}

.breadcrumb-list .breadcrumb-current {
    color: #f0f0f0;
    font-weight: 500;
}

/* ---- Calculator intro (H1 + lede) -------------------------------- */
.calculator-intro {
    margin-bottom: 1.5rem;
}

.calculator-intro h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    color: #f0f0f0;
    margin: 0 0 0.6rem;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
}

.calculator-intro .intro-lede {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 70ch;
}

/* ---- Direct-answer block (featured-snippet target) --------------- */
.seo-direct-answer {
    background: rgba(85, 182, 133, 0.06);
    border: 1px solid rgba(85, 182, 133, 0.25);
    border-left: 4px solid #55b685;
    border-radius: 10px;
    padding: 1.1rem 1.35rem;
    margin: 0 0 1.5rem;
}

.seo-direct-answer h2 {
    font-size: 1.05rem;
    color: #f0f0f0;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-direct-answer h2 i {
    color: #55b685;
    font-size: 0.95rem;
}

.seo-direct-answer p {
    color: #cfcfcf;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* ---- Content section (FAQ, guideline notes) ---------------------- */
.seo-content-section {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 1.5rem 0;
}

.seo-content-section > h2,
.seo-faq-summary > h2 {
    font-size: 1.3rem;
    color: #f0f0f0;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.seo-content-section > h2 i,
.seo-faq-summary > h2 i {
    color: #55b685;
}

/* Collapsible FAQ section */
details.seo-content-section {
    cursor: default;
}

.seo-faq-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

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

.seo-faq-summary > h2 {
    margin-bottom: 0;
}

details[open] .seo-faq-summary > h2 {
    margin-bottom: 1rem;
}

.seo-faq-chevron {
    margin-left: auto;
    font-size: 0.85rem;
    color: #888 !important;
    transition: transform 0.2s ease;
}

details[open] .seo-faq-chevron {
    transform: rotate(180deg);
}

.seo-faq-item {
    border-top: 1px solid #2d2d2d;
    padding: 1rem 0;
}

.seo-faq-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.seo-faq-item h3 {
    font-size: 1.02rem;
    color: #f0f0f0;
    margin: 0 0 0.5rem;
}

.seo-faq-item p {
    color: #b0b0b0;
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

.seo-reviewed-note {
    display: block;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #888;
}

/* ---- Related calculators ---------------------------------------- */
.related-calculators {
    margin: 1.5rem 0;
}

.related-calculators h2 {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.related-calculators h2 i {
    color: #55b685;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #f0f0f0;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
    border-color: #55b685;
    transform: translateY(-2px);
}

.related-card i {
    color: #55b685;
}

.related-card span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ---- Grouped footer --------------------------------------------- */
.footer-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: left;
    max-width: 960px;
    margin: 0 auto 1.25rem;
}

.footer-group h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f0f0f0;
    margin: 0 0 0.65rem;
}

.footer-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-group li {
    margin-bottom: 0.4rem;
}

.footer-group a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-group a:hover {
    color: #55b685;
}

@media (max-width: 600px) {
    .footer-groups {
        text-align: center;
    }
    .calculator-intro h1 {
        font-size: 1.5rem;
    }
}
