/* ============================================
   SIZE CHARTS PAGE STYLES
   ============================================ */

.charts-page {
    background-color: #ffffff;
}

.chart-section {
    padding: 3rem 0;
    border-bottom: 1px solid #e5e7eb;

}

.chart-section:last-of-type {
    border-bottom: none;
}

.chart-intro {
    max-width: 900px;
    margin: 0 auto 2rem;
    color: #4b5563;
    line-height: 1.8;
    text-align: center;
}

.chart-category-title {
    text-align: center;
    color: #111827;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.chart-subsection {
    margin: 3rem 0;
}

.chart-subsection h3 {
    text-align: center;
    color: #1d4ed8;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.size-table-wrapper {
    margin: 2rem auto;
    max-width: 900px;
    display: flex;
    justify-content: center;
    width: 100%;
}


.size-table {
    width: auto; /* Let table size naturally */
    min-width: 600px; /* Minimum readable width */
    max-width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    margin: 0;
}

.size-table thead {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.size-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    color: #1e3a8a;
    border-bottom: 2px solid #93c5fd;
    font-size: 0.95rem;
}

.size-table td {
    padding: 0.875rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
}

.size-table tbody tr:hover {
    background-color: #f9fafb;
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

/* Highlight first column */
.size-table td:first-child,
.size-table th:first-child {
    background-color: #f0f9ff;
    font-weight: 600;
}

.chart-note {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.6;
}

.measurement-guide {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f0f9ff;
    border-radius: 10px;
    border: 2px solid #93c5fd;
}

.measurement-guide h4 {
    color: #1e3a8a;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.measurement-guide ol {
    margin-left: 1.5rem;
    color: #1e40af;
}

.measurement-guide li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.measurement-guide ul {
    margin-left: 1.5rem;
    color: #1e40af;
}

.measurement-guide p {
    color: #1e40af;
    margin-bottom: 1rem;
}

/* Quick Navigation */
.quick-nav {
    background-color: #f9fafb;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 64px;
    z-index: 100;
}

.quick-nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.quick-nav-list a {
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    color: #1d4ed8;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.quick-nav-list a:hover {
    background-color: #eff6ff;
    border-color: #1d4ed8;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chart-category-title {
        font-size: 1.5rem;
    }

    .chart-subsection h3 {
        font-size: 1.25rem;
    }

    .size-table {
        font-size: 0.85rem;
        width: 100%;
        min-width: auto;
    }

    .size-table th,
    .size-table td {
        padding: 0.65rem 0.5rem;
    }

    .quick-nav {
        position: static;
        padding: 1.5rem 0;
    }

    .quick-nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-nav-list a {
        text-align: center;
    }

    .chart-note {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    .measurement-guide {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .size-table {
        font-size: 0.75rem;
    }

    .size-table th,
    .size-table td {
        padding: 0.5rem 0.25rem;
    }

    .chart-category-title {
        font-size: 1.25rem;
    }

    .chart-intro {
        font-size: 0.95rem;
    }
}