/* Article table palette. Plain Ghost tables and opt-in HTML cards share these tokens. */
.gh-content > :is(.gh-table, .alefy-job-guide, .alefy-monitoring-wrap) {
    --alefy-table-ink: #141414;
    --alefy-table-paper: #ffffff;
    --alefy-table-steel: #bcd0e0;
    --alefy-table-deep-steel: #4e6378;
    --alefy-table-pale: #e4edf4;
    --alefy-table-line: #e5e5e5;
    --alefy-table-muted: #4f4f4f;
    --alefy-table-soft: #f8f8f8;
}

.gh-content > :is(.gh-table, .alefy-job-guide) {
    min-width: 0;
    color: var(--alefy-table-ink);
    background: var(--alefy-table-paper);
    border: 1px solid var(--alefy-table-line);
    border-radius: 12px;
}

.gh-content > .gh-table {
    overflow-x: auto;
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table {
    width: 100%;
    margin: 0;
    color: inherit;
    font: 14px/1.5 var(--gh-font-body, Inter, Arial, sans-serif);
    white-space: normal;
    border-collapse: separate;
    border-spacing: 0;
    text-align: start;
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table :is(th, td) {
    padding: 12px 16px;
    color: inherit;
    border: 0;
    vertical-align: top;
    word-break: normal;
    overflow-wrap: break-word;
}

.gh-content > .gh-table > table :is(th, td) {
    /* Retain usable columns when a wide table scrolls on a phone. */
    min-width: 96px;
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table tr > * + * {
    border-inline-start: 1px solid var(--alefy-table-line);
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table th {
    font-size: inherit;
    font-weight: 665;
    text-transform: none;
    letter-spacing: normal;
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table thead th {
    padding-block: 12px;
    background: var(--alefy-table-pale);
    border-bottom: 1px solid var(--alefy-table-steel);
    font-size: 12px;
    font-weight: 675;
    line-height: 1.35;
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table thead th + th {
    border-inline-start-color: var(--alefy-table-steel);
}

.gh-content > :is(.gh-table, .alefy-job-guide) > table :is(tbody, tfoot) tr + tr > *,
.gh-content > :is(.gh-table, .alefy-job-guide) > table :is(tbody, tfoot) + :is(tbody, tfoot) tr:first-child > * {
    border-top: 1px solid var(--alefy-table-line);
}

.gh-content > .gh-table > table :is(th, td):first-child,
.gh-content > .gh-table > table :is(th, td):last-child {
    /* Source drops outer padding on cells at both edges. */
    padding-inline: 16px;
}

/* Opt-in job guide. Use row headers and an aria-hidden .job-label in each
   data cell to keep the visible stacked layout aligned with the table headers. */
.gh-content > .alefy-job-guide,
.gh-content > .alefy-monitoring-wrap {
    grid-column: main-start / wide-end;
    width: 100%;
    min-width: 0;
    max-width: 1024px;
    justify-self: start;
}

.gh-content > .alefy-job-guide {
    container: alefy-jobs / inline-size;
    overflow: hidden;
}

.gh-content > .alefy-job-guide.kg-card {
    margin-top: 20px !important;
}

.gh-content > .alefy-job-guide.kg-card + p {
    margin-top: 26px !important;
}

.gh-content > .alefy-job-guide > table {
    /* Source adds card spacing after a preceding style or header element. */
    margin: 0 !important;
    table-layout: fixed;
}

.gh-content > .alefy-job-guide > table thead th:first-child {
    width: 30%;
}
.gh-content > .alefy-job-guide > table thead th:nth-child(2) {
    width: 43%;
}
.gh-content > .alefy-job-guide > table :is(th, td) {
    padding-inline: 18px;
}
.gh-content > .alefy-job-guide > table tbody :is(th, td) {
    padding-block: 14px;
}

.alefy-job-guide .job-label {
    display: none;
}

@container alefy-jobs (max-width: 620px) {
    .alefy-job-guide table,
    .alefy-job-guide tbody {
        display: block;
    }

    .alefy-job-guide thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .alefy-job-guide tbody tr {
        display: grid;
        gap: 10px;
        padding: 15px 17px;
    }

    .alefy-job-guide tbody tr + tr {
        border-top: 1px solid var(--alefy-table-line);
    }

    .gh-content > .alefy-job-guide > table tbody tr > * {
        padding: 0;
        border: 0;
    }

    .gh-content > .alefy-job-guide > table tbody tr > th {
        padding: 2px 0 2px 9px;
        border-inline-start: 3px solid var(--alefy-table-steel);
        font-size: 15px;
        line-height: 1.35;
    }

    .alefy-job-guide .job-label {
        display: block;
        margin-bottom: 2px;
        color: var(--alefy-table-deep-steel);
        font-size: 11px;
        font-weight: 675;
    }
}

/* Opt-in logo matrix. Capabilities and vendor assets are supplied by the HTML card. */
.gh-content > .alefy-monitoring-wrap {
        container: alefy-matrix / inline-size;
        margin-top: 16px;
}
.gh-content .alefy-monitoring-matrix > table,
.gh-content .alefy-monitoring-matrix > figcaption {
    margin: 0 !important;
    text-align: left;
}
.alefy-monitoring-matrix * {
    box-sizing: border-box;
}
.alefy-monitoring-matrix {
    margin: 0 auto;
    max-width: 1024px;
    color-scheme: light;
    color: var(--alefy-table-ink);
    background: var(--alefy-table-paper);
    font: 14px/1.42 var(--gh-font-body, Inter, Arial, sans-serif);
    border: 1px solid var(--alefy-table-line);
    border-radius: 15px;
    overflow: hidden;
}
.alefy-monitoring-matrix .heading {
    padding: 29px 34px 24px;
    background: linear-gradient(115deg, var(--alefy-table-pale), var(--alefy-table-paper) 84%);
    border-bottom: 1px solid var(--alefy-table-steel);
}
.alefy-monitoring-matrix .matrix-title {
    font: 400 clamp(29px, 4.15vw, 40px)/1.15 var(--gh-font-heading, Lustria, Georgia, serif);
    letter-spacing: -.05em;
    margin: 0;
}
.alefy-monitoring-matrix .heading p {
    margin: 9px 0 0;
    color: var(--alefy-table-muted);
    font-size: 14px;
}
.alefy-monitoring-matrix table {
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    text-align: left;
}
.alefy-monitoring-matrix thead th {
    background: var(--alefy-table-soft);
    font-size: 13px;
    font-weight: 680;
    line-height: 1.25;
    padding-top: 15px;
    padding-bottom: 15px;
    height: 52px;
}
.alefy-monitoring-matrix thead th:first-child, .alefy-monitoring-matrix tbody th {
    width: 18%;
}
.alefy-monitoring-matrix th, .alefy-monitoring-matrix td {
    padding: 11px 16px;
}
.alefy-monitoring-matrix th:first-child {
    padding-left: 34px;
}
.alefy-monitoring-matrix th:last-child, .alefy-monitoring-matrix td:last-child {
    padding-right: 25px;
}
.alefy-monitoring-matrix tbody th, .alefy-monitoring-matrix td {
    border-top: 1px solid var(--alefy-table-line);
    vertical-align: middle;
}
.alefy-monitoring-matrix tbody th {
    font-size: 14px;
    font-weight: 680;
    line-height: 1.25;
}
.alefy-monitoring-matrix td {
    font-size: 13px;
}
.alefy-monitoring-matrix .alefy th, .alefy-monitoring-matrix .alefy td {
    background: var(--alefy-table-pale);
    border-color: var(--alefy-table-steel);
}
.alefy-monitoring-matrix .alefy + tr > * {
    border-color: var(--alefy-table-steel);
}
.alefy-monitoring-matrix .alefy th {
    box-shadow: inset 4px 0 var(--alefy-table-deep-steel);
}
.alefy-monitoring-matrix td > span:not(.capability-use) {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.alefy-monitoring-matrix td > span:not(.capability-use)::before, .alefy-monitoring-matrix .legend b::before {
    content: "";
    display: inline-block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--alefy-table-deep-steel);
    border-radius: 2px;
}
.alefy-monitoring-matrix .primary span::before, .alefy-monitoring-matrix .legend .main::before {
    background: var(--alefy-table-deep-steel);
}
.alefy-monitoring-matrix .primary {
    font-weight: 630;
}
.alefy-monitoring-matrix .secondary {
    color: var(--alefy-table-muted);
}
.alefy-monitoring-matrix figcaption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px 18px;
    background: var(--alefy-table-soft);
    border-top: 1px solid var(--alefy-table-line);
    padding: 15px 34px;
    color: var(--alefy-table-muted);
    font-size: 11px;
}
.alefy-monitoring-matrix .legend {
    display: flex;
    gap: 15px;
}
.alefy-monitoring-matrix .legend b {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 550;
}
@container alefy-matrix (max-width: 620px) {
    .alefy-monitoring-matrix .heading {
        padding: 20px 20px 18px;
    }
    .alefy-monitoring-matrix .heading p {
        font-size: 13px;
    }
    .alefy-monitoring-matrix table, .alefy-monitoring-matrix tbody {
        display: block;
    }
    .alefy-monitoring-matrix thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .alefy-monitoring-matrix tbody tr {
        display: grid;
        gap: 6px;
        padding: 12px 20px;
        border-bottom: 1px solid var(--alefy-table-line);
    }
    .alefy-monitoring-matrix tbody tr:last-child {
        border-bottom: 0;
    }
    .alefy-monitoring-matrix tbody th:first-child, .alefy-monitoring-matrix tbody td, .alefy-monitoring-matrix .alefy th, .alefy-monitoring-matrix .alefy td {
        border: 0;
        padding: 0;
        width: auto;
    }
    .alefy-monitoring-matrix .alefy {
        background: var(--alefy-table-pale);
        box-shadow: inset 4px 0 var(--alefy-table-deep-steel);
    }
    .alefy-monitoring-matrix .alefy th {
        box-shadow: none;
    }
    .alefy-monitoring-matrix td:empty {
        display: none;
    }
    .alefy-monitoring-matrix td > span:not(.capability-use) {
        display: grid;
        grid-template-columns: 8px 1fr;
        gap: 0 7px;
    }
    .alefy-monitoring-matrix td > span:not(.capability-use)::before {
        grid-area: 1 / 1;
        margin-top: 4px;
    }
    .alefy-monitoring-matrix td > span:not(.capability-use)::after {
        content: attr(data-label);
        grid-area: 1 / 2;
        color: var(--alefy-table-muted);
        font-size: 10px;
        font-weight: 550;
    }
    .alefy-monitoring-matrix td .detail {
        grid-area: 2 / 2;
    }
    .alefy-monitoring-matrix figcaption {
        padding: 12px 20px;
    }
}
.alefy-monitoring-matrix .vendor-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(108px, 100%);
    max-height: 24px;
    object-fit: contain;
}
.alefy-monitoring-matrix .vendor-alefy {
    max-width: min(92px, 100%);
    max-height: 25px;
}
.alefy-monitoring-matrix .vendor-trepp {
    max-width: min(77px, 100%);
}
.alefy-monitoring-matrix .vendor-blooma {
    max-height: 29px;
}
.alefy-monitoring-matrix .vendor-bankstride,
.alefy-monitoring-matrix .vendor-baker-hill {
    width: 112px;
    max-width: min(112px, 100%);
    max-height: none;
    padding: 6px 7px;
    border-radius: 4px;
    background: var(--alefy-table-ink);
}
.alefy-monitoring-matrix .product-name {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.2;
    color: var(--alefy-table-muted);
}
.alefy-monitoring-matrix .capability-use {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@container alefy-matrix (620px < width <= 820px) {
    .alefy-monitoring-matrix thead th:first-child,
    .alefy-monitoring-matrix tbody th:first-child {
        width: 21%;
        padding-left: 20px;
    }
}
@container alefy-matrix (max-width: 620px) {
    .alefy-monitoring-matrix .matrix-title {
        font-size: 27px;
    }
    .alefy-monitoring-matrix tbody tr {
        padding: 13px 20px;
    }
}
