/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #292929;
    background-color: #d9e3e8;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Header */
.header {
    text-align: center;
    padding: 80px 0 60px;
    border-bottom: 1px solid #e6e6e6;
    background: white;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #6b6b6b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Navigation */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgb(243, 243, 243);
    padding: 0 0 2px 0;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.03);
}
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-nav li {
    display: inline-block;
}
.main-nav a {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 2px;
    text-align:center;
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
    background: #f8f9fa;
    color: #026d8d;
}

/* Main content */
.main-content {
    padding: 60px 0 80px;
}

/* Visualization sections */
.viz-section {
    background-color:#fafafa;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
    padding:10px 20px;
}

.viz-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.viz-header {
    margin-bottom: 40px;
}

.viz-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.viz-description {
    font-size: 18px;
    color: #6b6b6b;
    line-height: 1.6;
    max-width: 700px;
}

.embed-container {
    width: 100%;
background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    
    display: block;
    align-items: center;
    justify-content: center;
    color: #6b6b6b;
    margin-bottom: 24px;
    padding:10px
}

.embed-container .inputs-3a86ea {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.embed-container .observablehq{
    margin-top:10px;
    margin-bottom: 60px;
}

.embed-container .observablehq:first-of-type{
    margin-top:10px
}



.embed-container #observablehq-desc
{
   font-size:0.9rem
}

#observablehq-viewof-ejeY, #observablehq-viewof-ejeX{
        margin-top:2px;
        margin-bottom:2px;

}

.embed-container #observablehq-desc h2
{
   font-size:1rem
}
.embed-container #observablehq-desc h4
{
font-weight:600
}
.embed-container #observablehq-desc .descEje
{
   padding:5px 10px;
}


.viz-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #e6e6e6;
    border-radius: 20px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #f8f9fa;
    border-color: #026d8d;
    color: #026d8d;
}

.btn-primary {
    background: #026d8d;
    color: white;
    border-color: #026d8d;
}

.btn-primary:hover {
    background: #0f5d0f;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 40px 23px 30px;
    }
    
    .main-content{
        padding: 0;
    }
    .main-title {
        font-size: 42px;
    }

    .subtitle {
        font-size: 18px;
    }

    .viz-header {
        padding:0 20px;
    }

    .viz-title {
        font-size: 28px;
    }

    .viz-description {
        font-size: 13px;
    }

    .viz-section {  
        padding: 20px 4px 40px;
        margin-bottom: 40px;
    }

    .embed-container {
        padding: 4px;
       
    }

    .container{
        padding:0;
        margin:0;
    }
    .viz-actions {
        flex-direction: column;
        align-items: stretch;
        padding:4px 20px;
    }

    .embed-container #observablehq-desc {
    font-size: 0.7rem;
}

    .btn {
        text-align: center;
        justify-content: center;
    }

    /* Footer responsive */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul {
        gap: 8px;
    }
    .main-nav a {
        font-size: 13px;
        padding: 7px 10px;
    }
}

/* Anchor styles for direct links */
.anchor-target {
    scroll-margin-top: 80px;
}
/* Footer */
.footer {
    background: #b9b9b9;
    color: #23272f;
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {

}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #23272f;
}

.footer-subtitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #4b5563;
}

.footer-description,
.footer-info {
    font-size: 14px;
    line-height: 1.6;
    color: #5a6473;
}

.footer-info strong {
    color: #23272f;
}

.footer-link {
    color: #026d8d;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.footer-link:hover {
    color: #0f5d0f;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #e0e6ed;
}

.footer-copyright {
    font-size: 14px;
    color: #5a6473;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links .footer-link {
    font-size: 14px;
}
