/* =========================================
   COMPACT TOOL HEADERS
========================================= */

.http-main,
.whois-main,
.dns-main {
    padding-top: 30px;
}

.http-tool-header,
.whois-tool-header,
.dns-tool-header {
    width: 100%;
    max-width: 760px;

    margin:
        0
        auto
        22px;

    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr);

    grid-template-areas:
        "icon title"
        "icon subtitle"
        "icon intro";

    column-gap: 14px;
    row-gap: 0;

    align-items: start;

    text-align: left;
}

.http-tool-icon,
.whois-tool-icon,
.dns-tool-icon {
    grid-area: icon;

    width: 48px;
    height: 48px;

    margin: 2px 0 0;

    border:
        1px solid rgba(88,166,255,.22);

    border-radius: 14px;

    background:
        rgba(88,166,255,.08);

    color: #58a6ff;
}

.http-tool-icon svg,
.whois-tool-icon svg,
.dns-tool-icon svg {
    width: 25px;
    height: 25px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.http-title,
.whois-title,
.dns-title {
    grid-area: title;

    align-self: end;

    margin: 0;

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

    letter-spacing: .45px;
}

.http-subtitle,
.whois-subtitle,
.dns-subtitle {
    grid-area: subtitle;

    margin-top: 3px;

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

.http-intro,
.whois-intro,
.dns-intro {
    grid-area: intro;

    max-width: none;

    margin:
        7px
        0
        0;

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


/* =========================================
   IP INSIGHT — COMPACT HEADER
========================================= */

.ip-page .site-main {
    padding-top: 30px;
}

.ip-page .header {
    width: 100%;

    margin:
        0
        auto
        20px;

    display: grid;

    grid-template-columns:
        48px
        minmax(0, 1fr);

    grid-template-areas:
        "icon title"
        "icon subtitle"
        "icon intro";

    column-gap: 14px;
    row-gap: 0;

    align-items: start;

    text-align: left;
}

.ip-page .tool-icon {
    grid-area: icon;

    width: 48px;
    height: 48px;

    margin: 2px 0 0;

    border:
        1px solid rgba(88,166,255,.22);

    border-radius: 14px;

    background:
        rgba(88,166,255,.08);

    color: #58a6ff;

    filter: none;
}

.ip-page .tool-icon svg {
    width: 25px;
    height: 25px;

    display: block;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ip-page .header h1 {
    grid-area: title;

    align-self: end;

    margin: 0;

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

    letter-spacing: .45px;
}

.ip-page .tool-type {
    grid-area: subtitle;

    margin-top: 3px;

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

.ip-page .intro {
    grid-area: intro;

    max-width: none;

    margin:
        7px
        0
        0;

    padding: 0;

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


/* =========================================
   MOBILE TOOL HEADERS
========================================= */

@media (max-width: 560px) {

    .http-main,
    .whois-main,
    .dns-main,
    .ip-page .site-main {
        padding-top: 22px;
    }

    .http-tool-header,
    .whois-tool-header,
    .dns-tool-header,
    .ip-page .header {
        grid-template-columns:
            42px
            minmax(0, 1fr);

        column-gap: 11px;

        margin-bottom: 17px;
    }

    .http-tool-icon,
    .whois-tool-icon,
    .dns-tool-icon,
    .ip-page .tool-icon {
        width: 42px;
        height: 42px;

        margin-top: 1px;

        border-radius: 12px;
    }

    .http-tool-icon svg,
    .whois-tool-icon svg,
    .dns-tool-icon svg,
    .ip-page .tool-icon svg {
        width: 22px;
        height: 22px;
    }

    .http-title,
    .whois-title,
    .dns-title,
    .ip-page .header h1 {
        font-size: 21px;
        line-height: 1.1;

        letter-spacing: .25px;
    }

    .http-subtitle,
    .whois-subtitle,
    .dns-subtitle,
    .ip-page .tool-type {
        margin-top: 2px;

        font-size: 12.5px;
    }

    .http-intro,
    .whois-intro,
    .dns-intro,
    .ip-page .intro {
        margin-top: 5px;

        font-size: 12.5px;
        line-height: 1.4;
    }
}


/* =========================================
   HOME — TWO-COLUMN MOBILE TOOL GRID
========================================= */

@media (max-width: 760px) {

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

        gap: 10px;
    }

    .tool-card {
        min-height: 235px;

        padding: 14px;

        border-radius: 15px;
    }

    .tool-card__top {
        gap: 5px;
    }

    .tool-card__number {
        font-size: 11px;
        line-height: 1.2;
    }

    .tool-card__status {
        padding:
            5px
            6px;

        font-size: 8px;
        line-height: 1;

        letter-spacing: .05em;
    }

    .tool-card__icon {
        width: 38px;
        height: 38px;

        margin-top: 14px;

        border-radius: 11px;
    }

    .tool-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .tool-card__name {
        margin-top: 12px;

        font-size: 16.5px;
        line-height: 1.18;

        letter-spacing: -.15px;
    }

    .tool-card__description {
        margin-top: 8px;

        font-size: 12.5px;
        line-height: 1.42;
    }

    .tool-card__bottom {
        padding-top: 12px;
    }

    .tool-card__arrow {
        width: 29px;
        height: 29px;

        font-size: 14px;
    }
}


@media (max-width: 360px) {

    .tools-grid {
        gap: 8px;
    }

    .tool-card {
        min-height: 228px;

        padding: 12px;
    }

    .tool-card__name {
        font-size: 15.5px;
    }

    .tool-card__description {
        font-size: 12px;
        line-height: 1.38;
    }
}


/* =========================================
   COMPACT MOBILE FOOTER
========================================= */

@media (max-width: 760px) {

    .site-footer {
        margin-top: 40px;
    }

    .site-footer__main {
        grid-template-columns:
            minmax(110px, .65fr)
            minmax(0, 1.35fr);

        gap:
            24px
            18px;

        padding:
            28px
            0
            22px;

        align-items: start;
    }

    .site-footer__brand {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            minmax(125px, .75fr)
            minmax(0, 1.25fr);

        grid-template-areas:
            "eyebrow eyebrow"
            "wordmark description"
            "country description";

        column-gap: 16px;

        align-items: start;
    }

    .site-footer__eyebrow {
        grid-area: eyebrow;

        margin-bottom: 8px;

        font-size: 9px;
    }

    .site-footer__brand .promo-wordmark {
        grid-area: wordmark;

        font-size: 20px;
    }

    .site-footer__brand
    .promo-wordmark__expert {
        min-height: 32px;

        padding:
            0
            9px;

        border-radius: 7px;
    }

    .site-footer__description {
        grid-area: description;

        max-width: none;

        margin: 0;

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

    .site-footer__country {
        grid-area: country;

        margin-top: 6px;

        font-size: 10px;
    }

    .site-footer__heading {
        margin-bottom: 10px;

        font-size: 12.5px;
        line-height: 1.2;
    }

    .site-footer__links a {
        padding:
            5px
            0;

        font-size: 12px;
        line-height: 1.35;
    }

    .site-contact__link {
        min-height: 0;

        grid-template-columns:
            20px
            minmax(0, 1fr);

        gap: 7px;

        padding:
            8px
            0;
    }

    .site-contact__icon {
        width: 17px;
        height: 17px;
    }

    .site-contact__icon svg {
        width: 15px;
        height: 15px;
    }

    .site-contact__label,
    .site-contact__arrow {
        display: none;
    }

    .site-contact__value {
        font-size: 11.5px;
        line-height: 1.3;

        overflow-wrap: anywhere;
    }

    .site-footer__bottom {
        min-height: 0;

        padding:
            13px
            0;

        align-items: center;

        text-align: center;
    }

    .site-footer__bottom-inner {
        gap: 4px;
    }

    .site-footer__copyright {
        font-size: 11.5px;
    }

    .site-footer__marketing {
        font-size: 10px;
        line-height: 1.35;
    }
}


/* =========================================
   MOBILE CARDS AND FOOTER — V2
========================================= */

@media (max-width: 760px) {

    /*
       Tool card:
       number above, icon + title in one row
    */

    .tool-card {
        min-height: 0;

        display: grid;

        grid-template-columns:
            38px
            minmax(0, 1fr);

        grid-template-rows:
            auto
            auto
            1fr
            auto;

        grid-template-areas:
            "top top"
            "icon name"
            "description description"
            "bottom bottom";

        column-gap: 10px;

        padding: 13px;
    }

    .tool-card__top {
        grid-area: top;
    }

    .tool-card__icon {
        grid-area: icon;

        width: 38px;
        height: 38px;

        margin-top: 12px;
    }

    .tool-card__name {
        grid-area: name;

        align-self: center;

        margin-top: 12px;

        font-size: 16px;
        line-height: 1.18;
    }

    .tool-card__description {
        grid-area: description;

        margin-top: 10px;

        font-size: 12px;
        line-height: 1.38;
    }

    .tool-card__bottom {
        grid-area: bottom;

        padding-top: 11px;
    }


    /*
       Footer brand:
       smaller wordmark + visible gap
    */

    .site-footer__brand {
        grid-template-columns:
            145px
            minmax(0, 1fr);

        column-gap: 24px;
    }

    .site-footer__brand
    .promo-wordmark {
        gap: 5px;

        font-size: 18px;
    }

    .site-footer__brand
    .promo-wordmark__expert {
        min-height: 29px;

        padding:
            0
            7px;

        border-radius: 6px;
    }

    .site-footer__description {
        font-size: 11.5px;
        line-height: 1.45;
    }
}


@media (max-width: 430px) {

    .site-footer__brand {
        grid-template-columns:
            128px
            minmax(0, 1fr);

        column-gap: 17px;
    }

    .site-footer__brand
    .promo-wordmark {
        gap: 4px;

        font-size: 16px;
    }

    .site-footer__brand
    .promo-wordmark__expert {
        min-height: 27px;

        padding:
            0
            6px;
    }

    .site-footer__description {
        font-size: 11px;
        line-height: 1.42;
    }
}


@media (max-width: 360px) {

    .tool-card {
        padding: 11px;

        grid-template-columns:
            35px
            minmax(0, 1fr);

        column-gap: 8px;
    }

    .tool-card__icon {
        width: 35px;
        height: 35px;
    }

    .tool-card__icon svg {
        width: 19px;
        height: 19px;
    }

    .tool-card__name {
        font-size: 15px;
    }

    .tool-card__description {
        font-size: 11.5px;
        line-height: 1.36;
    }
}


/* =========================================
   MOBILE CARD TITLE ALIGNMENT — V3
========================================= */

@media (max-width: 760px) {

    .tool-card__icon,
    .tool-card__name {
        margin-top: 12px;
    }

    .tool-card__icon {
        align-self: center;
    }

    .tool-card__name {
        min-height: 38px;

        display: flex;
        align-items: center;

        font-size: 14.5px;
        line-height: 1.28;
    }
}


@media (max-width: 360px) {

    .tool-card__name {
        min-height: 51px;

        font-size: 13.5px;
        line-height: 1.25;
    }
}


/* =========================================
   MOBILE CARD FIXED TITLE BLOCK — V4
========================================= */

@media (max-width: 760px) {

    .tool-card {
        grid-template-rows:
            auto
            72px
            minmax(0, 1fr)
            auto;
    }

    .tool-card__icon {
        margin-top: 0;

        align-self: center;
    }

    .tool-card__name {
        min-height: 0;

        margin-top: 0;

        align-self: center;

        display: flex;
        align-items: center;

        font-size: 15px;
        line-height: 1.25;
    }

    .tool-card__description {
        margin-top: 0;

        padding-top: 12px;

        border-top:
            1px solid rgba(255,255,255,.085);
    }
}


@media (max-width: 360px) {

    .tool-card {
        grid-template-rows:
            auto
            68px
            minmax(0, 1fr)
            auto;
    }

    .tool-card__name {
        min-height: 0;

        font-size: 13.5px;
        line-height: 1.25;
    }

    .tool-card__description {
        padding-top: 10px;
    }
}


/* =========================================
   DESKTOP HOME — COMPACT 4 × 2 — V5
========================================= */

@media (min-width: 1051px) {

    .home-hero {
        padding:
            24px
            0
            16px;
    }

    .home-brand {
        display: none;
    }

    .home-title {
        max-width: 980px;

        font-size: 34px;
        line-height: 1.1;

        letter-spacing: -.7px;
    }

    .home-description {
        max-width: 1000px;

        margin-top: 10px;

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

    .home-tools {
        padding:
            0
            0
            44px;
    }

    .home-tools__heading {
        margin-bottom: 12px;

        font-size: 16px;
        line-height: 1.2;
    }

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

        gap: 12px;
    }

    .tool-card {
        box-sizing: border-box;

        height: 188px;
        min-height: 188px;

        padding:
            13px
            14px;

        display: grid;

        grid-template-columns:
            38px
            minmax(0, 1fr);

        grid-template-rows:
            20px
            51px
            minmax(0, 1fr);

        grid-template-areas:
            "top top"
            "icon name"
            "description description";

        column-gap: 10px;
    }

    .tool-card__top {
        grid-area: top;
    }

    .tool-card__number {
        font-size: 11px;
        line-height: 1;
    }

    .tool-card__status {
        padding:
            4px
            7px;

        font-size: 8px;
        line-height: 1;
    }

    .tool-card__icon {
        grid-area: icon;

        width: 36px;
        height: 36px;

        margin: 0;

        align-self: center;

        border-radius: 10px;
    }

    .tool-card__icon svg {
        width: 19px;
        height: 19px;
    }

    .tool-card__name {
        grid-area: name;

        min-width: 0;

        margin: 0;

        align-self: center;

        color: #fff;

        font-size: 17px;
        line-height: 1.15;

        letter-spacing: -.2px;
    }

    .tool-card__description {
        grid-area: description;

        margin: 0;

        padding:
            10px
            34px
            0
            0;

        border-top:
            1px solid rgba(255,255,255,.085);

        color: #9aabc0;

        font-size: 13px;
        line-height: 1.4;
    }

    .tool-card__bottom {
        position: absolute;

        right: 13px;
        bottom: 12px;

        margin: 0;
        padding: 0;
    }

    .tool-card__arrow {
        width: 26px;
        height: 26px;

        font-size: 13px;
    }

}


/* =========================================
   TOOL PAGE ICONS — LARGE DESKTOP — V6
========================================= */

@media (min-width: 761px) {

    .ip-page .header,
    .http-tool-header,
    .whois-tool-header,
    .dns-tool-header {
        grid-template-columns:
            92px
            minmax(0, 1fr);

        column-gap: 18px;
    }

    .ip-page .tool-icon,
    .http-tool-icon,
    .whois-tool-icon,
    .dns-tool-icon {
        width: 92px;
        height: 92px;

        margin: 0;

        align-self: start;

        border-radius: 20px;
    }

    .ip-page .tool-icon svg,
    .http-tool-icon svg,
    .whois-tool-icon svg,
    .dns-tool-icon svg {
        width: 42px;
        height: 42px;
    }

}
