:root {
    --brand: #2563eb;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #f8fafc;
    --radius: 18px;
    --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.sound_only, .skip-link {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
    z-index: 9999;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    color: #fff;
    background: var(--ink);
}
.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    min-height: 76px;
    max-width: var(--content);
    margin: auto;
    padding: 0 24px;
    gap: 28px;
}
.site-brand { display: flex; flex-direction: column; min-width: 190px; line-height: 1.25; }
.site-brand strong { font-size: 1.12rem; letter-spacing: -.03em; }
.site-brand span { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-right: auto; font-size: .92rem; font-weight: 650; }
.site-nav a:hover, .text-link:hover { color: var(--brand); }
.site-nav__item { position: relative; }
.site-nav__item.has-children > a::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg);
}
.site-subnav {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    min-width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .12);
    transform: translateY(-5px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.site-subnav::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 14px; content: ""; }
.site-subnav .site-nav__item > a { display: block; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.site-subnav .site-subnav { top: -10px; left: calc(100% + 8px); }
.site-nav__item:hover > .site-subnav,
.site-nav__item:focus-within > .site-subnav { visibility: visible; opacity: 1; transform: translateY(0); }
.site-nav__account { display: none; }
.site-actions { display: flex; align-items: center; gap: 12px; }
.button--admin { border-color: var(--ink); background: var(--ink); }
.signed-in-user { color: var(--muted); font-size: .84rem; }
.site-search input {
    width: 150px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}
.nav-toggle { display: none; }
.site-content { min-height: 70vh; }
.hero {
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 470px;
    padding: 80px 24px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 15% 15%, rgba(96, 165, 250, .42), transparent 32%),
        radial-gradient(circle at 85% 75%, rgba(45, 212, 191, .24), transparent 30%),
        linear-gradient(135deg, #0f172a, #172554 60%, #1e3a8a);
}
.hero__content { max-width: 820px; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(2.5rem, 7vw, 5.3rem); line-height: 1.06; letter-spacing: -.06em; }
.hero p { max-width: 660px; margin: 0 auto 30px; color: #dbeafe; font-size: clamp(1rem, 2vw, 1.25rem); }
.eyebrow { color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: #93c5fd; }
.hero-slider {
    display: block;
    min-height: 470px;
    padding: 0;
    background: #0f172a;
}
.hero-slide {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    min-height: inherit;
    padding: 80px 24px;
    background:
        radial-gradient(circle at 15% 15%, rgba(96, 165, 250, .42), transparent 32%),
        radial-gradient(circle at 85% 75%, rgba(45, 212, 191, .24), transparent 30%),
        linear-gradient(135deg, #0f172a, #172554 60%, #1e3a8a);
    background-position: center;
    background-size: cover;
    transition: opacity .65s ease, visibility .65s ease;
}
.hero-slide::before {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, .72), rgba(15, 23, 42, .38));
    content: "";
}
.hero-slide.has-overlay::before { display: block; }
.hero-slide.is-active { visibility: visible; opacity: 1; }
.hero-slider.is-static .hero-slide {
    visibility: visible;
    opacity: 1;
    position: relative;
}
.hero-slide .hero__content {
    position: relative;
    z-index: 1;
}
.hero-slider__dots {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 28px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-slider__dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
}
.hero-slider__dots button.is-active { width: 28px; border-radius: 999px; background: #fff; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--brand);
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    font-weight: 750;
    cursor: pointer;
}
.button:hover { filter: brightness(.94); transform: translateY(-1px); }
.button--small { padding: 8px 14px; font-size: .84rem; }
.button--outline { color: var(--brand); background: transparent; }
.button--danger { border-color: #ef4444; color: #fff; background: #ef4444; }
.button--danger:hover { border-color: #dc2626; background: #dc2626; }
.button--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.sponsor-banners {
    max-width: var(--content);
    margin: 0 auto;
    padding: 34px 24px 0;
}
.sponsor-banners__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.sponsor-card {
    display: grid;
    align-items: stretch;
    grid-template-columns: 190px 1fr;
    overflow: hidden;
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.sponsor-card:hover { transform: translateY(-2px); box-shadow: 0 18px 48px rgba(15, 23, 42, .1); }
.sponsor-card__image {
    display: block;
    min-height: 132px;
    background: var(--surface);
}
.sponsor-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sponsor-card__body {
    display: grid;
    align-content: center;
    padding: 20px 22px;
    gap: 6px;
}
.sponsor-card__label {
    color: var(--brand);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sponsor-card strong { font-size: 1.1rem; line-height: 1.35; letter-spacing: -.025em; }
.sponsor-card__body > span:last-child { color: var(--muted); font-size: .9rem; }
.sponsor-card--text { grid-template-columns: 1fr; }
.sponsor-card--image {
    position: relative;
    grid-template-columns: 1fr;
    min-height: 170px;
}
.sponsor-card--image .sponsor-card__image {
    min-height: 170px;
    aspect-ratio: 16 / 5;
}
.sponsor-card--image .sponsor-card__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px 22px 18px;
    color: #fff;
    background: linear-gradient(0deg, rgba(15, 23, 42, .68), rgba(15, 23, 42, 0));
}
.sponsor-card--image .sponsor-card__label,
.sponsor-card--image .sponsor-card__body > span:last-child {
    color: rgba(255, 255, 255, .86);
}

/* ===== 배너 전용 스킨 ===== */
body.skin-banner { background: #f5f7f8; }
body.skin-banner .site-header { background: rgba(255, 255, 255, .96); }
body.skin-banner .site-content { min-height: calc(100vh - 205px); }
body.skin-banner .sponsor-banners--directory { padding-top: 58px; }
.banner-directory-heading { margin: 0 auto 28px; text-align: center; }
.banner-directory-heading h1 { margin: 5px 0 8px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.05em; }
.banner-directory-heading p,
.section-heading__description { max-width: 720px; margin: 0; color: var(--muted); }
.banner-directory-heading p { margin-right: auto; margin-left: auto; }
body.skin-banner .sponsor-banners__grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}
body.skin-banner .sponsor-card--image {
    display: block;
    min-height: 0;
    border-color: #d9e2df;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, .1);
}
body.skin-banner .sponsor-card--image .sponsor-card__image { min-height: 0; aspect-ratio: 16 / 5; background: #050807; }
body.skin-banner .sponsor-card--image .sponsor-card__body {
    position: static;
    padding: 22px 24px 24px;
    color: var(--ink);
    background: #fff;
}
body.skin-banner .sponsor-card--image .sponsor-card__label { color: var(--brand); }
body.skin-banner .sponsor-card--image .sponsor-card__body > span:last-child { color: var(--muted); }
body.skin-banner .sponsor-card strong { font-size: 1.2rem; }
.banner-guide { padding-top: 60px; }
.banner-guide + .banner-guide {
    border-top: 1px solid #dfe7e5;
}
.banner-guide .section-heading { margin-bottom: 24px; }
.banner-benefits article { border-color: #d9e2df; }
.banner-benefits article:first-child { background: linear-gradient(145deg, #ecfdf5, #fff); }
.banner-notice {
    margin: 22px 0 0;
    padding: 16px 18px;
    border-left: 3px solid var(--brand);
    border-radius: 0 10px 10px 0;
    color: var(--muted);
    background: #fff;
    font-size: .84rem;
}
.category-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: var(--content);
    margin: -25px auto 0;
    padding: 0 24px;
    gap: 10px;
}
.category-chips a {
    z-index: 2;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    font-weight: 700;
}
.category-chips span { margin-left: 7px; color: var(--muted); font-size: .78rem; }
.content-section, .archive-header, .article-wrap, .service-panel {
    max-width: var(--content);
    margin: auto;
    padding: 78px 24px;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}
.section-heading h2, .archive-header h1 { margin: 4px 0 0; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.045em; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 22px 60px rgba(15, 23, 42, .1); }
.post-card__image { display: block; position: relative; aspect-ratio: 16 / 9; background: #dbeafe; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.post-card__image--empty {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(15, 23, 42, .06)),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.35) 12px, rgba(255,255,255,.35) 24px);
}
.post-card__body { padding: 24px; }
.post-card__category { color: var(--brand); font-size: .78rem; font-weight: 800; }
.post-card h3 { margin: 8px 0 12px; font-size: 1.3rem; line-height: 1.35; letter-spacing: -.025em; }
.post-card p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.post-card time { color: #94a3b8; font-size: .8rem; }
.post-card__video-link { display: inline-block; margin: 0 12px 0 0; color: var(--brand); font-size: .84rem; font-weight: 800; }
.empty-state { padding: 70px 24px; border: 1px dashed #cbd5e1; border-radius: var(--radius); text-align: center; background: var(--surface); }
.service-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 42px;
    padding-bottom: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.service-panel h2 { margin: 5px 0; }
.service-panel p { margin: 0; color: var(--muted); }
.archive-header { padding-bottom: 20px; }
.archive-header p { max-width: 680px; color: var(--muted); }
.category-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 18px; color: var(--muted); gap: 8px; font-size: .88rem; }
.category-breadcrumb a:hover { color: var(--brand); }
.category-breadcrumb strong { color: var(--ink); }
.archive-children { display: flex; flex-wrap: wrap; margin-top: 28px; gap: 10px; }
.archive-children a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; }
.archive-children a:hover { color: var(--brand); border-color: #bfdbfe; background: #eff6ff; }
.archive-children span { margin-left: 6px; color: var(--muted); font-size: .78rem; }
.sitemap-header { padding-bottom: 34px; }
.sitemap-page { padding-top: 24px; }
.sitemap-pages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 58px;
    padding: 26px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    gap: 24px;
}
.sitemap-pages h2 { margin: 0; font-size: 1.2rem; }
.sitemap-pages nav { display: flex; flex-wrap: wrap; gap: 10px; }
.sitemap-pages a { padding: 8px 13px; border-radius: 999px; background: #fff; font-weight: 700; }
.sitemap-pages a:hover { color: var(--brand); }
.sitemap-tree, .sitemap-tree ul { margin: 0; padding: 0; list-style: none; }
.sitemap-tree {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.sitemap-category {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.sitemap-category__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sitemap-category__heading > a { font-size: 1.18rem; font-weight: 800; }
.sitemap-category__heading > a:hover, .sitemap-posts a:hover { color: var(--brand); }
.sitemap-category__heading > span { min-width: 28px; padding: 2px 8px; border-radius: 999px; color: var(--muted); background: var(--surface); text-align: center; font-size: .76rem; }
.sitemap-category > p { margin: 8px 0 0; color: var(--muted); font-size: .86rem; }
.sitemap-posts { display: grid; margin-top: 16px !important; gap: 8px; }
.sitemap-posts li { position: relative; padding-left: 14px; color: #475569; font-size: .9rem; }
.sitemap-posts li::before { position: absolute; top: .72em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #94a3b8; content: ""; }
.sitemap-children { display: grid; margin-top: 18px !important; padding-top: 18px !important; border-top: 1px solid var(--line); gap: 12px; }
.sitemap-children .sitemap-category { padding: 0 0 0 16px; border: 0; border-left: 2px solid #dbeafe; border-radius: 0; }
.sitemap-children .sitemap-category__heading > a { font-size: 1rem; }
.sitemap-uncategorized { margin-top: 38px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.sitemap-uncategorized h2 { margin-top: 0; }
.pagination { display: flex; justify-content: center; margin-top: 42px; gap: 8px; }
.pagination a, .pagination strong { min-width: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.pagination strong { color: #fff; border-color: var(--brand); background: var(--brand); }
.article-wrap { max-width: 920px; }
.article-header { padding: 30px 0 36px; text-align: center; }
.article-header h1 { margin: 14px auto; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.12; letter-spacing: -.055em; }
.article-meta { display: flex; justify-content: center; color: var(--muted); gap: 14px; font-size: .9rem; }
.article-cover { overflow: hidden; position: relative; margin-bottom: 42px; border-radius: 24px; }
.article-cover a { display: block; position: relative; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.video-play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    border: 3px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(15, 23, 42, .75);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .35);
    transform: translate(-50%, -50%);
}
.video-play-mark::after {
    position: absolute;
    top: 50%;
    left: 53%;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 23px solid #fff;
    content: "";
    transform: translate(-50%, -50%);
}
.video-play-mark--small { width: 58px; height: 58px; border-width: 2px; }
.video-play-mark--small::after { border-top-width: 10px; border-bottom-width: 10px; border-left-width: 16px; }
.article-video-actions { display: flex; justify-content: center; margin: -18px 0 42px; }
.article-body { font-size: 1.05rem; }
.article-body h2, .article-body h3 { margin-top: 2.1em; line-height: 1.3; letter-spacing: -.035em; }
.article-body p { margin: 1.2em 0; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body pre { overflow: auto; padding: 20px; border-radius: 14px; color: #e2e8f0; background: #0f172a; }
.article-tags { display: flex; flex-wrap: wrap; margin-top: 42px; gap: 8px; }
.article-tags a { padding: 7px 12px; border-radius: 999px; color: #475569; background: #f1f5f9; font-size: .85rem; }
.article-navigation { display: flex; justify-content: space-between; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); gap: 10px; }
.article-admin { display: flex; justify-content: flex-end; margin-top: 28px; gap: 10px; }
.video-player {
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}
.video-player video { display: block; width: 100%; max-height: 70vh; aspect-ratio: 16 / 9; background: #020617; }
.video-watch__summary { display: flex; align-items: center; justify-content: space-between; padding: 28px 4px 0; gap: 24px; }
.video-watch__summary p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.75; }
.content-editor-panel {
    margin: 0 0 22px;
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
}
.content-editor-panel h3 { margin: 0 0 16px; }
.content-editor-grid { display: grid; gap: 16px; }
.content-editor-grid fieldset { margin: 0; padding: 14px; border: 1px solid #dbe3ef; border-radius: 8px; }
.content-category-selectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.content-category-selectors label { display: grid; gap: 7px; }
.content-category-selectors select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; }
.content-category-help { margin: 10px 0 0; color: var(--muted); font-size: .85rem; }
.content-editor-grid label { display: grid; gap: 7px; font-weight: 650; }
.content-index-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; justify-content: start; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer__inner { display: flex; justify-content: space-between; position: relative; max-width: var(--content); margin: auto; padding: 44px 24px 64px; gap: 24px; }
.site-footer p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.site-footer nav { display: flex; align-items: center; gap: 18px; font-size: .88rem; }
.site-footer__admin {
    position: absolute;
    right: 24px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    font-size: .68rem;
}
.site-footer__admin a {
    color: var(--muted);
    opacity: .2;
    transition: opacity .18s ease;
}
.site-footer__admin a:hover,
.site-footer__admin a:focus-visible { opacity: .75; }

@media (max-width: 900px) {
    .site-header__inner { flex-wrap: wrap; min-height: 68px; gap: 12px; }
    .site-brand { margin-right: auto; }
    .nav-toggle { display: block; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
    .site-nav { display: none; order: 3; flex-basis: 100%; align-items: stretch; padding: 10px 0 18px; }
    .site-nav.is-open { display: grid; }
    .site-nav__item > a { display: block; padding: 7px 0; }
    .site-subnav {
        visibility: visible;
        opacity: 1;
        position: static;
        min-width: 0;
        margin: 2px 0 6px 12px;
        padding: 0 0 0 13px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }
    .site-subnav::before { display: none; }
    .site-subnav .site-nav__item > a { padding: 6px 4px; }
    .site-subnav .site-nav__item.has-children > a::after { transform: rotate(45deg); }
    .site-nav__account { display: grid; padding-top: 10px; border-top: 1px solid var(--line); gap: 12px; }
    .site-actions { display: none; }
    .sponsor-card { grid-template-columns: 150px 1fr; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sitemap-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-watch__summary { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .hero { min-height: 390px; padding: 64px 20px; }
    .hero-slider { min-height: 390px; padding: 0; }
    .hero-slide { padding: 64px 20px; }
    .sponsor-banners__grid { grid-template-columns: 1fr; }
    .sponsor-card { grid-template-columns: 1fr; }
    .sponsor-card__image { aspect-ratio: 16 / 8; }
    .content-section, .archive-header, .article-wrap { padding-right: 18px; padding-left: 18px; }
    .post-grid { grid-template-columns: 1fr; }
    .section-heading, .service-panel, .site-footer__inner { align-items: flex-start; flex-direction: column; }
    .sitemap-pages { align-items: flex-start; flex-direction: column; }
    .sitemap-tree { grid-template-columns: 1fr; }
    .service-panel { margin-right: 18px; margin-left: 18px; }
    .site-footer nav { flex-wrap: wrap; }
    .site-footer__admin { right: auto; left: 18px; }
}

/* ===== 디자인 토큰 (테마 프리셋) ===== */
:root {
    --bg: #fff;
    --card: #fff;
    --header-bg: rgba(255, 255, 255, .94);
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
    --font-head: inherit;
}
body { background: var(--bg); font-family: var(--font-body); }
h1, h2, h3, h4, .site-brand strong { font-family: var(--font-head); }
.site-header { border-bottom-color: var(--line); background: var(--header-bg); }
.post-card, .site-subnav, .category-chips a, .sitemap-category, .button--ghost,
.sitemap-pages a, .nav-toggle, .sitemap-uncategorized { background: var(--card); }
.post-card h3 a:hover, .post-row h3 a:hover { color: var(--brand); }

body.scheme-dark {
    --bg: #0b1120;
    --card: #101a2e;
    --surface: #0e1627;
    --line: #1e293b;
    --muted: #94a3b8;
    --header-bg: rgba(11, 17, 32, .92);
}
body.scheme-dark .post-card:hover { box-shadow: 0 22px 60px rgba(0, 0, 0, .45); }
body.scheme-dark .button--ghost { color: var(--ink); }
body.scheme-dark .article-tags a { color: #cbd5e1; background: #16223a; }
body.scheme-dark .site-search input { background: #101a2e; color: var(--ink); }
body.scheme-dark .empty-state { border-color: #27364f; }

body.scheme-warm {
    --bg: #faf9f6;
    --card: #fffdf9;
    --surface: #f5f1e8;
    --line: #e7e0d2;
    --muted: #78716c;
    --header-bg: rgba(250, 249, 246, .94);
}

body.preset-slate .hero { background: linear-gradient(135deg, #111827, #1f2937 60%, #374151); }
body.preset-forest .hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(74, 222, 128, .35), transparent 32%),
        radial-gradient(circle at 85% 75%, rgba(16, 185, 129, .22), transparent 30%),
        linear-gradient(135deg, #052e16, #14532d 60%, #166534);
}
body.preset-blossom .hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(251, 207, 232, .4), transparent 32%),
        radial-gradient(circle at 85% 75%, rgba(244, 114, 182, .25), transparent 30%),
        linear-gradient(135deg, #500724, #831843 60%, #9d174d);
}
body.preset-editorial .hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(234, 88, 12, .28), transparent 34%),
        linear-gradient(135deg, #1c1917, #292524 62%, #44403c);
}
body.preset-midnight .hero {
    background:
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, .28), transparent 32%),
        linear-gradient(135deg, #020617, #0f172a 60%, #1e293b);
}

/* ===== 레이아웃 아키타입 ===== */
body.layout-minimal .hero { min-height: 280px; padding: 56px 24px; }
body.layout-minimal .hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
body.layout-news .hero { min-height: 300px; padding: 56px 24px; }
body.layout-visual .hero { min-height: 540px; }

.post-list { display: grid; gap: 26px; }
.post-row {
    display: grid;
    align-items: start;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}
.post-row:last-child { border-bottom: 0; }
.post-row__image { overflow: hidden; position: relative; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) * .7); background: var(--surface); }
.post-row__image img { width: 100%; height: 100%; object-fit: cover; }
.post-row__body h3 { margin: 6px 0 10px; font-size: 1.32rem; line-height: 1.35; letter-spacing: -.025em; }
.post-row__body p { margin: 0 0 12px; color: var(--muted); font-size: .93rem; }
.post-row__body time { color: var(--muted); font-size: .8rem; }
.post-list--minimal .post-row { grid-template-columns: 1fr; gap: 8px; }
.post-list--minimal .post-row__body h3 { font-size: 1.55rem; }
.post-grid--visual { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.post-grid--visual .post-card__image { aspect-ratio: 16 / 8.5; }
.post-grid--visual .post-card h3 { font-size: 1.55rem; }

/* ===== site skin variants ===== */
body.skin-brand .hero {
    min-height: 520px;
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .38), transparent 34%),
        radial-gradient(circle at 82% 70%, rgba(148, 163, 184, .22), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e293b 58%, #334155);
}
body.skin-brand .hero-slide {
    background:
        radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .38), transparent 34%),
        radial-gradient(circle at 82% 70%, rgba(148, 163, 184, .22), transparent 34%),
        linear-gradient(135deg, #0f172a, #1e293b 58%, #334155);
}
body.skin-magazine .hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(234, 88, 12, .3), transparent 34%),
        radial-gradient(circle at 12% 78%, rgba(251, 191, 36, .16), transparent 30%),
        linear-gradient(135deg, #1c1917, #292524 62%, #7c2d12);
}
body.skin-magazine .hero-slide {
    background:
        radial-gradient(circle at 82% 20%, rgba(234, 88, 12, .3), transparent 34%),
        radial-gradient(circle at 12% 78%, rgba(251, 191, 36, .16), transparent 30%),
        linear-gradient(135deg, #1c1917, #292524 62%, #7c2d12);
}
body.skin-landing .hero {
    min-height: 560px;
    background:
        radial-gradient(circle at 16% 18%, rgba(59, 130, 246, .48), transparent 34%),
        radial-gradient(circle at 78% 72%, rgba(236, 72, 153, .25), transparent 32%),
        linear-gradient(135deg, #111827, #312e81 56%, #1d4ed8);
}
body.skin-landing .hero-slide {
    background:
        radial-gradient(circle at 16% 18%, rgba(59, 130, 246, .48), transparent 34%),
        radial-gradient(circle at 78% 72%, rgba(236, 72, 153, .25), transparent 32%),
        linear-gradient(135deg, #111827, #312e81 56%, #1d4ed8);
}
body.skin-tool .hero {
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 212, 191, .34), transparent 32%),
        radial-gradient(circle at 82% 72%, rgba(34, 197, 94, .2), transparent 30%),
        linear-gradient(135deg, #042f2e, #115e59 62%, #0f766e);
}
body.skin-tool .hero-slide {
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 212, 191, .34), transparent 32%),
        radial-gradient(circle at 82% 72%, rgba(34, 197, 94, .2), transparent 30%),
        linear-gradient(135deg, #042f2e, #115e59 62%, #0f766e);
}
.brand-story, .landing-offer, .magazine-lead { padding-top: 88px; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.feature-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}
.feature-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.08rem;
    letter-spacing: -.02em;
}
.feature-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.magazine-lead-card {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 34px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 8px);
    background: var(--surface);
}
.magazine-lead-card__image {
    overflow: hidden;
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    background: #dbeafe;
}
.magazine-lead-card__image img { width: 100%; height: 100%; object-fit: cover; }
.magazine-lead-card h2 {
    margin: 10px 0 14px;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.15;
    letter-spacing: -.045em;
}
.magazine-lead-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.category-chips--magazine { margin-top: 0; padding-top: 8px; }
.landing-offer .feature-grid article {
    min-height: 180px;
    border-color: rgba(37, 99, 235, .18);
    background: linear-gradient(180deg, #fff, #f8fbff);
}
body.skin-tool .tool-strip { padding-top: 72px; }

/* ===== 목차 ===== */
.article-toc {
    margin: 34px 0 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .05);
}
.article-toc details { padding: 0; }
.article-toc__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.article-toc__title::-webkit-details-marker { display: none; }
.article-toc__title:after {
    content: '+';
    color: var(--brand);
    font-size: 1.2rem;
    line-height: 1;
}
.article-toc details[open] .article-toc__title { border-bottom: 1px solid var(--line); }
.article-toc details[open] .article-toc__title:after { content: '−'; }
.article-toc__list {
    display: grid;
    margin: 0;
    padding: 20px 26px 22px 46px;
    gap: 8px;
    font-size: .93rem;
}
.article-toc__sublist {
    display: grid;
    margin: 8px 0 2px;
    padding-left: 22px;
    gap: 6px;
    color: var(--muted);
    list-style-type: lower-alpha;
}
.article-toc a:hover { color: var(--brand); }

/* ===== FAQ ===== */
.article-faq { margin-top: 48px; }
.article-faq h2 { font-size: 1.5rem; letter-spacing: -.03em; }
.article-faq__item { margin-bottom: 10px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--card); }
.article-faq__item summary { padding: 15px 18px; cursor: pointer; font-weight: 700; }
.article-faq__item[open] summary { border-bottom: 1px solid var(--line); }
.article-faq__item > div { padding: 14px 18px; color: var(--muted); font-size: .95rem; }

/* ===== 작성자 ===== */
.article-meta__author { color: var(--ink); font-weight: 750; }
.article-meta__author:hover { color: var(--brand); }
.article-meta__updated { color: var(--muted); }
.author-box {
    display: flex;
    align-items: flex-start;
    margin-top: 42px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    gap: 18px;
}
.author-box__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-box__name { font-size: 1.05rem; font-weight: 800; }
.author-box__name:hover { color: var(--brand); }
.author-box__title { margin-left: 8px; color: var(--muted); font-size: .85rem; }
.author-box__body p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.author-header { display: flex; align-items: center; gap: 24px; }
.author-header img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* ===== 이전/다음 글 ===== */
.article-adjacent { display: grid; grid-template-columns: 1fr 1fr; margin-top: 42px; gap: 14px; }
.article-adjacent__item {
    display: grid;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) * .7);
    background: var(--card);
    gap: 5px;
}
.article-adjacent__item--next { text-align: right; }
.article-adjacent__item--empty { border: 0; background: transparent; }
.article-adjacent__item span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.article-adjacent__item strong { font-size: .95rem; line-height: 1.4; letter-spacing: -.02em; }
.article-adjacent__item:hover strong { color: var(--brand); }

/* ===== 관련 글 ===== */
.related-posts { padding-top: 0; }

/* ===== 도구 ===== */
.tool-strip { max-width: var(--content); margin: auto; padding: 54px 24px 0; }
.tool-strip__grid, .tool-index__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tool-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card {
    display: grid;
    align-content: start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15, 23, 42, .1); }
.tool-card strong { font-size: 1.05rem; letter-spacing: -.02em; }
.tool-card p { margin: 0; color: var(--muted); font-size: .87rem; }
.tool-widget {
    margin: 30px 0;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.tool-widget h2, .tool-widget h3 { margin-top: 0; }
.tool-widget__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tool-widget label { display: grid; gap: 6px; font-size: .88rem; font-weight: 700; }
.tool-widget input, .tool-widget select, .tool-widget textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    color: inherit;
    font-size: 1rem;
}
.tool-widget textarea { min-height: 170px; resize: vertical; }
.tool-widget__result {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    font-size: 1.02rem;
    line-height: 1.8;
}
.tool-widget__result strong { color: var(--brand); font-size: 1.15em; }
.tool-widget__note { margin: 14px 0 0; color: var(--muted); font-size: .82rem; }
.tool-page { max-width: 860px; }
.tool-page__description { color: var(--muted); }

/* ===== 자동 내부링크 ===== */
.article-body a.auto-link { text-decoration-style: dotted; }

/* ===== 404 ===== */
.error-404__header { padding-bottom: 40px; text-align: center; }
.error-404__actions { display: flex; justify-content: center; margin-top: 22px; gap: 10px; }
.error-404__search { max-width: 420px; margin: 26px auto 0; }
.error-404__search input {
    width: 100%;
    padding: 13px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

/* ===== 빵부스러기(글 페이지) ===== */
.category-breadcrumb--article { justify-content: center; }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .magazine-lead-card { grid-template-columns: 1fr; }
    .tool-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-grid--visual { grid-template-columns: 1fr; }
    .post-row { grid-template-columns: 168px 1fr; gap: 16px; }
}

@media (max-width: 640px) {
    body.skin-banner { overflow-x: hidden; }
    body.skin-banner .sponsor-banners--directory { padding: 42px 18px 0; }
    body.skin-banner .sponsor-card--image,
    body.skin-banner .sponsor-card--image .sponsor-card__body,
    .banner-benefits article { min-width: 0; }
    body.skin-banner .sponsor-card--image .sponsor-card__body { padding: 18px; }
    .banner-directory-heading { margin-bottom: 22px; }
    .banner-directory-heading h1 { font-size: 2.2rem; }
    .banner-directory-heading p { font-size: .92rem; }
    .banner-guide .section-heading h2 { overflow-wrap: anywhere; font-size: clamp(1.65rem, 8vw, 2.1rem); }
    .feature-grid { grid-template-columns: 1fr; }
    .magazine-lead-card { padding: 20px; }
    .tool-strip__grid, .tool-index__grid { grid-template-columns: 1fr; }
    .post-row { grid-template-columns: 1fr; }
    .article-adjacent { grid-template-columns: 1fr; }
    .article-adjacent__item--next { text-align: left; }
    .author-box { flex-direction: column; }
}

.pagination__gap { min-width: 24px; padding: 8px 4px; color: var(--muted); text-align: center; }
.pagination__nav { font-weight: 700; }
