/* ==================================================
   어른의 국어 - Single Vocabulary
   GeneratePress Child Theme
   ================================================== */

/* ==================================================
   1. 단일 어휘 글
   ================================================== */


/* ---------- 단일 글 기본 ---------- */

.single-post .featured-image,
.single-post .page-header-image-single {
    display: none;
}


/* 글 본문 읽기 폭 */

.single-post .inside-article {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}


/* 어른의 국어 본문 */

.grownup-word {
    --gw-green: #314a3b;
    --gw-green-light: #516b5b;
    --gw-paper: #f7f3e8;
    --gw-paper-light: #fbfaf6;
    --gw-line: #ded8ca;
    --gw-text-soft: #65645f;

    font-size: 18px;
    line-height: 1.85;
    word-break: keep-all;
    overflow-wrap: break-word;
}


/* 기본 문단 */

.grownup-word p {
    margin: 0 0 1.35em;
}


/* 소제목 */

.grownup-word h2 {
    margin: 2.5em 0 0.8em;
    font-size: 1.65em;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.035em;
}


/* 첫 문단 */

.gw-intro {
    font-size: 1.08em;
    line-height: 1.9;
}



/* ---------- 핵심 뜻 ---------- */

.gw-definition {
    margin: 30px 0 38px;
    padding: 22px 26px;
    background: var(--gw-paper);
    border-left: 4px solid var(--gw-green);
    border-radius: 0 8px 8px 0;
}

.gw-definition-title {
    display: block;
    margin-bottom: 4px;
    font-size: 1.16em;
    font-weight: 700;
}



/* ---------- 한자 카드 ---------- */

.gw-hanja-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 28px;
}

.gw-hanja-card {
    padding: 24px;
    background: #fffdf8;
    border: 1px solid var(--gw-line);
    border-radius: 10px;
}

.gw-hanja-char {
    margin-bottom: 7px;
    color: var(--gw-green);
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.15;
}

.gw-hanja-name {
    font-weight: 700;
}

.gw-hanja-meaning {
    margin-top: 5px;
    color: var(--gw-text-soft);
}



/* ---------- 예문 ---------- */

.gw-examples {
    margin: 20px 0 26px;
    padding: 22px 26px;
    background: var(--gw-paper-light);
    border-radius: 10px;
}

.gw-example {
    margin-bottom: 18px;
}

.gw-example:last-child {
    margin-bottom: 0;
}

.gw-example strong {
    color: var(--gw-green);
}



/* ---------- 비교표 ---------- */

.gw-table-wrap {
    overflow-x: auto;
    margin: 22px 0 30px;
    -webkit-overflow-scrolling: touch;
}

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

.gw-table th {
    padding: 13px 14px;
    border-bottom: 2px solid var(--gw-green);
    text-align: left;
    font-weight: 700;
}

.gw-table td {
    padding: 14px;
    border-bottom: 1px solid var(--gw-line);
    vertical-align: top;
}

.gw-table td:first-child {
    width: 170px;
    white-space: nowrap;
}



/* ---------- YouTube ---------- */

.gw-video {
    position: relative;
    height: 0;
    margin: 22px 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #eee;
    border-radius: 12px;
}

.gw-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* ---------- 퀴즈 CTA ---------- */

.gw-quiz-box {
    margin: 42px 0;
    padding: 30px 24px;
    text-align: center;
    background: #f2f5f1;
    border: 1px solid #e2e7e1;
    border-radius: 12px;
}

.gw-quiz-title {
    margin-bottom: 6px;
    font-size: 1.2em;
    font-weight: 700;
}

.gw-quiz-box p {
    margin-bottom: 20px;
    color: var(--gw-text-soft);
}

.gw-button {
    display: inline-block;
    padding: 13px 26px;
    background: var(--gw-green);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 7px;
    font-weight: 700;
    transition: transform .15s ease, opacity .15s ease;
}

.gw-button:hover {
    color: #fff !important;
    opacity: .9;
    transform: translateY(-1px);
}



/* ---------- 단일 글 모바일 ---------- */

@media (max-width: 768px) {

    .grownup-word {
        font-size: 17px;
        line-height: 1.8;
    }

    .grownup-word h2 {
        margin-top: 2.1em;
        font-size: 1.42em;
    }

    .gw-hanja-grid {
        grid-template-columns: 1fr;
    }

    .gw-definition,
    .gw-examples {
        padding: 19px 20px;
    }

    .gw-hanja-card {
        padding: 20px;
    }

    .gw-quiz-box {
        padding: 25px 18px;
    }

    .gw-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}



/* 싱글 포스트 제목 */

.single-post .entry-title {
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.045em;
    word-break: keep-all;
    overflow-wrap: break-word;
}


/* 작성자 숨김 */

.single-post .entry-meta .byline {
    display: none;
}


/* 날짜는 조용하게 표시 */

.single-post .entry-meta {
    margin-top: 12px;
    color: #777;
    font-size: 14px;
    line-height: 1.5;
}


/* ==================================================
   3. Vocabulary Learning Tools
   ================================================== */


/* ---------- 빠른 학습 메뉴 ---------- */

.gw-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 42px;
}


.gw-quick-actions .gw-button {
    min-width: 135px;
    text-align: center;
}



/* ---------- 보조 버튼 ---------- */

.gw-button.gw-button-secondary {
    background: #fff;

    color: var(--gw-green) !important;

    border: 1px solid var(--gw-green);
}


.gw-button.gw-button-secondary:hover {
    background: #f2f5f1;

    color: var(--gw-green) !important;

    opacity: 1;
}



/* ---------- 페이지 내부 이동 ---------- */

.gw-scroll-target {
    scroll-margin-top: 30px;
}



/* ---------- 무료 학습지 ---------- */

.gw-worksheet-card {
    display: grid;

    grid-template-columns:
        minmax(240px, .82fr)
        minmax(0, 1.18fr);

    gap: 34px;

    align-items: center;

    margin: 22px 0 52px;

    padding: 30px;

    background: var(--gw-paper-light);

    border: 1px solid var(--gw-line);
    border-radius: 14px;
}



/* 학습지 미리보기 */

.gw-worksheet-preview {
    max-width: 360px;
    margin: 0 auto;
}


.gw-worksheet-preview a {
    display: block;
}


.gw-worksheet-preview img {
    display: block;

    width: 100%;
    height: auto;

    background: #fff;

    border: 1px solid #ddd7ca;
    border-radius: 5px;

    box-shadow:
        0 4px 10px rgba(0,0,0,.05),
        0 16px 34px rgba(0,0,0,.08);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.gw-worksheet-preview a:hover img {
    transform: translateY(-3px);

    box-shadow:
        0 5px 12px rgba(0,0,0,.06),
        0 20px 40px rgba(0,0,0,.11);
}



/* 학습지 설명 */

.gw-worksheet-kicker {
    margin-bottom: 9px;

    color: var(--gw-green);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
}


.gw-worksheet-title {
    margin-bottom: 17px;

    color: #252824;

    font-size: 1.55em;
    line-height: 1.35;

    font-weight: 700;
    letter-spacing: -.035em;
}


.gw-worksheet-lead {
    margin-bottom: 15px !important;

    font-size: 1.05em;
    line-height: 1.75;
}


.gw-worksheet-desc {
    margin-bottom: 17px !important;

    color: var(--gw-text-soft);

    font-size: .95em;
    line-height: 1.8;
}


.gw-worksheet-meta {
    margin-bottom: 23px;

    color: #777;

    font-size: 13px;
    font-weight: 600;
}



/* 학습지 버튼 */

.gw-worksheet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}


.gw-worksheet-actions .gw-button {
    text-align: center;
}



/* ---------- Learning Tools 모바일 ---------- */

@media (max-width: 768px) {

    .gw-quick-actions {
        display: grid;
        grid-template-columns: 1fr;

        margin-bottom: 36px;
    }


    .gw-quick-actions .gw-button {
        width: 100%;
        min-width: 0;
    }


    .gw-worksheet-card {
        grid-template-columns: 1fr;

        gap: 27px;

        margin-bottom: 44px;

        padding: 22px 18px 24px;
    }


    .gw-worksheet-preview {
        width: min(88%, 340px);
    }


    .gw-worksheet-title {
        font-size: 1.4em;
    }


    .gw-worksheet-actions {
        display: grid;
        grid-template-columns: 1fr;
    }


    .gw-worksheet-actions .gw-button {
        width: 100%;
    }

}
