/* What Is My IP: page-specific layout, built on theme variables. */
.my-ip {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 20px 72px;
    color: var(--color-font);
}

.my-ip__crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--color-secondary);
    font-size: 14px;
}

.my-ip__crumb a,
.my-ip__article a {
    color: var(--color-primary-font);
    font-weight: 700;
    text-decoration: none;
}

.my-ip__crumb a:hover,
.my-ip__article a:hover {
    text-decoration: underline;
}

.my-ip__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 40px;
    align-items: start;
}

.my-ip__hero {
    padding: 6px 4px 0;
}

.my-ip__eyebrow {
    display: inline-block;
    color: var(--color-primary-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.my-ip h1 {
    margin: 9px 0 14px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.12;
}

.my-ip__hero p {
    max-width: 720px;
    margin: 0;
    color: var(--color-secondary);
    font-size: 18px;
    line-height: 1.65;
}

/* Tool */
.my-ip__tool {
    margin-top: 32px;
    padding: 30px;
    border: 1px solid var(--color-element-hover);
    border-radius: 20px;
    background: var(--color-window);
    box-shadow: var(--shadow-window);
}

.my-ip__tool-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.my-ip__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-secondary);
    font-size: 13px;
}

.my-ip__status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2eb67d;
    box-shadow: 0 0 0 4px rgba(46, 182, 125, .13);
}

.my-ip__address {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 14px 0 8px;
}

.my-ip__address-value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--color-font);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.my-ip__copy {
    display: inline-flex;
    min-width: 86px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 0;
    border-radius: 9px;
    background: var(--color-primary);
    color: var(--color-contrast);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, transform .2s ease;
}

.my-ip__copy:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}

.my-ip__copy.is-copied {
    background: #2eb67d;
}

.my-ip__note {
    margin: 0;
    color: var(--color-secondary);
    font-size: 13px;
    line-height: 1.55;
}

.my-ip__lookup-action {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-top: 20px;
    padding: 16px 0 0;
    border-top: 1px solid var(--color-element-hover);
}

.my-ip__details-button {
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid var(--color-primary-font);
    border-radius: 9px;
    background: transparent;
    color: var(--color-primary-font);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background .2s ease, color .2s ease;
}

.my-ip__details-button:hover:not(:disabled) {
    background: var(--color-primary-font);
    color: var(--color-contrast);
}

.my-ip__details-button:disabled {
    cursor: wait;
    opacity: .65;
}

.my-ip__lookup-note {
    flex: 1 1 280px;
    margin: 0;
    color: var(--color-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.my-ip__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 25px;
    overflow: hidden;
    border: 1px solid var(--color-element-hover);
    border-radius: 13px;
}

.my-ip__detail {
    min-width: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-element-hover);
}

.my-ip__detail:nth-child(odd) {
    border-right: 1px solid var(--color-element-hover);
}

.my-ip__detail:nth-last-child(-n+2) {
    border-bottom: 0;
}

/* The first four cards are available before an optional detailed lookup. */
.my-ip__detail--extended {
    display: none;
}

.my-ip__detail--extended.is-visible {
    display: block;
}

.my-ip__detail:nth-child(3),
.my-ip__detail:nth-child(4) {
    border-bottom: 0;
}

.my-ip__grid.has-details .my-ip__detail:nth-child(3),
.my-ip__grid.has-details .my-ip__detail:nth-child(4) {
    border-bottom: 1px solid var(--color-element-hover);
}

.my-ip__detail b,
.my-ip__detail span {
    display: block;
}

.my-ip__detail b {
    color: var(--color-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.my-ip__detail span {
    margin-top: 7px;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* Editorial content */
.my-ip__article {
    max-width: 860px;
    margin-top: 58px;
}

.my-ip__article h2 {
    margin: 46px 0 14px;
    font-size: clamp(25px, 3vw, 31px);
    line-height: 1.25;
}

.my-ip__article h2:first-child {
    margin-top: 0;
}

.my-ip__article h3 {
    margin: 30px 0 9px;
    font-size: 20px;
    line-height: 1.35;
}

.my-ip__article p,
.my-ip__article li {
    color: var(--color-secondary);
    line-height: 1.75;
}

.my-ip__article code {
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--color-element);
    color: var(--color-font);
    font-size: .9em;
}

.my-ip__article table {
    width: 100%;
    margin: 22px 0;
    overflow: hidden;
    border: 1px solid var(--color-element-hover);
    border-spacing: 0;
    border-radius: 13px;
}

.my-ip__article th,
.my-ip__article td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-element-hover);
    text-align: left;
}

.my-ip__article th {
    background: var(--color-element);
    color: var(--color-font);
}

.my-ip__article tr:last-child td {
    border-bottom: 0;
}

.my-ip__faq {
    margin-top: 18px;
    border-top: 1px solid var(--color-element-hover);
}

.my-ip__faq details {
    padding: 17px 0;
    border-bottom: 1px solid var(--color-element-hover);
}

.my-ip__faq summary {
    color: var(--color-font);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.45;
}

.my-ip__faq p {
    margin: 10px 0 0;
}

.my-ip__image {
    margin: 38px 0;
    overflow: hidden;
    border: 1px solid var(--color-element-hover);
    border-radius: 18px;
    background: var(--color-window);
    box-shadow: var(--shadow-window);
}

.my-ip__image img {
    display: block;
    width: 100%;
    height: auto;
}

.my-ip__image figcaption {
    padding: 12px 16px;
    color: var(--color-secondary);
    font-size: 13px;
    line-height: 1.45;
}

/* Service cards */
.my-ip__sidebar {
    position: sticky;
    top: 20px;
    display: grid;
    gap: 18px;
}

.my-ip__promo {
    display: block;
    overflow: hidden;
    border: 1px solid var(--color-element-hover);
    border-radius: 18px;
    background: var(--color-window);
    box-shadow: var(--shadow-window);
    color: var(--color-font);
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

.my-ip__promo:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}

.my-ip__promo img {
    display: block;
    width: 100%;
    height: 142px;
    object-fit: cover;
}

.my-ip__promo-body {
    display: block;
    padding: 17px 18px 19px;
}

.my-ip__promo strong,
.my-ip__promo small {
    display: block;
}

.my-ip__promo strong {
    font-size: 19px;
    line-height: 1.3;
}

.my-ip__promo small {
    margin-top: 7px;
    color: var(--color-secondary);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .my-ip__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .my-ip__sidebar {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .my-ip {
        padding: 28px 14px 54px;
    }

    .my-ip__crumb {
        margin-bottom: 23px;
    }

    .my-ip__hero p {
        font-size: 16px;
    }

    .my-ip__tool {
        margin-top: 25px;
        padding: 21px;
        border-radius: 16px;
    }

    .my-ip__tool-heading,
    .my-ip__address {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .my-ip__tool-heading {
        display: grid;
    }

    .my-ip__address {
        gap: 13px;
    }

    .my-ip__copy {
        width: 100%;
        min-height: 42px;
    }

    .my-ip__lookup-action {
        align-items: stretch;
    }

    .my-ip__details-button {
        width: 100%;
        min-height: 42px;
    }

    .my-ip__grid,
    .my-ip__sidebar {
        grid-template-columns: 1fr;
    }

    .my-ip__detail,
    .my-ip__detail:nth-child(odd),
    .my-ip__detail:nth-last-child(-n+2) {
        border-right: 0;
        border-bottom: 1px solid var(--color-element-hover);
    }

    .my-ip__detail:last-child {
        border-bottom: 0;
    }

    .my-ip__detail:nth-child(4) {
        border-bottom: 0;
    }

    .my-ip__grid.has-details .my-ip__detail:nth-child(4) {
        border-bottom: 1px solid var(--color-element-hover);
    }

    .my-ip__article {
        margin-top: 42px;
    }

    .my-ip__article h2 {
        margin-top: 36px;
        font-size: 25px;
    }

    .my-ip__article th,
    .my-ip__article td {
        padding: 11px;
        font-size: 14px;
    }

    .my-ip__image {
        margin: 30px 0;
        border-radius: 14px;
    }

    .my-ip__promo img {
        height: 164px;
    }
}
