/* Resources, articles, calculator and template pages. Builds on contact-modern.css variables. */

.rs-crumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #94a3b8;
}

    .rs-crumbs li + li::before {
        content: "/";
        margin-right: 8px;
        color: #64748b;
    }

    .rs-crumbs a {
        color: #5eead4;
        text-decoration: none;
    }

        .rs-crumbs a:hover {
            text-decoration: underline;
        }

.rs-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--cx-brand-soft);
    color: var(--cx-brand-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
}

.cx-hero .rs-pill {
    margin-bottom: 14px;
    background: rgba(20, 184, 166, .18);
    color: #5eead4;
}

.rs-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-top: 18px;
    color: #cbd5e1;
    font-size: 14.5px;
}

    .rs-meta i {
        margin-right: 6px;
        color: #5eead4;
    }

/* Article body */
.rs-article {
    max-width: 760px;
    margin: 0 auto;
    color: var(--cx-text);
    font-size: 17.5px;
    line-height: 1.8;
}

    .rs-article > p:first-child {
        font-size: 19px;
        color: var(--cx-ink);
    }

    .rs-article h2 {
        margin: 44px 0 14px;
        color: var(--cx-ink);
        font-size: clamp(23px, 2.6vw, 29px);
        font-weight: 800;
        line-height: 1.3;
    }

    .rs-article h3 {
        margin: 30px 0 10px;
        color: var(--cx-ink);
        font-size: 20px;
        font-weight: 700;
    }

    .rs-article p {
        margin: 0 0 18px;
    }

    .rs-article ul,
    .rs-article ol {
        margin: 0 0 20px;
        padding-left: 24px;
    }

    .rs-article li {
        margin-bottom: 8px;
    }

    .rs-article strong {
        color: var(--cx-ink);
    }

    .rs-article a:not(.cx-btn) {
        color: var(--cx-brand-dark);
        font-weight: 600;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

.rs-callout {
    margin: 26px 0;
    padding: 20px 22px;
    border-left: 4px solid var(--cx-brand);
    border-radius: 0 14px 14px 0;
    background: var(--cx-brand-soft);
    color: var(--cx-ink);
    font-size: 16.5px;
}

    .rs-callout p:last-child {
        margin-bottom: 0;
    }

.rs-formula {
    margin: 22px 0;
    padding: 18px 22px;
    border-radius: 14px;
    background: var(--cx-navy);
    color: #e2e8f0;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 15.5px;
    line-height: 1.7;
    overflow-x: auto;
}

    .rs-formula b {
        color: #5eead4;
        font-weight: 700;
    }

.rs-table-wrap {
    margin: 22px 0 26px;
    overflow-x: auto;
    border: 1px solid var(--cx-line);
    border-radius: 14px;
}

.rs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    line-height: 1.5;
}

    .rs-table th,
    .rs-table td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--cx-line);
        text-align: left;
        vertical-align: top;
    }

    .rs-table th {
        background: #f5f8fa;
        color: var(--cx-ink);
        font-weight: 700;
    }

    .rs-table tr:last-child td {
        border-bottom: 0;
    }

    .rs-table .num {
        text-align: right;
        white-space: nowrap;
    }

    .rs-table .is-total td {
        background: var(--cx-brand-soft);
        color: var(--cx-ink);
        font-weight: 700;
    }

.rs-inline-cta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 34px 0;
    padding: 22px 24px;
    border: 1px solid var(--cx-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--cx-shadow);
}

    .rs-inline-cta .cx-icon {
        flex: 0 0 auto;
        margin: 0;
    }

    .rs-inline-cta strong {
        display: block;
        color: var(--cx-ink);
        font-size: 17px;
    }

    .rs-inline-cta span {
        display: block;
        color: var(--cx-muted);
        font-size: 15px;
        line-height: 1.5;
    }

    .rs-inline-cta .cx-btn {
        flex: 0 0 auto;
        margin-left: auto;
    }

.rs-article .rs-inline-cta a.cx-btn {
    text-decoration: none;
}

/* Cards */
.rs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.rs-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;
    border: 1px solid var(--cx-line);
    border-radius: var(--cx-radius);
    background: #fff;
    box-shadow: var(--cx-shadow);
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .rs-card:hover {
        border-color: rgba(13, 148, 136, .45);
        box-shadow: 0 24px 48px -28px rgba(15, 23, 42, .35);
        transform: translateY(-3px);
    }

    .rs-card:focus-visible {
        outline: 3px solid rgba(13, 148, 136, .45);
        outline-offset: 3px;
    }

    .rs-card__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .rs-card .cx-icon {
        margin: 0;
    }

    .rs-card h3 {
        margin: 6px 0 0;
        color: var(--cx-ink);
        font-size: 19px;
        font-weight: 700;
        line-height: 1.35;
    }

    .rs-card p {
        margin: 0;
        color: var(--cx-text);
        font-size: 15px;
        line-height: 1.65;
    }

.rs-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    color: var(--cx-muted);
    font-size: 14px;
}

    .rs-card__foot b {
        color: var(--cx-brand-dark);
        font-weight: 700;
    }

.rs-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.rs-tool {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 28px;
    border-radius: 22px;
    background:
        radial-gradient(360px 180px at 100% 0%, rgba(20, 184, 166, .32), transparent 70%),
        linear-gradient(135deg, #0c1c2c, #0f3b3a);
    color: #cbd5e1;
    text-decoration: none;
    transition: transform .2s ease;
}

    .rs-tool:hover {
        transform: translateY(-3px);
    }

    .rs-tool:focus-visible {
        outline: 3px solid rgba(94, 234, 212, .6);
        outline-offset: 3px;
    }

    .rs-tool .cx-icon {
        flex: 0 0 auto;
        margin: 0;
        background: rgba(20, 184, 166, .18);
        color: #5eead4;
    }

    .rs-tool h3 {
        margin: 0 0 6px;
        color: #fff;
        font-size: 20px;
        font-weight: 700;
    }

    .rs-tool p {
        margin: 0 0 12px;
        font-size: 15px;
        line-height: 1.6;
    }

    .rs-tool b {
        color: #5eead4;
        font-size: 14.5px;
    }

/* FAQ */
.rs-faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.rs-qa {
    border: 1px solid var(--cx-line);
    border-radius: 16px;
    background: #fff;
}

    .rs-qa summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 18px 22px;
        color: var(--cx-ink);
        font-size: 17px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

        .rs-qa summary::-webkit-details-marker {
            display: none;
        }

        .rs-qa summary::after {
            content: "+";
            flex: 0 0 auto;
            color: var(--cx-brand);
            font-size: 22px;
            font-weight: 500;
            line-height: 1;
            transition: transform .2s ease;
        }

    .rs-qa[open] summary::after {
        transform: rotate(45deg);
    }

    .rs-qa summary:focus-visible {
        outline: 3px solid rgba(13, 148, 136, .35);
        outline-offset: 2px;
        border-radius: 16px;
    }

    .rs-qa div {
        padding: 0 22px 20px;
        color: var(--cx-text);
        font-size: 16px;
        line-height: 1.75;
    }

        .rs-qa div p {
            margin: 0 0 10px;
        }

            .rs-qa div p:last-child {
                margin: 0;
            }

/* Calculator page extras */
.rs-calc-extra {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cx-calc .rs-calc-extra .cx-calc__field {
    margin-bottom: 18px;
}

/* Template page */
.rs-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.rs-download__card {
    padding: 32px;
    border: 1px solid var(--cx-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--cx-shadow);
}

    .rs-download__card h2 {
        margin: 0 0 10px;
        color: var(--cx-ink);
        font-size: 26px;
        font-weight: 800;
    }

    .rs-download__card p {
        margin: 0 0 18px;
        color: var(--cx-text);
        line-height: 1.7;
    }

    .rs-download__card .cx-btn {
        width: 100%;
    }

.rs-download__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--cx-muted);
    font-size: 14px;
}

    .rs-download__facts i {
        margin-right: 6px;
        color: var(--cx-brand);
    }

.rs-download__shot {
    margin: 0;
}

    .rs-download__shot img {
        display: block;
        width: 100%;
        height: auto;
        border: 1px solid var(--cx-line);
        border-radius: 16px;
        box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .45);
    }

    .rs-download__shot figcaption {
        margin-top: 12px;
        color: var(--cx-muted);
        font-size: 14px;
        text-align: center;
    }

.rs-sheets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rs-sheet;
}

    .rs-sheets li {
        position: relative;
        padding: 22px 20px 20px;
        border: 1px solid var(--cx-line);
        border-radius: 18px;
        background: #fff;
    }

        .rs-sheets li::before {
            counter-increment: rs-sheet;
            content: counter(rs-sheet);
            display: inline-grid;
            place-items: center;
            width: 30px;
            height: 30px;
            margin-bottom: 12px;
            border-radius: 50%;
            background: var(--cx-brand);
            color: #fff;
            font-weight: 700;
            font-size: 14px;
        }

    .rs-sheets strong {
        display: block;
        margin-bottom: 6px;
        color: var(--cx-ink);
        font-size: 16.5px;
    }

    .rs-sheets span {
        color: var(--cx-text);
        font-size: 14.5px;
        line-height: 1.6;
    }

/* Comparison page */
.rs-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.rs-fit .cx-card p strong {
    color: var(--cx-ink);
}

.rs-fit .rs-fit__pick {
    border-color: rgba(13, 148, 136, .45);
    background: linear-gradient(180deg, #f0fdfa, #fff 60%);
}

.rs-tool .rs-tool__title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.cx-compare--3 {
    max-width: 1100px;
}

    .cx-compare--3 .cx-compare__row {
        grid-template-columns: minmax(0, .8fr) repeat(3, minmax(0, 1fr));
    }

    .cx-compare--3 .cx-compare__row > span {
        padding: 16px 18px;
        font-size: 14.5px;
    }

    .cx-compare--3 .cx-compare__row > .is-yes {
        background: none;
    }

    .cx-compare--3 .cx-compare__row > span:nth-child(4) {
        background: var(--cx-brand-soft);
    }

    .cx-compare--3 .is-mid {
        color: var(--cx-text);
    }

        .cx-compare--3 .is-mid i {
            margin-top: 4px;
            color: #f59e0b;
        }

@media (max-width: 992px) {
    .rs-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-tools,
    .rs-download {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .rs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-article {
        font-size: 16.5px;
    }

    .rs-inline-cta {
        flex-direction: column;
        align-items: flex-start;
    }

        .rs-inline-cta .cx-btn {
            width: 100%;
            margin-left: 0;
        }

    .rs-tool {
        flex-direction: column;
    }

    .rs-calc-extra {
        grid-template-columns: minmax(0, 1fr);
    }

    .cx-compare--3 .cx-compare__head {
        display: none;
    }

    .cx-compare--3 .cx-compare__row {
        grid-template-columns: minmax(0, 1fr);
    }

        .cx-compare--3 .cx-compare__row > span {
            padding: 6px 16px;
        }

        .cx-compare--3 .cx-compare__row > span[role="rowheader"] {
            padding-top: 16px;
            font-size: 16px;
        }

        .cx-compare--3 .cx-compare__row > span[role="cell"]:last-child {
            margin: 4px 0 0;
            padding-top: 10px;
            padding-bottom: 14px;
        }

        .cx-compare--3 .cx-compare__row > span[role="cell"]::before {
            content: attr(data-label);
            flex: 0 0 82px;
            color: var(--cx-muted);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .03em;
            text-transform: uppercase;
            line-height: 1.9;
        }
}
