/* Media Dream typography overrides for the official Ghost Source theme. */
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Paperlogy/Paperlogy.css');
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

:root {
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body,
button,
input,
textarea,
select {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 400 !important;
}

h1,
h3,
h4,
h5,
h6,
.gh-card-title,
.gh-header-title,
.gh-article-title,
.gh-footer-signup-header,
.gh-navigation-logo {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 900 !important;
}

h2,
.gh-content h2,
.gh-article-excerpt,
.gh-header-subhead,
.gh-footer-signup-subhead {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 600 !important;
}

.gh-content p,
.gh-content li,
.gh-card-excerpt,
.gh-card-meta,
.gh-header-description,
.gh-footer-signup-description {
    font-weight: 400 !important;
}

.md-post-metrics {
    display: flex;
    align-items: center;
    color: var(--color-secondary-text, #6b7280);
}

/* Paperlogy headings + Pretendard body for readable Korean long-form content. */
:root {
    --font-sans: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body,
button,
input,
textarea,
select,
.gh-content,
.gh-content p,
.gh-content li,
.gh-card-excerpt,
.gh-article-excerpt,
.gh-header-description,
.gh-footer-signup-description {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.gh-card-title,
.gh-article-title,
.gh-navigation-logo,
.gh-footer-signup-header {
    font-family: 'Paperlogy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

.md-post-metrics-top {
    justify-content: flex-start;
    gap: 14px;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 15px;
}

.md-post-metrics-bottom {
    justify-content: center;
    gap: 22px;
    margin: 40px auto 8px;
    font-size: 16px;
}

.md-post-metrics-card {
    gap: 11px;
    margin-top: 13px;
    font-size: 14px;
}

.md-post-metric-item,
.md-post-like,
.md-post-views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.md-post-metric-icon {
    line-height: 1;
    font-size: 18px;
}

.md-post-like {
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: 999px;
    padding: 11px 18px;
    color: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.md-post-like:hover,
.md-post-like:focus-visible,
.md-post-like.is-liked {
    border-color: #d85858;
    color: #b42318;
}

.md-post-like:hover {
    transform: translateY(-1px);
}

.md-post-like.is-liked {
    background: #fff1f1;
}

.md-post-like:disabled {
    cursor: wait;
    opacity: 0.65;
}

.md-post-like-heart {
    font-size: 25px;
    line-height: 0.8;
}

.md-post-views {
    font-size: 16px;
}

.md-post-metric-count {
    font-variant-numeric: tabular-nums;
    font-size: inherit;
    font-weight: 700;
}

.md-popular-section[hidden],
.md-popular-candidate[hidden] {
    display: none;
}

.md-popular-section {
    padding-top: 0;
}

.md-popular-feed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.md-popular-rank {
    margin-bottom: 8px;
    color: var(--ghost-accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .08em;
}

@media (max-width: 767px) {
    .md-popular-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Media Dream navigation: a compact, logo-first information architecture. */
@media (min-width: 768px) {
    .media-dream-navigation {
        height: auto;
        min-height: 148px;
    }

    .media-dream-navigation.gh-navigation .gh-navigation-inner {
        position: relative;
        display: grid;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto;
        gap: 0;
        height: auto;
        padding-block: 22px 18px;
    }

    .media-dream-navigation.gh-navigation .gh-navigation-brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: center;
    }

    .media-dream-navigation.gh-navigation .gh-navigation-menu {
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        justify-content: center;
        margin: 17px 0 0 !important;
        width: 100% !important;
    }

    .media-dream-navigation .gh-navigation-actions {
        position: absolute;
        top: 22px;
        right: 0;
    }

    .media-dream-navigation .nav {
        flex-wrap: nowrap;
        gap: 12px 30px;
        justify-content: center;
        white-space: normal;
    }

    .media-dream-navigation .nav a,
    .media-dream-navigation .nav-parent-link {
        white-space: nowrap;
    }

    .media-dream-navigation .gh-more-toggle {
        display: none !important;
    }
}

/* SungChul: readable navigation and reserved, clearly labelled ad space. */
.sc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--color-secondary-text, #666);
}
.sc-breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.sc-ad {
    display: block;
    width: 100%;
    max-width: 728px;
    min-height: 300px;
    margin: 40px auto;
    padding-top: 8px;
    clear: both;
}
.sc-ad-label {
    display: block;
    margin-bottom: 12px;
    color: #737373;
    font-size: 12px;
    line-height: 1;
    text-align: center;
}
.sc-ad .adsbygoogle { min-height: 250px; }
@media print { .sc-ad { display: none; } }

/* Keep imported Notion tables scrollable within the article on mobile. */
.gh-content .notion-table-block {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}
.gh-article > .sc-ad { width: calc(100% - 48px); }
