/* ============================================================
   Loan Rate Card v3 — Multiple Tables Support
   Header  →  Toolbar  →  Accordion (N tables)
   ============================================================ */

.wp-block-loan-rate-card {
    --lrc-bg: #ffffff;
    --lrc-card-bg: #ffffff;
    --lrc-border: #d1d5db;
    --lrc-accent: #12383E;
    --lrc-text: #1f2937;
    --lrc-muted: #4A5769;
    --lrc-teal: #0d7377;
    --lrc-toolbar-bg: #12383E;
    --lrc-toolbar-text: #ffffff;
    --lrc-radius: 10px;

    max-width: 1100px;
    margin: 1rem auto 2rem;
    border-radius: var(--lrc-radius);
    overflow: hidden;
    font-family: sofia-pro, sans-serif;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);

}

/* ============================================================
   Header
   ============================================================ */
.lrc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1.25rem;
    padding: 1.5rem 2.125rem 1.25rem;
    background: var(--lrc-bg);
    gap: 1.5rem;
    border-top: 1px solid #CBE6E2;
    border-left: 1px solid #CBE6E2;
    border-right: 1px solid #CBE6E2;
    border-radius: 10px 10px 0 0;
}

.lrc-header__left {
    flex: 1;
    
}

.lrc-header__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lrc-accent);
    margin: 0 0 0.25rem;
    line-height: 1.15;
    max-width: 475px;
}

.lrc-header__tagline {
    font-size: 1.1875rem;
    color: var(--lrc-muted);
    margin: 0;
    line-height: 1.47;
}
@media (max-width: 767px) {
    .lrc-header__tagline {
        display: none;
    }
}
.lrc-header__rate {
    text-align: center;
    flex-shrink: 0;
    width: 425px;
    border-left: 1px solid #F951C8;
}

.lrc-header__rate-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.875rem;
    font-family: minion-pro, serif;
    color: #4D5768;
    margin-bottom: 0.125rem;
}

.lrc-header__rate-value {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lrc-accent);
    margin-bottom: 20px;
}

.lrc-header__rate-suffix {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.66;
    color: #297A77;
    text-transform: uppercase;
    margin-top: 0.125rem;
}

/* ============================================================
   Toolbar
   ============================================================ */
.lrc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--lrc-toolbar-bg);
}
.lrc-toolbar:hover {
    background-color: #EDF4F4;
}
.lrc-toolbar:hover a, .lrc-toolbar:hover .lrc-toolbar__toggle {
    color: var(--lrc-teal);
    text-decoration: none;
}

.lrc-toolbar__link {
    display: inline-block;
    /* padding: 0.75rem 1.25rem; */
    padding: 0.75rem 2.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lrc-toolbar-text);
    text-decoration: none;
    transition: opacity 0.15s;
}
.lrc-toolbar__link:hover {
    /* opacity: 0.85; */
    text-decoration: underline;
}

.lrc-toolbar__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lrc-toolbar-text);
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.lrc-toolbar__toggle:hover { opacity: 0.85; }

.lrc-toolbar__chevron {
    transition: transform 0.3s ease;
    position: relative;
    top: 2px;
}
.lrc-toolbar__toggle[aria-expanded="true"] .lrc-toolbar__chevron {
    transform: rotate(180deg);
}
.lrc-toolbar:hover .lrc-toolbar__link, .lrc-toolbar:hover .lrc-toolbar__link {
    color: var(--lrc-teal);
    text-decoration: none;
}
/* ============================================================
   Accordion Panel
   ============================================================ */
.lrc-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.lrc-panel.is-open {
    padding: 1.5rem 1.5rem 1.25rem;
    grid-template-rows: 1fr;
    border-left: 1px solid #CBE6E2;
    border-right:  1px solid #CBE6E2;
    background-color: #ffffff;
}

.lrc-panel__inner {
    overflow: hidden;
}

/* ============================================================
   Table Groups (multiple tables stacked)
   ============================================================ */
.lrt-table-group--subsequent {
    
}

.lrt-title {
    background: #EDF4F4;
    color: #12383E;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.25rem;
    border-left: 1px solid var(--lrc-border);
    border-right: 1px solid var(--lrc-border);
    border-top: 1px solid var(--lrc-border);
}

.lrt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* equal-width columns */
    background: #ffffff;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--lrc-border);
}
.lrt-table thead {
    border-left: 1px solid var(--lrc-border);
    border-right: 1px solid var(--lrc-border);
}
.lrt-table thead th:first-child, .lrt-table thead th:nth-child(2) {
    border-right: 1px solid var(--lrc-border);
}
.lrt-table thead th {
    text-align: left;
    padding: 0.875rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 400;
    font-family: minon-pro, serif;
    /* text-transform: uppercase; */
    letter-spacing: 0.04em;
    color: var(--lrc-muted);
    background: #F7F9F9;
    width: auto; /* distributes evenly under table-layout: fixed */
}

.lrt-table thead th:last-child,
.lrt-table tbody td:last-child {
    text-align: left;
}

.lrt-table tbody tr {
    border-bottom: 1px solid var(--lrc-border);
    border-left: 1px solid var(--lrc-border);
    border-right: 1px solid var(--lrc-border);
    transition: background 0.15s ease;
}
.lrt-table tbody tr:last-child { border-bottom: none; }
.lrt-table tbody tr:hover { background: #f9fafb; }

.lrt-table tbody td {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--lrc-text);
}
.lrt-table tbody td.lrt-cell--html {
    font-weight: 400;
}
.lrt-table tbody td:first-child, .lrt-table tbody td:nth-child(2) {
    border-right: 1px solid var(--lrc-border)
}
.lrt-table tbody td.lrt-cell--rate {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--lrc-accent);
}
.lrt-table tbody td.lrt-cell--paragraph {
    font-weight: 400;
    font-size: 1rem;
    color: var(--lrc-accent);
}

@media screen and (max-width: 767px) {
    .lrc-header__title {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    .lrc-header__rate-value {
        font-size: 2.5rem;
    }
    .lrt-title {
        font-size: 1.125rem;
        padding-left: 16px;
    }
    .lrc-header {
        padding: 1.5rem 1rem 1.25rem;

        flex-direction: column;
    }

    .lrc-header__left {
        
    }

    .lrc-header__rate { 
        text-align: center;
        padding-left: 0;
        border-left: 0;
        width: auto; 
    }
    .lrc-header__rate-value { font-size: 2rem; }

    /* Table → cards */
    .lrt-table thead {
        position: absolute;
        width: 1px; height: 1px;
        margin: -1px; padding: 0;
        overflow: hidden;
        clip: rect(0,0,0,0);
        border: 0;
    }

    .lrt-table { border: none; }
    .lrt-table tbody { display: block; }

    .lrt-table tbody tr {
        display: block;
        background: var(--lrc-card-bg);
        border-bottom: 1px solid var(--lrc-border);
        /* padding: 1rem 0; */
        margin-bottom: 17px;
    }
    .lrt-table tbody tr td {
        border: none;
        /* padding: 0 1.25rem; */
    }
    .lrt-table tbody tr td:first-child {
        background: rgba(237, 244, 244, 0.50);
        border-top: 1px solid #B9CECB;
        border-right: none;
        
    }
    .lrt-table tbody tr td:nth-child(2) {
        border-right: none;
    }
    .lrt-table tbody tr:last-child { border-bottom: 1px solid #e5e7eb; }
.lrt-table tbody td:last-child {
    font-size: 1rem;
    text-align: right;
}
    .lrt-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 17px 1rem;
        border: none;
        text-align: right;
        font-weight: 800;
    }

    .lrt-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 1rem;
        font-family: minon-pro, serif;
        color: var(--lrc-muted);
        letter-spacing: 0.03em;
        font-weight: 500;
        text-align: left;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    .lrt-table tbody td + td {
        border-top: 1px solid #e5e7eb;
    }

    /* Spacing between multiple table groups */
    .lrt-table-group--subsequent {
        /* border-top: 4px solid var(--lrc-border); */
        margin-top: 0.5rem;
    }
}

/* ============================================================
   Editor-only: table selector tabs
   ============================================================ */
.lrc-editor-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--lrc-border, #d1d5db);
    background: #f9fafb;
    overflow-x: auto;
}

.lrc-editor-tab {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.lrc-editor-tab:hover {
    color: #1f2937;
}

.lrc-editor-tab.is-active {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
}

.lrc-editor-tab--add {
    color: #059669;
    font-weight: 700;
}

.lrc-editor-tab--add:hover {
    color: #047857;
}
.lrt-table-link {
    text-align: right;
    /* margin-top: 18px; */
    margin-bottom: 30px;
}
.lrt-table-link a {
    color: #093B3A;
    text-align: center;
    font-family: "Sofia Pro";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.1875rem; /* 120% */
    text-decoration: underline;
    
}
.lrt-table-link a:hover {
    color: #297A77;
}

.rate-checks .kt-svg-icon-list-text {
    font-size: 1.125rem;
}
.rate-checks .wp-block-kadence-iconlist ul.kt-svg-icon-list .kt-svg-icon-list-item-wrap .kt-svg-icon-list-single {
    width: 40px !important;
    height: 48px !important;
}
.rates-header ol.breadcrumb {
    align-items: center;
    flex-direction: row;
}