

/* Container & Layout */
.sg-modern-container {
    font-family: system-ui, -apple-system, sans-serif;
    color: #1a1a1a;

    /* Max width and Centering */
    max-width: 900px;
    margin: 1.5rem auto;

    /* Ensure padding on small screens so it doesn't touch the edges */
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Responsive Flex Logic */
.sg-flex-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Modern Pill Navigation */
.sg-tabs-nav {
    display: inline-flex;
    background: #f4f4f5;
    padding: 0.25rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
}

.sg-tab-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: #71717a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sg-tab-btn.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Tab Transitions */
.sg-tab-content {
    display: none;
    animation: sgFadeIn 0.2s ease-out;
}

.sg-tab-content.active {
    display: block;
}

@keyframes sgFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Styling */
.sg-table-wrapper {
    overflow-x: auto;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
}

.sg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.sg-table th {
    background: #fafafa;
    padding: 10px 14px;
    font-weight: 600;
    text-align: center;
    border-bottom: 1px solid #e4e4e7;
}

.sg-table td {
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid #f4f4f5;
}

/* Mobile Sticky Column */
.sg-sticky-col {
    position: sticky;
    left: 0;
    background: #ffffff;
    font-weight: 600;
    text-align: left !important;
    border-right: 1px solid #e4e4e7;
    z-index: 10;
}

.sg-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 11;
    background: #fafafa;
    border-right: 1px solid #e4e4e7;
}

/* Base Mobile Styles (Vertical) */
.sg-image-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}
.sg-image-wrapper {
    width: 100%;
}
.sg-image-wrapper img {
    min-height: 350px;
    border-radius: 6px;
    display: block;
}
.sg-image-caption {
    font-size: 0.85rem;
    color: #52525b;
    line-height: 1.5;
}
.sg-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
}
.sg-unit {
    font-weight: 400;
    color: #a1a1aa;
}
.sg-description {
    font-size: 0.875rem;
    color: #52525b;
    margin-bottom: 1rem;
}
/* Tablet and Desktop (Horizontal) */
@media (min-width: 768px) {
    .sg-image-card {
        flex-direction: row;
        align-items: flex-start; /* Keeps text aligned to the top of the image */
    }
    .sg-image-wrapper {
        flex: 0 0 180px; /* Keeps the image at a fixed width so it doesn't get too huge */
    }
    .sg-image-caption {
        flex: 1; /* Lets the text take up the remaining space */
        margin-top: 0;
        padding-left: 0.5rem;
    }
}
