/* Scope reset to content-hub content only so template navbar spacing (.mt50, .pt10) is not overridden */
.article-cms-content *,
.pillar-container * {
    margin: 0;
    padding: 0;
   /* box-sizing: border-box;*/
}

/* Apply content-hub typography only inside content areas so navbar/site chrome keep default height (40px) */
.article-cms-content,
.pillar-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #2c3e50;
   /* background: #f8f9fa;*/ 
}



.pillar-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
}
.pillar-container::before{
    display:block;
}

.breadcrumb {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 20px;
    padding: 15px 0;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.parent-link {
    font-size: 0.9em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.parent-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.article-cms-content h1,
.pillar-container h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    color: #7f8c8d;
    font-size: 0.95em;
}

.article-intro {
    background: #ecf9ff;
    padding: 20px;
    border-left: 4px solid #3498db;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.table-of-contents {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.table-of-contents h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.table-of-contents ol {
    margin-left: 20px;
}

.table-of-contents li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.table-of-contents a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.article-cms-content section,
.pillar-container section {
    margin-bottom: 40px;
}

.article-cms-content p,
.pillar-container p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 27px;
}

.article-cms-content aside > h2,
.article-cms-content nav > h2,
.article-cms-content section > h2,
.pillar-container aside > h2,
.pillar-container nav > h2,
.pillar-container section > h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.8em;
    color: #2c3e50;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.article-cms-content * > a,
.pillar-container * > a { color: rgb(0,0,255); }



.article-cms-content section > h3,
.article-cms-content div > h3,
.pillar-container section > h3,
.pillar-container div > h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.3em;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-cms-content h4,
.pillar-container h4 { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }

.article-cms-content p,
.pillar-container p {
    margin-bottom: 18px;
    text-align: justify;
}

.article-cms-content ul,
.article-cms-content ol,
.pillar-container ul,
.pillar-container ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.article-cms-content li,
.pillar-container li {
    margin-bottom: 10px;
}

.article-cms-content strong,
.pillar-container strong {
    color: #2c3e50;
    font-weight: 600;
}

.tip-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 4px;
}

.read-more {
    margin: 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.95em;
}

.read-more a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.faq-section {
    background: #f8f9fa;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
}

.faq-section h2 {
    border-bottom: none;
    margin-top: 0;
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dee2e6;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 12px;
}

.faq-answer {
    color: #555;
    line-height: 1.7;
}

.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 35px;
    text-align: center;
    border-radius: 10px;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    margin-top: 0;
    font-size: 1.6em;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.related-articles {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.related-articles h2,
.related-articles h3 {
    margin-top: 0;
    border-bottom: none;
}

.related-articles ul {
    list-style: none;
    margin-left: 0;
}

.related-articles li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.related-articles li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3498db;
}

.related-articles a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    color: #3498db;
}

.category-links {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
}

.category-links h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.category-links ul {
    list-style: none;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.category-links li {
    margin-bottom: 0;
}

.category-links a {
    color: #3498db;
    text-decoration: none;
}

.category-links a:hover {
    text-decoration: underline;
}

/* Article index: collapsed tree with expand/collapse icons */
.article-tree {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.article-tree > li {
    margin-bottom: 0.5em;
}

.article-tree-node {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.article-tree-toggle {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.25em;
    cursor: pointer;
    font-size: 0.85em;
    line-height: 1.2;
    color: #3498db;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.article-tree-toggle:hover {
    color: #2980b9;
}

.article-tree-toggle::before {
    content: "\25B6";
    display: inline-block;
}

.article-tree-node--expanded .article-tree-toggle::before {
    content: "\25BC";
}

.article-tree-node .article-tree-children {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-left: 1.5em;
    margin-top: 0.35em;
    list-style: disc;
}

.article-tree-node.article-tree-node--expanded .article-tree-children {
    display: block;
}

.article-tree-children li {
    margin-bottom: 0.35em;
}

@media (max-width: 768px) {
    .article-cms-content .container,
    .pillar-container .container {
        padding: 15px;
    }
    
    .article-cms-content h1,
    .pillar-container h1 {
        font-size: 1.8em;
    }
    
    .article-cms-content h2,
    .pillar-container h2 {
        font-size: 1.5em;
    }
    
    .article-cms-content h3,
    .pillar-container h3 {
        font-size: 1.2em;
    }
    
    .category-links ul {
        grid-template-columns: 1fr;
    }
}
