/* ========================================
   ARTICLE SHELL
   ======================================== */

.c-article-shell {
    width: 100%;
    min-width: 0;
}

.c-article {
    width: 100%;
}


/* ========================================
   TOP META
   ======================================== */

.c-article__top {
    gap: 12px;

    margin-bottom: 28px;

    color: var(--color-text-tertiary);

    font-size: 13px;
    line-height: 20px;
}

.c-article__back,
.c-article__category {
    margin: 0;
}

.c-article__back a,
.c-article__category a {
    color: inherit;
    text-decoration: none;
}

.c-article__back a:hover,
.c-article__category a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.c-article__category {
    font-weight: 700;
}


/* ========================================
   TITLE
   ======================================== */

.c-article__title {
    margin: 0 0 16px;

    color: var(--color-text-primary);

    font-size: 32px;
    line-height: 44px;
    font-weight: 700;

    letter-spacing: -0.025em;
}


/* ========================================
   LEAD / EXCERPT
   ======================================== */

.c-article__lead {
    margin: 0 0 16px;

    color: var(--color-text-primary);

    font-size: 18px;
    line-height: 31px;
}

.c-article__lead:empty {
    display: none;
}


/* ========================================
   ARTICLE META
   ======================================== */

.c-article__meta {
    gap: 12px;

    margin: 0 0 34px;
    padding-bottom: 30px;

    border-bottom: 1px solid var(--color-border-subtle);

    color: var(--color-text-tertiary);

    font-size: 13px;
    line-height: 20px;
}


/* ========================================
   ARTICLE BODY
   ======================================== */

.c-article__content {
    width: 100%;

    color: var(--color-text-primary);

    font-size: 17px;
    line-height: 31px;

    word-break: keep-all;
    overflow-wrap: break-word;
}

.c-article__content > * {
    margin-top: 0;
    margin-bottom: 20px;
}

.c-article__content h2 {
    margin-top: 44px;
    margin-bottom: 16px;

    font-size: 24px;
    line-height: 35px;
    font-weight: 700;

    letter-spacing: -0.02em;
}

.c-article__content h3 {
    margin-top: 34px;
    margin-bottom: 12px;

    font-size: 20px;
    line-height: 31px;
    font-weight: 700;

    letter-spacing: -0.015em;
}

.c-article__content h4 {
    margin-top: 28px;
    margin-bottom: 10px;

    font-size: 18px;
    line-height: 29px;
    font-weight: 700;
}

.c-article__content p {
    margin-top: 0;
    margin-bottom: 20px;
}

.c-article__content ul,
.c-article__content ol {
    margin-top: 0;
    margin-bottom: 20px;

    padding-left: 1.5em;
}

.c-article__content li + li {
    margin-top: 6px;
}

.c-article__content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.c-article__content blockquote {
    margin: 28px 0;
    padding-left: 20px;

    border-left: 2px solid var(--color-border-subtle);
}

.c-article__content blockquote p:last-child {
    margin-bottom: 0;
}

.c-article__content figure {
    margin: 30px 0;
}

.c-article__content img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
}

.c-article__content figcaption {
    margin-top: 8px;

    color: var(--color-text-tertiary);

    font-size: 13px;
    line-height: 20px;
}

.c-article__content table {
    width: 100%;

    border-collapse: collapse;

    font-size: 15px;
    line-height: 24px;
}

.c-article__content th,
.c-article__content td {
    padding: 10px 12px;

    border: 1px solid var(--color-border-subtle);

    text-align: left;
    vertical-align: top;
}


/* ========================================
   TAGS
   ======================================== */

.c-article__tags {
    margin-top: 38px;
    padding-top: 30px;

    border-top: 1px solid var(--color-border-subtle);

    color: var(--color-text-tertiary);

    font-size: 13px;
    line-height: 20px;
}

.c-article__tags:empty {
    display: none;
}


/* ========================================
   PREVIOUS / NEXT
   ======================================== */

.c-article__navigation {
    gap: 20px;

    margin-top: 34px;
    margin-bottom: 42px;

    padding-top: 30px;

    border-top: 1px solid var(--color-border-subtle);

    color: var(--color-text-tertiary);

    font-size: 13px;
    line-height: 20px;
}

.c-article__navigation a {
    text-decoration: none;
}

.c-article__navigation a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ========================================
   TABLET
   ======================================== */

@media (max-width: 959px) {
    .c-article__title {
        font-size: 30px;
        line-height: 41px;
    }
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 767px) {
    .c-article__top {
        margin-bottom: 22px;
    }

    .c-article__title {
        font-size: 28px;
        line-height: 39px;
    }

    .c-article__lead {
        font-size: 17px;
        line-height: 29px;
    }

    .c-article__content {
        font-size: 16px;
        line-height: 29px;
    }

    .c-article__content h2 {
        margin-top: 38px;

        font-size: 22px;
        line-height: 33px;
    }

    .c-article__content h3 {
        font-size: 19px;
        line-height: 30px;
    }

    .c-article__navigation {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================
   SOULHA FEATURED IMAGE
   ========================================================== */

.c-article__featured {
    width: 100%;
    margin: 2rem 0 2.75rem;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.c-article__featured img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .c-article__featured {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
}


/* ========================================
   WORD PUZZLE - MOBILE ARTICLE GAP
   낱말 퍼즐 글에서만 메타 구분선 아래 여백 축소
   ======================================== */

@media (max-width: 760px) {
    body.postid-86 .c-article__meta {
        margin-bottom: 12px;
    }
}


/* ========================================
   WORD PUZZLE ARTICLE COMPACT FIX v2
   post 86 only
   ======================================== */

body.postid-86 .c-article__meta {
    margin-bottom: 8px !important;
}

body.postid-86 .c-article__featured:empty {
    display: none !important;
    margin: 0 !important;
}

body.postid-86 .c-article__content > p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.postid-86 .c-article__content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
