/* ========================================
   STANDARD PAGE
======================================== */

.tms-page,
.tms-tools {
    min-height: 70vh;
}


/* Page title */

.tms-page-head {
    padding: 42px 0 32px;

    border-bottom: 1px solid var(--line);
}

.tms-page-head__inner {
    max-width: 900px;
}

.tms-page-kicker {
    margin: 0 0 12px;

    color: var(--blue);

    font-size: 11px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: .12em;
}

.tms-page-head h1 {
    margin: 0;

    color: var(--ink);

    font-size: 32px;
    line-height: 1.28;
    font-weight: 750;

    letter-spacing: -.04em;

    word-break: keep-all;
}

.tms-page-intro {
    max-width: 680px;

    margin: 15px 0 0;

    color: var(--muted);

    font-size: 15px;
    line-height: 1.75;

    word-break: keep-all;
}


/* Standard page body */

.tms-page-body {
    width: 100%;

    padding: 38px 16px 68px;
}

.tms-page-content {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;

    color: #263142;

    font-size: 16px;
    line-height: 1.85;

    word-break: keep-all;
    overflow-wrap: break-word;
}

.tms-page--tool .tms-page-content {
    max-width: 1100px;
}

.tms-page-content > *:first-child {
    margin-top: 0;
}

.tms-page-content p {
    margin-top: 0;
    margin-bottom: 1.4em;
}

.tms-page-content a {
    color: var(--blue);
}

.tms-page-content h2 {
    margin: 2em 0 .8em;

    color: var(--ink);

    font-size: 26px;
    line-height: 1.4;

    letter-spacing: -.03em;
}

.tms-page-content h3 {
    margin: 1.7em 0 .7em;

    color: var(--ink);

    font-size: 20px;
    line-height: 1.45;
}


/* Wide blocks */

.tms-page-content .alignwide {
    width: min(
        1100px,
        calc(100vw - 32px)
    );

    max-width: none;

    margin-left: 50%;

    transform: translateX(-50%);
}


/* Tables */

.tms-page-content .wp-block-table {
    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.tms-page-content table {
    width: 100%;

    border-collapse: collapse;
}

.tms-page-content th,
.tms-page-content td {
    padding: 11px 13px;

    border: 1px solid #e1e5ec;
}

.tms-page-content th {
    background: #f5f7fa;

    text-align: left;
}


/* ========================================
   INVESTMENT TOOLS HUB
======================================== */

.tms-tools-section {
    padding: 38px 0 68px;
}

.tms-tools-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 14px;
}

.tms-tool-card {
    display: flex;
    flex-direction: column;

    min-height: 210px;

    padding: 22px;

    border: 1px solid var(--line);
    border-top: 2px solid var(--blue);
    border-radius: 9px;

    background: var(--white);
}

.tms-tool-card__number {
    color: var(--blue);

    font-size: 11px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: .12em;
}

.tms-tool-card h2 {
    margin: 21px 0 8px;

    color: var(--ink);

    font-size: 20px;
    line-height: 1.4;

    letter-spacing: -.025em;

    word-break: keep-all;
}

.tms-tool-card p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;

    word-break: keep-all;
}

.tms-tool-card__link {
    margin-top: auto;
    padding-top: 22px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 700;
}

.tms-tool-card:hover {
    border-color: #b9c9ed;
}


/* Tablet */

@media (min-width: 700px) {

    .tms-page-head {
        padding-top: 52px;
        padding-bottom: 40px;
    }

    .tms-page-head h1 {
        font-size: 38px;
    }

    .tms-page-body {
        padding-top: 48px;
        padding-bottom: 78px;
    }

    .tms-page-content {
        font-size: 17px;
    }

    .tms-tools-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }
}


/* Desktop */

@media (min-width: 1000px) {

    .tms-page-head {
        padding-top: 62px;
        padding-bottom: 48px;
    }

    .tms-page-head h1 {
        font-size: 42px;
    }

    .tms-page-intro {
        font-size: 16px;
    }

    .tms-tools-section {
        padding-top: 48px;
        padding-bottom: 78px;
    }

    .tms-tools-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 24px;
    }

    .tms-tool-card {
        min-height: 230px;

        padding: 26px;
    }
}


/* ========================================
   EXPANDABLE TOOL GROUPS
======================================== */

.tms-tool-group + .tms-tool-group {
    margin-top: 56px;
}

.tms-tool-group__head {
    max-width: 720px;

    margin-bottom: 22px;
}

.tms-tool-group__kicker {
    margin: 0 0 9px;

    color: var(--blue);

    font-size: 11px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: .12em;
}

.tms-tool-group__head h2 {
    margin: 0;

    color: var(--ink);

    font-size: 25px;
    line-height: 1.35;

    letter-spacing: -.03em;
}

.tms-tool-group__head > p:last-child {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}

.tms-tool-card h3 {
    margin: 21px 0 8px;

    color: var(--ink);

    font-size: 20px;
    line-height: 1.4;

    letter-spacing: -.025em;

    word-break: keep-all;
}


/*
 * Market Radar is the primary market-data tool.
 */
.tms-tool-card--featured {
    min-height: 230px;

    border-color: #c7d7fb;
    border-top-color: var(--blue);

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7faff 100%
        );
}

.tms-tool-card--featured h3 {
    font-size: 24px;
}


@media (min-width: 700px) {

    .tms-tool-card--featured {
        grid-column: 1 / -1;
    }

}


@media (min-width: 1000px) {

    .tms-tool-group + .tms-tool-group {
        margin-top: 68px;
    }

    .tms-tool-group__head h2 {
        font-size: 28px;
    }

    .tms-tool-card--featured {
        min-height: 210px;

        padding: 30px 32px;
    }

    .tms-tool-card--featured h3 {
        max-width: 620px;

        font-size: 27px;
    }

    .tms-tool-card--featured > p {
        max-width: 720px;
    }
}

/* === /EXPANDABLE TOOL GROUPS === */


/* ==================================================
   TMS PAGE TABLE CLEAN V1
================================================== */

@media (min-width: 700px) {

    .tms-page-content .wp-block-table table {
        border-collapse: collapse !important;
        border-top: 1px solid #eee !important;

        font-size: 14px;

        table-layout: auto !important;
    }

    .tms-page-content .wp-block-table thead,
    .tms-page-content .wp-block-table thead tr {
        border: none !important;
    }

    .tms-page-content .wp-block-table thead th {
        padding: 11px 9px !important;

        background: #f2f7fc !important;
        color: #333 !important;

        border-top: none !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom:
            2px solid #4285f4 !important;

        text-align: center !important;
        vertical-align: middle !important;

        font-weight: 700 !important;

        white-space: nowrap !important;
    }

    .tms-page-content .wp-block-table tbody td {
        padding: 10px 9px !important;

        color: #555 !important;
        background: #fff;

        border-left: none !important;
        border-right: none !important;
        border-bottom:
            1px solid #e0e0e0 !important;

        text-align: center !important;
        vertical-align: middle !important;

        word-break: keep-all !important;
    }
}

/* === /TMS PAGE TABLE CLEAN V1 === */
