.article-categories a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.article-categories b {
    flex-shrink: 0;
    color: inherit;
    font-variant-numeric: tabular-nums;
}
.post-article {
    min-width: 0;
    background: var(--paper);
    border: 1px solid rgba(28, 43, 51, .12);
    box-shadow: 0 24px 64px rgba(18, 28, 35, .09);
    padding: clamp(30px, 6vw, 68px);
}
.article-header {
    position: relative;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--soft-line);
}
.article-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: -18px;
    width: 54px;
    height: 3px;
    background: linear-gradient(90deg, var(--naver), var(--blue));
}
.category-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid rgba(3, 165, 106, .18);
    background: rgba(3, 165, 106, .08);
    color: var(--naver-dark);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 900;
}
.article-header h1 {
    margin: 16px 0 24px;
    font-family: var(--title-font);
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1.22;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.article-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--muted);
}
.byline-avatar { width: 38px; height: 38px; }
.article-byline strong, .article-byline time { display: block; }
.article-byline strong { font-size: 13px; }
.article-byline time { color: #89939a; font-size: 11px; }
.article-stats { margin-left: auto; color: #89939a; font-size: 12px; white-space: nowrap; }
.article-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.article-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 800;
}
.article-actions button.active {
    border-color: var(--naver);
    background: rgba(3, 165, 106, .1);
    color: var(--naver-dark);
}
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 42px 0; }
.article-gallery.single { grid-template-columns: 1fr; }
.article-gallery figure { min-width: 0; margin: 0; }
.article-gallery a { display: block; overflow: hidden; border: 1px solid var(--soft-line); background: #eef1f2; }
.article-gallery img { width: 100%; height: 100%; max-height: 680px; aspect-ratio: 4 / 3; object-fit: cover; }
.article-gallery.single img { height: auto; aspect-ratio: auto; object-fit: contain; }
.article-gallery figcaption { padding-top: 6px; color: #9aa3a9; font-size: 11px; text-align: center; }
.article-content {
    padding: 18px 0 38px;
    color: #303940;
    font-size: 17px;
    line-height: 1.98;
    overflow-wrap: anywhere;
}
.article-content > p:first-of-type {
    color: #202a31;
    font-size: 1.06em;
}
.article-content p { margin: 0 0 1.55em; }
.article-content a {
    color: var(--blue);
    font-size: .88em;
    font-weight: 800;
    line-height: 1.65;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.article-content h2 {
    margin: 2.35em 0 .85em;
    border-top: 1px solid var(--soft-line);
    padding-top: 22px;
    font-family: var(--title-font);
    font-size: 26px;
    line-height: 1.36;
}
.article-content h2.news-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-content h2.news-section-title::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--naver);
}
.article-content blockquote {
    margin: 1.8em 0;
    border-left: 4px solid var(--naver);
    padding: 16px 22px;
    background: #f4faf7;
    color: #3b5549;
}
.news-date-note {
    border: 1px solid rgba(3,165,106,.22);
    border-left: 4px solid var(--naver);
    background: #f4faf7;
    color: #3b5549;
    padding: 13px 16px;
    margin: 24px 0 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
}
.article-content ul { margin: 1.4em 0; padding-left: 24px; }
.article-content li { margin: .45em 0; }
.article-content h2 + ul {
    margin-top: .8em;
}
.article-content h2 + ul a {
    font-size: .95em;
}
.article-content h2.news-summary-title + ul,
.article-content h2.news-reference-title + ul {
    display: grid;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}
.article-content h2.news-summary-title + ul li,
.article-content h2.news-reference-title + ul li {
    margin: 0;
    border: 1px solid rgba(28, 43, 51, .1);
    background: linear-gradient(180deg, #fff, #f7fbf9);
    padding: 13px 15px;
    line-height: 1.7;
}
.article-content h2.news-summary-title + ul a {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    color: var(--naver-dark);
    font-size: .9em;
    font-weight: 900;
    text-decoration-color: rgba(3, 165, 106, .38);
}
.article-content h2.news-reference-title + ul a {
    display: inline;
    color: var(--ink);
    font-size: .96em;
    text-decoration-color: rgba(63, 134, 166, .45);
}
.news-brief-card {
    position: relative;
    border: 1px solid rgba(28, 43, 51, .12);
    border-left: 4px solid var(--naver);
    background:
        linear-gradient(135deg, rgba(3, 165, 106, .065), rgba(63, 134, 166, .05) 42%, rgba(255,255,255,.94)),
        #fff;
    padding: 20px 22px;
    margin: 14px 0;
    box-shadow: 0 12px 30px rgba(18, 28, 35, .045);
}
.news-brief-card p {
    margin: 0;
    color: #26323a;
    font-size: 16px;
    line-height: 1.9;
}
.news-brief-card a {
    color: var(--naver-dark);
    font-size: .9em;
    font-weight: 900;
    text-decoration-color: rgba(3, 165, 106, .36);
}
.news-article {
    border-color: rgba(26, 36, 43, .16);
    background:
        linear-gradient(180deg, rgba(247, 250, 249, .98), rgba(255,255,255,.98) 330px),
        var(--paper);
}
.news-article .article-header {
    border-bottom: 3px double rgba(31, 42, 49, .30);
    padding-bottom: 36px;
}
.news-article .article-header::before {
    top: -22px;
    width: 112px;
    height: 5px;
    background: linear-gradient(90deg, #1f2a31 0 68%, var(--naver) 68% 100%);
}
.news-article .category-label {
    border-color: rgba(31, 42, 49, .18);
    background: #1f2a31;
    color: #fff;
    letter-spacing: 0;
}
.news-article .article-header h1 {
    max-width: 760px;
    margin-top: 18px;
    font-family: Georgia, "Times New Roman", var(--title-font), serif;
    font-size: clamp(36px, 5.1vw, 55px);
    line-height: 1.13;
}
.news-article .article-byline {
    border-top: 1px solid rgba(31, 42, 49, .14);
    padding-top: 14px;
}
.news-article .article-actions {
    border-top: 1px solid rgba(31, 42, 49, .08);
    padding-top: 16px;
}
.news-article > .news-date-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid rgba(31, 42, 49, .13);
    border-left: 0;
    background:
        linear-gradient(90deg, rgba(3, 165, 106, .08), rgba(255,255,255,.92) 42%),
        #f7f9f8;
    color: #44515a;
    margin: 26px 0 12px;
    padding: 14px 16px;
    font-size: 13px;
}
.news-article > .news-date-note::before {
    content: "BRIEF";
    flex: 0 0 auto;
    border: 1px solid rgba(31, 42, 49, .22);
    background: #fff;
    color: #1f2a31;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.4;
}
.news-article .article-content {
    font-size: 17px;
    line-height: 2;
}
.news-article .article-content > p:first-of-type {
    border-bottom: 1px solid rgba(31, 42, 49, .12);
    padding-bottom: 22px;
    color: #1f2a31;
    font-size: 1.1em;
    font-weight: 650;
}
.news-article .article-content h2.news-section-title {
    border-top: 3px double rgba(31, 42, 49, .28);
    margin-top: 2.25em;
    padding-top: 20px;
    font-family: var(--title-font);
    font-size: 25px;
}
.news-article .article-content h2.news-section-title::before {
    width: 8px;
    height: 24px;
    background: linear-gradient(180deg, var(--naver-dark), var(--blue));
}
.news-article .news-brief-card {
    border: 1px solid rgba(31, 42, 49, .12);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,250,.98)),
        #fff;
    padding: 20px 24px 20px 28px;
    box-shadow: 0 14px 30px rgba(18, 28, 35, .055);
}
.news-article .news-brief-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: linear-gradient(180deg, var(--naver-dark), var(--blue));
}
.news-article .news-brief-card p {
    color: #26313a;
    font-size: 16px;
    line-height: 1.88;
}
.news-article .news-brief-card p::first-line {
    color: #1f2a31;
    font-weight: 800;
}
.news-article .news-brief-card a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--naver-dark);
    text-decoration-thickness: 1px;
}
.news-article .news-brief-card a::after {
    content: "->";
    font-size: .9em;
    text-decoration: none;
}
.news-article .article-content h2.news-reference-title + ul {
    border-top: 1px solid rgba(31, 42, 49, .16);
    gap: 0;
    padding-top: 8px;
}
.news-article .article-content h2.news-reference-title + ul li {
    border: 0;
    border-bottom: 1px solid rgba(31, 42, 49, .10);
    background: transparent;
    padding: 13px 2px;
}
.news-article .article-content h2.news-reference-title + ul a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f2a31;
    font-size: .9em;
    font-weight: 800;
    line-height: 1.55;
    text-decoration: none;
}
.news-article .article-content h2.news-reference-title + ul a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--naver);
    flex: 0 0 auto;
}
.news-article .article-content h2.news-reference-title + ul a:hover {
    color: var(--naver-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.inline-post-image { margin: 2.4em 0; }
.inline-post-image a { display: block; overflow: hidden; border: 1px solid var(--soft-line); background: #eef1f2; }
.inline-post-image img { display: block; width: 100%; max-height: 720px; object-fit: contain; }
.inline-post-image figcaption { padding-top: 7px; color: #9aa3a9; font-size: 11px; text-align: center; line-height: 1.4; }
.inline-image-missing { color: #c2410c; font-weight: 700; }
.article-footer { display: flex; gap: 10px; align-items: center; padding: 22px 0; border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); color: var(--muted); font-size: 13px; }
.category-chip { color: var(--naver-dark); font-weight: 800; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 28px 0 44px; }
.post-navigation a { min-width: 0; border: 1px solid var(--line); padding: 16px; }
.post-navigation a.older { text-align: right; }
.post-navigation small, .post-navigation strong { display: block; }
.post-navigation small { color: var(--muted); font-size: 11px; }
.post-navigation strong { margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comments { padding-top: 20px; }
.comments-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.comments-title h2 { margin: 0; font-family: var(--title-font); font-size: 25px; }
.comments-title h2 span { color: var(--naver); font-size: 16px; }
.comments-title > p { margin: 0; color: var(--muted); font-size: 12px; }
.comment-form { border: 1px solid var(--line); padding: 20px; background: #fafbfb; }
.comment-form label { display: grid; gap: 6px; color: #59656d; font-size: 12px; font-weight: 700; }
.comment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid #ccd3d7; background: #fff; padding: 10px; outline: 0; }
.comment-form textarea { resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--naver); box-shadow: 0 0 0 3px rgba(3, 165, 106, .09); }
.comment-form button, .primary-button, .draft-button {
    min-height: 42px;
    border: 0;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 800;
}
.comment-form button,
.primary-button {
    background: linear-gradient(135deg, var(--naver-dark), #2d7196);
    color: #fff;
    box-shadow: 0 12px 26px rgba(8, 122, 85, .2);
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
}
.comment-form button:hover,
.primary-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(8, 122, 85, .26);
    transform: translateY(-1px);
}
.draft-button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}
.comment-form button { display: block; margin: 12px 0 0 auto; }
.comment-list { margin-top: 26px; border-top: 1px solid #313b42; }
.comment-item { display: flex; gap: 12px; padding: 20px 2px; border-bottom: 1px solid var(--soft-line); }
.comment-avatar { width: 36px; height: 36px; font-size: 13px; }
.comment-item > div { min-width: 0; flex: 1; }
.comment-item header { display: flex; gap: 10px; align-items: center; }
.comment-item time { color: #98a1a7; font-size: 11px; }
.comment-item p { margin: 7px 0 0; font-size: 14px; }
.empty-comments { padding: 34px; text-align: center; color: var(--muted); }
.not-found { width: min(680px, calc(100% - 32px)); margin: 100px auto; text-align: center; }
.not-found h1 { font-family: var(--title-font); font-size: 38px; }

.blog-footer { padding: 34px 20px 48px; border-top: 1px solid var(--line); background: #fff; text-align: center; }
.blog-footer strong { font-family: var(--title-font); }
.blog-footer p { margin: 4px 0 0; color: #89939a; font-size: 12px; }

.gallery-page {
    background: var(--canvas);
    color: var(--ink);
}

.gallery-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 72px;
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: end;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(51, 126, 92, .12), rgba(255, 255, 255, .78)),
        #fff;
}

.gallery-hero h1 {
    margin: 4px 0 10px;
    font-family: var(--title-font);
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.gallery-hero p {
    margin: 0;
    color: var(--muted);
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    border: 1px solid rgba(51, 126, 92, .18);
    background: rgba(255, 255, 255, .74);
}

.gallery-stats span {
    display: grid;
    gap: 3px;
    padding: 16px;
    border-left: 1px solid rgba(51, 126, 92, .14);
    color: var(--muted);
    font-size: 12px;
}

.gallery-stats span:first-child { border-left: 0; }

.gallery-stats b {
    color: var(--naver-dark);
    font-size: 24px;
}

.gallery-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.gallery-filter label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.gallery-filter select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 0 12px;
    font: inherit;
}

.gallery-filter button,
.gallery-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--naver-dark);
    border-radius: 6px;
    background: var(--naver-dark);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.gallery-filter a {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.gallery-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gallery-card:hover {
    transform: translateY(-3px);
    border-color: rgba(51, 126, 92, .34);
    box-shadow: 0 16px 34px rgba(20, 35, 32, .12);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef4f1;
}

.gallery-card span,
.gallery-card strong,
.gallery-card small {
    margin-inline: 14px;
}

.gallery-card span {
    margin-top: 13px;
    color: var(--naver-dark);
    font-size: 12px;
    font-weight: 800;
}

.gallery-card strong {
    display: -webkit-box;
    min-height: 48px;
    margin-top: 7px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    line-height: 1.5;
}

.gallery-card small {
    margin-top: 9px;
    margin-bottom: 14px;
    color: var(--muted);
}

.gallery-empty {
    margin-top: 22px;
}

.content-protected .blog-cover,
.content-protected .feed-list,
.content-protected .article-content,
.content-protected .article-gallery,
.content-protected .gallery-shell {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.content-protected .blog-cover img,
.content-protected .feed-list img,
.content-protected .article-content img,
.content-protected .article-gallery img,
.content-protected .gallery-shell img {
    -webkit-user-drag: none;
    pointer-events: none;
}
