.aftercare-page {
    color: #d7e0e1;
}

.aftercare-page .container {
    max-width: 1180px;
}

.aftercare-intro {
    margin-top: 1.35rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.aftercare-intro h2,
.aftercare-section h2,
.aftercare-panel h3,
.aftercare-steps h3 {
    color: #fff;
}

.aftercare-intro .sp-lead:last-child,
.aftercare-panel > :last-child,
.aftercare-card > :last-child {
    margin-bottom: 0;
}

.aftercare-section {
    padding-top: clamp(2.25rem, 5vw, 4rem);
}

.aftercare-section .sp-section-heading {
    margin-bottom: 1rem;
}

.aftercare-steps {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: aftercare-step;
}

.aftercare-steps li {
    position: relative;
    min-height: 86px;
    padding: 1rem 1rem 1rem 4rem;
    border: 1px solid rgba(144, 181, 255, .35);
    border-radius: .2rem;
    background: rgba(39, 39, 39, .96);
    counter-increment: aftercare-step;
}

.aftercare-steps li::before {
    content: counter(aftercare-step);
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    place-items: center;
    border: 1px solid #90b5ff;
    border-radius: .15rem;
    color: #90b5ff;
    font-weight: 700;
}

.aftercare-steps h3 {
    margin-bottom: .35rem;
    font-size: 1.08rem;
}

.aftercare-steps p,
.aftercare-panel p,
.aftercare-panel ul {
    margin-bottom: 0;
}

.aftercare-do-dont {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.aftercare-panel,
.aftercare-card {
    padding: 1.05rem;
    border: 1px solid rgba(144, 181, 255, .35);
    border-radius: .2rem;
    background: rgba(39, 39, 39, .96);
}

.aftercare-panel li + li {
    margin-top: .45rem;
}

.aftercare-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.aftercare-card h3 {
    margin-bottom: .45rem;
    color: #fff;
    font-size: 1.08rem;
}

.aftercare-danger {
    margin-top: clamp(2.25rem, 5vw, 4rem);
    padding: 1.2rem;
}

.aftercare-danger h2 {
    font-size: clamp(1.25rem, 1.05rem + .7vw, 1.85rem);
}

.aftercare-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(144, 181, 255, .35);
    border-radius: .2rem;
    background: rgba(25, 25, 25, .94);
}

.aftercare-table {
    width: 100%;
    min-width: 430px;
    margin: 0;
    border-collapse: collapse;
}

.aftercare-table th,
.aftercare-table td {
    padding: .65rem .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #d7e0e1;
    text-align: left;
}

.aftercare-table th {
    color: #fff;
    background: rgba(144, 181, 255, .1);
}

.aftercare-table tbody tr:last-child td {
    border-bottom: 0;
}

.aftercare-callout {
    padding: 1rem;
    border-left: 3px solid #90b5ff;
    background: rgba(39, 39, 39, .9);
}

.aftercare-callout strong {
    color: #fff;
}

/* Compact PDF selector used by tattoo and piercing aftercare pages. */
.aftercare-download-menu {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
    margin: .8rem 0 0;
    padding: .35rem .45rem .35rem .65rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .18rem;
    background: rgba(28, 28, 28, .82);
}

.aftercare-download-label {
    color: #cbd4d6;
    font-size: .86rem;
    white-space: nowrap;
}

.aftercare-download-dropdown {
    position: relative;
    min-width: 0;
}

.aftercare-download-dropdown summary {
    position: relative;
    display: block;
    min-width: 145px;
    padding: .38rem 1.9rem .38rem .65rem;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: .15rem;
    color: #f5f7f8;
    background: transparent;
    cursor: pointer;
    font-size: .86rem;
    line-height: 1.2;
    list-style: none;
    user-select: none;
}

.aftercare-download-dropdown summary::-webkit-details-marker {
    display: none;
}

.aftercare-download-dropdown summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: .65rem;
    width: .45rem;
    height: .45rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .15s ease;
}

.aftercare-download-dropdown[open] summary::after {
    transform: translateY(-35%) rotate(225deg);
}

.aftercare-download-options {
    position: absolute;
    z-index: 1080;
    top: calc(100% + .3rem);
    right: 0;
    display: grid;
    min-width: 235px;
    max-width: min(340px, calc(100vw - 2rem));
    max-height: 65vh;
    padding: .3rem;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: .18rem;
    background: #202020;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.aftercare-download-options a {
    display: block;
    padding: .48rem .58rem;
    border-radius: .12rem;
    color: #e6edef;
    font-size: .86rem;
    line-height: 1.25;
    text-decoration: none;
}

.aftercare-download-options a:hover,
.aftercare-download-options a:focus {
    color: #fff;
    background: rgba(144, 181, 255, .18);
}

.aftercare-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .9rem;
}

.aftercare-quick-links a {
    color: #cbd8ff;
    font-size: .92rem;
    text-decoration: underline;
    text-decoration-color: rgba(203, 216, 255, .38);
    text-underline-offset: .2rem;
}

@media (max-width: 700px) {
    .aftercare-do-dont,
    .aftercare-card-grid {
        grid-template-columns: 1fr;
    }

    .aftercare-steps li {
        padding-left: 3.65rem;
    }
}

@media (max-width: 575px) {
    .aftercare-intro {
        margin-top: .75rem;
        padding: 1rem;
    }

    .aftercare-section {
        padding-top: 2rem;
    }

    .aftercare-download-menu {
        display: flex;
        width: fit-content;
        max-width: 100%;
    }

    .aftercare-download-dropdown {
        flex: 1 1 auto;
    }

    .aftercare-download-dropdown summary {
        min-width: 135px;
    }

    .aftercare-download-options {
        right: auto;
        left: 0;
        max-width: min(300px, calc(100vw - 2rem));
    }
}

.aftercare-reference {
    padding: .8rem 1rem;
    border: 1px solid rgba(144, 181, 255, .3);
    border-radius: .2rem;
    background: rgba(30, 30, 30, .86);
}

.aftercare-reference summary {
    color: #dbe5ff;
    cursor: pointer;
    font-weight: 600;
}
