/* ===================================
   Summit Home Services - Article Styles
   =================================== */

:root {
    --guide-bg: #f7f7f7;
    --guide-card: #ffffff;
    --guide-border: #e6e9ef;
    --guide-text: #1f2937;
    --guide-muted: #6b7280;
    --guide-accent: #8b0000;
    --guide-gold: #f7c948;
    --guide-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --guide-radius: 20px;
    --guide-max: 760px;
    --guide-rail: 260px;
}

.guide-page {
    background: var(--guide-bg);
    padding-top: 6rem;
}

.guide-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.guide-hero {
    background: var(--guide-bg);
    padding: 3.5rem 0 2.5rem;
}

.guide-breadcrumbs {
    font-size: 0.9rem;
    color: var(--guide-muted);
    margin-bottom: 1.25rem;
}

.guide-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.guide-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.guide-breadcrumbs a:hover {
    color: var(--guide-accent);
}

.guide-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--guide-accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.guide-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--guide-text);
    margin-bottom: 0.75rem;
}

.guide-subtitle {
    font-size: 1.05rem;
    color: var(--guide-muted);
    max-width: 40rem;
    margin-bottom: 1.25rem;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--guide-muted);
    margin-bottom: 2rem;
}

.guide-meta--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.guide-hero-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: stretch;
}

.guide-hero-card,
.guide-takeaways {
    background: var(--guide-card);
    border: 1px solid var(--guide-border);
    border-radius: var(--guide-radius);
    padding: 1.5rem;
    box-shadow: var(--guide-shadow);
    height: 100%;
}

.guide-hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.guide-hero-side .guide-meta--stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(calc(-100% - 0.75rem));
}


.guide-hero-card p + p {
    margin-top: 0.75rem;
}

.guide-takeaways h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--guide-text);
    margin-bottom: 0.75rem;
}

.guide-takeaways ul {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--guide-text);
    display: grid;
    gap: 0.5rem;
}

.guide-body {
    padding: 2.5rem 0 3.5rem;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.guide-toc {
    display: block;
}

.guide-cta-rail {
    display: none;
}

.guide-content {
    background: var(--guide-card);
    border-radius: var(--guide-radius);
    padding: 2.5rem;
    box-shadow: var(--guide-shadow);
    color: var(--guide-text);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.guide-content h2,
.guide-content h3 {
    scroll-margin-top: 120px;
}

.guide-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--guide-text);
}

.guide-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.8rem 0 0;
    color: var(--guide-text);
}

.guide-content p,
.guide-content li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--guide-text);
}

.guide-content p + p,
.guide-content ul + p,
.guide-content p + ul {
    margin-top: 1rem;
}

.guide-content ul {
    list-style: disc;
    padding-left: 1.4rem;
    display: grid;
    gap: 0.5rem;
}

.guide-content a {
    color: var(--guide-accent);
    text-decoration: none;
    font-weight: 600;
}

.guide-content a:hover {
    text-decoration: underline;
}

.guide-inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-radius: calc(var(--guide-radius) - 4px);
    background: #fff7e6;
    border: 1px solid rgba(247, 201, 72, 0.4);
    margin-bottom: 2rem;
}

.guide-inline-cta--bottom {
    margin-top: 3rem;
}

.guide-inline-cta-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.guide-inline-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.guide-inline-cta-phone {
    font-weight: 700;
    color: var(--guide-text);
}

.guide-callout {
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--guide-border);
    background: #f9fafb;
    margin-top: 1.5rem;
}

.guide-callout-label {
    display: inline-flex;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.guide-callout--pro {
    border-left: 4px solid #16a34a;
}

.guide-callout--mistake {
    border-left: 4px solid #dc2626;
}

.guide-callout--rule {
    border-left: 4px solid #0ea5e9;
}

.guide-callout--local {
    border-left: 4px solid #f59e0b;
}

.guide-faq {
    margin-top: 2.5rem;
}

.guide-faq-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.guide-faq details {
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    background: #f8fafc;
}

.guide-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--guide-text);
    list-style: none;
}

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

.guide-faq summary::after {
    content: "+";
    float: right;
    font-weight: 700;
}

.guide-faq details[open] summary::after {
    content: "–";
}

.guide-related {
    margin-top: 3rem;
}

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

.guide-related-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--guide-border);
    border-radius: 16px;
    padding: 1.25rem;
    background: var(--guide-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--guide-shadow);
}

.guide-related-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.guide-related-card span {
    font-size: 1.5rem;
    color: var(--guide-accent);
}

.guide-cta-card {
    display: grid;
    gap: 1rem;
}

.guide-cta-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--guide-text);
}

.guide-cta-card p {
    color: var(--guide-muted);
}

.guide-cta-card .guide-inline-cta-actions {
    flex-direction: column;
    align-items: stretch;
}

.guide-cta-card .guide-inline-cta-actions a {
    text-align: center;
}

.guide-cta-card .guide-inline-cta-phone {
    text-align: center;
}

.guide-toc-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--guide-text);
}

.guide-toc-list {
    display: grid;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.guide-toc-list a {
    text-decoration: none;
    color: var(--guide-text);
    font-weight: 600;
}

.guide-toc-list a.is-active {
    color: var(--guide-accent);
}

.guide-toc-list ul {
    list-style: none;
    padding-left: 1rem;
    border-left: 2px solid var(--guide-border);
    margin-top: 0.35rem;
    display: grid;
    gap: 0.35rem;
}

.guide-toc-list ul a {
    font-weight: 500;
    color: var(--guide-muted);
}

.guide-content :focus-visible,
.guide-related-card:focus-visible,
.guide-toc-list a:focus-visible,
.guide-inline-cta-actions a:focus-visible,
.guide-faq summary:focus-visible {
    outline: 3px solid var(--guide-gold);
    outline-offset: 3px;
    border-radius: 8px;
}

@media (max-width: 960px) {
    .guide-hero-grid {
        grid-template-columns: 1fr;
    }

    .guide-content {
        max-width: 100%;
    }

    .guide-hero-side {
        position: static;
    }

    .guide-hero-side .guide-meta--stack {
        position: static;
        transform: none;
    }
}

@media (min-width: 980px) {
    .guide-layout {
        grid-template-columns: 240px minmax(0, 1fr) 240px;
        gap: 1.75rem;
    }

    .guide-toc {
        position: sticky;
        top: 110px;
        height: fit-content;
        padding: 1.5rem;
        border: 1px solid var(--guide-border);
        border-radius: var(--guide-radius);
        background: var(--guide-card);
        box-shadow: var(--guide-shadow);
    }

    .guide-toc-desktop {
        display: block;
    }

    .guide-toc-mobile {
        display: none;
    }

    .guide-cta-rail {
        display: block;
        position: sticky;
        top: 110px;
        height: fit-content;
        padding: 1.5rem;
        border: 1px solid var(--guide-border);
        border-radius: var(--guide-radius);
        background: var(--guide-card);
        box-shadow: var(--guide-shadow);
    }
}

@media (min-width: 860px) and (max-width: 979px) {
    .guide-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 1.5rem;
    }

    .guide-toc {
        position: sticky;
        top: 110px;
        height: fit-content;
        padding: 1.5rem;
        border: 1px solid var(--guide-border);
        border-radius: var(--guide-radius);
        background: var(--guide-card);
        box-shadow: var(--guide-shadow);
    }

    .guide-toc-desktop {
        display: block;
    }

    .guide-toc-mobile {
        display: none;
    }

    .guide-cta-rail {
        display: none;
    }
}

@media (max-width: 859px) {
    .guide-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .guide-toc {
        position: static;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        margin-bottom: 1.5rem;
    }

    .guide-toc-desktop {
        display: none;
    }

    .guide-toc-mobile {
        border: 1px solid var(--guide-border);
        border-radius: 16px;
        padding: 0.75rem 1rem;
        background: var(--guide-card);
    }

    .guide-toc-mobile summary {
        cursor: pointer;
        font-weight: 700;
    }

    .guide-cta-rail {
        display: none;
        position: static;
    }
}

@media (max-width: 640px) {
    .guide-page {
        padding-top: 5.5rem;
    }

    .guide-hero {
        padding: 2.5rem 0 2rem;
    }

    .guide-content {
        padding: 2rem 1.5rem;
    }

    .guide-content h2 {
        font-size: 1.4rem;
    }

    .guide-content p,
    .guide-content li {
        font-size: 1rem;
    }

    .guide-inline-cta--bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-inline-cta--bottom .guide-inline-cta-actions {
        width: 100%;
        align-items: flex-start;
    }
}
