.ai-guide-page {
    background: #fff;
    color: #20303b;
}

.ai-guide-page h1,
.ai-guide-page h2,
.ai-guide-page h3,
.ai-guide-page p {
    margin-top: 0;
}

.ai-guide-eyebrow {
    display: block;
    color: #b7192b;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.ai-guide-intro {
    padding: 42px 0 38px;
    background: #f4f7f8;
    border-bottom: 1px solid #dbe4e7;
}

.ai-guide-intro .container {
    max-width: 1140px;
}

.ai-guide-intro h1 {
    max-width: 800px;
    margin: 9px 0 12px;
    font-size: 2.4rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.ai-guide-intro p {
    max-width: 770px;
    margin-bottom: 16px;
    color: #526371;
    font-size: 1.08rem;
    line-height: 1.58;
}

.ai-guide-byline {
    color: #667782;
    font-size: .87rem;
}

.ai-guide-byline span {
    padding: 0 6px;
}

.ai-guide-search-band {
    padding: 25px 0 29px;
    background: #f8fafb;
    border-bottom: 1px solid #e1e7ea;
}

.ai-guide-search-band h2 {
    margin-bottom: 12px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.ai-guide-search {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr) auto auto;
    align-items: end;
    gap: 12px;
}

.ai-guide-field label {
    display: block;
    margin-bottom: 5px;
    color: #526371;
    font-size: .8rem;
    font-weight: 700;
}

.ai-guide-field input,
.ai-guide-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #b9c8ce;
    border-radius: 5px;
    background: #fff;
    color: #20303b;
    font: inherit;
    font-size: .94rem;
}

.ai-guide-field input:focus,
.ai-guide-field select:focus {
    outline: 2px solid #237c86;
    outline-offset: 1px;
}

.ai-guide-submit {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid #c62437;
    border-radius: 5px;
    background: #c62437;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
}

.ai-guide-submit:hover {
    background: #a9192a;
}

.ai-guide-clear {
    align-self: center;
    color: #346c75;
    font-size: .87rem;
    font-weight: 700;
    white-space: nowrap;
}

.ai-guide-results {
    padding: 42px 0 64px;
}

.ai-guide-results-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 28px;
    margin-bottom: 23px;
}

.ai-guide-results-head h2 {
    margin: 5px 0 0;
    font-size: 1.65rem;
    line-height: 1.2;
}

.ai-guide-results-head p {
    max-width: 405px;
    margin-bottom: 0;
    color: #667782;
    font-size: .84rem;
    line-height: 1.5;
}

.ai-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ai-guide-tool {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px;
    border: 1px solid #dce5e8;
    border-radius: 6px;
    background: #fff;
}

.ai-guide-tool-top {
    display: flex;
    align-items: center;
    gap: 13px;
}

.ai-guide-tool-mark {
    display: grid;
    width: 43px;
    height: 43px;
    flex: none;
    place-items: center;
    border-radius: 6px;
    background: #e7f0f0;
    color: #166775;
    font-size: 1.16rem;
    font-weight: 800;
}

.ai-guide-tool:nth-child(3n + 2) .ai-guide-tool-mark {
    background: #f9e9ec;
    color: #ad2334;
}

.ai-guide-tool:nth-child(3n) .ai-guide-tool-mark {
    background: #edf0f4;
    color: #405b70;
}

.ai-guide-tool-category {
    color: #687985;
    font-size: .75rem;
    font-weight: 700;
}

.ai-guide-tool h3 {
    margin: 2px 0 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.ai-guide-tool-summary {
    margin: 17px 0;
    color: #354753;
    font-size: .95rem;
    line-height: 1.55;
}

.ai-guide-tool-details {
    margin: 0 0 18px;
}

.ai-guide-tool-details div + div {
    margin-top: 10px;
}

.ai-guide-tool-details dt {
    color: #293d4a;
    font-size: .78rem;
    font-weight: 800;
}

.ai-guide-tool-details dd {
    margin: 3px 0 0;
    color: #64737e;
    font-size: .88rem;
    line-height: 1.5;
}

.ai-guide-tool-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e7ecee;
}

.ai-guide-tool-links a,
.ai-guide-next a,
.ai-guide-empty a {
    color: #a7192b;
    font-size: .87rem;
    font-weight: 800;
    text-decoration: none;
}

.ai-guide-tool-links a:last-child {
    color: #376e78;
}

.ai-guide-tool-links a:hover,
.ai-guide-next a:hover,
.ai-guide-empty a:hover {
    text-decoration: underline;
}

.ai-guide-empty {
    padding: 38px 0 50px;
    border-top: 1px solid #dce5e8;
}

.ai-guide-empty h3 {
    margin-bottom: 6px;
    font-size: 1.18rem;
}

.ai-guide-empty p {
    color: #667782;
}

.ai-guide-next {
    padding: 36px 0;
    border-top: 1px solid #dce5e8;
    background: #f3f6f7;
}

.ai-guide-next-grid {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    align-items: center;
    gap: 27px;
}

.ai-guide-next img {
    display: block;
    width: 124px;
    height: 155px;
    object-fit: cover;
    border-radius: 5px;
}

.ai-guide-next h2 {
    margin: 5px 0 9px;
    font-size: 1.55rem;
    line-height: 1.24;
}

.ai-guide-next p {
    max-width: 650px;
    margin-bottom: 13px;
    color: #5d6d79;
    line-height: 1.55;
}

.ai-guide-contact {
    padding: 40px 0;
    background: #e9f1f2;
}

.ai-guide-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ai-guide-contact h2 {
    margin: 5px 0 7px;
    font-size: 1.55rem;
    line-height: 1.24;
}

.ai-guide-contact p {
    max-width: 650px;
    margin-bottom: 0;
    color: #5d6d79;
    line-height: 1.55;
}

.ai-guide-contact .button {
    flex: none;
}

@media (max-width: 760px) {
    .ai-guide-intro {
        padding: 25px 0 22px;
    }

    .ai-guide-intro h1 {
        font-size: 1.85rem;
    }

    .ai-guide-intro p {
        font-size: .98rem;
    }

    .ai-guide-search-band {
        padding: 18px 0 20px;
    }

    .ai-guide-search-band h2 {
        margin-bottom: 8px;
    }

    .ai-guide-search {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .ai-guide-field label {
        margin-bottom: 3px;
    }

    .ai-guide-query,
    .ai-guide-category {
        grid-column: 1 / -1;
    }

    .ai-guide-results {
        padding: 24px 0 44px;
    }

    .ai-guide-results-head,
    .ai-guide-contact-inner {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }

    .ai-guide-results-head h2 {
        font-size: 1.42rem;
    }

    .ai-guide-results-head {
        margin-bottom: 16px;
    }

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

@media (max-width: 480px) {
    .ai-guide-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-guide-query,
    .ai-guide-category {
        grid-column: auto;
    }

    .ai-guide-clear {
        padding: 5px 0;
    }

    .ai-guide-tool {
        padding: 20px;
    }

    .ai-guide-next-grid {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 15px;
    }

    .ai-guide-next img {
        width: 85px;
        height: 110px;
    }

    .ai-guide-next h2 {
        font-size: 1.28rem;
    }

    .ai-guide-next p {
        font-size: .88rem;
    }
}
