/* sunroof-crisis.css - Custom Styles for Sunroof Article */
:root {
    --ts-gold: #c5a358;
    --ts-gold-light: #e2c98d;
    --ts-dark: #1a1a1a;
    --ts-accent: #e94560;
    --ts-bg-light: #f9f9fb;
    --ts-glass-bg: rgba(255, 255, 255, 0.8);
}

/* --- Layout Fixes --- */
h2,
h3 {
    scroll-margin-top: 120px;
    /* Fix TOC Overlap */
}

/* --- Hero Section --- */
.ts-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
}

.ts-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ts-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
    z-index: -1;
}

.ts-hero__content {
    max-width: 900px;
    padding: 2rem;
    z-index: 1;
}

.ts-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ts-hero__highlight {
    color: var(--ts-gold-light);
}

.ts-hero__subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* --- Article Layout --- */
.ts-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 4rem;
}

.ts-article {
    flex: 1;
    min-width: 0;
}

/* --- Sticky TOC --- */
.ts-toc {
    width: 300px;
    flex-shrink: 0;
}

.ts-toc__inner {
    position: sticky;
    top: 100px;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ts-toc__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--ts-bg-light);
}

.ts-toc__list {
    list-style: none;
    padding: 0;
}

.ts-toc__list li a {
    display: block;
    padding: 0.5rem 0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.ts-toc__list li a:hover,
.ts-toc--active {
    color: var(--ts-gold) !important;
    padding-left: 0.5rem;
}

/* --- Content Styling --- */
.ts-section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.ts-scene--visible {
    opacity: 1;
    transform: translateY(0);
}

.ts-section__header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ts-section__num {
    font-size: 3rem;
    font-weight: 800;
    color: #c5a358;
    line-height: 1;
}

.ts-section__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--ts-dark);
}

.ts-section__body p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

/* --- Components --- */
.ts-figure {
    margin: 3rem 0;
}

.ts-figure figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
    font-style: italic;
}

.ts-checklist {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.ts-checklist li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.ts-checklist__check {
    width: 32px;
    height: 32px;
    background: var(--ts-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.ts-checklist__text strong {
    color: var(--ts-dark);
    display: block;
    margin-bottom: 0.25rem;
}

/* Product Grid */
.ts-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.ts-product-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.ts-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* CTA */
.ts-section--cta {
    background: var(--ts-dark);
    color: white;
    padding: 5rem 3rem;
    border-radius: 2rem;
    text-align: center;
}

.ts-section--cta .ts-section__title {
    color: white;
    margin-bottom: 1rem;
}

.ts-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.ts-cta-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ts-cta-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ts-gold);
}

.ts-cta-card--primary {
    background: var(--ts-gold);
    color: white;
    border: none;
}

.ts-cta-card--primary:hover {
    background: var(--ts-gold-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .ts-toc {
        display: none;
    }

    .ts-layout {
        padding: 2rem 1.5rem;
    }

    .ts-cta-grid {
        grid-template-columns: 1fr;
    }
}

.yt-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.yt-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.fb-wrap {
    display: flex;
    justify-content: center;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ts-faq-item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #eee;
}

.ts-faq-item summary {
    padding: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.ts-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

/* Mobile TOC */
.ts-toc-mobile {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.ts-toc-mobile__btn {
    background: var(--ts-dark);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ts-toc-mobile__menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: white;
    width: 250px;
    border-radius: 1rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ts-toc-mobile__menu.show {
    display: flex;
}

.ts-toc-mobile__menu a {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #444;
    text-decoration: none;
}