/* **************************************** */
/* * TOOLS DIRECTORY */
/* **************************************** */
#toolsIndex {
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 20px 60px;
}

.tools-heading {
    padding: 26px 20px 34px;
    text-align: center;
}

.tools-heading h1 {
    color: var(--navy);
    font-size: 50px;
    letter-spacing: -.03em;
    line-height: 1.05;
    margin: 0 0 12px;
}

.tools-heading > p:last-child {
    color: var(--muted);
    font-size: 18px;
    margin: 0 auto;
    max-width: 680px;
}

/* **************************************** */
/* * FEATURED TOOL */
/* **************************************** */
.featured-tool {
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
}

.featured-visual {
    align-items: center;
    background-color: #2f466b;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px), radial-gradient(circle at 22% 38%, rgba(86, 186, 72, .65) 0 7%, transparent 7.5%), radial-gradient(circle at 63% 56%, rgba(201, 52, 52, .78) 0 18%, transparent 18.5%), radial-gradient(circle at 78% 30%, rgba(201, 52, 52, .72) 0 10%, transparent 10.5%);
    background-size: 46px 46px, 46px 46px, auto, auto, auto;
    display: flex;
    justify-content: center;
    min-height: 420px;
    padding: 42px;
    text-decoration: none;
}

.map-preview {
    background: rgba(255, 255, 255, .96);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(12, 24, 43, .28);
    display: grid;
    gap: 12px;
    max-width: 360px;
    padding: 26px;
    width: 100%;
}

.map-preview-label {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.map-preview strong {
    color: var(--navy);
    font-size: 27px;
    line-height: 1.15;
}

.map-preview-field,
.map-preview-button {
    border-radius: 7px;
    font-size: 15px;
    min-height: 48px;
    padding: 12px 14px;
}

.map-preview-field {
    border: 1px solid #9fb1c5;
    color: #64748b;
}

.map-preview-button {
    background: var(--blue);
    color: var(--white);
    font-weight: 750;
    text-align: center;
}

.featured-copy {
    padding: 42px;
}

.featured-label,
.tool-type {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.featured-label {
    color: var(--green);
    margin: 0 0 18px;
}

.tool-type {
    color: var(--blue-dark);
    margin: 0 0 7px;
}

.featured-copy h2 {
    font-size: 37px;
    letter-spacing: -.025em;
    line-height: 1.1;
    margin: 0 0 15px;
}

.featured-copy h2 a {
    color: var(--navy);
    text-decoration: none;
}

.featured-copy h2 a:hover,
.featured-copy h2 a:focus {
    color: var(--blue-dark);
}

.featured-copy > p:not(.featured-label):not(.tool-type) {
    color: var(--muted);
    font-size: 16px;
    margin: 0 0 18px;
}

.featured-copy ul {
    color: #445469;
    margin: 0 0 26px;
    padding-left: 20px;
}

.featured-copy li + li {
    margin-top: 5px;
}

.tool-button {
    background: var(--blue);
    border-radius: 7px;
    color: var(--white);
    display: inline-block;
    font-weight: 750;
    padding: 12px 18px;
    text-decoration: none;
}

.tool-button:hover,
.tool-button:focus {
    background: var(--blue-dark);
}

/* **************************************** */
/* * TOOL CARDS */
/* **************************************** */
.tools-grid-section {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 34px;
}

.tools-section-heading {
    margin-bottom: 20px;
}

.tools-section-heading h2 {
    color: var(--navy);
    font-size: 30px;
    line-height: 1.15;
    margin: 0;
}

.tools-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.tool-card-visual {
    display: block;
    height: 240px;
    position: relative;
    text-decoration: none;
}

.district-map-visual {
    background-color: #e9eef4;
    background-image: linear-gradient(30deg, transparent 0 46%, rgba(47, 70, 107, .1) 47% 48%, transparent 49%), linear-gradient(120deg, transparent 0 46%, rgba(47, 70, 107, .1) 47% 48%, transparent 49%);
    background-size: 58px 58px;
    overflow: hidden;
}

.district-map-title {
    background: rgba(47, 70, 107, .94);
    color: var(--white);
    font-size: 13px;
    font-weight: 750;
    left: 18px;
    letter-spacing: .04em;
    padding: 8px 11px;
    position: absolute;
    text-transform: uppercase;
    top: 18px;
    z-index: 2;
}

.district-map-zone {
    align-items: center;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 44% 56% 55% 45%;
    box-shadow: 0 2px 7px rgba(23, 32, 51, .22);
    color: var(--white);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    position: absolute;
}

.zone-one {
    background: #2563eb;
    height: 78px;
    left: 31%;
    top: 37%;
    transform: rotate(-12deg);
    width: 72px;
}

.zone-two {
    background: #2f7d57;
    height: 86px;
    left: 46%;
    top: 30%;
    transform: rotate(8deg);
    width: 80px;
}

.zone-three {
    background: #d97706;
    height: 83px;
    left: 38%;
    top: 60%;
    transform: rotate(5deg);
    width: 76px;
}

.zone-four {
    background: #8b5cf6;
    height: 78px;
    left: 54%;
    top: 59%;
    transform: rotate(-8deg);
    width: 72px;
}

.zone-five {
    background: #c93434;
    height: 62px;
    left: 70%;
    top: 69%;
    transform: rotate(12deg);
    width: 66px;
}

.tool-card-copy {
    padding: 24px;
}

.tool-card-copy h3 {
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.tool-card-copy h3 a {
    color: var(--navy);
    text-decoration: none;
}

.tool-card-copy h3 a:hover,
.tool-card-copy h3 a:focus {
    color: var(--blue-dark);
}

.tool-card-copy > p:not(.tool-type),
.tool-card-copy ul {
    color: var(--muted);
    font-size: 14px;
}

.tool-card-copy > p:not(.tool-type) {
    margin: 0 0 15px;
}

.tool-card-copy ul {
    margin: 0 0 22px;
    padding-left: 20px;
}

.tool-card-copy li + li {
    margin-top: 4px;
}

/* **************************************** */
/* * RESPONSIVE LAYOUT */
/* **************************************** */
@media (max-width: 820px) {
    .featured-tool {
        grid-template-columns: minmax(0, 1fr);
    }

    .featured-visual {
        min-height: 350px;
    }

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

@media (max-width: 680px) {
    #toolsIndex {
        padding: 14px 12px 34px;
    }

    .tools-heading {
        padding: 18px 8px 26px;
    }

    .tools-heading h1 {
        font-size: 38px;
    }

    .tools-heading > p:last-child {
        font-size: 16px;
    }

    .featured-tool {
        border-radius: 8px;
    }

    .featured-visual {
        min-height: 290px;
        padding: 24px;
    }

    .map-preview {
        padding: 20px;
    }

    .featured-copy {
        padding: 26px 22px;
    }

    .featured-copy h2 {
        font-size: 30px;
    }

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

    .tools-grid-section {
        margin-top: 30px;
        padding-top: 26px;
    }

    .tools-section-heading h2 {
        font-size: 26px;
    }
}
