/* AMCO Table – table.css v1.0.0 */

.r4d-table-section { width: 100%; box-sizing: border-box; }

/* ── Header ────────────────────────────────────────────────── */
.r4d-table-header-wrap {
    text-align: center;
    margin-bottom: 32px;
}
.r4d-table-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e3a5f;
    margin: 0 0 10px;
    line-height: 1.2;
}
.r4d-table-subtitle {
    font-size: 15px;
    color: #6B7280;
    margin: 0;
}

/* ── Table wrapper (handles border, shadow, radius) ─────────── */
.r4d-table-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    box-sizing: border-box;
}
.r4d-table--shadow {
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* ── Table base ─────────────────────────────────────────────── */
.r4d-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* ── Thead ──────────────────────────────────────────────────── */
.r4d-table-thead {
    background-color: #1e3a5f;
}
.r4d-table-thead th {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 16px;
    text-align: left;
    letter-spacing: 0.01em;
    border: none;
}

/* ── Icon column header (narrow) ──────────────────────────── */
.r4d-table-icon-th {
    width: 48px;
    min-width: 48px;
    padding: 0 !important;
}

/* ── Rows ───────────────────────────────────────────────────── */
.r4d-table-row {
    border-bottom: 1px solid #E5E7EB;
    background-color: #ffffff;
    transition: background-color 0.20s ease;
}
.r4d-table-row:last-child { border-bottom: none; }
.r4d-table-row:nth-child(even) { background-color: #f8fafc; }
.r4d-table-row:hover { background-color: #f0f7ff; }

.r4d-table-row td {
    padding: 18px;
    vertical-align: middle;
    border: none;
}

/* ── Icon cell ──────────────────────────────────────────────── */
.r4d-table-icon-td {
    width: 48px;
    min-width: 48px;
    padding: 18px 4px 18px 16px !important;
    text-align: center;
}
.r4d-table-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.r4d-table-icon .r4d-ms-icon {
    font-size: 22px;
    line-height: 1;
}

/* ── Col 1 (Benefit name) ───────────────────────────────────── */
.r4d-table-col1 { font-weight: 600; }
.r4d-table-col1-text {
    color: #1e3a5f;
    font-size: 15px;
    font-weight: 600;
}

/* ── Col 2 (Description) ───────────────────────────────────── */
.r4d-table-col2 {
    color: #374151;
    font-size: 14px;
    line-height: 1.55;
}

/* ── Entrance animation ─────────────────────────────────────── */
.r4d-table-anim {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    transition-delay: var(--row-delay, 0s);
}
.r4d-table-anim.r4d-table-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .r4d-table-title { font-size: 22px; }
    .r4d-table-subtitle { font-size: 14px; }
    .r4d-table-wrap { border-radius: 8px; }

    /* Stack columns on mobile */
    .r4d-table, .r4d-table tbody, .r4d-table-row, .r4d-table-row td {
        display: block;
        width: 100%;
    }
    .r4d-table-thead { display: none; }
    .r4d-table-row {
        border-bottom: 2px solid #E5E7EB;
        padding: 12px 0;
    }
    .r4d-table-row td { padding: 6px 16px; }
    .r4d-table-icon-td {
        width: auto; min-width: auto;
        text-align: left;
        padding: 10px 16px 4px !important;
    }
    .r4d-table-col1 { font-weight: 700; }
    /* Show column header as inline label before the value */
    .r4d-table-row td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: #9CA3AF;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        display: block;
        margin-bottom: 2px;
    }
}
@media (max-width: 400px) {
    .r4d-table-title { font-size: 20px; }
}
