.guidelines-main {
    max-width: none;
    padding: 1.5rem;
}

.guidelines-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.guidelines-content {
    min-width: 0; /* Prevent flex overflow */
}

.page-header {
      padding-bottom: 1rem;
    
}

.page-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

/* ==========================================================================
   Blueprint Hero Header with Background Image
   ========================================================================== */

/**
 * Blueprint hero header layout
 * Uses featured image as full-width background with text overlay
 */
.blueprint-page-header-hero {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: black;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: background-size 1s ease;
}

.blueprint-page-header-hero:hover {
    background-size: 105%; 
}

/**
 * Dark overlay for better text readability
 * Creates subtle gradient from bottom to top
 */
.blueprint-hero-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 2rem;
    width: 100%;
    height: 325px;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

/**
 * Blueprint hero title styling
 * White text with shadow for readability over images
 */
.blueprint-page-header-hero .page-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
    line-height: 100%;
}

/**
 * Blueprint hero excerpt styling
 * Maintains readability with white text and shadow
 */
.blueprint-page-header-hero .blueprint-page-excerpt p {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8),
                 0 0 8px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1rem !important;
    font-weight: 600;
}

/* ==========================================================================
   Responsive adjustments for blueprint hero header
   ========================================================================== */

@media (max-width: 768px) {
    .blueprint-page-header-hero {
        min-height: 300px;
        background-size: cover;
        background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 1) 80%
    );
    }
    
    .blueprint-hero-overlay {
        padding: 2rem 1.5rem;
    }
    
    .blueprint-page-header-hero .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blueprint-page-header-hero {
        min-height: 250px;
        background-size: cover;
    }
    
    .blueprint-hero-overlay {
        padding: 1.5rem 1rem;
    }
    
    .blueprint-page-header-hero .page-title {
        font-size: 1.75rem;
    }
}


/* Safety notice panel */
.guidance-notice {
    background-color: var(--sidebar-bg);
    border-left: 4px solid var(--accent-color);;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.guidance-notice p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.guidance-notice a {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 500;
}

.guidance-notice a:hover {
    color: var(--text-color);
}

.page-excerpt {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.page-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.page-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.page-content {
    line-height: 1.7;
    color: var(--text-color);
}

.page-content h2 {
    font-size: 1.75rem;
    color: var(--text-color);
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    scroll-margin-top: 100px;
}

.page-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2rem 0 1rem 0;
    scroll-margin-top: 100px;
}

.page-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 1.5rem 0 0.75rem 0;
    scroll-margin-top: 100px;
}


/* Child pages list */
.child-pages-list {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.child-pages-list h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--text-color);
}

.child-pages-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.child-pages-list li {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
    margin-left:0;
}

.child-pages-list li:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.child-pages-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.child-pages-list a:hover {
    text-decoration: underline;
}

.child-pages-list p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Side panel TOC */
.guidelines-toc {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
}

.toc-container {
    background-color: var(--sidebar-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.toc-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.toc-nav {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

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

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

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    border-radius: 4px;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.toc-list a.active {
    background-color: rgba(0, 136, 204, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

.toc-list .toc-h3 {
    padding-left: 1.5rem;
}

.toc-list .toc-h4 {
    padding-left: 2.25rem;
    font-size: 0.8rem;
}

/* Reading progress */
.reading-progress {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
    .guidelines-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .guidelines-toc {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2rem;
        position: static;
        max-height: none;
    }
    
    .toc-nav {
        max-height: 200px;
    }
}

@media (max-width: 768px) {
    .guidelines-main {
        padding: 1rem;
    }
    
    .guidelines-layout {
        padding: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-excerpt {
        font-size: 1rem;
    }
    
    .page-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }
    
    .toc-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .guidelines-layout {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .breadcrumb {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
}