.bbiseo-auto-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.bbiseo-auto-link:hover {
    color: #1d4ed8;
}

.bbiseo-next-read {
    margin: 28px 0;
    padding: 0;
}

.bbiseo-next-read-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    border-radius: 16px;
    padding: 17px 20px;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
    border: 1px solid #bfdbfe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.bbiseo-next-read-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .11);
}

.bbiseo-next-read-kicker {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 800;
}

.bbiseo-next-read-title {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
    color: #242424;
}

.bbiseo-related-box {
    margin: 36px 0;
    padding: 22px;
    border-radius: 20px;
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    clear: both;
}

.bbiseo-related-box-end {
    margin-top: 42px;
    background: #ffffff;
}

.bbiseo-related-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
}

.bbiseo-related-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    font-size: 19px;
}

.bbiseo-related-title {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
    color: #202020;
}

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

.bbiseo-related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: inherit;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bbiseo-related-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .09);
}

.bbiseo-related-thumb {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    overflow: hidden;
    border-radius: 14px;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbiseo-related-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbiseo-related-placeholder {
    font-size: 30px;
}

.bbiseo-related-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bbiseo-related-card-title {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    color: #242424;
}

@media (max-width: 768px) {
    .bbiseo-related-box {
        margin: 30px 0;
        padding: 16px;
        border-radius: 18px;
    }

    .bbiseo-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bbiseo-related-title {
        font-size: 18px;
    }

    .bbiseo-related-thumb {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        border-radius: 12px;
    }

    .bbiseo-related-card-title,
    .bbiseo-next-read-title {
        font-size: 14px;
    }

    .bbiseo-next-read-link {
        padding: 15px 16px;
        border-radius: 15px;
    }
}

 .bbiseo-toc {
    margin: 26px 0 30px;
    padding: 0;
    clear: both;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bbiseo-toc,
.bbiseo-toc * {
    box-sizing: border-box;
}

.bbiseo-toc details {
    width: 100%;
    max-width: 100%;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    box-shadow: 0 8px 24px rgba(79, 52, 0, .06);
    overflow: hidden;
}

.bbiseo-toc summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 20px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 900;
    color: #202020;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
}

.bbiseo-toc summary::-webkit-details-marker {
    display: none;
}

.bbiseo-toc summary:before {
    content: "☰";
    width: 31px;
    height: 31px;
    min-width: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #7a5200;
    font-size: 16px;
}

.bbiseo-toc-list,
.bbiseo-toc-sublist {
    list-style: none !important;
}

.bbiseo-toc-list {
    margin: 0 !important;
    padding: 0 18px 18px !important;
    counter-reset: bbiseo-toc-h2;
}

.bbiseo-toc-list > .bbiseo-toc-item {
    margin: 0 0 8px !important;
    padding: 0 !important;
}

.bbiseo-toc-list-main > .bbiseo-toc-level-2 {
    counter-increment: bbiseo-toc-h2;
}

.bbiseo-toc-list-main > .bbiseo-toc-level-2 > a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    padding: 4px 0;
    color: #2b2b2b;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bbiseo-toc-list-main > .bbiseo-toc-level-2 > a:before {
    content: counter(bbiseo-toc-h2) ".";
    color: #2563eb;
    font-weight: 900;
    text-align: right;
    line-height: 1.35;
}

.bbiseo-toc-sublist {
    margin: 3px 0 8px 38px !important;
    padding: 0 0 0 12px !important;
    border-left: 2px solid #bfdbfe;
}

.bbiseo-toc-sublist > .bbiseo-toc-item {
    margin: 0 !important;
    padding: 0 !important;
}

.bbiseo-toc-sublist > .bbiseo-toc-level-3 > a {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    width: 100%;
    padding: 4px 0;
    color: #4f6f9d;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bbiseo-toc-sublist > .bbiseo-toc-level-3 > a:before {
    content: "•";
    color: #2563eb;
    font-weight: 900;
    line-height: 1.35;
}

.bbiseo-toc a:hover {
    color: #2563eb;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .bbiseo-toc {
        margin: 20px 0 24px;
    }

    .bbiseo-toc details {
        border-radius: 16px;
    }

    .bbiseo-toc summary {
        padding: 14px 14px;
        font-size: 17px;
    }

    .bbiseo-toc summary:before {
        width: 29px;
        height: 29px;
        min-width: 29px;
        font-size: 15px;
    }

    .bbiseo-toc-list {
        padding: 0 13px 14px !important;
    }

    .bbiseo-toc-list-main > .bbiseo-toc-level-2 > a {
        grid-template-columns: 25px minmax(0, 1fr);
        gap: 7px;
        font-size: 15px;
        line-height: 1.38;
    }

    .bbiseo-toc-sublist {
        margin-left: 30px !important;
        padding-left: 10px !important;
    }

    .bbiseo-toc-sublist > .bbiseo-toc-level-3 > a {
        grid-template-columns: 10px minmax(0, 1fr);
        gap: 6px;
        font-size: 13.5px;
        line-height: 1.38;
    }
}

.bbiseo-tools-hub {
    margin: 34px 0;
    padding: 24px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    clear: both;
}

.bbiseo-tools-top {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dbeafe;
}

.bbiseo-tools-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #2563eb;
    font-weight: 900;
}

.bbiseo-tools-top h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    color: #202020;
}

.bbiseo-tools-top p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

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

.bbiseo-tool-card {
    display: grid;
    grid-template-columns: 46px 1fr 22px;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    color: inherit;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bbiseo-tool-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .09);
}

.bbiseo-tool-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #dbeafe;
    font-size: 22px;
}

.bbiseo-tool-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bbiseo-tool-body strong {
    font-size: 17px;
    line-height: 1.25;
    color: #202020;
    font-weight: 900;
}

.bbiseo-tool-body em {
    font-style: normal;
    color: #475569;
    line-height: 1.45;
    font-size: 14px;
}

.bbiseo-tool-arrow {
    font-size: 20px;
    color: #2563eb;
    font-weight: 900;
}

.bbiseo-tool-sections {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.bbiseo-tool-section {
    scroll-margin-top: 90px;
    padding: 15px 16px;
    border-radius: 16px;
    background: #eef4ff;
    border: 1px solid #dbeafe;
}

.bbiseo-tool-section h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
    color: #202020;
}

.bbiseo-tool-section p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .bbiseo-tools-hub {
        margin: 30px 0;
        padding: 16px;
        border-radius: 18px;
    }

    .bbiseo-tools-top h2 {
        font-size: 24px;
    }

    .bbiseo-tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bbiseo-tool-card {
        grid-template-columns: 42px 1fr 18px;
        padding: 13px;
        border-radius: 16px;
    }

    .bbiseo-tool-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .bbiseo-tool-body strong {
        font-size: 16px;
    }

    .bbiseo-tool-body em {
        font-size: 13px;
    }
}
