/*
 * GSMUnlockUSA Unlock Instructions V111
 * Topic-first page layout.
 *
 * This page is intentionally NOT a generic shared-sidebar page.
 * Unlock instruction topics are the primary navigation for this workflow.
 */

/* Keep the instruction area visually above the secondary service search. */
.gsm-unlock-instructions-v111 {
    margin-bottom: 14px;
}

/* ---------------- Cards ---------------- */

.gsm-instruction-topics-card,
.gsm-instruction-content-card {
    width: 100%;
    border: 1px solid #dfe7ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 67, 94, .05);
    box-sizing: border-box;
}

.gsm-instruction-card-header {
    box-sizing: border-box;
    border-bottom: 1px solid #e4ebf0;
    background: #f8fafc;
}

.gsm-instruction-topics-header {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 10px 12px;
}

.gsm-instruction-header-icon {
    flex: 0 0 auto;
    margin-right: 10px;
    color: #167fba;
    font-size: 17px;
}

.gsm-instruction-header-copy {
    min-width: 0;
}

.gsm-instruction-header-title {
    color: #214e6c;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.gsm-instruction-header-subtitle {
    margin-top: 1px;
    color: #7a8e9b;
    font-size: 11px;
    line-height: 15px;
}

/* ---------------- Topic navigation ---------------- */

.gsm-instruction-topic-scroll {
    max-height: 560px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gsm-instruction-topic-list {
    display: block;
    width: 100%;
}

.gsm-instruction-topic-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 7px 30px 7px 13px;
    border-bottom: 1px solid #edf1f4;
    background: #fff;
    color: #47677c !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 17px;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background-color .14s ease, color .14s ease;
}

.gsm-instruction-topic-item:last-child {
    border-bottom: 0;
}

.gsm-instruction-topic-item:hover,
.gsm-instruction-topic-item:focus {
    background: #f5f9fc;
    color: #0c71ab !important;
    outline: none;
}

.gsm-instruction-topic-marker {
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin-right: 9px;
    border-radius: 50%;
    background: #b8c7d1;
}

.gsm-instruction-topic-text {
    min-width: 0;
}

.gsm-instruction-topic-active {
    background: #eef7fc !important;
    color: #075f98 !important;
    font-weight: 600;
}

.gsm-instruction-topic-active .gsm-instruction-topic-marker {
    width: 6px;
    height: 6px;
    background: #1595d3;
}

.gsm-instruction-topic-current-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    margin-top: -6px;
    color: #1595d3;
    font-size: 10px;
}

.gsm-instruction-topic-empty {
    padding: 14px;
    color: #758996;
    font-size: 12px;
}

/* ---------------- Instruction content ---------------- */

.gsm-instruction-article-header {
    padding: 12px 15px 11px;
}

.gsm-instruction-article-eyebrow {
    margin-bottom: 2px;
    color: #748a99;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: .25px;
}

.gsm-instruction-article-title {
    margin: 0 !important;
    padding: 0 !important;
    color: #174f77;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 22px !important;
}

.gsm-instruction-article-body {
    padding: 14px 16px 16px;
    box-sizing: border-box;
}

.gsm-instruction-article-content {
    color: #3f596a;
    font-size: 12.5px;
    line-height: 19px;
    overflow-wrap: break-word;
}

.gsm-instruction-article-content p {
    margin-top: 0;
    margin-bottom: 10px;
}

.gsm-instruction-article-content img {
    max-width: 100% !important;
    height: auto !important;
}

.gsm-instruction-article-content table {
    max-width: 100% !important;
}

.gsm-instruction-article-content iframe,
.gsm-instruction-article-content video {
    max-width: 100% !important;
}

/* Desktop: topic list stays available while reading a long instruction. */
@media (min-width: 768px) {
    .gsm-instruction-topics-card {
        position: sticky;
        top: 8px;
    }

    .gsm-instruction-topics-column {
        padding-right: 6px;
    }

    .gsm-instruction-content-column {
        padding-left: 6px;
    }
}

/* ---------------- Secondary service tools ---------------- */

.gsm-instruction-services-secondary {
    clear: both;
    margin-top: 6px;
    margin-bottom: 10px;
    padding-top: 12px;
    border-top: 1px solid #e4ebf0;
}

.gsm-instruction-services-heading {
    margin-bottom: 8px;
}

.gsm-instruction-services-title {
    color: #31566f;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 17px;
}

.gsm-instruction-services-subtitle {
    margin-top: 1px;
    color: #8193a0;
    font-size: 11px;
    line-height: 15px;
}

.gsm-instruction-view-all {
    margin-top: 7px;
    margin-bottom: 7px;
}

.gsm-instruction-view-all a {
    color: #0878b5 !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.gsm-instruction-view-all a:hover {
    text-decoration: underline !important;
}

/* ---------------- Mobile ---------------- */

@media (max-width: 767px) {
    .gsm-unlock-instructions-v111 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .gsm-instruction-topics-column,
    .gsm-instruction-content-column {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .gsm-instruction-topics-card {
        margin-bottom: 10px;
    }

    /* Topics are intentionally FIRST on this page. Keep them usable, not huge. */
    .gsm-instruction-topic-scroll {
        max-height: 285px;
    }

    .gsm-instruction-topic-item {
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 12px;
        line-height: 17px;
    }

    .gsm-instruction-article-header {
        padding: 10px 12px 9px;
    }

    .gsm-instruction-article-title {
        font-size: 15px !important;
        line-height: 20px !important;
    }

    .gsm-instruction-article-body {
        padding: 12px;
    }

    .gsm-instruction-article-content {
        font-size: 12px;
        line-height: 18px;
    }

    .gsm-instruction-services-secondary {
        margin-left: 5px;
        margin-right: 5px;
        padding-top: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gsm-instruction-topic-item {
        transition: none !important;
    }
}
