/*
Theme Name:     WPlaybook ALL100 REBORN
Theme URI:      https://theme.wplaybook.com/
Template:       kadence
Author:         Issac Lee
Author URI:     https://wplaybook.com/about/
Description:    Featured starter theme for bloggers made by wplaybook.com
Version:        1.38
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/
/* =========================================
   블로그 글 제목 커스텀 스타일
   ========================================= */


/* USLPB형 포스트 헤딩 서식 + ATL Playbook 로고 색상 */
.single-post .entry-content {
    --atl-heading-text: var(--global-palette1, #0B1F33);
    --atl-heading-accent: var(--global-palette2, #F2B544);
    --atl-heading-rule: rgba(242, 181, 68, 0.55);
}

.single-post .entry-content :is(h2, h3, h4) {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: -0.025em;
    word-break: keep-all;
    overflow-wrap: anywhere;
    scroll-margin-top: 130px;
}

/* H2: 네이비 제목 + 골드 세로 포인트 */
.single-post .entry-content h2 {
    position: relative;
    margin-top: 3.2rem;
    margin-bottom: 1.1rem;
    padding-left: 18px;
    color: var(--atl-heading-text);
}

.single-post .entry-content h2::before {
    content: "";
    position: absolute;
    top: 0.18em;
    bottom: 0.18em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--atl-heading-accent);
}

/* H3: 네이비 제목 + 골드 구분선 */
.single-post .entry-content h3 {
    margin-top: 2.4rem;
    margin-bottom: 0.9rem;
    padding-bottom: 8px;
    color: var(--atl-heading-text);
    border-bottom: 1px solid var(--atl-heading-rule);
}

/* H4: 네이비 제목 + 골드 원형 불릿 */
.single-post .entry-content h4 {
    margin-top: 1.8rem;
    margin-bottom: 0.65rem;
    color: var(--atl-heading-text);
}

.single-post .entry-content h4::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--atl-heading-accent);
    vertical-align: 0.12em;
}

@media (max-width: 767px) {
    .single-post .entry-content :is(h2, h3, h4) {
        scroll-margin-top: 100px;
    }

    .single-post .entry-content h2 {
        margin-top: 3rem;
        padding-left: 15px;
    }
}

/* =========================================
   Single-post header
   Adapted from the ALL100 editorial layout for ATL Playbook.
   ========================================= */
.single-post .entry-hero .kadence-breadcrumbs {
    display: none;
}

.single-post .entry-header.post-title {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    grid-template-rows: 52px auto auto;
    column-gap: 16px;
    align-items: center;
    text-align: center;
}

.single-post .entry-header.post-title::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: stretch;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    z-index: 0;
}

.single-post .entry-header.post-title .entry-taxonomies {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    z-index: 1;
}

.single-post .entry-header.post-title .entry-taxonomies a {
    color: var(--global-palette1, #0b1f33);
    font-weight: 800;
    text-decoration: none;
}

.single-post .entry-header.post-title .entry-meta {
    display: contents;
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.single-post .entry-header.post-title .entry-meta > *::after {
    display: none !important;
}

.single-post .entry-header.post-title .entry-meta .posted-by {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-left: 16px;
    border-left: 1px solid #cbd5e1;
    color: #344054;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    z-index: 1;
}

.single-post .entry-header.post-title .entry-meta .posted-by .meta-label,
.single-post .entry-header.post-title .entry-meta .posted-on {
    display: none;
}

.single-post .entry-header.post-title .entry-meta .updated-on {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    margin: 1.1rem 0 1.6rem;
    color: #667085;
    font-size: 14px;
    line-height: 1.4;
}

.single-post .entry-header.post-title .entry-title {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 920px;
    margin: 30px auto 0;
    color: var(--global-palette1, #0b1f33);
    text-align: center;
    line-height: 1.24;
    word-break: normal;
    overflow-wrap: anywhere;
}

@media screen and (min-width: 1025px) {
    .single-post .entry-header.post-title {
        margin-top: 22px;
    }
}

@media screen and (max-width: 767px) {
    .single-post .entry-header.post-title {
        grid-template-columns: auto auto minmax(0, 1fr);
        grid-template-rows: 44px auto auto;
        column-gap: 10px;
    }

    .single-post .entry-header.post-title .entry-taxonomies {
        padding-left: 12px;
        font-size: 13px;
    }

    .single-post .entry-header.post-title .entry-meta .posted-by {
        padding-left: 10px;
        font-size: 13px;
    }

    .single-post .entry-header.post-title .entry-meta .updated-on {
        margin: 1rem 0 1.45rem;
        font-size: 13px;
    }

    .single-post .entry-header.post-title .entry-title {
        margin-top: 24px;
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1.18;
    }
}

/* =========================================
   Editorial sidebar cards
   ========================================= */
#secondary .atl-sidebar-card {
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 2rem;
    padding: 1.25rem;
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(11, 31, 51, 0.06);
}

#secondary .atl-sidebar-card,
#secondary .atl-sidebar-card * {
    box-sizing: border-box;
}

.atl-sidebar-card__eyebrow {
    margin: 0 0 1rem;
    color: var(--global-palette1, #0b1f33);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.atl-author-card__intro {
    display: flex;
    gap: 14px;
    align-items: center;
}

.atl-author-card__image {
    display: block;
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    object-fit: cover;
    border: 3px solid #f5f7fa;
    border-radius: 50%;
}

.atl-author-card__name {
    margin: 0 0 4px;
    color: var(--global-palette1, #0b1f33);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}

.atl-author-card__role {
    margin: 0;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.45;
}

.atl-author-card__bio {
    margin: 1rem 0 0;
    color: #344054;
    font-size: 0.93rem;
    line-height: 1.65;
}

.atl-sidebar-card__button {
    display: block;
    width: 100%;
    margin-top: 1.15rem;
    padding: 0.72rem 1rem;
    color: #0b1f33;
    background: var(--global-palette2, #f2b544);
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.atl-sidebar-card__button:hover,
.atl-sidebar-card__button:focus-visible {
    color: #ffffff;
    background: var(--global-palette1, #0b1f33);
    transform: translateY(-1px);
}

.atl-hot-news-widget__title {
    margin: 0 0 1rem;
    color: var(--global-palette1, #0b1f33);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.atl-hot-news-widget__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.atl-hot-news-widget__item {
    margin: 0;
    padding: 0;
}

.atl-hot-news-widget__item + .atl-hot-news-widget__item {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e8edf3;
}

.atl-hot-news-widget__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.atl-hot-news-widget__thumb {
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    overflow: hidden;
    background: #f5f7fa;
    border-radius: 8px;
}

.atl-hot-news-widget__item:first-child .atl-hot-news-widget__thumb,
.atl-hot-news-widget__item:hover .atl-hot-news-widget__thumb,
.atl-hot-news-widget__link:focus-visible .atl-hot-news-widget__thumb {
    display: block;
}

.atl-hot-news-widget__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atl-hot-news-widget__row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.atl-hot-news-widget__num {
    color: var(--global-palette2, #f2b544);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.05;
}

.atl-hot-news-widget__post-title {
    display: -webkit-box;
    overflow: hidden;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.atl-hot-news-widget__date {
    display: block;
    margin-top: 7px;
    color: #7a8699;
    font-size: 0.75rem;
    line-height: 1.2;
}

.atl-category-card__title {
    margin: 0 0 0.9rem;
    color: var(--global-palette1, #0b1f33);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
}

.atl-category-card__list,
.atl-category-card__children {
    margin: 0;
    padding: 0;
    list-style: none;
}

.atl-category-card__item + .atl-category-card__item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8edf3;
}

.atl-category-card__link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 0.45rem 0;
    color: #172033;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.atl-category-card__link::before {
    content: "";
    grid-column: 1;
    grid-row: 1;
    width: 5px;
    height: 5px;
    margin-right: 9px;
    background: var(--global-palette2, #f2b544);
    border-radius: 999px;
}

.atl-category-card__label {
    grid-column: 1;
    grid-row: 1;
    padding-left: 14px;
}

.atl-category-card__arrow {
    grid-column: 2;
    grid-row: 1;
    color: #98a2b3;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.atl-category-card__link:hover,
.atl-category-card__link:focus-visible {
    color: var(--global-palette1, #0b1f33);
}

.atl-category-card__link:hover .atl-category-card__arrow,
.atl-category-card__link:focus-visible .atl-category-card__arrow {
    color: var(--global-palette2, #f2b544);
    transform: translateX(3px);
}

.atl-category-card__children {
    display: grid;
    gap: 5px;
    margin: 0.15rem 0 0.35rem 1.2rem;
}

.atl-category-card__children a {
    color: #667085;
    font-size: 0.87rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
}

.atl-category-card__children a:hover,
.atl-category-card__children a:focus-visible {
    color: var(--global-palette1, #0b1f33);
    text-decoration: underline;
    text-decoration-color: var(--global-palette2, #f2b544);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media screen and (min-width: 1025px) {
    #secondary .sidebar-inner-wrap {
        display: contents;
    }

    #secondary #block-35 {
        position: -webkit-sticky;
        position: sticky;
        top: 24px;
        z-index: 2;
        align-self: start;
    }

    .admin-bar #secondary #block-35 {
        top: 56px;
    }
}

@media screen and (max-width: 767px) {
    #secondary .atl-sidebar-card {
        padding: 1rem;
    }
}
/* 형광펜 스타일 (투명한 노란색) */
u,
span[style*="text-decoration: underline"] {
    text-decoration: none !important;
    padding: 2px 5px;
    
    /* rgba(R, G, B, 투명도) */
    /* 0.5 숫자를 조절하세요 (0.1은 아주 투명, 1.0은 불투명) */
    background: linear-gradient(to top, rgba(255, 241, 54, 0.7) 30%, transparent 40%);
    
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone; 
}

/* Affiliate disclosure under TOC + CTA glow button */
.single-post .entry-content .atl-affiliate-disclosure {
    margin: 0.55rem 0 1rem;
    padding: 0.65rem 0.85rem;
    border-left: 3px solid var(--global-palette2, #f2b544);
    border-radius: 8px;
    background: color-mix(in srgb, var(--global-palette2, #f2b544) 8%, #ffffff);
    color: #1f2937;
    font-size: 0.86rem;
    line-height: 1.52;
}

.single-post .entry-content .atl-affiliate-disclosure p {
    margin: 0;
}

.single-post .entry-content .atl-affiliate-disclosure strong {
    color: #0b1f33;
}

.single-post .entry-content .wp-block-button,
.single-post .entry-content .wp-block-buttons {
    width: auto;
}

.single-post .entry-content .wp-block-buttons {
    justify-content: flex-start;
    gap: 0.75rem;
}

.single-post .entry-content .wp-block-button.has-custom-width.wp-block-button__width-100,
.single-post .entry-content .wp-block-button.has-custom-width.wp-block-button__width-100 .wp-block-button__link {
    width: auto !important;
}

.single-post .entry-content .wp-block-button__link {
    width: auto !important;
    border-radius: 9999px !important;
    min-width: 220px;
    padding: 0.82rem 1.4rem !important;
    color: #ffffff !important;
    background: linear-gradient(125deg, #0f3058 0%, #1f4c8a 45%, #f2b544 100%) !important;
    border: 1px solid rgba(242, 181, 68, 0.4);
    box-shadow: 0 10px 24px rgba(8, 37, 75, 0.25), 0 0 16px rgba(242, 181, 68, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.single-post .entry-content .wp-block-button__link:hover,
.single-post .entry-content .wp-block-button__link:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(8, 37, 75, 0.3), 0 0 18px rgba(242, 181, 68, 0.55);
}

/* ATL Related Stories auto-ad gap fix
 * Auto Ads can inject a 250px placement into a hidden Splide clone. Splide then
 * stretches every related-post card to that height, leaving a large blank area.
 * There are no intentional ad slots inside this carousel, so suppress only
 * Google's auto-placed wrapper within this component.
 */
.single-post .entry-related-carousel .google-auto-placed {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}