/* ============================================
   STYROBUD INSTALLATION MANUAL — manual.css
   Industrial Luxury Design System
   ============================================ */

/* Page wrapper */
.manual-page {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero strip */
.manual-hero {
    background: #111827;
    padding: 3rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.manual-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 40px,
        rgba(200, 168, 75, 0.04) 40px,
        rgba(200, 168, 75, 0.04) 41px
    );
}

.manual-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.manual-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.manual-breadcrumb a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.15s;
}

.manual-breadcrumb a:hover {
    color: #C8A84B;
}

.manual-breadcrumb-sep {
    color: #4B5563;
    font-size: 0.7rem;
}

.manual-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C8A84B;
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.3);
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.manual-hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.manual-hero-title span {
    color: #C8A84B;
}

.manual-hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #9CA3AF;
    margin-bottom: 1.75rem;
    max-width: 560px;
}

.manual-hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.manual-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #C8A84B;
    color: #0D1117;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.manual-btn-primary:hover {
    background: #d4b55e;
    transform: translateY(-1px);
}

.manual-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: #D1D5DB;
    border: 1px solid #374151;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.manual-btn-secondary:hover {
    border-color: #C8A84B;
    color: #C8A84B;
}

/* Main content area */
.manual-body {
    background: #F7F5F0;
    padding: 3rem 0 5rem;
}

.manual-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Header (re-used inside body if needed) */
.manual-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    flex-wrap: wrap;
}

.manual-header-accent {
    width: 4px;
    min-height: 52px;
    background: #C8A84B;
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}

.manual-header-text {
    flex: 1;
    min-width: 0;
}

.manual-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111827;
    margin-bottom: 0.35rem;
}

.manual-section-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #6B7280;
    margin: 0;
}

.manual-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: #111827;
    color: #ffffff;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.manual-download-btn:hover {
    background: #C8A84B;
    color: #0D1117;
}

/* Two-column layout */
.manual-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* TOC Sidebar */
.manual-toc {
    position: sticky;
    top: 100px;
}

.manual-toc-inner {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 1.25rem;
}

.manual-toc-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 0.875rem;
}

.manual-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manual-toc-list li {
    margin-bottom: 0.125rem;
}

.manual-toc-link {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: #6B7280;
    text-decoration: none;
    padding: 0.35rem 0.625rem;
    border-radius: 5px;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.manual-toc-link:hover {
    background: #F7F5F0;
    color: #111827;
    padding-left: 0.875rem;
}

/* Manual Content */
.manual-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Chapter */
.manual-chapter {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 0 10px 10px 10px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.manual-chapter[open] {
    border-color: #C8A84B;
}

.manual-chapter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background 0.15s ease;
}

.manual-chapter-header::-webkit-details-marker {
    display: none;
}

.manual-chapter-header:hover {
    background: #FAFAFA;
}

.manual-chapter-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: #C8A84B;
    min-width: 28px;
    letter-spacing: 0.04em;
}

.manual-chapter-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111827;
    flex: 1;
}

.manual-chapter-chevron {
    color: #9CA3AF;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.manual-chapter[open] .manual-chapter-chevron {
    transform: rotate(180deg);
}

.manual-chapter-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
    border-top: 1px solid #F3F4F6;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: #374151;
    line-height: 1.7;
}

.manual-chapter-body p {
    margin-top: 0.875rem;
    margin-bottom: 0;
}

.manual-chapter-body h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #111827;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}

.manual-chapter-body ul,
.manual-chapter-body ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.manual-chapter-body li {
    margin-bottom: 0.3rem;
}

.manual-chapter-note {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #F7F5F0;
    border-left: 3px solid #C8A84B;
    border-radius: 0 6px 6px 0;
    font-size: 0.82rem;
    color: #6B7280;
}

/* ============================================
   Mobile
   ============================================ */
@media (max-width: 768px) {
    .manual-page {
        margin-top: 70px;
    }

    .manual-hero {
        padding: 2rem 0 1.75rem;
    }

    .manual-hero-inner {
        padding: 0 1.25rem;
    }

    .manual-body {
        padding: 2rem 0 3rem;
    }

    .manual-container {
        padding: 0 1.25rem;
    }

    .manual-layout {
        grid-template-columns: 1fr;
    }

    .manual-toc {
        position: static;
    }

    .manual-section-title {
        font-size: 1.35rem;
    }

    .manual-chapter-header {
        gap: 0.75rem;
    }

    .manual-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
