@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Sans+KR:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, button { border-radius: 0 !important; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); }

#root {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    border-bottom: 1px solid;
    letter-spacing: .04em;
}
.topbar-label { font-weight: 600; text-transform: uppercase; }
.topbar-sep { opacity: .25; }
.topbar-loc { opacity: .45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.site-header {
    padding: 64px 0 40px;
}
.site-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -.02em;
    margin-bottom: 6px;
}
.site-title a { color: inherit; }
.site-desc {
    font-size: 13px;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.5;
}
.site-nav { display: flex; gap: 8px; }
.nav-link {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border: 1px solid;
    transition: background .12s;
    letter-spacing: .02em;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 56px;
    align-items: start;
    padding-bottom: 80px;
}

.list-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 2px;
    border-bottom: 1px solid;
}
.list-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.list-count { font-size: 11px; }

.post-list { display: flex; flex-direction: column; }

.post-row {
    display: grid;
    grid-template-columns: 100px 1fr 96px;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid;
    font-size: 13.5px;
    transition: background .1s;
}
.post-row:hover { background: rgba(0,0,0,.025); }
.pr-cat  { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-title { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-date  { font-size: 11px; text-align: right; }

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-top: 16px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 500;
}
.pg-arrow { cursor: pointer; opacity: .55; transition: opacity .1s; padding: 0 4px; }
.pg-arrow:hover { opacity: 1; }
.pg-nums { display: flex; gap: 14px; }
.pg-num {
    cursor: pointer;
    opacity: .35;
    font-size: 12px;
    transition: opacity .1s;
    padding: 0 2px;
}
.pg-num:hover { opacity: 1; }

.article { width: 100%; }

.article-header {
    padding-bottom: 20px;
    margin-bottom: 32px;
    border-bottom: 1px solid;
}
.article-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.35;
    margin-bottom: 10px;
}
.article-title a { color: inherit; }
.article-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.meta-sep { opacity: .3; }
.meta-cat { text-decoration: underline; text-underline-offset: 2px; }

.post-content {
    font-size: 15.5px;
    line-height: 1.95;
    word-break: keep-all;
    overflow-wrap: break-word;
    letter-spacing: -0.01em;
}
.post-content::after { content: ''; display: table; clear: both; }
.post-content p { margin-bottom: 24px; }
.post-content h1,
.post-content h2,
.post-content h3 { 
    font-weight: 600; 
    margin-top: 44px; 
    margin-bottom: 16px; 
    line-height: 1.4; 
}
.post-content h1 { 
    font-size: 21px; 
    border-bottom: 1px solid rgba(0,0,0,.08); 
    padding-bottom: 8px; 
}
.post-content h2 { font-size: 18.5px; }
.post-content h3 { font-size: 16.5px; }

.post-content ul, 
.post-content ol { margin: 0 0 24px 22px; }
.post-content li { margin-bottom: 8px; }
.post-content a { 
    text-decoration: underline; 
    text-underline-offset: 3px; 
    opacity: .85; 
    transition: opacity .1s;
}
.post-content a:hover { opacity: 1; }

.post-content img { 
    display: block;
    float: none !important;
    clear: both;
    max-width: 100%; 
    height: auto;
    border-radius: 0px !important;
    margin: 32px 0;
}
.post-content table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 32px 0; 
    font-size: 14px;
}
.post-content th { background: rgba(0,0,0,.02); font-weight: 600; }
.post-content td, 
.post-content th { 
    padding: 11px 14px; 
    border: 1px solid; 
    border-color: inherit; 
    opacity: 0.9;
}
.post-content blockquote {
    border-left: 3px solid currentColor;
    padding: 4px 0 4px 18px;
    margin: 28px 0;
    opacity: .75;
}
.post-content pre, 
.post-content code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 13px;
    background: rgba(0,0,0,.04);
    padding: 14px 16px;
    margin: 18px 0;
    overflow-x: auto;
    line-height: 1.6;
}

.post-content .message.general { box-sizing: content-box !important; }
.post-content .message.general input,
.post-content .message.general button,
.post-content .message.general table,
.post-content .message.general td,
.post-content .message.general th { border-radius: initial !important; }
.post-content .message.general table td {
    padding: 2px !important;
    border: none !important;
    border-bottom: 1px solid black !important;
    opacity: 1 !important;
}
.post-content .message.general table th { padding: 2px !important; }
.post-content .message.general p { margin-bottom: 0 !important; }
.post-content .message.general img { margin: 0 !important; display: inline-block !important; }

.post-content form[name="dice"],
.post-content table[id^="dice"],
.post-content .dice-result {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 48px;
    border: 1px solid;
    overflow: hidden;
}
.pn-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    border: none;
    transition: background .1s;
    min-width: 0;
}
.pn-btn:hover { background: rgba(0,0,0,.03); }
.pn-btn + .pn-btn { border-left: 1px solid; border-color: inherit; }
.pn-next { align-items: flex-end; text-align: right; }
.pn-empty { display: flex; align-items: center; font-size: 11px; opacity: .3; padding: 16px 18px; }
.pn-empty.pn-next { justify-content: flex-end; }
.pn-label { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pn-title { font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.sidebar {
    position: sticky;
    top: 28px;
    font-size: 13px;
    min-width: 0;
}
.sb-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 0.4;
    padding: 0 0 12px 2px;
}

.sb-category, 
.sb-category table, 
.sb-category tr, 
.sb-category td {
    display: block !important;
    width: 100% !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sb-category {
    border: 1px solid !important;
    border-color: inherit !important;
    border-radius: 0px !important;
}

.clean-category-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.clean-cat-row {
    width: 100%;
    border-bottom: 1px solid !important;
    border-color: inherit !important;
}
.clean-cat-row:last-child {
    border-bottom: none !important;
}

.clean-cat-row a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 20px !important;
    font-size: 13.5px;
    font-weight: 400;
    color: inherit;
    width: 100%;
    transition: background .12s ease;
}
.clean-cat-row a:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}
.clean-cat-row.on a {
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02) !important;
}

.clean-cat-row a .count {
    font-size: 11px;
    opacity: .35;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
}

@media (max-width: 860px) {
    #root { padding: 0 20px; }
    .layout { grid-template-columns: 1fr; gap: 32px; }
    .sidebar { position: static; margin-top: 32px; }
    .site-header { padding: 40px 0 28px; }
    .post-row { grid-template-columns: 80px 1fr; }
    .pr-date { display: none; }
    .prev-next { grid-template-columns: 1fr; }
    .pn-btn + .pn-btn { border-left: none; border-top: 1px solid; border-color: inherit; }
}

.sb-category, 
.sb-category table, 
.sb-category tr, 
.sb-category td {
    display: block !important;
    width: 100% !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
}

.sb-category {
    border: 1px solid !important;
    border-color: inherit !important;
    border-radius: 0px !important;
    overflow: hidden;
}

.clean-category-box {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.clean-cat-row {
    width: 100%;
    border-bottom: 1px solid !important;
    border-color: inherit !important;
    opacity: 0.9;
}
.clean-cat-row:last-child {
    border-bottom: none !important;
}

.clean-cat-row a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 13px 18px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: inherit !important;
    width: 100%;
    box-sizing: border-box !important;
    transition: background .12s ease;
}

.clean-cat-row a:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.clean-cat-row.on a {
    font-weight: 600 !important;
    background: rgba(0, 0, 0, 0.02) !important;
}

.clean-cat-row .cat-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
}

.clean-cat-row a .count {
    font-size: 11px !important;
    opacity: .35 !important;
    font-family: 'Inter', sans-serif !important;
    margin-left: auto !important;
    flex-shrink: 0;
}